/* Inner pages: work, case studies (the town "Issue" layout), about, passport stamps, contact.
   Same world as the town: parchment paper, ink, one red. Only tokens from tokens.css.
   Red is kept for kickers, the sun (stamps, postcard) and the main call to action. */

/* ------------------------------------------------------------------ Page ground */
body.pg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
body.pg > main { flex: 1 0 auto; }
:where(body.pg) a { color: inherit; }
:where(body.pg) button { font: inherit; color: inherit; }
/* paper grain, as on the town */
body.pg::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .35; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 14px; background: var(--c-ink); color: var(--c-card) !important; font-family: var(--f-mono); font-size: 14px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.pg :focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }

.wrap, .issue, .pg-main { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }

/* ------------------------------------------------------------------ Header (same as the town) */
.site-hdr { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 14px clamp(16px, 3vw, 28px); background: var(--c-paper); border-bottom: var(--rule); }
.brand { display: flex; align-items: center; gap: 18px; color: var(--c-ink); text-decoration: none; }
.brand__logo { font-family: var(--f-sign); font-size: 26px; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.brand__meta { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; }
.brand__meta b { font-weight: 500; letter-spacing: .04em; }
.nav { display: flex; background: var(--c-card); border: var(--rule); }
.nav a { height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-left: var(--rule); font-family: var(--f-mono); font-size: 14px; color: var(--c-ink); text-decoration: none; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.nav a:first-child { border-left: 0; }
.nav a[aria-current] { box-shadow: inset 0 -4px 0 var(--c-ink); font-weight: 500; }
.nav a.nav__ink { background: var(--c-ink); color: var(--c-card); }
.nav a.nav__ink[aria-current] { box-shadow: inset 0 -4px 0 var(--c-art); }
.hdr-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inv { width: 45px; height: 45px; display: grid; place-items: center; background: var(--c-card); border: 1.5px dashed var(--c-ink); }
.inv svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ Footer */
.site-ftr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 72px; padding: 18px clamp(16px, 3vw, 28px); border-top: var(--rule); font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }
.site-ftr a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-ftr span { margin-left: auto; }

/* ------------------------------------------------------------------ Shared bits */
.kicker { margin: 0; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--c-art); text-transform: uppercase; }
.kicker__plain { color: var(--c-muted); font-weight: 400; }
.mono { font-family: var(--f-mono); }
.page-title { margin: 8px 0 0; font-family: var(--f-sign); font-weight: 400; font-size: clamp(56px, 9vw, 120px); line-height: .92; text-transform: uppercase; overflow-wrap: break-word; }
.lede { max-width: 62ch; margin: 18px 0 0; font-size: 20px; line-height: 1.5; color: var(--c-body); }
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 28px; }

.btn { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--c-card); border: var(--rule); color: var(--c-ink); font-family: var(--f-mono); font-size: 14px; text-decoration: none; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.btn--ink { background: var(--c-ink); color: var(--c-card); }
.btn--red { background: var(--c-art); border-color: var(--c-art); color: var(--c-on-art); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Press feedback, for every pressable thing */
.btn:active, .nav a:active, .next-issue:active, .proj:active, .tab:active, .pp-arrow:active, .chap-nav a:active { transform: scale(.97); }

/* Hover only with a real mouse, so taps don't leave things stuck */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: var(--c-paper); }
  .nav a.nav__ink:hover { background: var(--c-ink-2); }
  .btn:hover { background: var(--c-paper); }
  .btn--ink:hover { background: var(--c-ink-2); }
  .btn--red:hover { background: var(--c-art-deep); border-color: var(--c-art-deep); }
  .crumbs a:hover, .site-ftr a:hover, .links a:hover { text-decoration-thickness: 2px; }
  .next-issue:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 8px 10px 0 var(--c-ink); }
  .proj:hover { transform: translateY(-3px); box-shadow: 8px 10px 0 var(--c-ink); }
  .chap-nav a:hover { border-left-color: var(--c-ink); }
  .tab:hover:not([aria-pressed="true"]), .pp-arrow:hover { background: var(--c-paper); }
}

/* ------------------------------------------------------------------ Case study: the Issue layout */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 22px; font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }
.crumbs a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }

.issue-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: clamp(28px, 4vw, 48px) 0 28px; }
.issue-title { margin: 10px 0 0; font-family: var(--f-sign); font-weight: 400; font-size: clamp(56px, 9.5vw, 136px); line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.quest { max-width: 60ch; margin: 20px 0 0; font-size: 20px; line-height: 1.5; color: var(--c-body); }
.quest b { font-family: var(--f-mono); font-size: 15px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--c-ink); }

/* The building's sign, on a pole, like in the town */
.sign { position: relative; margin: 0 24px 46px 0; min-width: 190px; padding: 12px 18px 11px; display: flex; flex-direction: column; background: var(--c-card); border: var(--rule); box-shadow: var(--shadow-card); transform: rotate(-2deg); transform-origin: 50% 100%; }
.sign::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 46px; background: var(--c-ink); }
.sign__t { font-family: var(--f-sign); font-size: 38px; line-height: 1; text-transform: uppercase; }
.sign__t::after { content: ""; display: block; height: 3px; margin: 8px 0 6px; background: var(--c-art); }
.sign__s { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }

.meta-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--c-card); border-top: var(--rule); border-bottom: var(--rule); }
.meta-strip__cell { padding: 16px 20px 18px; border-left: var(--rule); }
.meta-strip__cell:first-child { border-left: 0; }
.meta-strip dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--c-muted); }
.meta-strip dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.35; }

.slot { margin: 32px 0 0; background: var(--c-card); border: var(--rule); }
.slot img { width: 100%; height: auto; }
.slot figcaption { padding: 10px 14px; border-top: var(--rule); font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }

.issue-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 56px; }
.chap-nav { position: sticky; top: 24px; align-self: start; }
.chap-nav__h { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--c-muted); text-transform: uppercase; }
.chap-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chap-nav a { display: flex; flex-direction: column; padding: 8px 0 8px 14px; border-left: 3px solid var(--c-line); text-decoration: none; font-size: 15px; line-height: 1.35; transition: border-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.chap-nav__k { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--c-art); }

.issue-main { min-width: 0; }
.chapter { scroll-margin-top: 24px; margin-bottom: 72px; }
/* Chapter opener: a comic panel */
.chapter__panel { display: inline-block; max-width: 100%; padding: 16px 22px 18px; background: var(--c-card); border: var(--rule); box-shadow: 6px 6px 0 var(--c-ink); }
.chapter__panel h2 { margin: 8px 0 0; font-family: var(--f-sign); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1; text-transform: uppercase; }
.prose { max-width: 65ch; margin-top: 26px; }
.prose p { margin: 0 0 18px; font-size: 18px; line-height: 1.65; color: var(--c-body); }

.payoff { padding-top: 32px; border-top: var(--rule-dashed); }
.metrics { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; background: var(--c-card); border: var(--rule); }
.metric__v { font-family: var(--f-sign); font-size: clamp(40px, 4.6vw, 60px); line-height: 1; }
.metric__l { font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }
.fine-print { max-width: 65ch; margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: var(--c-muted); }
.fine-print b { color: var(--c-ink); font-weight: 600; }

.next-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin-top: 64px; padding-top: 32px; border-top: var(--rule); }
.next-issue { flex: 1 1 340px; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: var(--c-art); color: var(--c-on-art) !important; border: var(--rule); box-shadow: 6px 6px 0 var(--c-ink); text-decoration: none; transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.next-issue__k { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; }
.next-issue__t { font-family: var(--f-sign); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; text-transform: uppercase; }
.next-row .btn { flex: 0 1 auto; min-height: 56px; }

/* ------------------------------------------------------------------ Work */
.summary { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; background: var(--c-card); border: var(--rule); box-shadow: 6px 6px 0 var(--c-ink); }
.summary > * { padding: 22px 26px 24px; }
.summary__who { border-right: var(--rule); }
.summary h2 { margin: 0; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--c-muted); text-transform: uppercase; }
.summary__line { max-width: 60ch; margin: 10px 0 18px; font-size: 18px; line-height: 1.55; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.top3 { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: top; }
.top3 li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.top3 li:last-child { border-bottom: 0; }
.top3 li::before { counter-increment: top; content: "0" counter(top); font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); padding-top: 3px; }
.top3 a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.top3 span { display: block; font-size: 15px; color: var(--c-body); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag { padding: 5px 10px; border: var(--rule-dashed); font-family: var(--f-mono); font-size: 13px; }

.section-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 64px 0 18px; padding-bottom: 10px; border-bottom: var(--rule); }
.section-h h2 { margin: 0; font-family: var(--f-sign); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1; text-transform: uppercase; }
.section-h p { margin: 0; font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }

.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.proj { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 20px; background: var(--c-card); border: var(--rule); box-shadow: 4px 4px 0 var(--c-ink); text-decoration: none; transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.proj__k { font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }
.proj__t { font-family: var(--f-sign); font-size: clamp(34px, 3.6vw, 46px); line-height: 1; text-transform: uppercase; }
.proj__t::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 10px; background: var(--c-art); }
.proj__d { font-size: 17px; line-height: 1.5; color: var(--c-body); }
.proj__m { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: var(--rule-dashed); font-family: var(--f-mono); font-size: 13px; }
.proj__m b { font-weight: 500; }
.proj__go { font-family: var(--f-mono); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ About: passport */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.field-notes { margin: 16px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--c-body); }
.field-notes b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink); }
.timeline { margin: 0; padding: 18px 22px; background: var(--c-card); border: var(--rule); }
.timeline h2 { margin: 0 0 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--c-muted); }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; line-height: 1.4; }
.timeline li:last-child { border-bottom: 0; }
.timeline time, .timeline .when { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }

.pp-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.tablist { display: flex; flex-wrap: wrap; background: var(--c-card); border: var(--rule); }
.tab { min-height: 42px; padding: 0 16px; border: 0; border-left: var(--rule); background: none; font-family: var(--f-mono) !important; font-size: 13px; letter-spacing: .06em; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.tab:first-child { border-left: 0; }
.tab[aria-pressed="true"] { background: var(--c-ink); color: var(--c-card); }
.pp-count { font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }

.pp-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prev book next"; align-items: center; gap: 18px; }
.pp-arrow { width: 48px; height: 48px; display: grid; place-items: center; border: var(--rule); border-radius: 50%; background: var(--c-card); cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.pp-arrow svg { width: 16px; height: 16px; }
.pp-arrow--prev { grid-area: prev; }
.pp-arrow--next { grid-area: next; }
.pp-book { grid-area: book; min-width: 0; perspective: 1600px; }

.passport { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; background: var(--c-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.spread[data-enter="next"] .passport { animation: turnNext .5s var(--ease-out) both; transform-origin: left center; }
.spread[data-enter="prev"] .passport { animation: turnPrev .5s var(--ease-out) both; transform-origin: right center; }
@keyframes turnNext { from { opacity: 0; transform: perspective(1600px) rotateY(-9deg) translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes turnPrev { from { opacity: 0; transform: perspective(1600px) rotateY(9deg) translateX(-24px); } to { opacity: 1; transform: none; } }

.ppage { min-width: 0; min-height: 500px; display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; background-color: var(--c-paper-2); background-image: repeating-radial-gradient(circle at 30% 40%, rgba(22, 20, 19, .045) 0 1px, transparent 1px 9px); }
.ppage:first-child { border-radius: 8px 2px 2px 8px; box-shadow: inset -14px 0 18px -14px rgba(22, 20, 19, .3); }
.ppage:last-child { border-radius: 2px 8px 8px 2px; box-shadow: inset 14px 0 18px -14px rgba(22, 20, 19, .3); }
.ppage__h { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
.ppage__h > :first-child { font-weight: 500; }

.idcard { display: flex; gap: 18px; }
.idphoto { width: 120px; height: 150px; flex-shrink: 0; display: grid; place-items: end center; overflow: hidden; background: var(--c-card); border: 1px solid var(--c-border); }
.idphoto svg { width: 100%; height: 100%; }
.idfields { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 12px; }
.idfields div { display: flex; flex-direction: column; }
.idfields span:first-child { color: var(--c-muted); }
.idfields span:last-child { font-size: 15px; }
.ppage p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-body); }
.sigrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-family: var(--f-mono); font-size: 12px; }
.sigrow div { display: flex; flex-direction: column; }
.sigrow div:last-child { align-items: flex-end; text-align: right; }
.sigrow span:first-child { color: var(--c-muted); }
.sig { padding-right: 30px; border-bottom: 1px solid var(--c-ink); font-family: var(--f-hand); font-size: 32px; line-height: 1.2; }
.mrz { margin-top: auto; padding-top: 10px; border-top: var(--rule-dashed); display: flex; flex-direction: column; gap: 2px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; overflow-wrap: anywhere; }

.route-t { font-family: var(--f-sign); font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.route { position: relative; display: flex; justify-content: space-between; margin-top: 6px; padding-top: 0; }
.route::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; border-top: var(--rule-dashed); }
.route li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.route li:first-child { align-items: flex-start; }
.route li:last-child { align-items: flex-end; }
.route i { width: 16px; height: 16px; border-radius: 50%; background: var(--c-paper-2); border: 4px solid var(--c-ink); }
.route li:last-child i { background: var(--c-art); border-color: var(--c-art); }
.route { list-style: none; margin-left: 0; margin-bottom: 0; padding-left: 0; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; font-family: var(--f-mono); font-size: 12px; }
.counts div { display: flex; flex-direction: column-reverse; gap: 2px; }
.counts dd { margin: 0; font-family: var(--f-sign); font-size: 34px; line-height: 1; }
.decl { margin: auto 0 0; padding-top: 12px; border-top: var(--rule-dashed); display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 12px; }
.decl > :first-child { font-weight: 500; letter-spacing: .06em; }
.decl div { display: flex; justify-content: space-between; gap: 12px; }
.decl dt, .decl dd { margin: 0; }

.edu { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.edu h3 { margin: 0; font-family: var(--f-sign); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.edu__what { font-size: 16px; }
.edu__status { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
.edu p { max-width: 36ch; font-size: 14px; }

/* Stamps: round, box and double-rule; ink, slightly crooked */
.stamp { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--c-ink); font-family: var(--f-mono); font-size: 12px; line-height: 1.25; text-align: center; }
.stamp b { font-size: 13px; font-weight: 500; line-height: 1.2; }
.stamp--round { width: 170px; height: 170px; padding: 10px; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-2deg); }
.stamp--round > span { width: 100%; height: 100%; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid currentColor; border-radius: 50%; }
.stamp--box, .stamp--double { min-height: 96px; align-items: flex-start; justify-content: flex-start; padding: 12px 14px; text-align: left; border: 2px solid currentColor; border-radius: var(--radius-md); }
.stamp--double { border: 4px double currentColor; border-radius: 2px; }
.stamp--red { color: var(--c-art); }
.stamps { flex-grow: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: center; }
.stamps > :nth-child(4n+1) { transform: rotate(-1.2deg); }
.stamps > :nth-child(4n+2) { transform: rotate(1deg); }
.stamps > :nth-child(4n+3) { transform: rotate(.8deg); }
.stamps > :nth-child(4n) { transform: rotate(-1.5deg); }
.cert { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cert h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cert p { max-width: 34ch; font-size: 14px; }
.certs { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.stamp-space { flex-grow: 1; min-height: 160px; display: grid; place-items: center; border: var(--rule-dashed); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted); }

.nametag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.nametag__l { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.nametag__hw { padding: 6px 10px; background: var(--c-ink); color: var(--c-card); font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; }
.nametag__name { font-family: var(--f-hand); font-size: 28px; line-height: 1; }

/* about-stamps: every page laid out at once */
.atlas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.atlas .passport { grid-column: 1 / -1; }
.atlas .ppage { min-height: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 1px solid var(--c-line); }
.atlas .ppage--wide { grid-column: 1 / -1; }
.atlas .passport .ppage { box-shadow: none; border: 0; }
.atlas .stamps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; background: var(--c-card); border: var(--rule); }
.early { display: flex; flex-wrap: wrap; gap: 10px; }
.early li { list-style: none; }
.early { margin: 0; padding: 0; }

/* ------------------------------------------------------------------ Town pieces used by About and the Quest Board
   (Figma: Town/Chip, Town/Button, Town/Field) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; background: var(--c-card); border: var(--rule); color: var(--c-ink); font-family: var(--f-mono); font-size: 13px; line-height: 1.25; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--c-ink); color: var(--c-card); }
.tbtn { display: inline-flex; align-items: center; padding: 16px 26px; background: var(--c-ink); border: var(--rule); color: var(--c-card); font-family: var(--f-mono); font-size: 15px; line-height: 1.25; text-decoration: none; cursor: pointer; filter: drop-shadow(3px 6px 6px rgba(22, 20, 19, .45)); transition: background-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.tbtn--ghost { background: transparent; color: var(--c-ink); filter: none; }
.chip:active, .tbtn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover:not([aria-pressed="true"]) { background: var(--c-paper); }
  .tbtn:hover { background: var(--c-ink-2); }
  .tbtn--ghost:hover { background: var(--c-card); }
}

/* ------------------------------------------------------------------ About: origin story (Figma 111:1326) */
.pg-main > .crumbs { padding-top: 30px; font-size: 12px; letter-spacing: .04em; }
.origin { display: grid; grid-template-columns: minmax(0, 420fr) minmax(0, 620fr); column-gap: clamp(32px, 8vw, 100px); align-items: start; margin-top: 28px; }
.origin__art { margin: 0; aspect-ratio: 420 / 700; border: 3px solid var(--c-ink); overflow: hidden; }
.origin__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.origin__body { padding-top: 26px; }
.origin__k { margin: 0; font-family: var(--f-mono); font-size: 14px; line-height: 1.5; color: var(--c-art); }
.origin__t { margin: 7px 0 0 -4px; font-family: var(--f-sign); font-weight: 400; font-size: clamp(48px, 5.56vw, 80px); line-height: .9; text-transform: uppercase; }
.origin__p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--c-ink); }
.origin__t + .origin__p { margin-top: 34px; }
.origin__label { margin: 56px 0 8px; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--c-muted); }
.origin__work { margin: 12px 0 0; min-height: 18px; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; color: var(--c-muted); }
.origin__work a { color: var(--c-ink); text-underline-offset: 3px; }
.origin__work + .origin__label { margin-top: 26px; }
.origin__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.origin + section { margin-top: 72px; }

/* ------------------------------------------------------------------ Contact: the Quest Board (Figma 111:1374) */
.qb__t { margin: 12px 0 0 -6px; font-family: var(--f-sign); font-weight: 400; font-size: clamp(60px, 6.67vw, 96px); line-height: .9; text-transform: uppercase; }
.qb__lede { margin: 24px 0 0; font-size: 18px; line-height: 1.5; color: var(--c-ink); }
.qb { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 480px); justify-content: space-between; column-gap: 40px; align-items: start; margin-top: 33px; }
.qb__form { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.field label, .field__l { font-family: var(--f-mono); font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--c-ink); }
.field input, .field textarea { width: 100%; padding: 14px; background: var(--c-card); border: var(--rule); border-radius: 0; color: var(--c-ink); font-family: var(--f-body); font-size: 18px; line-height: 1.5; resize: none; }
.field ::placeholder { color: var(--c-muted); opacity: 1; }
.field textarea[aria-invalid] { border-color: var(--c-art); }
.field__l + .chips { margin-top: 8px; }
.field__error { margin: 0; font-size: 14px; color: var(--c-art); }
.field__error:empty { display: none; }
.qb__status { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--c-body); }
.qb__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; background: var(--c-card); border: var(--rule); }
.qb__card img { display: block; width: 100%; height: auto; aspect-ratio: 432 / 380; object-fit: cover; }
.qb__card h2 { margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: 12px; line-height: 1.3; color: var(--c-art); }
.qb__card a { font-size: 18px; line-height: 1.3; color: var(--c-ink); text-decoration: none; overflow-wrap: anywhere; }
@media (min-width: 1100px) { .origin__t { white-space: nowrap; } .qb .chips { flex-wrap: nowrap; } .qb .chip { white-space: nowrap; } }
@media (hover: hover) and (pointer: fine) { .qb__card a:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ------------------------------------------------------------------ One column under 900px */
@media (max-width: 899px) {
  .issue-head { grid-template-columns: minmax(0, 1fr); }
  .sign { justify-self: start; margin: 0 0 40px 8px; }
  .meta-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-strip__cell:nth-child(odd) { border-left: 0; }
  .meta-strip__cell:nth-child(n+3) { border-top: var(--rule); }
  .issue-body { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; }
  .chap-nav { position: static; }
  .chap-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .summary__who { border-right: 0; border-bottom: var(--rule); }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .origin { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .origin__art { max-width: 420px; }
  .origin__label { margin-top: 32px; }
  .qb { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .pp-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "book book" "prev next"; }
  .pp-arrow--prev { justify-self: start; }
  .pp-arrow--next { justify-self: end; }
  .passport { grid-template-columns: minmax(0, 1fr); }
  .ppage { min-height: 0; }
  .ppage:first-child { border-radius: 8px 8px 2px 2px; box-shadow: inset 0 -14px 18px -14px rgba(22, 20, 19, .3); }
  .ppage:last-child { border-radius: 2px 2px 8px 8px; box-shadow: inset 0 14px 18px -14px rgba(22, 20, 19, .3); }
  .atlas { grid-template-columns: minmax(0, 1fr); }
  .atlas .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-hdr { padding: 12px 16px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand__logo { font-size: 24px; }
  .hdr-right { width: 100%; gap: 8px; }
  .nav { flex: 1 1 auto; }
  .inv { width: 40px; height: 40px; }
  .nav a { flex: 1 1 auto; height: 40px; padding: 0 6px; font-size: 12px; }
  .site-ftr span { margin-left: 0; }
  .ppage { padding: 18px 16px; }
  .idphoto { width: 92px; height: 116px; }
  .stamps, .atlas .stamps { grid-template-columns: minmax(0, 1fr); }
  .stamp--round { width: 150px; height: 150px; }
  .next-row .btn { flex: 1 1 100%; }
  .quest, .lede { font-size: 18px; }
  .prose p { font-size: 17px; }
}

/* ------------------------------------------------------------------ Reduced motion: keep fades, drop movement */
@media (prefers-reduced-motion: reduce) {
  .spread[data-enter] .passport { animation: fadeIn 150ms linear both; }
  .btn, .nav a, .next-issue, .proj, .tab, .pp-arrow, .chap-nav a, .chip, .tbtn { transition-property: background-color, color, border-color, opacity; transition-duration: 150ms; }
  .btn:active, .nav a:active, .next-issue:active, .proj:active, .tab:active, .pp-arrow:active, .chap-nav a:active, .chip:active, .tbtn:active { transform: none; }
  .next-issue:hover, .proj:hover { transform: none; }
}
.top3 p { margin: 0; }
.idphoto .sun { fill: var(--c-art); }
.decl dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ppage__h-t { margin: 0; font: inherit; font-weight: 500; }
.atlas .stamps--one { grid-template-columns: minmax(0, 1fr); }
.atlas .stamps .stamp--round { justify-self: center; }
.stamps { list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------------ 404: off the map (Figma 111:1434) */
.btn--ghost { background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--c-paper-2); } }
.lost { display: flex; flex-direction: column; align-items: center; padding-bottom: 56px; }
.lost__art { width: 100%; height: clamp(220px, 58vh, 520px); overflow: hidden; }
.lost__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: .9; }
.lost__msg { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px clamp(16px, 4vw, 48px) 0; text-align: center; }
.lost__title { margin: 0; font-family: var(--f-sign); font-weight: 400; font-size: clamp(44px, 6.2vw, 88px); line-height: 1.05; text-transform: uppercase; overflow-wrap: break-word; }
.lost__line { margin: 0; font-size: 20px; line-height: 1.4; }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lost__actions .btn { min-height: 52px; padding: 0 26px; font-size: 15px; }
.lost__actions .btn--ink { box-shadow: var(--shadow-card); }
@media (max-width: 700px) {
  .lost__art { height: clamp(180px, 34vh, 300px); }
  .lost__art img { object-position: 30% 55%; }
}
