/* ==========================================================================
   Trace Theory
   Palette: Forest, Walnut, Bone, and Limescale (the chalky blue that tap
   water leaves on a showerhead). One idea per screen. Lots of air.
   ========================================================================== */

:root {
  --bone: #ECE6DA;
  --bone-2: #E2D9C8;
  --paper: #F6F2E9;
  --ink: #1B1A16;
  --forest: #1D2B21;
  --forest-2: #2C3F31;
  --walnut: #4A3527;
  --walnut-2: #6E523E;
  --limescale: #B9CDD2;
  --limescale-2: #DCE7E7;
  --limescale-deep: #5E8590;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --hand: "Homemade Apple", "Bradley Hand", cursive;
  --sans: "Jost", "Futura", "Helvetica Neue", sans-serif;

  --gutter: clamp(18px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* page theme (overridden per page) */
  --bg: var(--bone);
  --fg: var(--ink);
  --muted: rgba(27, 26, 22, .62);
  --line: rgba(27, 26, 22, .18);
  --accent: var(--walnut);
}

body[data-page="story"]   { --bg: var(--forest); --fg: var(--bone); --muted: rgba(236, 230, 218, .64); --line: rgba(236, 230, 218, .2); --accent: var(--limescale); }
body[data-page="archive"] { --bg: var(--bone); --accent: var(--forest); }
body[data-page="weather"] { --bg: var(--walnut); --fg: var(--bone); --muted: rgba(236, 230, 218, .66); --line: rgba(236, 230, 218, .22); --accent: var(--limescale); }
body[data-page="letters"] { --bg: var(--limescale); --fg: var(--forest); --muted: rgba(29, 43, 33, .66); --line: rgba(29, 43, 33, .22); --accent: var(--walnut); }

.on-forest  { --bg: var(--forest); --fg: var(--bone); --muted: rgba(236, 230, 218, .64); --line: rgba(236, 230, 218, .2); --accent: var(--limescale); background: var(--bg); color: var(--fg); }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { overflow-x: clip; }

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .26  0 0 0 0 .2  0 0 0 .42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body[data-page="story"]::after,
body[data-page="weather"]::after { mix-blend-mode: screen; opacity: .09; }

::selection { background: var(--walnut); color: var(--bone); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bone); padding: 10px 14px; font-family: var(--mono); font-size: .85rem; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.hand { font-family: var(--hand); font-weight: 400; }

.display {
  font-weight: 300;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.022em;
  margin: 0;
}
.display em { font-weight: 300; }
.h2 {
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0;
}
.lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; max-width: 36ch; color: var(--fg); }
.muted { color: var(--muted); }

.section { padding-block: clamp(88px, 13vw, 180px); }

/* buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.6em .95em;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover:not(:disabled) { background: transparent; color: var(--fg); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.arrow-link {
  font-family: var(--mono);
  font-size: .86rem;
  letter-spacing: .06em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.arrow-link::after { content: " \2192"; transition: margin .25s var(--ease); }
.arrow-link:hover::after { margin-left: 4px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__mark svg { width: 24px; height: 24px; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 0;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.nav__links .nav__cta { color: var(--fg); border: 1px solid var(--line); padding: 8px 14px; }
.nav__links .nav__cta:hover { border-color: var(--fg); }
.nav__toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  color: inherit;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav[data-open] .nav__links { display: flex; }
  .nav__links a { font-size: 1rem; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current="page"] { border-bottom: 1px solid var(--line); text-decoration: underline; }
  .nav__links .nav__cta { border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
}

/* ---------- footer + Trace List ---------- */

.foot {
  --bg: var(--forest); --fg: var(--bone); --muted: rgba(236, 230, 218, .6); --line: rgba(236, 230, 218, .18);
  background: var(--bg);
  color: var(--fg);
  padding: clamp(80px, 11vw, 140px) 0 0;
  position: relative;
  z-index: 2;
}
body[data-page="story"] .foot { --bg: #16211A; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: end; }
.foot h2 { margin-bottom: 18px; max-width: 14ch; }
.foot__join p { max-width: 44ch; color: var(--muted); }

.join { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; max-width: 520px; }
.join input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 14px 16px;
}
.join input::placeholder { color: var(--muted); }
.join input:focus { outline: none; border-color: var(--fg); }
.join .btn { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.join .btn:hover:not(:disabled) { background: transparent; color: var(--fg); }
.join__note { flex-basis: 100%; font-size: .86rem; margin: 12px 0 0; color: var(--muted); }
.join__status { flex-basis: 100%; margin: 8px 0 0; font-style: italic; min-height: 1.4em; }
.join__status.is-error { color: #F0B8A0; }
.join.is-done input { border-color: transparent; padding-left: 0; }

.foot__links { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .88rem; line-height: 2.2; justify-self: end; text-align: right; }
.foot__links a { text-decoration: none; color: var(--muted); }
.foot__links a:hover { color: var(--fg); }
.foot__sig { margin-top: clamp(64px, 9vw, 110px); color: var(--limescale); }
.foot__sig svg { width: 100%; height: auto; }
.foot__sig path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.foot__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 760px) {
  .foot__grid { grid-template-columns: 1fr; gap: 40px; }
  .foot__links { justify-self: start; text-align: left; }
}

/* ---------- photographs (optional; hidden until the file exists) ---------- */

.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.02); }
.photo figcaption { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); margin-top: 10px; }
.photo.is-missing { display: none; }

/* ---------- small shared marks ---------- */

.postmark-svg { color: rgba(29, 35, 52, .75); mix-blend-mode: multiply; }
.postmark-svg text { font-family: var(--mono); font-weight: 700; fill: currentColor; }

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--walnut);
  padding: .5em .55em .45em .75em;
  border: 2px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: 2px;
  transform: rotate(-6deg);
  opacity: .85;
}

/* ==========================================================================
   HOME
   ========================================================================== */

.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero .display { max-width: 11ch; }
.hero__aside p { margin: 0 0 1.4rem; max-width: 34ch; }

.signature-line { margin-top: clamp(40px, 6vw, 72px); color: var(--forest); }
.signature-line svg { width: 100%; height: auto; overflow: visible; }
.signature-line .sl-path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js .signature-line .sl-path { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); animation: draw 4.2s .3s var(--ease) forwards; }
.signature-line .sl-city circle { fill: var(--bg); stroke: currentColor; stroke-width: 1.4; }
.signature-line .sl-city text { font-family: var(--mono); font-size: 13px; fill: var(--muted); letter-spacing: .08em; }
.signature-line .sl-note { font-family: var(--hand); font-size: 15px; fill: var(--walnut-2); }
.js .signature-line .sl-city, .js .signature-line .sl-note { opacity: 0; animation: fade .8s var(--ease) forwards; }
.js .signature-line .sl-city:nth-of-type(1) { animation-delay: 1.1s; }
.js .signature-line .sl-city:nth-of-type(2) { animation-delay: 1.9s; }
.js .signature-line .sl-city:nth-of-type(3) { animation-delay: 2.6s; }
.js .signature-line .sl-note { animation-delay: 3.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.questions { border-top: 1px solid var(--line); }
.questions__grid { display: grid; grid-template-columns: 1fr 1fr; }
.question { padding: clamp(36px, 5vw, 64px) clamp(0px, 3vw, 48px) clamp(36px, 5vw, 64px) 0; }
.question + .question { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 56px); }
.question__no { font-family: var(--mono); font-size: .8rem; color: var(--muted); display: block; margin-bottom: 18px; }
.question__q { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; font-weight: 300; margin: 0 0 18px; max-width: 18ch; }
.question p { margin: 0; max-width: 40ch; color: var(--muted); }
@media (max-width: 760px) {
  .hero__grid, .questions__grid { grid-template-columns: 1fr; }
  .question + .question { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* The ends of your hair */
.ends { padding-block: clamp(88px, 12vw, 160px); }
.ends__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px 80px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.ends__head p { margin: 0; color: var(--muted); max-width: 40ch; }

.ends__controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); gap: 28px 48px; align-items: start; margin-bottom: 44px; }
.ctl__label { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ctl__value { font-family: var(--mono); color: var(--fg); text-transform: none; letter-spacing: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  appearance: none;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .8rem;
  padding: 7px 11px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 28px; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--fg); opacity: .9; }
input[type="range"]::-moz-range-track { height: 1px; background: var(--fg); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg); margin-top: -9px; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg); }
input[type="range"]:focus-visible { outline: 2px dashed var(--fg); outline-offset: 6px; }

.ends__viz { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0 18px; }
.ends__viz svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.strand-fibre { fill: none; stroke-linecap: round; }
.ends__tick line { stroke: var(--line); }
.ends__tick text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.ends__label text { font-family: var(--mono); font-size: 12px; fill: var(--fg); letter-spacing: .06em; }
.ends__probe line { stroke: var(--accent); stroke-dasharray: 2 4; }
.ends__probe circle { fill: var(--accent); }
.ends__probe text { font-family: var(--hand); font-size: 14px; fill: var(--accent); }

.ends__readout { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .6fr)); gap: 24px 40px; margin-top: 44px; align-items: end; }
.ends__age { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; font-weight: 300; margin: 0; }
.ends__age strong { font-weight: 400; font-style: italic; color: var(--accent); }
.fact { border-top: 1px solid var(--line); padding-top: 12px; }
.fact b { display: block; font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; margin-bottom: 6px; }
.fact span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.ends__foot { margin-top: 26px; font-family: var(--mono); font-size: .76rem; color: var(--muted); max-width: 70ch; }

.ends__turn { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 80px; }
.ends__turn .h2 { max-width: 13ch; }
.ends__turn p { margin: 0 0 1.1em; max-width: 46ch; }
.ends__turn p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .ends__head, .ends__turn { grid-template-columns: 1fr; }
  .ends__controls { grid-template-columns: 1fr; }
  .ends__readout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ends__age { grid-column: 1 / -1; }
}

/* Doors */
.doors { padding-block: clamp(88px, 12vw, 160px); }
.doors__list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.door a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 120px;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 3.6vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.door__no { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.door__title { font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.05; font-weight: 300; transition: transform .45s var(--ease); }
.door__desc { color: var(--muted); max-width: 38ch; font-size: 1rem; }
.door__swatch { justify-self: end; width: 96px; height: 64px; position: relative; overflow: hidden; transition: transform .45s var(--ease); }
.door__swatch svg { width: 100%; height: 100%; }
.door a:hover .door__title { transform: translateX(10px); font-style: italic; }
.door a:hover .door__swatch { transform: rotate(-4deg) scale(1.06); }
.door--story .door__swatch { background: var(--forest); color: var(--limescale); }
.door--archive .door__swatch { background: var(--paper); color: var(--forest); outline: 1px solid var(--line); }
.door--weather .door__swatch { background: var(--walnut); color: var(--bone); }
.door--letters .door__swatch { background: var(--limescale); color: var(--forest); }
.door__swatch path, .door__swatch circle, .door__swatch rect { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
@media (max-width: 760px) {
  .door a { grid-template-columns: 1fr 72px; gap: 8px 16px; }
  .door__no { grid-column: 1; }
  .door__title { grid-column: 1; }
  .door__desc { grid-column: 1; }
  .door__swatch { grid-column: 2; grid-row: 1 / span 3; width: 72px; height: 52px; align-self: center; }
}

.home-photo { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: end; }
.home-photo .photo img { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .home-photo { grid-template-columns: 1fr; } }

/* ==========================================================================
   STORY
   ========================================================================== */

.story-hero { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(48px, 7vw, 96px); }
.story-hero .display { max-width: 12ch; }
.story-hero .lede { margin-top: 28px; color: var(--muted); }

.chapter { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.chapter__no { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--accent); margin: 0 0 20px; }
.chapter__text { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.25; font-weight: 300; max-width: 26ch; margin: 0; }
.chapter__text + .chapter__text { margin-top: .8em; }

/* the route with three postcards */
.route { position: relative; margin-top: clamp(48px, 7vw, 88px); }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.route__svg path { fill: none; stroke: var(--limescale); stroke-width: 1.3; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .8; }
.route__cards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
.route__cards > :nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.route__cards > :nth-child(3) { margin-top: clamp(10px, 3vw, 40px); }
.route__hint { font-family: var(--hand); font-size: .9rem; color: var(--limescale); margin-top: 30px; }

.postcard { perspective: 1400px; }
.postcard__btn {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.postcard__btn[aria-pressed="true"] { transform: rotateY(180deg); }
.postcard__btn:hover:not([aria-pressed="true"]) { transform: rotate(-1.2deg) translateY(-4px); }
.postcard__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7);
  overflow: hidden;
  text-align: left;
}
.postcard__front { padding: 10px; }
.postcard__front .art { position: absolute; inset: 10px; overflow: hidden; }
.postcard__front .art svg, .postcard__front .art img { width: 100%; height: 100%; object-fit: cover; }
.postcard__greet {
  position: absolute;
  left: 20px; bottom: 16px;
  color: var(--paper);
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.postcard__greet small { display: block; font-family: var(--mono); font-style: normal; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.postcard__back {
  transform: rotateY(180deg);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  padding: clamp(14px, 1.6vw, 22px);
  gap: 14px;
}
.postcard__msg { font-family: var(--hand); font-size: clamp(.62rem, .92vw, .78rem); line-height: 2; color: #2C3A55; border-right: 1px solid rgba(27, 26, 22, .25); padding-right: 12px; overflow: hidden; }
.postcard__addr { position: relative; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--mono); font-size: clamp(.56rem, .78vw, .7rem); line-height: 1.9; }
.postcard__addr span { border-bottom: 1px solid rgba(27, 26, 22, .2); }
.postcard__addr .postmark-svg { position: absolute; top: -4px; right: -6px; width: 92%; transform: rotate(-12deg); }
.postcard__tz { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 14px; display: flex; justify-content: space-between; }

@media (max-width: 760px) {
  .route__cards { grid-template-columns: 1fr; gap: 28px; }
  .route__cards > :nth-child(n) { margin-top: 0; }
  .route__cards > :nth-child(2) { margin-left: 10%; }
  .route__cards > :nth-child(3) { margin-right: 8%; }
  .route__svg { display: none; }
  .postcard__msg { font-size: .74rem; }
  .postcard__addr { font-size: .66rem; }
}

/* crossed-out list */
.changed { list-style: none; margin: 40px 0 0; padding: 0; }
.changed li {
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.12;
  font-weight: 300;
  position: relative;
  width: max-content;
  max-width: 100%;
  color: var(--muted);
}
.changed li::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 3px;
  background: var(--limescale);
  transform: scaleX(0) rotate(-1.4deg);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.changed.is-in li::after { transform: scaleX(1) rotate(-1.4deg); }
.changed.is-in li:nth-child(2)::after { transition-delay: .35s; }
.changed.is-in li:nth-child(3)::after { transition-delay: .7s; }
.changed.is-in li:nth-child(4)::after { transition-delay: 1.05s; }
.realise { margin-top: clamp(56px, 8vw, 96px); font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.18; font-weight: 300; max-width: 22ch; }
.circled { position: relative; white-space: nowrap; font-style: italic; color: var(--limescale); }
.circled svg { position: absolute; left: -12%; top: -24%; width: 124%; height: 150%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--limescale); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s .3s var(--ease); }
.realise.is-in .circled path { stroke-dashoffset: 0; }

.story-photos { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 7vw, 88px); align-items: end; }
@media (max-width: 760px) { .story-photos { grid-template-columns: 1fr; } }

/* skin vs hair timeline */
.compare { margin-top: clamp(48px, 7vw, 88px); }
.compare__row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.compare__row:last-of-type { border-bottom: 1px solid var(--line); }
.compare__who { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.track { position: relative; height: 54px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.mark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .82rem;
  white-space: nowrap;
}
.mark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--limescale); flex: 0 0 12px; }
.bar { position: absolute; top: calc(50% - 1px); height: 2px; background: var(--limescale); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.compare.is-in .bar { transform: scaleX(1); }
.mark--late::before { background: transparent; border: 1.5px solid var(--limescale); }
.axis { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; margin-top: 10px; }
.axis__ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.compare__q { margin-top: clamp(48px, 7vw, 80px); font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 300; max-width: 20ch; }
@media (max-width: 600px) {
  .compare__row, .axis { grid-template-columns: 1fr; gap: 10px; }
  .axis > span:first-child { display: none; }
  .mark { font-size: .72rem; }
}

.sign { margin-top: 48px; display: flex; flex-direction: column; gap: 6px; }
.sign .hand { font-size: 1.15rem; color: var(--limescale); transform: rotate(-3deg); transform-origin: left; width: max-content; }
.sign span:last-child { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next-links { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 48px; }

/* ==========================================================================
   ARCHIVE
   ========================================================================== */

.archive-hero { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; }
.archive-hero .lede { margin-top: 26px; color: var(--muted); }
.archive-hero .plate { max-width: 360px; justify-self: end; color: var(--forest); }
.plate svg { width: 100%; height: auto; }
.pl-line { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.pl-thin { fill: none; stroke: currentColor; stroke-width: .65; }
.pl-hatch { fill: none; stroke: currentColor; stroke-width: .45; opacity: .7; }
.pl-dash { fill: none; stroke: var(--walnut-2); stroke-width: .8; stroke-dasharray: 4 3; }
.pl-fill { fill: currentColor; }
.pl-hole { fill: var(--bg); }
.pl-hair { fill: none; stroke: currentColor; stroke-width: .7; stroke-linecap: round; }
.pl-t { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.pl-i { font-style: italic; font-family: var(--serif); font-size: 13px; fill: var(--walnut-2); }
.plate figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .archive-hero { grid-template-columns: 1fr; } .archive-hero .plate { justify-self: start; max-width: 300px; } }

.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 28px; }
.filters span { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }

.cases { border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); }
.case summary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.1fr) 110px 24px;
  gap: 24px;
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  cursor: pointer;
  list-style: none;
}
.case summary::-webkit-details-marker { display: none; }
.case summary::after { content: "+"; font-family: var(--mono); color: var(--muted); text-align: right; }
.case[open] summary::after { content: "\2013"; }
.case__no { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.case__title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.05; font-weight: 300; }
.case__q { font-style: italic; color: var(--muted); font-size: 1.05rem; line-height: 1.4; }
.case__tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; justify-self: end; padding: 4px 8px; border: 1px solid var(--line); }
.case__tag--prevention { background: var(--limescale-2); border-color: transparent; }
.case summary:hover .case__title { font-style: italic; }
.case__body { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 0 0 clamp(32px, 4vw, 48px); }
.case__body > div { grid-column: span 1; }
.case__body > :first-child { grid-column: 2; }
.case__body h3 { font-family: var(--mono); font-weight: 400; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--walnut-2); margin: 0 0 10px; }
.case__body p { margin: 0 0 1em; font-size: 1.05rem; line-height: 1.65; max-width: 46ch; }
.case__body .arrow-link { font-size: .8rem; }
.case.is-filtered { display: none; }
@media (max-width: 820px) {
  .case summary { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 6px 14px; }
  .case__no { grid-column: 1; }
  .case__title { grid-column: 1; }
  .case__q { grid-column: 1 / -1; }
  .case__tag { grid-column: 2; grid-row: 1; }
  .case summary::after { grid-column: 3; grid-row: 1; }
  .case__body { grid-template-columns: 1fr; }
  .case__body > :first-child { grid-column: 1; }
}

.journal { padding-block: clamp(88px, 12vw, 160px) clamp(88px, 12vw, 160px); }
.journal__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 96px; }
.journal__head p { color: var(--muted); max-width: 36ch; }
.note { border-top: 1px solid var(--line); padding: 28px 0 8px; }
.note__meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 12px; }
.note h3 { margin: 0 0 12px; font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.note p { margin: 0 0 1em; max-width: 58ch; line-height: 1.7; }
.rules { margin: 0 0 1em; padding-left: 1.3em; }
.rules li { margin-bottom: .3em; }
@media (max-width: 820px) { .journal__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   HAIR WEATHER
   ========================================================================== */

.wx-hero { padding-top: clamp(64px, 10vw, 130px); padding-bottom: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.wx-hero .lede { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .wx-hero { grid-template-columns: 1fr; } }

.wx-search { display: flex; flex-wrap: wrap; gap: 0; max-width: 620px; position: relative; }
.wx-search input {
  flex: 1 1 260px;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-right: 0;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.2rem;
  padding: 14px 16px;
  border-radius: 0;
}
.wx-search input::placeholder { color: var(--muted); }
.wx-search input:focus { outline: none; border-color: var(--fg); }
.wx-search .btn { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.wx-try { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.wx-try span { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-right: 6px; }
.wx-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; list-style: none; margin: 4px 0 0; padding: 0; background: var(--bone); color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.wx-results button { appearance: none; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(0,0,0,.1); padding: 12px 16px; font-family: var(--serif); font-size: 1rem; cursor: pointer; color: inherit; }
.wx-results button:hover, .wx-results button:focus-visible { background: var(--limescale-2); outline: none; }
.wx-results small { font-family: var(--mono); color: rgba(27,26,22,.6); margin-left: 8px; }

.tv {
  margin-top: clamp(36px, 5vw, 56px);
  background: #2E2119;
  border-radius: 28px;
  padding: clamp(14px, 2vw, 22px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 40px 70px -40px rgba(0,0,0,.8);
}
.tv__screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #233328, #142019 75%);
  color: var(--bone);
  min-height: 420px;
  padding: clamp(22px, 4vw, 48px);
}
.tv__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 120px rgba(0,0,0,.55);
}
.tv__bar { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--limescale); margin-bottom: clamp(24px, 4vw, 40px); }
.tv__live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #D9744E; margin-right: 8px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tv__city { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: .95; margin: 0; }
.tv__sub { font-family: var(--mono); font-size: .82rem; color: rgba(236,230,218,.7); margin: 10px 0 0; }
.tv__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; margin-top: clamp(28px, 4vw, 48px); }
.reading { border-top: 1px solid rgba(185, 205, 210, .35); padding-top: 12px; }
.reading dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--limescale); }
.reading dd { margin: 0; }
.reading .v { font-family: var(--sans); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; display: block; margin: 6px 0 8px; }
.reading .v small { font-size: .45em; font-weight: 400; margin-left: 4px; }
.reading .n { font-size: .98rem; line-height: 1.45; color: rgba(236,230,218,.82); }
.tv__outlook { margin-top: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 1px solid rgba(185, 205, 210, .35); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: baseline; }
.tv__outlook span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--limescale); }
.tv__outlook p { margin: 0; font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.3; }
.tv__water { margin-top: 18px; font-family: var(--mono); font-size: .78rem; color: rgba(236,230,218,.66); }
.tv__idle { display: grid; place-items: center; min-height: 320px; text-align: center; }
.tv__idle p { font-family: var(--mono); color: var(--limescale); letter-spacing: .1em; text-transform: uppercase; font-size: .86rem; }
.tv__idle .hand { text-transform: none; letter-spacing: 0; font-size: 1rem; color: rgba(236,230,218,.75); margin-top: 10px; }
.tv__knobs { display: flex; justify-content: space-between; align-items: center; padding: 14px 10px 2px; font-family: var(--mono); font-size: .72rem; color: rgba(236,230,218,.5); }
.tv__knobs i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #4A3527; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); margin-left: 8px; vertical-align: middle; }
.wx-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
.wx-source { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 26px; max-width: 72ch; }
@media (max-width: 820px) {
  .tv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv__outlook { grid-template-columns: 1fr; gap: 8px; }
  .tv { border-radius: 18px; }
}

/* ==========================================================================
   LETTERS
   ========================================================================== */

.letters-hero { padding-top: clamp(64px, 10vw, 130px); padding-bottom: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.letters-hero .lede { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .letters-hero { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 56px); }
.tabs button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  padding: 14px 0;
  margin-right: clamp(20px, 4vw, 48px);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); font-style: italic; }

.writing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .writing { grid-template-columns: 1fr; } }

.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(26px, 5vw, 60px) clamp(22px, 5vw, 64px) clamp(30px, 4vw, 48px);
  box-shadow: 0 30px 50px -30px rgba(29, 43, 33, .55);
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.sheet__dear { font-family: var(--hand); font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: #2C3A55; margin: 0 0 14px; }
.sheet textarea {
  display: block;
  width: 100%;
  min-height: 15rem;
  resize: vertical;
  border: 0;
  padding: 0;
  background: transparent;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2.1rem - 1px), rgba(27, 26, 22, .14) calc(2.1rem - 1px) 2.1rem);
  background-attachment: local;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 2.1rem;
  color: #2C3A55;
}
.sheet textarea::placeholder { color: rgba(44, 58, 85, .42); font-style: italic; }
.sheet textarea:focus { outline: none; }
.sheet__count { font-family: var(--mono); font-size: .72rem; color: rgba(27, 26, 22, .5); text-align: right; margin-top: 6px; }
.sheet__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(27, 26, 22, .55); }
.field input {
  border: 0;
  border-bottom: 1px solid rgba(27, 26, 22, .3);
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #2C3A55;
}
.field input:focus { outline: none; border-bottom-color: #2C3A55; }
.field input::placeholder { color: rgba(44, 58, 85, .4); font-style: italic; }
.sheet .postmark-svg { position: absolute; top: 18px; right: 22px; width: 160px; opacity: 0; transform: scale(1.3) rotate(-12deg); }
.sheet.is-stamped .postmark-svg { animation: thunk .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes thunk { from { opacity: 0; transform: scale(1.35) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-12deg); } }
.sheet.is-filed { transform: translateY(30px) rotate(-2deg) scale(.95); opacity: 0; }
@media (max-width: 600px) { .sheet__fields { grid-template-columns: 1fr; } .sheet .postmark-svg { width: 120px; } }

.prompts p { margin: 0 0 14px; }
.prompts__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.prompts__list .chip { font-family: var(--hand); font-size: .78rem; text-transform: none; padding: 9px 12px; line-height: 1.6; text-align: left; }
.opts { display: grid; gap: 14px; }
.opts .field input { color: var(--fg); border-bottom-color: var(--line); }
.opts .field > span { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.check input { margin: 4px 0 0; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--forest); }
.check:has(input:disabled) { opacity: .45; cursor: default; }
.small { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 0; }
.status { min-height: 1.4em; font-style: italic; margin: 0; }
.status.is-error { color: #7A2E1A; }

.posted { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 48px); position: relative; animation: fade .6s var(--ease) both; box-shadow: 0 30px 50px -30px rgba(29, 43, 33, .55); }
.posted h3 { margin: 0 0 12px; font-weight: 300; font-size: 2rem; }
.posted p { color: rgba(27, 26, 22, .7); margin: 0 0 1em; max-width: 44ch; }
.posted .stamp { position: absolute; top: 24px; right: 24px; }

/* missing poster */
.poster-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.poster-form { display: grid; gap: 20px; }
.poster-form .field input { color: var(--fg); border-bottom-color: var(--line); }
.poster-form .field > span { color: var(--muted); }
.poster {
  background: #F2ECDD;
  color: var(--ink);
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  box-shadow: 0 30px 50px -30px rgba(29, 43, 33, .55);
  transform: rotate(.8deg);
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.poster__top { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.poster__word { font-family: var(--sans); font-weight: 500; font-size: clamp(3.2rem, 9vw, 5.6rem); letter-spacing: .03em; line-height: .9; margin: 14px 0 6px; transform: scaleY(1.28); transform-origin: top; padding-bottom: .26em; }
.poster__subject { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-style: italic; margin: 0 0 18px; line-height: 1.2; overflow-wrap: anywhere; }
.poster__frame { width: 64%; margin: 0 auto 20px; aspect-ratio: 4 / 5; border: 1px solid rgba(27, 26, 22, .4); display: grid; place-items: center; background: #E9E1CE; position: relative; overflow: hidden; }
.poster__frame svg { width: 70%; color: var(--forest); }
.poster__frame svg path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.poster__frame span { position: absolute; bottom: 10px; left: 0; right: 0; font-family: var(--hand); font-size: .72rem; color: #2C3A55; }
.poster dl { font-family: var(--mono); font-size: .86rem; text-align: left; margin: 0 0 18px; }
.poster dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(27, 26, 22, .16); }
.poster dt { color: rgba(27, 26, 22, .55); }
.poster dd { margin: 0; overflow-wrap: anywhere; }
.poster__foot { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-top: 3px double rgba(27, 26, 22, .5); padding-top: 10px; margin: 0; }
.poster-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) { .poster-wrap { grid-template-columns: 1fr; } }

.published { margin-top: clamp(72px, 10vw, 130px); padding-top: 28px; border-top: 1px solid var(--line); max-width: 640px; padding-bottom: clamp(72px, 10vw, 120px); }
.published p:last-child { font-style: italic; color: var(--muted); }

/* ==========================================================================
   Secondary pages
   ========================================================================== */

.doc { max-width: 720px; margin: clamp(40px, 7vw, 88px) auto clamp(80px, 10vw, 120px); padding: 0 var(--gutter); }
.doc h1 { font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; margin: 0 0 .6em; }
.doc h2 { font-family: var(--mono); font-weight: 400; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 2.6em 0 .8em; color: var(--walnut-2); }
.doc p, .doc li { line-height: 1.7; }
.doc ul { padding-left: 1.2em; }

.missing { max-width: 520px; margin: clamp(40px, 7vw, 80px) auto clamp(80px, 10vw, 120px); padding: 0 var(--gutter); }
.missing .poster { transform: rotate(-.6deg); }

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- additions: postcards, timeline marks ---------- */
.postcard__front .art [data-fallback] { display: block; width: 100%; height: 100%; }
.postcard__front .art [data-fallback][hidden] { display: none; }
.postcard__greet {
  left: 18px; bottom: 18px;
  color: var(--ink);
  background: var(--paper);
  padding: 7px 12px 8px;
  text-shadow: none;
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.5);
}
.mark--up { top: 22%; }
.mark--down { top: 78%; }
.mark--end { left: auto !important; right: 0; flex-direction: row-reverse; }
.story-photos .photo { max-width: 480px; }
.story-photos .photo img { aspect-ratio: 4 / 5; }
.story-photos { grid-template-columns: 1fr; }

.tv__idle .hand { font-family: var(--hand); }
@media (max-width: 640px) {
  .signature-line { overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
  .signature-line svg { width: 175%; max-width: none; margin-left: -12%; }
  .signature-line .sl-city text { font-size: 22px; }
  .signature-line .sl-note { font-size: 24px; }
  .signature-line .sl-path { stroke-width: 2.4; }
}

@media (max-width: 900px) { .ends__readout { align-items: start; } }
