@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

@property --pal-accent { syntax: "<color>"; inherits: true; initial-value: #FF7A59; }
@property --pal-second { syntax: "<color>"; inherits: true; initial-value: #3B2A6B; }

:root {
  --pal-base: #100B1C;
  --pal-accent: #FF7A59;
  --pal-second: #3B2A6B;
  --on-accent: #1A0B06;

  --s0: #E6DDF1;
  --s1: #F8E1D3;
  --s2: #E4EEF7;
  --s3: #D6E8F6;
  --s4: #F4E8D8;
  --s5: #F7D3BF;
  --s6: #F0BFB7;
  --s7: #E1B0BE;
  --dusk: #2E2964;
  --night: #14132F;
  --deep: #0B0B20;

  --ink: #1C1838;
  --text-primary: var(--ink);
  --text-secondary: #433C60;
  --text-tertiary: #514A6D;
  --rule: rgb(28 24 56 / 0.16);
  --wash: rgb(28 24 56 / 0.05);
  --wash-2: rgb(28 24 56 / 0.09);
  --edge: rgb(28 24 56 / 0.12);
  --accent: var(--pal-accent);
  --accent-text: #A8432A;
  --coral: #FF7A59;
  --eyes: #3A9EFF;
  --body: #2ECC71;
  --amber: #F39C12;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spring-key: linear(0, 0.0869, 0.2654, 0.4735, 0.6576, 0.8056, 0.9156, 0.9845, 1.0244, 1.0414, 1.0444, 1.0394, 1.031, 1.0221, 1.0139, 1.0076, 1.003, 1.0003, 0.9987, 0.9981, 0.998, 0.9983, 0.9987, 0.9991, 1);

  --nav-h: 54px;

  transition: --pal-accent 0.45s ease, --pal-second 0.45s ease;
}

.on-dark {
  --text-primary: #F6F1EE;
  --text-secondary: rgb(246 241 238 / 0.8);
  --text-tertiary: rgb(246 241 238 / 0.66);
  --rule: rgb(246 241 238 / 0.16);
  --wash: rgb(255 255 255 / 0.05);
  --wash-2: rgb(255 255 255 / 0.1);
  --edge: rgb(255 255 255 / 0.12);
  --accent-text: color-mix(in oklab, var(--pal-accent) 62%, white);
  color: var(--text-primary);
}

* { box-sizing: border-box; }

html {
  background: var(--s1);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--pal-accent) 32%, transparent); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.skip {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 300;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--pal-accent);
  transform: translateY(-80px);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; display: none; }
.sky-live .sky { display: block; }
.sky-band {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transform: translate3d(0, calc(var(--t, 0) * -700%), 0) scaleY(8);
  background: linear-gradient(var(--s0) 0%, var(--s0) 6.25%, var(--s1) 18.75%, var(--s2) 31.25%, var(--s3) 43.75%, var(--s4) 56.25%, var(--s5) 68.75%, var(--s6) 81.25%, var(--s7) 93.75%, var(--s7) 100%);
  will-change: transform;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary {
  color: var(--on-accent);
  background: var(--pal-accent);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12), 0 10px 24px -12px color-mix(in srgb, var(--pal-accent) 80%, transparent);
}
.btn.outline {
  color: var(--text-primary);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-primary) 40%, transparent);
}
.btn.outline:hover { background: var(--wash); box-shadow: inset 0 0 0 1.5px var(--text-primary); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { transform: translateY(-1px); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.req-note { margin: 18px 0 0; font-size: 14px; color: var(--text-tertiary); }

.js .reveal .rise { opacity: 0; transform: translateY(18px); }
.js .reveal.in .rise,
.reveal-all .reveal .rise {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  overflow: hidden;
  color: var(--ink);
}
.nav-sky { position: absolute; inset: 0 0 auto; height: 100vh; pointer-events: none; display: none; }
.sky-live .nav-sky { display: block; }
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--s1) 92%, transparent);
}
.sky-live .nav::before { display: none; }
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #221F55;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav-line {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 12%, var(--rule) 88%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav.scrolled .nav-line { opacity: 1; }
.nav.dark { color: #F6F1EE; --rule: rgb(246 241 238 / 0.16); }
.nav.dark::after { opacity: 1; }
.nav-in {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 400 25px/1 var(--serif);
}
.nav-brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.nav-links a i { font: italic 400 15px/1 var(--serif); }
.nav-links a:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.nav-links a.on, .nav-links a[aria-current="page"] { background: color-mix(in srgb, currentColor 11%, transparent); }

.pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  color: inherit;
  background: color-mix(in srgb, currentColor 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.pill:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.pill:active { transform: scale(0.97); }
.pill-sun { width: 18px; height: 11px; flex: none; overflow: visible; }
.pill-sun .hz { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.pill-sun .sun { fill: var(--pal-accent); }
.pill.soon .pill-sun .sun { animation: pill-pulse 1.6s linear infinite; }
@keyframes pill-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pill-time { font: 650 13px/1 var(--rounded); font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }

.look {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 18px;
  align-items: center;
  width: min(392px, calc(100vw - 24px));
  padding: 18px 46px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(170deg, #2C2862, #17163A 70%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -20px rgb(11 11 32 / 0.6);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.look.on { opacity: 1; transform: none; }
.look-art { position: relative; grid-row: span 3; width: 66px; height: 66px; border-radius: 16px; overflow: hidden; background: linear-gradient(#F3B7A8, #6F5C9C); }
.look-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.look-art .sun { fill: #FFE1CC; }
.look-art .h1 { fill: #5867B5; }
.look-art .h2 { fill: #26245C; }
.look-art .sunw { transform-box: fill-box; transform-origin: 50% 50%; }
.look.on .look-art .sunw { animation: look-sink 20s linear both; }
@keyframes look-sink { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
.look-time {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  font: 700 11px/1.2 var(--rounded);
  font-variant-numeric: tabular-nums;
  color: #1A0B06;
  background: rgb(255 240 232 / 0.92);
}
.look-kicker { margin: 0; font: 600 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #A9D2FF; }
.look-title { margin: 0; font: 400 25px/1.1 var(--serif); }
.look-d { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.look-x {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgb(255 255 255 / 0.8);
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.look-x:hover { background: rgb(255 255 255 / 0.16); color: #fff; }
.look-x svg { width: 11px; height: 11px; }

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.mark .num { font: italic 400 28px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--text-primary); }
.mark .dash { width: 28px; height: 1px; background: currentColor; opacity: 0.5; }
.mark time { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--rounded); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.mark time svg { width: 24px; height: 13px; overflow: visible; }
.mark time .arc { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-dasharray: 1.6 2.2; stroke-linecap: round; opacity: 0.6; }
.mark time .hz { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.mark time .sun { fill: var(--pal-accent); }

.night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(var(--dusk), var(--night) 50%, var(--deep));
}
.stars { position: absolute; inset: 0 0 auto; height: 72%; z-index: -1; pointer-events: none; }
.stars svg { width: 100%; height: 100%; }
.stars circle { fill: #fff; }
.stars .tw { animation: twinkle 6s linear infinite; }
.stars .tw:nth-of-type(3n) { animation-duration: 8s; animation-delay: -3s; }
.stars .tw:nth-of-type(3n + 1) { animation-duration: 11s; animation-delay: -6s; }
@keyframes twinkle { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.2; } }
.moon { position: absolute; right: 13%; top: 70px; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset -7px 3px 0 0 #F4E6D8; transform: rotate(-18deg); }
.evening { position: relative; padding: 110px 0 0; text-align: center; }
.evening .mark { justify-content: center; }
.evening h2 { margin: 0 0 18px; font: 400 clamp(52px, 7vw, 96px)/0.95 var(--serif); text-wrap: balance; }
.evening .lede { max-width: 560px; margin: 0 auto; font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.evening .cta-row { justify-content: center; margin-top: 30px; }
.evening .btn.outline { color: var(--text-primary); }
.evening.compact { padding-top: 0; }
.evening.compact .lede { font: 400 clamp(30px, 3.6vw, 44px)/1.12 var(--serif); color: var(--text-primary); max-width: 760px; }
.night.fade { padding-top: 260px; background: linear-gradient(var(--s4), #F2C9B8 60px, #C49BB4 130px, #6E5D9A 200px, var(--dusk) 260px, var(--night) 72%, var(--deep)); }
.night.fade .stars { top: 220px; height: 50%; }
.lost-copy h1 em { font-style: italic; }
.night-hills { position: relative; height: 190px; pointer-events: none; }
.night-hills svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100%; }
.night-base { position: relative; padding: 4px 0 34px; background: var(--deep); font-size: 13.5px; color: var(--text-tertiary); }
.night-base .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.night-base .who { display: inline-flex; align-items: baseline; gap: 10px; }
.night-base .who b { font: 400 22px/1 var(--serif); color: var(--text-primary); }
.night-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.night-links a { text-decoration: none; color: var(--text-secondary); transition: color 0.15s ease; }
.night-links a:hover { color: var(--text-primary); }

.legal-head { position: relative; padding: calc(var(--nav-h) + 72px) 0 0; background: linear-gradient(var(--s0), var(--s1)); }
.legal-head .container { position: relative; z-index: 2; padding-bottom: 150px; }
.legal-head h1 { margin: 0 0 18px; font: 400 clamp(60px, 9vw, 108px)/0.95 var(--serif); }
.updated { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); }
.updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pal-accent); }
.legal-head .lede { margin: 22px 0 0; max-width: 62ch; font-size: 19px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.legal-hills { position: absolute; inset: auto 0 0; height: 150px; pointer-events: none; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.legal-hills svg { width: 100%; height: 100%; }
.legal { padding: 28px 0 120px; background: linear-gradient(var(--s1), var(--s2) 30%, var(--s3) 75%, var(--s4)); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: 72px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.legal-toc h2 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.legal-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1.5px solid transparent; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--text-secondary); transition: color 0.15s ease, border-color 0.15s ease; }
.legal-toc a:hover, .legal-toc a.here { color: var(--text-primary); border-left-color: var(--text-primary); }
.legal-copy section { padding: 34px 0; border-top: 1px solid var(--rule); }
.legal-copy section:first-child { border-top: 0; padding-top: 0; }
.legal-copy h2 { margin: 0 0 12px; font: 400 36px/1.1 var(--serif); scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal-copy p, .legal-copy li { font-size: 16.5px; line-height: 1.72; color: var(--text-secondary); }
.legal-copy p { margin: 0 0 14px; }
.legal-copy p:last-child { margin-bottom: 0; }
.legal-copy ul { list-style: none; margin: 0 0 14px; padding: 0; }
.legal-copy li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.legal-copy li::before { content: ""; position: absolute; left: 2px; top: 0.82em; width: 10px; height: 1px; background: var(--text-primary); }
.legal-copy strong { color: var(--text-primary); font-weight: 600; }
.legal-copy a, a.inline { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.legal-copy a:hover, a.inline:hover { text-decoration-color: currentColor; }

.lost {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(#F3C6B6, #E3AFB9 34%, #9C7FAE 70%, #6A5896);
}
.lost-copy { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; padding: calc(var(--nav-h) + 12vh) 24px 0; text-align: center; }
.lost-copy .mark { justify-content: center; color: #3A3255; }
.page-lost .nav::before { background: #F3C6B6; }
.lost-copy h1 { margin: 0 0 18px; font: 400 clamp(54px, 8vw, 100px)/0.96 var(--serif); color: var(--ink); text-wrap: balance; }
.lost-copy p:not(.mark) { margin: 0 auto; max-width: 48ch; font-size: 18px; line-height: 1.6; color: #2A2346; text-wrap: pretty; }
.lost-copy .cta-row { justify-content: center; margin-top: 30px; }
.lost-land { position: relative; flex: 1; min-height: 280px; margin-top: 32px; }
.lost-land svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100%; }
.lost-sun { transform-box: fill-box; transform-origin: 50% 50%; }
.js .lost-sun { animation: sun-set 2.4s var(--ease-out) both; }
@keyframes sun-set { from { transform: translateY(-46px); } to { transform: none; } }
.lost-foot { position: relative; z-index: 2; margin: 0; padding: 4px 24px 32px; background: var(--deep); font-size: 14px; text-align: center; color: var(--text-secondary); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-in { grid-template-columns: 1fr auto; padding: 0 20px; }
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .container { padding: 0 20px; }
  .look { right: 12px; bottom: 12px; }
  .legal-head { padding-top: calc(var(--nav-h) + 44px); }
  .legal-head .container { padding-bottom: 110px; }
  .legal-head .lede { font-size: 17px; }
  .legal-hills { height: 110px; }
  .night-base .container { flex-direction: column; align-items: flex-start; }
  .night-hills { height: 120px; }
  .evening { padding-top: 80px; }
  .night.fade { padding-top: 220px; }
}
@media (max-width: 380px) {
  .pill-lbl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  .js .reveal .rise { transform: none; }
  .js .reveal.in .rise, .reveal-all .reveal .rise { transition: opacity 0.4s ease; }
  .look { transform: none; transition: opacity 0.25s ease; }
  .look.on .look-art .sunw, .js .lost-sun { animation: none; }
  .btn, .pill { transition: background-color 0.2s ease, box-shadow 0.2s ease; }
  .btn:active, .pill:active, .btn.primary:hover { transform: none; }
  .stars .tw, .pill.soon .pill-sun .sun { animation: none; }
}
