:root {
  --canvas: #F5F3ED;
  --ink: #171717;
  --stone: #A7A29A;
  --line: rgba(23, 23, 23, 0.16);
  --max: 1320px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--ink); color: var(--canvas); }

.page-shell { min-height: 100vh; overflow: clip; }
.site-header,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 26px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  mix-blend-mode: normal;
  background: linear-gradient(to bottom, rgba(245,243,237,.95), rgba(245,243,237,0));
}
.brand {
  font-size: 1.02rem;
  font-weight: 640;
  letter-spacing: 0.26em;
  white-space: nowrap;
}
.date-link {
  font-size: .78rem;
  letter-spacing: .12em;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}

.section {
  min-height: 100svh;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(96px, 12vh, 150px) var(--pad);
  display: grid;
  align-items: center;
}
.eyebrow {
  margin: 0 0 24px;
  font-size: .72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  gap: clamp(36px, 7vw, 120px);
}
.hero-copy { align-self: end; padding-bottom: 11vh; }
.hero h1,
.statement h2,
.closing h2 {
  margin: 0;
  font-size: clamp(3.4rem, 8.2vw, 8.7rem);
  font-weight: 480;
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 12ch;
}
.hero-note {
  max-width: 30ch;
  margin: 34px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.ordinary-frame {
  position: relative;
  align-self: center;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  overflow: hidden;
  background: #E8E3D8;
  border-radius: 2px;
  box-shadow: 0 35px 80px rgba(38, 34, 27, .08);
}
.window-light {
  position: absolute;
  inset: -5% -20% 14% 4%;
  background:
    linear-gradient(113deg, rgba(255,255,255,.98) 0 22%, rgba(255,255,255,0) 22.4% 44%, rgba(255,255,255,.72) 44.2% 52%, rgba(255,255,255,0) 52.3% 100%),
    linear-gradient(180deg, #ddd8cb, #cfc8ba);
  filter: blur(.1px);
  transform: skewX(-3deg);
}
.chair {
  position: absolute;
  left: 48%;
  top: 46%;
  width: 30%;
  height: 27%;
  border: 7px solid rgba(23,23,23,.88);
  border-top-width: 12px;
  border-radius: 4px 4px 18px 18px;
  transform: translate(-50%, -50%);
}
.chair::before,
.chair::after {
  content: "";
  position: absolute;
  top: 96%;
  width: 7px;
  height: 70%;
  background: rgba(23,23,23,.88);
}
.chair::before { left: 12%; transform: rotate(5deg); }
.chair::after { right: 12%; transform: rotate(-5deg); }
.chair-shadow {
  position: absolute;
  left: 42%;
  top: 62%;
  width: 42%;
  height: 11%;
  border-radius: 50%;
  background: rgba(23,23,23,.13);
  filter: blur(18px);
  transform: rotate(-14deg);
}
.moment-label {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(23,23,23,.66);
}
.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(23,23,23,.5);
}
.scroll-line { width: 54px; height: 1px; background: currentColor; }

.statement { border-top: 1px solid var(--line); }
.statement-inner { max-width: 1120px; }
.statement h2 { max-width: 10.8ch; }

.interlude {
  min-height: 56svh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.interlude-line {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  letter-spacing: -.02em;
}
.interlude-line span:last-child { color: color-mix(in srgb, var(--ink) 48%, transparent); }

.countdown-section { min-height: 92svh; border-top: 1px solid var(--line); }
.countdown-wrap { width: 100%; }
.countdown {
  display: grid;
  grid-template-columns: 1.35fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: clamp(10px, 1.5vw, 26px);
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.count-block { min-width: 0; }
.count-block > span,
.colon {
  display: block;
  font-size: clamp(3.8rem, 9.6vw, 10.5rem);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 450;
}
.colon { color: var(--stone); }
.count-block small {
  display: block;
  margin-top: 16px;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(23,23,23,.5);
}
.countdown-whisper {
  margin: 52px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: rgba(23,23,23,.56);
}

.closing { border-top: 1px solid var(--line); min-height: 86svh; }
.closing-inner { width: 100%; }
.closing h2 { max-width: 10ch; }
.socials {
  display: flex;
  gap: 28px;
  margin-top: 58px;
  font-size: .9rem;
}
.socials a {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(23,23,23,.28);
  transition: border-color .2s ease, opacity .2s ease;
}
.socials a:hover { border-color: var(--ink); }

.site-footer {
  min-height: 92px;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(23,23,23,.56);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

.noscript {
  position: fixed;
  z-index: 100;
  inset: auto 16px 16px 16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--canvas);
  font-size: .85rem;
}

@media (max-width: 840px) {
  .site-header { padding-top: 20px; }
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 54px;
    padding-top: 120px;
  }
  .hero-copy { align-self: auto; padding-bottom: 0; }
  .hero h1,
  .statement h2,
  .closing h2 { font-size: clamp(3rem, 15vw, 5.9rem); }
  .ordinary-frame { min-height: 0; width: 100%; aspect-ratio: 5 / 4; }
  .scroll-cue { display: none; }
  .interlude-line { flex-direction: column; }
  .countdown {
    grid-template-columns: 1fr auto 1fr;
    row-gap: 34px;
  }
  .countdown .count-block:nth-of-type(3),
  .countdown .count-block:nth-of-type(4) { margin-top: 10px; }
  .countdown .colon:nth-of-type(2) { display: none; }
  .countdown { grid-auto-flow: row; }
  .countdown .count-block:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .countdown .colon:nth-of-type(1) { grid-column: 2; grid-row: 1; }
  .countdown .count-block:nth-of-type(2) { grid-column: 3; grid-row: 1; }
  .countdown .colon:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .countdown .count-block:nth-of-type(3) { grid-column: 1; grid-row: 2; }
  .countdown .count-block:nth-of-type(4) { grid-column: 3; grid-row: 2; }
  .count-block > span, .colon { font-size: clamp(3.2rem, 18vw, 6rem); }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 520px) {
  :root { --pad: 20px; }
  .site-header { padding-inline: 20px; }
  .brand { font-size: .92rem; }
  .date-link { font-size: .7rem; }
  .section { min-height: 92svh; padding-top: 100px; padding-bottom: 100px; }
  .hero { min-height: 100svh; }
  .hero h1, .statement h2, .closing h2 { letter-spacing: -.06em; }
  .hero-note { margin-top: 24px; }
  .ordinary-frame { aspect-ratio: 1 / 1.08; }
  .moment-label { left: 18px; bottom: 16px; }
  .countdown { gap: 8px 12px; }
  .count-block small { margin-top: 10px; font-size: .58rem; }
  .countdown-whisper { margin-top: 38px; }
  .socials { margin-top: 42px; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171717;
    --ink: #F5F3ED;
    --stone: #78746D;
    --line: rgba(245,243,237,.16);
  }
  .site-header { background: linear-gradient(to bottom, rgba(23,23,23,.95), rgba(23,23,23,0)); }
  .ordinary-frame { background: #2a2926; box-shadow: 0 35px 80px rgba(0,0,0,.18); }
  .window-light {
    background:
      linear-gradient(113deg, rgba(245,243,237,.86) 0 22%, rgba(245,243,237,0) 22.4% 44%, rgba(245,243,237,.45) 44.2% 52%, rgba(245,243,237,0) 52.3% 100%),
      linear-gradient(180deg, #3a3833, #2f2d29);
  }
  .chair { border-color: rgba(245,243,237,.86); }
  .chair::before, .chair::after { background: rgba(245,243,237,.86); }
  .chair-shadow { background: rgba(0,0,0,.36); }
}
