@font-face {
  font-family: Fraunces;
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #222218;
  --cream: #f8e8c5;
  --gold: #f6c25d;
  --night: #171421;
  --display: Fraunces, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --nav-clearance: calc(138px + var(--safe-bottom));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: var(--nav-clearance); }
body { margin: 0; color: var(--ink); background: var(--night); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
figure, p, h1, h2, h3 { margin: 0; }
img, svg { display: block; }
img { max-width: 100%; }
svg { width: 1.16em; height: 1.16em; flex: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid #d19022; outline-offset: 4px; }
.wrap { width: min(1260px, calc(100% - 104px)); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  z-index: 10;
  top: calc(12px + var(--safe-top));
  left: max(12px, var(--safe-left));
  padding: 12px 18px;
  background: var(--gold);
  clip-path: inset(50%);
}
.skip:focus { clip-path: none; }

.masthead {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  width: min(1456px, calc(100% - 80px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f8e8c554;
  color: var(--cream);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font: 850 1.85rem/.95 var(--display); letter-spacing: -.06em; }
.brand img { width: 44px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 1px #130f15); }
.top-social { display: flex; gap: 8px; }
.top-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #f8e8c574;
  border-radius: 50%;
  background: #1b1725a6;
  transition: background .18s, color .18s;
}
.top-social a:hover { background: var(--cream); color: var(--night); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(665px, 92svh, 980px);
  display: grid;
  align-items: center;
  background: #282032;
  color: var(--cream);
}
.hero-picture, .hero::before { position: absolute; inset: 0; }
.hero-picture { z-index: -2; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 73% 52%; }
.fireflies { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #151222bc 0%, #1813244f 35%, transparent 63%),
    linear-gradient(180deg, #181324a3, transparent 24%, transparent 79%, #17142163);
}
.hero-content { padding: 116px 0 104px; }
.hero-copy { width: fit-content; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.078em; }
h1 {
  font-size: clamp(7.5rem, 19vw, 19rem);
  line-height: .77;
  padding-right: .055em;
  margin-left: -.04em;
  text-shadow: 0 .02em #27213283;
}
h1 span { color: var(--gold); }
.hero-copy p {
  margin-top: clamp(28px, 4.3vw, 63px);
  font-size: clamp(1.1rem, 1.85vw, 1.5rem);
  font-weight: 650;
  text-shadow: 0 2px 10px #171421;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .18s, background .18s, color .18s;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: #241c14; box-shadow: 3px 3px 0 #121018; }
.button-gold:hover { background: #ffda88; }
.hero-copy .button { margin-top: 22px; }
.hero-stamps {
  position: absolute;
  right: max(52px, calc((100% - 1260px) / 2));
  bottom: 7%;
  display: flex;
  align-items: center;
}
.hero-stamps img {
  width: clamp(52px, 7vw, 95px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid var(--cream);
  border-radius: 50%;
  box-shadow: 2px 5px 12px #171421b0;
  transform: rotate(-14deg);
}
.hero-stamps img + img { margin-left: -13px; transform: translateY(12%) rotate(12deg); }

.firefly-switch, .neon-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ffeab86b;
  border-radius: 4px;
  background: #1b1722eb;
  color: var(--cream);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.firefly-switch {
  position: absolute;
  left: max(52px, calc((100% - 1260px) / 2));
  bottom: 25px;
  --switch-light: #c7ff79;
}
.firefly-switch span, .neon-switch span {
  width: 9px;
  height: 9px;
  border: 1px solid #ffeab88a;
  border-radius: 50%;
}
.firefly-switch[aria-pressed="true"] span, .neon-switch[aria-pressed="true"] span {
  border-color: var(--switch-light);
  background: var(--switch-light);
  box-shadow: 0 0 9px var(--switch-light);
}
.firefly-switch:hover, .neon-switch:hover { border-color: var(--switch-light); }

.lore {
  --scene-light: #c3ef80;
  --scene-glow: #557f3180;
  color: var(--cream);
  border-block: 1px solid #b5d8914d;
  background:
    radial-gradient(#eee8c51a .6px, transparent .6px) 0 0 / 6px 6px,
    radial-gradient(ellipse at 75% 48%, var(--scene-glow) 0, transparent 57%),
    #1b271d;
}
.lore[data-scene="knight"] { --scene-light: #ffcd76; --scene-glow: #88683396; }
.lore[data-scene="unbothered"] { --scene-light: #ff9e81; --scene-glow: #aa4f3590; }
.lore[data-scene="money-tree"] { --scene-light: #82eaff; --scene-glow: #2e668c91; }
.lore-grid, .pond-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(38px, 6vw, 108px);
  padding-block: clamp(72px, 9.8vw, 150px);
}
h2 { font-size: clamp(3.5rem, 8.1vw, 8.5rem); line-height: .81; }
h2 em { font-style: normal; }
.lore h2 em { display: block; color: var(--scene-light); transition: color .24s; }
.lore-copy > p:not(.sr-only) { margin-top: 24px; max-width: 27ch; color: #e1dfc8; font-size: clamp(1rem, 1.6vw, 1.24rem); line-height: 1.45; }
.field-notes {
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
  border-top: 1px solid #e1dfc84d;
}
.field-notes li { border-bottom: 1px solid #e1dfc84d; }
.scene {
  width: 100%;
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 6px 9px 6px 0;
  text-align: left;
  font-weight: 800;
  font-size: .9rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.scene img { width: 49px; height: 46px; object-fit: cover; border-radius: 2px; }
.scene:hover { background: #f4ebc726; }
.scene[aria-pressed="true"] { background: #f4ebc71f; color: var(--scene-light); box-shadow: inset 0 -2px var(--scene-light); }
.scene-arrow { color: var(--scene-light); font-size: 1.1rem; }

.lore-picture {
  position: relative;
  padding: 9px;
  border: 1px solid #352d20;
  background: #f7ebce;
  box-shadow: 7px 8px 0 #0d1b14a6, 0 0 43px var(--scene-glow);
  transition: box-shadow .24s;
  transform: rotate(2deg);
}
.lore-picture::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -13px;
  left: 50%;
  width: 26%;
  height: 26px;
  background: #d8b674ca;
  transform: translateX(-50%) rotate(-5deg);
  clip-path: polygon(0 0, 99% 2%, 97% 31%, 100% 52%, 97% 73%, 99% 100%, 1% 98%, 3% 73%, 0 53%, 3% 30%);
}
.lore-picture img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.film {
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, .66fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(66px, 8vw, 112px);
  padding: clamp(18px, 3vw, 42px);
  border: 1px solid #d3a86b80;
  border-radius: 6px;
  background: linear-gradient(110deg, #3d2d24, #171518 58%);
}
.film h3 {
  font: 900 clamp(2.4rem, 5vw, 5.3rem)/.93 var(--display);
  letter-spacing: -.07em;
}
.film-toggle {
  min-height: 44px;
  margin-top: 18px;
  padding-inline: 13px;
  border: 1px solid #f0d6a994;
  border-radius: 4px;
  background: transparent;
  color: var(--cream);
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
.film-toggle:hover { background: #fff0cb26; }
.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #eac28361;
  border-radius: 3px;
  background: #100f12;
  box-shadow: 0 0 24px #e8a45129;
}

.pond {
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 81% 29%, #ab266272, transparent 49%),
    radial-gradient(ellipse at 80% 78%, #23698470, transparent 48%),
    #24192f;
}
.pond-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.pond h2 em { color: #ffe1ec; text-shadow: 0 0 9px #ff4f95, 0 0 35px #ff398d9c; transition: color .25s, text-shadow .25s; }
.neon-switch { --switch-light: #ff7eb5; margin-top: 22px; }
.pond-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pond-social .button { width: 49px; padding: 0; font-size: 1.15rem; }
.button-outline { border-color: #f8e8c580; color: var(--cream); }
.button-outline:hover { background: #ffffff24; }
.pond-picture {
  position: relative;
  width: 92%;
  margin-inline: auto;
  --arch: 49% 49% 9% 9% / 42% 42% 9% 9%;
}
.pond-picture::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 2px solid #8bfff3;
  border-radius: var(--arch);
  box-shadow: 0 0 7px #52fff3, 0 0 26px #3cdccc91, inset 0 0 9px #5dfff28c;
  pointer-events: none;
  transition: opacity .25s;
}
.diner {
  width: 100%;
  height: auto;
  aspect-ratio: .94;
  object-fit: cover;
  border: 2px solid #ffc3de;
  border-radius: var(--arch);
  box-shadow: 0 0 10px #ff65ad, 0 0 24px #e94d9a91;
  transition: box-shadow .25s, filter .25s, border-color .25s;
}
.lights-off { background: #21182b; }
.lights-off h2 em { color: var(--gold); text-shadow: none; }
.lights-off .pond-picture::before { opacity: 0; }
.lights-off .diner { border-color: #846477; box-shadow: none; filter: brightness(.66) saturate(.66); }
.postcard {
  position: absolute;
  width: clamp(76px, 12vw, 151px);
  padding: 6px 6px 13px;
  background: var(--cream);
  box-shadow: 2px 5px 11px #171421ac;
}
.postcard img { width: 100%; height: auto; }
.coast { right: -8%; bottom: -3%; transform: rotate(10deg); }
.rooftop { left: -7%; bottom: 6%; transform: rotate(-13deg); }

.footer { color: var(--cream); padding: 23px 0 var(--nav-clearance); border-top: 1px solid #fff5de25; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.footer span { font: 800 1.4rem var(--display); }
.footer a { font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.dock-stack {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  display: grid;
  width: min(368px, calc(100% - 24px));
  gap: 6px;
  color: var(--cream);
}
.dock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid #ad8652;
  border-radius: 14px;
  background: #251f25;
  box-shadow: 0 4px 0 #171421b3, 0 9px 28px #17142185;
}
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 800;
  white-space: nowrap;
}
.dock a:hover { background: #43343a; }
.dock a[aria-current] { border-color: #d6ad65; background: #f5deaa; color: #26201b; box-shadow: 0 0 12px #ffd4856b; }
.dock img { width: clamp(26px, 8vw, 37px); height: 34px; object-fit: contain; filter: drop-shadow(0 1px 1px #2d21177a); }

@property --contract-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes contract-glow { to { --contract-angle: 360deg; } }

.copy {
  --contract-surface: #231b28;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid #ad8652;
  border-radius: 9px;
  background: var(--contract-surface);
  background:
    linear-gradient(var(--contract-surface), var(--contract-surface)) padding-box,
    conic-gradient(from var(--contract-angle, 0deg), #b5ef7b, #f9c55c 22deg, #f780bc 45deg, #ad8652 80deg 330deg, #80ead2) border-box;
  border-color: transparent;
  box-shadow: 0 4px 12px #17142185;
  cursor: pointer;
  animation: contract-glow 5s linear infinite;
}
.copy:hover { --contract-surface: #38293a; }
.contract-label { color: var(--gold); font-size: .68rem; font-weight: 850; }
.copy code { min-width: 0; overflow-wrap: anywhere; font-size: clamp(.625rem, 2.8vw, .7rem); line-height: 1.3; user-select: text; }
.copy svg { width: .88rem; height: .88rem; color: var(--gold); }
#copy-status {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: .78rem;
  pointer-events: none;
}
#copy-status:not(:empty) {
  padding: 7px 9px;
  border: 1px solid #ad8652;
  border-radius: 7px;
  background: #231b28;
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 72px); }
  .hero-stamps { right: 36px; }
  .firefly-switch { left: 36px; }
  .lore-grid, .pond-grid { gap: 42px; }
}

@media (max-width: 720px) {
  :root { --page-gutter: clamp(16px, 5vw, 24px); --nav-clearance: calc(120px + var(--safe-bottom)); }
  .wrap, .masthead {
    width: auto;
    margin-left: max(var(--page-gutter), var(--safe-left));
    margin-right: max(var(--page-gutter), var(--safe-right));
  }
  .masthead { top: var(--safe-top); min-height: 60px; }
  .brand { font-size: 1.65rem; }
  .brand img { width: 37px; }
  .brand, .footer a { min-height: 44px; }
  .footer a { display: inline-flex; align-items: center; }
  .hero { min-height: max(570px, 100svh); align-items: end; }
  .hero-picture {
    bottom: clamp(58px, 13svh, 112px);
    -webkit-mask-image: linear-gradient(#000 74%, transparent);
    mask-image: linear-gradient(#000 74%, transparent);
  }
  .hero-picture img { object-position: center; }
  .hero::before {
    background: linear-gradient(180deg, #171421a8 0%, transparent 25%, transparent 45%, #171421a6 75%, #171421 100%);
  }
  .hero-content { padding: calc(124px + var(--safe-top)) 0 var(--nav-clearance); }
  h1 { font-size: clamp(5rem, 25vw, 10rem); }
  h2 { font-size: clamp(2.9rem, 11vw, 5.25rem); line-height: .9; }
  .hero-copy p { margin-top: 19px; font-size: clamp(1rem, 4.2vw, 1.25rem); }
  .hero-copy .button { margin-top: 16px; }
  .hero-stamps { right: max(var(--page-gutter), var(--safe-right)); bottom: 53%; }
  .hero-stamps img { border-width: 3px; }
  .firefly-switch { top: calc(72px + var(--safe-top)); right: max(var(--page-gutter), var(--safe-right)); bottom: auto; left: auto; }
  .lore-grid, .pond-grid { grid-template-columns: minmax(0, 1fr); padding-block: clamp(40px, 11vw, 62px); }
  .lore-grid { gap: 24px; }
  .lore-copy { display: contents; }
  .lore h2 em { display: inline; }
  .lore-copy > p:not(.sr-only) { margin-top: -13px; max-width: none; }
  .lore-picture { grid-row: 3; width: min(100% - 12px, 500px); justify-self: center; }
  .field-notes { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-notes li:nth-child(odd) { border-right: 1px solid #e1dfc84d; }
  .scene { grid-template-columns: 34px minmax(0, 1fr); gap: 7px; height: 100%; padding: 6px; font-size: .84rem; line-height: 1.25; }
  .scene img { width: 34px; height: 38px; }
  .scene-arrow { display: none; }
  .film { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 48px; padding: 0; }
  .film-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 12px; }
  .film h3 { font-size: clamp(1.95rem, 7vw, 2.9rem); }
  .film-toggle { margin-top: 0; }
  .film video { border: 0; border-radius: 0 0 5px 5px; }
  .pond-grid { gap: 38px; padding-bottom: 56px; }
  .pond-copy { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 18px 12px; }
  .pond-copy h2 { grid-column: 1 / -1; }
  .neon-switch, .pond-social { margin-top: 0; }
  .pond-picture { width: min(86%, 510px); }
  .postcard { width: clamp(75px, 23vw, 120px); }
  .dock-stack { bottom: calc(8px + var(--safe-bottom)); gap: 5px; }
  .dock { padding: 4px; gap: 3px; }
  .dock a { min-height: 44px; padding-inline: 4px; }
  .dock img { width: 29px; height: 28px; }
  .copy code { font-size: .6875rem; }
}

@media (max-width: 365px) {
  .button { gap: 6px; padding-inline: 10px; }
  .pond-social { gap: 7px; }
  .dock a { gap: 4px; font-size: .77rem; }
  .dock img { width: 24px; }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 960px) {
  :root { --nav-clearance: calc(70px + var(--safe-bottom)); }
  .wrap, .masthead {
    width: auto;
    margin-left: max(20px, var(--safe-left));
    margin-right: max(20px, var(--safe-right));
  }
  .masthead { top: var(--safe-top); min-height: 56px; }
  .hero { min-height: 100svh; align-items: center; }
  .hero-picture { bottom: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-picture img { object-position: 73% 49%; }
  .hero::before { background: linear-gradient(90deg, #151222d6, #18132445 52%, transparent 75%); }
  .hero-content { padding: calc(70px + var(--safe-top)) 0 var(--nav-clearance); }
  h1 { font-size: clamp(4rem, min(15vw, 24svh), 9.5rem); }
  .hero-copy p { margin-top: 22px; }
  .hero-copy .button { margin-top: 12px; }
  .hero-stamps { display: none; }
  .firefly-switch { inset: calc(66px + var(--safe-top)) max(20px, var(--safe-right)) auto auto; }
  .dock-stack {
    left: var(--safe-left);
    right: var(--safe-right);
    bottom: calc(8px + var(--safe-bottom));
    width: auto;
    max-width: 680px;
    margin-inline: max(12px, calc((100% - var(--safe-left) - var(--safe-right) - 680px) / 2));
    transform: none;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: 6px;
  }
  .dock { padding: 3px; gap: 2px; }
  .dock a { min-height: 44px; padding-inline: 3px; gap: 3px; font-size: .75rem; }
  .dock img { width: 23px; height: 25px; }
  .copy code { font-size: .625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .copy { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
