/* Yestara — the landing page.
 *
 * The app's own materials, carried onto the web: warm paper, one terracotta
 * accent, Fraunces for anything that should feel printed, Manrope for
 * anything you operate, and a monospace for the dates on the back of the
 * prints. Tokens mirror lib/app/theme/app_colors.dart in the app repo. */

:root {
  --paper: #F7F1E8;
  --paper-deep: #EFE7D9;
  --surface: #FFFDF8;
  --ink: #241F1A;
  --ink-muted: #6B6259;
  --ink-subtle: #9C9184;
  --line: #E6DDCE;
  --line-strong: #CBBFA9;
  --accent: #C1703D;
  --accent-ink: #9E5427;
  --accent-soft: #F2E3D5;
  --band: #1F1B15;
  --band-ink: #F3EDE2;
  --band-muted: #AFA495;
  --band-line: #3A332A;
  --print: #FFFDF8;
  --shadow: 0 1px 2px rgb(36 31 26 / 0.06), 0 12px 32px -12px rgb(36 31 26 / 0.28);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16130F;
    --paper-deep: #1F1B15;
    --surface: #1F1B15;
    --ink: #F3EDE2;
    --ink-muted: #AFA495;
    --ink-subtle: #8A7F72;
    --line: #3A332A;
    --line-strong: #554B3B;
    --accent: #D98452;
    --accent-ink: #E9A77E;
    --accent-soft: #3A2A1E;
    --band: #0F0D0A;
    --band-ink: #F3EDE2;
    --band-muted: #AFA495;
    --band-line: #2E2820;
    --print: #EFE7D9;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -12px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #16130F;
  --paper-deep: #1F1B15;
  --surface: #1F1B15;
  --ink: #F3EDE2;
  --ink-muted: #AFA495;
  --ink-subtle: #8A7F72;
  --line: #3A332A;
  --line-strong: #554B3B;
  --accent: #D98452;
  --accent-ink: #E9A77E;
  --accent-soft: #3A2A1E;
  --band: #0F0D0A;
  --band-ink: #F3EDE2;
  --band-muted: #AFA495;
  --band-line: #2E2820;
  --print: #EFE7D9;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -12px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything, like every surface in the app. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { mix-blend-mode: screen; opacity: 0.05; } }
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: 0.05; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; z-index: 200;
}
.skip:focus { left: 8px; }

/* ---- Type ---------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-weight: 380;
  letter-spacing: -0.022em;
  word-spacing: 0.04em;
  line-height: 1;
  text-wrap: balance;
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 320;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

h2.display { font-size: clamp(40px, 6.4vw, 84px); }
h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "SOFT" 50;
  font-weight: 460;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-muted); max-width: 34ch; margin: 0; }
.muted { color: var(--ink-muted); }
.fine { font-size: 14px; color: var(--ink-subtle); }

/* ---- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  font: 650 16px/1 var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-quiet { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---- Nav ----------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-variation-settings: "opsz" 48, "SOFT" 50; font-weight: 500; font-size: 23px; letter-spacing: -0.02em; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---- Hero ---------------------------------------------------------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow-x: clip; }
.hero .wrap { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.2fr 0.8fr; } }

.hero h1 { font-size: clamp(48px, 7.4vw, 100px); text-wrap: pretty; }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 28px 0 0; padding: 0; list-style: none;
  font-family: var(--mono); font-size: 13px; color: var(--ink-muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: "✦"; color: var(--accent); font-size: 11px; }

/* The prints: three photographs on a table. Tap to put the top one back. */
.prints {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 4 / 4.7;
  margin: 0 auto;
  border: 0; padding: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.print {
  position: absolute;
  width: 72%;
  left: 14%; top: 4%;
  background: var(--print);
  padding: 12px 12px 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), z-index 0s .2s;
  transform: rotate(var(--tilt)) translate(var(--dx), var(--dy));
}
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.print figcaption {
  padding: 12px 4px 14px;
  font-family: var(--serif); font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 100;
  font-size: 17px; color: #3a322b; line-height: 1.25;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.print figcaption time { font-family: var(--mono); font-style: normal; font-size: 12px; color: #8a7f72; letter-spacing: 0.04em; }
.print[data-pos="0"] { --tilt: -3deg; --dx: 0%; --dy: 0%; z-index: 3; }
.print[data-pos="1"] { --tilt: 5deg; --dx: 16%; --dy: 5%; z-index: 2; }
.print[data-pos="2"] { --tilt: -9deg; --dx: -14%; --dy: 9%; z-index: 1; }
.prints:hover .print[data-pos="0"] { --tilt: -1deg; --dy: -2%; }
.prints-hint {
  text-align: center; margin: 22px 0 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-subtle);
}

/* ---- Ticker -------------------------------------------------------- */

.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--paper-deep);
}
.ticker-track {
  display: flex; gap: 36px; width: max-content;
  animation: ticker 60s linear infinite;
  font-family: var(--serif); font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-size: clamp(22px, 2.6vw, 34px); color: var(--ink);
  white-space: nowrap;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 36px; }
.ticker-track span::after { content: "✦"; font-style: normal; font-size: 0.55em; color: var(--accent); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- Sections ------------------------------------------------------ */

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
}

/* ---- Try one ------------------------------------------------------- */

.maker {
  display: grid; gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 940px) { .maker { grid-template-columns: 0.95fr 1.05fr; } }

.maker-controls { display: grid; gap: 36px; }
.control-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 14px; display: block;
}

.year {
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px;
}
.year output {
  text-align: center;
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 350; font-size: clamp(56px, 7vw, 84px); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
}
.year button {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 500 24px/1 var(--sans); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.year button:hover { border-color: var(--ink); background: var(--paper-deep); }
.year input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); margin: 6px 0 2px; }
.year-scale {
  grid-column: 1 / -1; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--ink-subtle);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  font: 550 15px/1 var(--sans);
  padding: 12px 16px; min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.memory {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow: var(--shadow);
}
.memory-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  /* Its own layer, so the rounded clip stays clean while the picture fades. */
  isolation: isolate;
}
@media (min-width: 600px) { .memory-photo { aspect-ratio: 5 / 4; } }
.memory-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
  border-radius: inherit;
  transition: opacity .45s ease;
}
.memory-photo img.is-swapping { opacity: 0; }
.memory-body { padding: 22px 8px 8px; }
.memory-title {
  font-family: var(--serif); font-variation-settings: "opsz" 96, "SOFT" 40;
  font-weight: 420; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 10px; text-wrap: balance;
}
.memory-sub { color: var(--ink-muted); margin: 0 0 18px; }
.memory-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.memory-tags li {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.memory-note {
  margin: 0; padding-top: 16px; border-top: 1px dashed var(--line-strong);
  font-size: 14px; color: var(--ink-subtle);
}

/* ---- Steps --------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 28px); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 28px;
}
.step-num {
  font-family: var(--mono); font-size: 13px; color: var(--accent-ink);
  display: inline-block; margin-bottom: 20px; letter-spacing: 0.06em;
}
.step p { color: var(--ink-muted); margin: 0 0 32px; }
/* A whole phone, never a cropped one: every screen is shown entire, at the
 * same size, sitting on the bottom of its card. */
.phone {
  margin: auto auto 0;
  width: min(100%, 212px);
  aspect-ratio: 9 / 16;
  box-sizing: content-box;
  border: 7px solid var(--ink);
  border-radius: 32px;
  background: var(--ink);
  overflow: hidden;
  flex: none;
  box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 25px; }

/* ---- Studios bento ------------------------------------------------- */

.bento { display: grid; gap: 16px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column;
}
.tile p { color: var(--ink-muted); margin: 0; max-width: 40ch; }
.tile p + .phone { margin-top: 32px; }
.tile .phone { width: min(100%, 232px); }
@media (min-width: 760px) {
  .tile-a { grid-column: span 3; }
  .tile-b { grid-column: span 3; }
  .tile-c { grid-column: span 2; }
  .tile-d { grid-column: span 2; }
  .tile-e { grid-column: span 2; }
}
.tile-dark { background: var(--band); color: var(--band-ink); border-color: var(--band-line); }
.tile-dark p { color: var(--band-muted); }
.tile-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile-accent p { color: rgb(255 255 255 / 0.85); }
.tile-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; opacity: 0.75; }
.tile-big {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 380; font-size: clamp(44px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; padding-bottom: 4px;
}

/* ---- Honest band --------------------------------------------------- */

.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.band .display em { color: #E9A77E; }
.band .lede { color: var(--band-muted); max-width: 44ch; }
.truths { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--band-line); }
.truths li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--band-line);
  font-size: clamp(17px, 1.5vw, 19px);
}
.truths li span:first-child { font-family: var(--mono); font-size: 12px; color: #E9A77E; }
.band-grid { display: grid; gap: 48px; }
@media (min-width: 940px) { .band-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.band a { color: #E9A77E; }

/* ---- Plans --------------------------------------------------------- */

.billing {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--paper-deep); border: 1px solid var(--line);
  margin-bottom: 28px;
}
.billing button {
  font: 600 14px/1 var(--sans); padding: 11px 18px; border-radius: 999px; min-height: 40px;
  border: 0; background: transparent; color: var(--ink-muted); cursor: pointer;
}
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.plans { display: grid; gap: 16px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.plan-member { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-member .plan-foot, .plan-member .plan-price small { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.plan-member li { border-color: color-mix(in srgb, var(--paper) 16%, transparent); }
.plan-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
.plan-price {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 380; font-size: clamp(52px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1; margin: 0 0 6px;
  font-variant-numeric: tabular-nums lining-nums;
}
.plan-price small { font-family: var(--sans); font-size: 16px; letter-spacing: 0; color: var(--ink-subtle); font-weight: 500; }
.plan-foot { font-size: 14px; color: var(--ink-subtle); margin: 0 0 26px; min-height: 1.6em; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.plan li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.plans-note { margin-top: 28px; display: grid; gap: 8px; max-width: 70ch; }
.plans-note p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* ---- Quiet by design ----------------------------------------------- */

.quiet { display: grid; gap: 16px; }
@media (min-width: 700px) { .quiet { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .quiet { grid-template-columns: repeat(4, 1fr); } }
.quiet-item { padding: 28px 0 0; border-top: 2px solid var(--ink); }
.quiet-item h3 { font-size: 24px; }
.quiet-item p { margin: 0; color: var(--ink-muted); }

/* ---- Questions ----------------------------------------------------- */

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0;
  font-family: var(--serif); font-variation-settings: "opsz" 48, "SOFT" 50; font-weight: 450;
  font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.015em; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font: 400 22px/1 var(--sans); color: var(--ink-muted);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 56px 26px 0; color: var(--ink-muted); }
.faq .answer p { margin: 0 0 10px; max-width: 64ch; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.copied { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
#support { scroll-margin-top: 90px; }

/* ---- Closing ------------------------------------------------------- */

.closing { text-align: center; padding: clamp(90px, 13vw, 170px) 0; position: relative; overflow: hidden; }
.closing h2 { font-size: clamp(48px, 9vw, 128px); max-width: 12ch; margin: 0 auto; }
.closing .lede { margin: 26px auto 38px; }
.phone-dark { border-color: #3A332A; background: #3A332A; box-shadow: none; }
.footer-line { margin: 14px 0 0; max-width: 36ch; }
.closing .strip {
  display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 16px); margin: 0 auto clamp(40px, 6vw, 64px);
}
.closing .strip img {
  width: clamp(64px, 10vw, 120px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px;
  box-shadow: var(--shadow);
}
.closing .strip img:nth-child(odd) { transform: rotate(-4deg) translateY(6px); }
.closing .strip img:nth-child(even) { transform: rotate(3deg); }

/* ---- Footer -------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--ink-muted); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wordmark {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-style: italic; font-weight: 320;
  font-size: clamp(72px, 19vw, 260px); line-height: 1; letter-spacing: -0.05em;
  /* Room for the descender of the y, which a line-height under 1 let hang
     over the line beneath. */
  margin: 56px 0 0; padding-bottom: 0.12em; color: var(--ink);
  overflow-wrap: anywhere;
}
.wordmark span { color: var(--accent); font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-subtle); }

.footer-bottom .social {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.footer-bottom .social a {
  /* Padding, not size: the icon stays 19px while the target stays thumb-sized. */
  display: grid; place-items: center; padding: 10px;
  color: var(--ink-subtle); border-radius: 50%;
  transition: color .2s, background-color .2s;
}
.footer-bottom .social a:hover { color: var(--ink); background: var(--paper-deep); text-decoration: none; }
.footer-bottom .social a:focus-visible { color: var(--ink); background: var(--paper-deep); }
.footer-bottom .social svg { width: 19px; height: 19px; display: block; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  border-radius: 50%; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.theme-toggle:hover { border-color: var(--ink); background: var(--paper-deep); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle.is-dark .icon-sun { display: block; }
.theme-toggle.is-dark .icon-moon { display: none; }

/* ---- Motion -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; white-space: normal; gap: 10px 28px; padding: 0 var(--gutter); }
  .ticker-track .dup { display: none; }
  .print, .memory-photo img { transition: none; }
}
