:root {
  --paper: #fcfcfa;
  --soft: #f2f6f8;
  --ink: #15191d;
  --muted: #63707b;
  --line: #d8e2e9;
  --blue: #1d63c8;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --paper: #07111c;
  --soft: #0b1824;
  --ink: #f4f7f7;
  --muted: #a2b1bc;
  --line: #294052;
  --blue: #84bdff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  transition:
    background 600ms ease,
    color 600ms ease;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.nav.shell {
  width: min(1340px, calc(100% - 32px));
}
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  pointer-events: none;
}
.nav a {
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.025em;
}
.brand img {
  width: 38px;
  height: 27px;
  object-fit: contain;
}
.brand-wordmark {
  width: 135px;
  aspect-ratio: 256 / 49.2;
  background: currentColor;
  -webkit-mask: url("assets/brand/snowfish-wordmark.svg") center / contain
    no-repeat;
  mask: url("assets/brand/snowfish-wordmark.svg") center / contain no-repeat;
}
.nav-links {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a {
  transition: color 180ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
}

.home {
  height: 100svh;
  overflow: hidden;
}
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 5;
  padding-top: clamp(48px, 7vh, 78px);
  pointer-events: none;
}
.hero h1 {
  max-width: 11ch;
  font-size: clamp(46px, 4.7vw, 68px);
  line-height: 1.14;
  letter-spacing: -0.048em;
  text-wrap: balance;
  color: #0a0d10;
  text-shadow:
    0 0 2px rgba(252, 252, 250, 0.95),
    0 0 6px rgba(252, 252, 250, 0.9),
    0 0 14px rgba(252, 252, 250, 0.75),
    0 0 28px rgba(252, 252, 250, 0.5);
}
.hero h1 em {
  font-style: italic;
}
.hero-products-link {
  display: inline-block;
  margin-top: 24px;
  color: #0a0d10;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  pointer-events: auto;
  text-shadow:
    0 0 2px rgba(252, 252, 250, 0.95),
    0 0 6px rgba(252, 252, 250, 0.9),
    0 0 14px rgba(252, 252, 250, 0.75);
  transition: color 180ms ease;
}
.hero-products-link:hover {
  color: var(--blue);
}
[data-theme="dark"] .hero h1 {
  color: var(--ink);
  text-shadow: none;
}
[data-theme="dark"] .hero-products-link {
  color: var(--ink);
  text-shadow: none;
}
[data-theme="dark"] .hero-products-link:hover {
  color: var(--blue);
}
.hero-contact {
  position: absolute;
  z-index: 6;
  right: max(16px, calc((100% - 1340px) / 2));
  bottom: 28px;
}
.lake-world {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 560ms ease;
}
.night-image {
  opacity: 0;
}
[data-theme="dark"] .day-image {
  opacity: 0;
}
[data-theme="dark"] .night-image {
  opacity: 1;
}
.celestial-toggle {
  position: absolute;
  z-index: 8;
  top: 3.5%;
  left: calc(74.5% - 10px);
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
}
.celestial-toggle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 450ms ease,
    transform 650ms ease,
    filter 250ms ease;
  filter: drop-shadow(0 0 12px rgba(230, 183, 87, 0.15));
}
.celestial-toggle:hover img {
  filter: drop-shadow(0 0 18px rgba(230, 183, 87, 0.3));
}
.moon-image {
  opacity: 0;
  transform: rotate(-65deg) scale(0.7);
  filter: drop-shadow(0 0 10px rgba(225, 239, 248, 0.35));
}
[data-theme="dark"] .sun-image {
  opacity: 0;
  transform: rotate(110deg) scale(0.7);
}
[data-theme="dark"] .moon-image {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.snowfall {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.flake {
  position: absolute;
  top: -20px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(82, 140, 181, 0.58);
  box-shadow: 0 0 2px rgba(82, 140, 181, 0.2);
  animation: fall var(--speed) linear var(--delay) infinite;
}
[data-theme="dark"] .flake {
  background: rgba(225, 239, 248, 0.42);
}
[data-theme="dark"] .flake:nth-child(n + 35) {
  display: none;
}
@keyframes fall {
  to {
    transform: translate3d(var(--drift), 110vh, 0);
  }
}
.cursor-fx {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ripple {
  position: absolute;
  width: 30px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(55, 105, 155, 0.38);
  animation: ripple-fx 1300ms ease-out forwards;
}
[data-theme="dark"] .ripple {
  border-color: rgba(215, 235, 252, 0.34);
}
@keyframes ripple-fx {
  from {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.45, 0.7);
    opacity: 0.5;
  }
  to {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(2.1, 1.15);
    opacity: 0;
  }
}
.footprint {
  position: absolute;
  width: 7px;
  height: 12px;
  border-radius: 50% 50% 45% 45%;
  background: rgba(70, 90, 112, 0.16);
  animation: footprint-fx 4000ms ease-out forwards;
}
[data-theme="dark"] .footprint {
  background: rgba(215, 232, 248, 0.14);
}
@keyframes footprint-fx {
  0% {
    opacity: 0.7;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
  }
}

.page-main {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100svh - 86px - 95px);
  padding: 72px 0 120px;
}
.page-main h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.page-intro {
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.4;
}
.prose {
  margin-top: 48px;
}
.prose p {
  margin-top: 22px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.6;
}
.prose a {
  color: var(--blue);
}
.prose .signature {
  margin-top: 48px;
  color: var(--muted);
}
.product-index {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.product-row {
  display: grid;
  grid-template-columns: clamp(180px, 34%, 280px) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  gap: 8px 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.product-thumb {
  position: relative;
  grid-row: 1 / -1;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 560ms ease,
    transform 400ms ease;
}
.product-row h2 {
  grid-row: 2;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  transition: color 180ms ease;
}
.product-tagline {
  grid-row: 3;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.product-meta {
  grid-row: 4;
  color: var(--muted);
  font-size: 14px;
}
.product-meta span {
  display: inline-block;
  transition: transform 180ms ease;
}
a.product-row .product-meta {
  color: var(--blue);
  font-weight: 700;
}
a.product-row:hover .product-thumb img {
  transform: scale(1.03);
}
a.product-row:hover h2 {
  color: var(--blue);
}
a.product-row:hover .product-meta span {
  transform: translate(3px, -3px);
}
@media (prefers-reduced-motion: no-preference) {
  .product-index li {
    animation: row-in 400ms ease-out backwards;
  }
  .product-index li + li {
    animation-delay: 120ms;
  }
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.note {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.note:last-child {
  border-bottom: 1px solid var(--line);
}
.note {
  display: block;
}
.note h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.note p {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.note:hover h2 {
  color: var(--blue);
}
.article-page h1 {
  max-width: 20ch;
}
footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.footer-row {
  align-items: baseline;
}
.footer-cta {
  color: var(--muted);
  font-size: 14px;
}
.footer-cta a {
  margin-left: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 180ms ease;
}
.footer-cta a:hover {
  color: var(--blue);
}

@media (max-width: 650px) {
  .shell,
  .page-main {
    width: min(100% - 32px, 1180px);
  }
  .nav {
    min-height: 72px;
  }
  .brand {
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
  }
  .brand img {
    width: 22px;
  }
  .brand-wordmark {
    width: 84px;
  }
  .nav-links {
    gap: 8px;
    font-size: 11px;
  }
  .hero {
    min-height: 620px;
  }
  .hero-copy {
    padding-top: clamp(42px, 7vh, 68px);
  }
  .hero h1 {
    max-width: 9ch;
    font-size: clamp(42px, 12vw, 58px);
  }
  .hero-products-link {
    margin-top: 18px;
    font-size: 16px;
  }
  .scene {
    width: 1180px;
    max-width: none;
    left: 50%;
    transform: translateX(-60%);
    object-position: center;
  }
  .celestial-toggle {
    top: 114px !important;
    left: 75%;
    width: 60px;
    height: 60px;
  }
  .page-main {
    padding: 64px 0 100px;
  }
  .product-index {
    margin-top: 48px;
  }
  .product-row {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 8px;
    padding: 28px 0 32px;
  }
  .product-thumb {
    grid-row: auto;
    margin-bottom: 12px;
  }
  .product-row h2,
  .product-tagline,
  .product-meta {
    grid-row: auto;
  }
  .prose {
    margin-top: 36px;
  }
  .prose p {
    font-size: 18px;
  }
  .footer-row {
    flex-direction: column;
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
