/* ==========================================================================
   Ronald Tan — field notes, 2009–2012
   Warm paper, ink, one terracotta accent. Fraunces / Source Serif 4 / IBM Plex Mono.
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-normal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d7;
  --paper-3: #e1d8c8;
  --ink: #1d1b18;
  --ink-2: #5b554c;
  --ink-3: #8a8274;
  --rule: #d6ccbb;
  --accent: #a64b2a;
  --accent-soft: rgb(166 75 42 / 0.12);
  --globe-dot: #2a2722;
  --globe-arc: #a64b2a;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 40rem;
  --wide: 50rem;
  --page: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 3px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12151a; --paper-2: #1a1e25; --paper-3: #232832;
    --ink: #ece5d8; --ink-2: #a8a195; --ink-3: #7b766d;
    --rule: #2c323c; --accent: #e08a62; --accent-soft: rgb(224 138 98 / 0.14);
    --globe-dot: #d9d1c3; --globe-arc: #e08a62;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12151a; --paper-2: #1a1e25; --paper-3: #232832;
  --ink: #ece5d8; --ink-2: #a8a195; --ink-3: #7b766d;
  --rule: #2c323c; --accent: #e08a62; --accent-soft: rgb(224 138 98 / 0.14);
  --globe-dot: #d9d1c3; --globe-arc: #e08a62;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--paper); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 0; padding: .6rem 1rem; background: var(--ink); color: var(--paper); z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono, .kicker, .stamp-date, .meta { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.kicker { color: var(--accent); font-weight: 500; text-decoration: none; }
a.kicker:hover { text-decoration: underline; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.wordmark { display: flex; align-items: baseline; gap: .7rem; text-decoration: none; }
.wordmark__name { font: italic 400 1.45rem/1 var(--f-display); letter-spacing: -0.01em; }
.wordmark__sub { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wordmark:hover .wordmark__name { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 1.75rem); }
.nav a { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding-block: .4rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.theme-toggle { appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 1rem; height: 1rem; }
@media (max-width: 34rem) {
  .wordmark__sub { display: none; }
  .nav { gap: .9rem; }
  .nav .nav__extra { display: none; }
}

/* ---------- hero (landing) ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--rule); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1fr 1.05fr; } }
.hero__eyebrow { margin: 0 0 1.4rem; color: var(--ink-2); display: flex; gap: .6rem; align-items: center; }
.hero__eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); font-weight: 350; font-variation-settings: "opsz" 144, "SOFT" 30; letter-spacing: -0.03em; line-height: .98; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 32rem; margin: 1.6rem 0 0; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.hero__stats li { display: grid; gap: .15rem; }
.hero__stats b { font: 400 2rem/1 var(--f-display); font-variation-settings: "opsz" 72; }
.hero__stats span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.globe { position: relative; aspect-ratio: 1; width: min(100%, 38rem); margin-inline: auto; touch-action: pan-y; }
.globe__fallback, .globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe__fallback { color: var(--globe-dot); transition: opacity .9s ease; }
.globe canvas { opacity: 0; transition: opacity .9s ease; cursor: grab; }
.globe canvas:active { cursor: grabbing; }
.globe.is-live canvas { opacity: 1; }
.globe.is-live .globe__fallback { opacity: 0; }
.globe__label { position: absolute; left: 0; top: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 2px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.globe__label.is-on { opacity: 1; }
.globe__stamp { position: absolute; right: 2%; bottom: 4%; width: 6.5rem; height: 6.5rem; color: var(--accent); transform: rotate(-12deg); opacity: .85; pointer-events: none; }
.globe__hint { position: absolute; left: 0; bottom: 0; color: var(--ink-3); margin: 0; opacity: 0; transition: opacity .6s; }
.globe.is-live .globe__hint { opacity: 1; }

.places { margin-top: 1.5rem; }
.places h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-bottom: .6rem; }
.places ol { list-style: none; margin: 0; padding: 0; columns: 2 14rem; column-gap: 2rem; }
.places li { break-inside: avoid; }
.places a { display: flex; align-items: baseline; gap: .5rem; padding: .32rem 0; text-decoration: none; border-bottom: 1px dotted var(--rule); font-size: .98rem; }
.places a:hover, .places a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.places .n { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); width: 1.4rem; flex: none; }
.places .region { color: var(--ink-3); font-size: .85rem; font-style: italic; }
.places .count { margin-left: auto; font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); }

/* ---------- topic strip ---------- */
.topics-strip { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; gap: .4rem; align-items: baseline; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: .42rem .7rem; border: 1px solid var(--rule); border-radius: 99px; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--ink-3); font-size: .66rem; }

/* ---------- journal (post listings) ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 350; font-variation-settings: "opsz" 96; }
.year { display: grid; gap: 1rem 3rem; padding-block: 2rem 3rem; border-top: 1px solid var(--rule); }
@media (min-width: 60rem) { .year { grid-template-columns: 9rem 1fr; } }
.year__label { margin: 0; font: 300 clamp(3rem, 7vw, 4.6rem)/0.9 var(--f-display); font-variation-settings: "opsz" 144; letter-spacing: -0.04em; color: var(--ink); }
.year__label small { display: block; margin-top: .6rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 60rem) { .year__label { position: sticky; top: 1.5rem; align-self: start; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 2.6rem 1.8rem; list-style: none; margin: 0; padding: 0; }
.card { position: relative; display: flex; flex-direction: column; gap: .55rem; }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); margin-bottom: .35rem; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: saturate(.92); }
.card:hover .card__img img { transform: scale(1.035); filter: saturate(1.05); }
.card__img--none { display: grid; place-items: center; color: var(--ink-3); font: italic 1.6rem var(--f-display); }
.card__meta { display: flex; gap: .7rem; align-items: baseline; color: var(--ink-3); flex-wrap: wrap; }
.card__meta .kicker { font-size: .68rem; }
.card h3 { font-size: 1.32rem; font-weight: 450; font-variation-settings: "opsz" 36; line-height: 1.18; letter-spacing: -0.01em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card:hover h3 a { color: var(--accent); }
.card p { margin: 0; font-size: .95rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .kicker { position: relative; z-index: 1; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows a { font: 400 1.15rem/1.3 var(--f-display); text-decoration: none; }
.rows a:hover { color: var(--accent); }
.rows .stamp-date { color: var(--ink-3); }
@media (max-width: 34rem) { .rows li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- archive page headers ---------- */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) 2rem; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 350; font-variation-settings: "opsz" 144; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-2); max-width: 36rem; margin: 1rem 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.subcats { margin-top: 1.4rem; }

/* ---------- post ---------- */
.post-head { width: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.post-head .kickers { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.2rem; align-items: center; }
.post-head .kickers::before { content: ""; width: 2.2rem; height: 1px; background: var(--accent); }
.post-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 20; letter-spacing: -0.028em; line-height: 1.02; }
.post-head .meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin-top: 1.4rem; color: var(--ink-3); }
.post-head .meta span + span::before { content: "·"; margin-right: .7rem; color: var(--ink-3); }
.guest-note { margin-top: 1rem; font-style: italic; color: var(--ink-2); }

.prose {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [wide-start] minmax(0, calc((var(--wide) - var(--measure)) / 2))
    [content-start] min(var(--measure), 100% - 2 * var(--gutter))
    [content-end] minmax(0, calc((var(--wide) - var(--measure)) / 2))
    [wide-end] minmax(var(--gutter), 1fr) [full-end];
  font-size: clamp(1.06rem, 0.4vw + 1rem, 1.18rem);
  line-height: 1.7;
  font-variation-settings: "opsz" 18;
  padding-bottom: 3rem;
}
.prose > * { grid-column: content; margin: 0 0 1.25em; }
.prose > .photo, .prose > .photo-pair, .prose > .embed { grid-column: wide; margin-block: 1.9em 2.1em; }
.prose strong { font-weight: 650; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.2rem; margin-left: 0; color: var(--ink-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-2); padding: .1em .35em; border-radius: 2px; }
.prose pre { font: .85rem/1.6 var(--f-mono); background: var(--paper-2); padding: 1rem 1.2rem; overflow-x: auto; border-radius: var(--radius); }
.prose > p.lede::first-letter { font-family: var(--f-display); float: left; font-size: 3.6em; line-height: .82; padding: .07em .1em 0 0; color: var(--accent); font-weight: 400; }

.photo { margin: 0; }
.photo a { display: block; }
.photo img { width: 100%; background: var(--paper-2); border-radius: var(--radius); }
.photo--portrait { max-width: 34rem; justify-self: center; width: 100%; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.4rem, 1.5vw, .9rem); align-items: start; }
.photo-pair .photo--portrait { max-width: none; }
.photo-missing, .photo a.photo-missing { display: grid; place-content: center; gap: .3rem; text-align: center; min-height: 10rem; width: 100%; border: 1px dashed var(--rule); border-radius: var(--radius); color: var(--ink-3); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 1rem; background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--paper-2) 10px 11px); }

.embed { position: relative; }
.embed--video .yt, .embed--map iframe, .embed--doc iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed--doc iframe { aspect-ratio: 4 / 3; background: var(--paper-2); }
.embed--map iframe { aspect-ratio: 3 / 2; background: var(--paper-2); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt__label { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; color: #fff; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; background: linear-gradient(transparent, rgb(0 0 0 / .7)); text-decoration: none; }
.yt__play { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; background: var(--accent); position: relative; }
.yt__play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .45rem 0 .45rem .75rem; border-color: transparent transparent transparent #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--gone, .embed-missing { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--ink-3); font-family: var(--f-mono); font-size: .78rem; }
.embed--gone p { margin: 0; }

.post-foot { width: min(100% - 2 * var(--gutter), var(--measure)); margin: 0 auto; padding-bottom: 3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.tags .chip { text-transform: none; letter-spacing: 0; }
.provenance { color: var(--ink-3); font-size: .9rem; font-style: italic; border-top: 1px solid var(--rule); padding-top: 1.2rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pager a { display: grid; gap: .4rem; padding: 1.6rem 1rem 1.8rem 0; text-decoration: none; }
.pager a + a, .pager .next { border-left: 1px solid var(--rule); padding-left: 1.4rem; text-align: right; }
.pager .next { grid-column: 2; }
.pager span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pager b { font: 400 1.2rem/1.25 var(--f-display); }
.pager a:hover b { color: var(--accent); }

/* ---------- archived comments ---------- */
.comments { width: min(100% - 2 * var(--gutter), var(--measure)); margin: 0 auto 4rem; }
.comments summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .8rem; padding: 1.1rem 0; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.comments summary::-webkit-details-marker { display: none; }
.comments summary::before { content: "+"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); }
.comments[open] summary::before { content: "−"; }
.comments summary:hover { color: var(--accent); }
.comments__note { color: var(--ink-3); font-size: .88rem; font-style: italic; margin: 1rem 0 0; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment-list { padding-left: clamp(1rem, 4vw, 2rem); border-left: 1px solid var(--rule); }
.comment { padding: 1.2rem 0 .2rem; }
.comment header { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; }
.comment__author { font-weight: 600; }
.comment__owner { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 2px; padding: .05rem .3rem; }
.comment time { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.comment__body { font-size: .98rem; color: var(--ink-2); }
.comment__body p { margin: .45rem 0; }

/* ---------- topics page ---------- */
.topic-tree { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 2.5rem; }
.topic-tree > li > a { font: 400 1.5rem/1.2 var(--f-display); text-decoration: none; }
.topic-tree ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.topic-tree ul ul { padding-left: 1rem; margin: 0; }
.topic-tree ul a { display: inline-block; padding: .18rem 0; }
.topic-tree small { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); margin-left: .35rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; list-style: none; padding: 0; line-height: 1.5; }
.tag-cloud a { text-decoration: none; color: var(--ink-2); }
.tag-cloud a:hover { color: var(--accent); }
.tag-cloud small { font-family: var(--f-mono); font-size: .65rem; color: var(--ink-3); margin-left: .15rem; }
.all-tags summary { cursor: pointer; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-block: 2rem 1rem; }
.all-tags .tag-cloud { font-size: .9rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding-block: 2.5rem 3rem; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: end; }
.footer__sign { font: italic 400 1.8rem/1 var(--f-display); color: var(--ink); margin: 0 0 .6rem; }
.footer p { margin: 0; font-size: .9rem; max-width: 34rem; }
.footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer nav a { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(4rem, 12vw, 9rem); }
.lost h1 { font-size: clamp(3rem, 10vw, 7rem); font-weight: 300; font-variation-settings: "opsz" 144; letter-spacing: -0.04em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  .masthead, .footer, .pager, .comments, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}
