:root {
  --paper: #f3eee4;
  --paper-2: #fffaf3;
  --ink: #1b2430;
  --muted: #3e4956;
  --pine: #24574c;
  --ember: #e15a3c;
  --ember-deep: #c4472c;
  --butter: #f0d08a;
  --mint: #8fd0c8;
  --plum: #6b4c78;
  --line: rgba(27, 36, 48, 0.12);
  --shadow: 0 16px 40px rgba(27, 36, 48, 0.08);
  --serif: "Fraunces", Constantia, "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", Candara, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--paper);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); }

button, input, textarea { font: inherit; }

::selection { background: var(--butter); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.sky,
.front-sky {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.sky { z-index: 0; }

.front-sky { z-index: 8; }

.page { position: relative; z-index: 1; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.55;
  animation: drift 28s ease-in-out infinite;
}

.blob-a { width: min(46vw, 560px); height: min(46vw, 560px); background: #b7ebe3; top: -8vh; left: -8vw; }
.blob-b { width: min(38vw, 480px); height: min(38vw, 480px); background: #f6d7a6; top: 28vh; right: -10vw; animation-duration: 34s; animation-direction: reverse; }
.blob-c { width: min(34vw, 420px); height: min(34vw, 420px); background: #f3c2b4; bottom: -12vh; left: 18vw; animation-duration: 40s; }

.shard {
  position: absolute;
  background: url("../../images/shard.svg") center / contain no-repeat;
  opacity: 0.16;
  animation: twirl 46s linear infinite;
}

.shard-a { width: 220px; height: 220px; top: 18%; left: -70px; }
.shard-b { width: 160px; height: 160px; right: -40px; bottom: 12%; animation-direction: reverse; animation-duration: 58s; }

.flake {
  position: absolute;
  left: var(--x);
  top: -16px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(143, 208, 200, 0.55);
  opacity: 0.75;
  animation: fall var(--t) linear infinite;
  animation-delay: var(--o);
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 36, 48, 0.045) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  mask-image: linear-gradient(#000, transparent 92%);
}

.page { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; min-width: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  background: rgba(243, 238, 228, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand, .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand img, .foot-brand img { width: 40px; height: 40px; flex: none; }

.brand span, .foot-brand span {
  font-family: var(--serif);
  font-weight: 680;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.nav-toggle {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}

.nav.is-open { display: flex; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 4px;
  font-weight: 500;
}

.nav a.here { color: var(--pine); }

.hero, .banner, .block, .band, .closer, .foot { position: relative; }

.hero { padding: 28px 0 10px; }

.hero-seal {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  width: min(260px, 60%);
  right: -30px;
  top: -20px;
  opacity: 0.09;
  animation: twirl 42s linear infinite;
}

.kicker {
  margin: 0 0 10px;
  color: var(--plum);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  animation: pulse 2.2s ease-in-out infinite;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }

h1 { font-size: clamp(3rem, 12vw, 6.5rem); }

.banner h1 { font-size: clamp(2.4rem, 8vw, 4.8rem); }

h2 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 12px; }

h3 { font-size: 1.35rem; margin-bottom: 6px; }

.lede, .sub { font-size: 1.12rem; color: var(--muted); }

.lede p, .sub { margin: 0 0 14px; }

.play {
  display: inline-block;
  position: relative;
  overflow: hidden;
  line-height: 0;
  border-radius: 16px;
  margin: 14px 0 18px;
  transition: transform 0.25s ease;
}

.play img { width: 220px; max-width: 100%; height: auto; }

.play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}

.play:hover { transform: translateY(-2px); }

.deck {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.shot {
  background: var(--paper-2);
  border-radius: 26px;
  padding: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shot img { border-radius: 20px; width: 100%; object-fit: cover; object-position: top center; }
.deck .shot img { max-height: 62vh; }

.crop {
  position: relative;
  overflow: clip;
  contain: inline-size;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  max-width: 440px;
}

.crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transform: scale(1.65);
  transform-origin: 18% 8%;
}

.marquee {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: clip;
  contain: inline-size;
  margin-top: 34px;
  border-block: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.62);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.marquee span {
  padding: 14px 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pine);
}

.band {
  padding-block: clamp(3rem, 7vw, 5.6rem);
  background: rgba(255, 250, 243, 0.55);
  border-block: 1px solid var(--line);
}

.block { padding-block: clamp(3rem, 7vw, 5.6rem); }

.ghost {
  position: absolute;
  right: 2%;
  top: 0.2rem;
  z-index: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.8;
  color: rgba(27, 36, 48, 0.05);
  pointer-events: none;
  user-select: none;
}

.block .wrap, .band .wrap, .closer .wrap { position: relative; z-index: 1; }

.intro-row { max-width: 44rem; }

.stair, .breaths, .rift, .orbit, .notes, .split, .foot-grid, .letter-grid {
  display: grid;
  gap: 14px;
}

.stair > *, .breaths > *, .rift > *, .orbit > *, .notes > *, .split > *,
.hero-grid > *, .letter-grid > *, .foot-grid > *, .lex > *, .deck > * {
  min-width: 0;
}

.stair-item, .breath, .panel, .note, .face-card, .essay, .letter, .cookie, .lex-item {
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.stair-item, .breath, .panel, .note, .face-card, .lex-item { padding: 18px 18px 16px; }

.stair-item { border-left: 6px solid var(--pine); }
.stair-item:nth-child(3n + 2) { border-left-color: var(--plum); }
.stair-item:nth-child(3n) { border-left-color: var(--ember); }

.num {
  display: block;
  font-family: var(--serif);
  color: var(--ember);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.stair-item p, .breath p, .panel p, .note p, .face-card p, .essay p, .prose p, .prose li {
  color: var(--muted);
}

.breath h3, .panel h3, .note h3, .face-card h3 { font-size: 1.25rem; }

.rift figure { margin: 0; }
.rift figcaption {
  padding: 8px 6px 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

.orbit a, .note a.title, .text-link {
  color: inherit;
  text-decoration: none;
}

.face-card img { width: 120px; margin-bottom: 8px; }

.face-card span, .note time, .meta {
  display: block;
  color: var(--plum);
  font-size: 0.92rem;
  margin-top: 4px;
}

.note h3 a { color: var(--ink); text-decoration: none; }
.note h3 a:hover, .text-link:hover, .orbit a:hover h3 { color: var(--pine); }

.weather {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(143, 208, 200, 0.35), rgba(255, 250, 243, 0.9) 42%),
    var(--paper-2);
  border: 1px solid var(--line);
}

.weather strong { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.03em; }

.closer { padding-bottom: clamp(3rem, 7vw, 5rem); }

.closer p { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.03em; max-width: 18ch; }

.foot {
  background: #1b2430;
  color: #f4efe6;
  padding: 42px 0 22px;
}

.foot a { color: #f4efe6; }

.foot p { color: rgba(244, 239, 230, 0.78); }

.foot h2 { font-size: 1.2rem; }

.fine {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.92rem;
}

.legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.legal button, .linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose ul { margin: 0.4rem 0 1rem; padding-left: 1.15rem; }
.prose li + li { margin-top: 0.35rem; }

.essay { padding: 22px 18px 8px; margin-bottom: 16px; }
.essay p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.2rem;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--pine);
}

.lex { display: grid; gap: 12px; }
.lex-item b { font-family: var(--serif); font-size: 1.3rem; display: block; margin-bottom: 4px; }

.letter-grid { align-items: start; }
.letter { padding: 18px; display: grid; gap: 12px; }
.letter label { display: grid; gap: 6px; font-weight: 500; }
.letter input, .letter textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 16px;
}
.letter textarea { min-height: 140px; resize: vertical; }
.letter button, .cookie button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.letter button:hover, .cookie button:hover { background: var(--ember-deep); }
.ghost-btn { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

.cookie {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border-radius: 0;
  border-bottom: 0;
  box-shadow: 0 -10px 30px rgba(27, 36, 48, 0.08);
}

body.has-note { padding-bottom: 108px; }

.cookie p { margin: 0; flex: 1 1 220px; color: var(--muted); font-size: 0.95rem; }
.cookie .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie[hidden] { display: none; }

#letter-msg { margin: 0; color: var(--pine); font-weight: 600; }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    justify-content: flex-end;
    gap: 4px 18px;
    padding: 0;
  }
  .nav a { padding: 6px 0; position: relative; }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--ember);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav a:hover::after, .nav a.here::after { transform: scaleX(1); }
  .stair, .notes, .orbit, .lex, .breaths { grid-template-columns: 1fr 1fr; }
  .foot-grid, .letter-grid, .split { grid-template-columns: 1.15fr 0.85fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: start; }
  .deck { margin-top: 8px; max-width: 420px; justify-self: end; width: 100%; }
  .deck .shot img { max-height: 430px; }
  .deck .shot-a { animation: floaty 7.5s ease-in-out infinite; }
  .deck .shot-b { width: 76%; margin-top: -90px; animation: floaty 8.5s ease-in-out infinite reverse; }
  .rift .shot > img { max-height: 560px; object-fit: cover; object-position: center top; }
  .breaths { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rift { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .essay { padding: 28px 32px 10px; }
}

@media (max-width: 759px) {
  .top { flex-wrap: wrap; }
  .nav.is-open { order: 3; width: 100%; }
}
@media (max-width: 420px) {
  .brand span { font-size: 0.92rem; }
  .flake.douse, .shard { display: none; }
  .blob { opacity: 0.28; filter: blur(22px); }
}

.js .rise { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .rise.is-in { opacity: 1; transform: none; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 8%, 0) scale(1.08); }
}

@keyframes fall {
  from { transform: translateY(-12px); }
  to { transform: translateY(100vh); }
}

@keyframes twirl { to { transform: rotate(360deg); } }

@keyframes ticker { to { transform: translateX(-50%); } }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shine {
  0%, 62% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.65); opacity: 0.45; }
}

@keyframes sheen { to { background-position: 200% 0; } }

.rule {
  display: block;
  height: 3px;
  width: min(220px, 70%);
  margin-top: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pine), var(--mint), var(--butter), var(--ember), var(--pine));
  background-size: 200% 100%;
  animation: sheen 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .rise { opacity: 1; transform: none; }
}
