/* Billy Did What Now — a story and creative-work publication.
   Warm paper, ink type, one coral accent, lane colours as chapter marks.
   Type is self-hosted: Bricolage Grotesque (display, optical size axis) and
   Newsreader (reading). Both SIL Open Font License; see assets/fonts. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/newsreader-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/newsreader-latin-wght-italic.woff2) format("woff2");
}

:root {
  --paper: #f6f0e6;
  --paper-2: #efe6d6;
  --paper-3: #e6dbc7;
  --ink: #17130f;
  --ink-2: #3b332b;
  --muted: #6f655a;
  --line: rgba(23, 19, 15, 0.13);
  --line-strong: rgba(23, 19, 15, 0.3);
  --plot: #d94f2a;
  --plot-deep: #a93a1c;
  --marigold: #e9ac3a;
  --night: #141110;
  --night-2: #201a16;
  --night-ink: #f6f0e6;
  --night-muted: rgba(246, 240, 230, 0.68);
  --lane: var(--plot);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --wrap: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --measure: 64ch;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { text-wrap: pretty; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}

h3 { font-variation-settings: "opsz" 48; }

::selection { background: var(--marigold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--plot); outline-offset: 3px; border-radius: 4px; }
main:focus, #app h1:focus, #app h1:focus-visible { outline: none; }

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

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .7rem 1rem; border-radius: .6rem;
  background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
  font-variation-settings: "opsz" 12;
}

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: 999px;
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  white-space: nowrap;
}
.pill.live { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.lane { border-color: transparent; background: color-mix(in srgb, var(--lane) 22%, white); color: var(--ink); }
.pill .dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--lane); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .8rem 1.35rem; border-radius: .9rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-plot { background: var(--plot); color: #fff8f2; }
.btn-plot:hover { background: var(--plot-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--night-2); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-night { border-color: rgba(246, 240, 230, .35); color: var(--night-ink); }
.btn-ghost.on-night:hover { border-color: var(--night-ink); background: rgba(246, 240, 230, .08); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  text-decoration: none; text-transform: uppercase; font-variation-settings: "opsz" 24;
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--plot); }
.topnav { display: flex; align-items: center; gap: .25rem; }
.topnav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .8rem; border-radius: .7rem;
  font-family: var(--display); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink-2);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.topnav a:hover, .topnav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.topnav .btn { min-height: 2.6rem; padding: .5rem 1rem; font-size: .85rem; margin-left: .35rem; }
@media (max-width: 40rem) {
  .topnav a:not(.btn) { display: none; }
  .topnav .btn { margin-left: 0; }
}

/* Masthead */
.masthead { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.75rem); border-bottom: 3px double var(--line-strong); }
.masthead .wrap { display: grid; gap: 1.25rem; }
.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: .86;
  font-size: clamp(3rem, 12.5vw, 9.5rem); text-transform: uppercase;
  font-variation-settings: "opsz" 96; margin: 0; text-wrap: balance;
}
.wordmark .twist { color: var(--plot); }
.masthead-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: baseline; justify-content: space-between; }
.masthead-meta .byline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-2); }
.masthead-meta .issue { font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  min-height: clamp(30rem, 78svh, 46rem); display: flex; align-items: flex-end;
}
.hero .photo { position: absolute; inset: 0; z-index: -1; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-mobile, 50% 30%); }
@media (min-width: 40rem) { .hero .photo img { object-position: var(--pos-desktop, 50% 40%); } }
.hero .photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 16, .25) 0%, rgba(20, 17, 16, .05) 35%, rgba(20, 17, 16, .82) 78%, rgba(20, 17, 16, .96) 100%),
    linear-gradient(90deg, rgba(20, 17, 16, .55) 0%, rgba(20, 17, 16, 0) 60%);
}
.hero .wrap { position: relative; padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.25rem; max-width: var(--wrap); }
.hero h1 { font-size: clamp(2.35rem, 6.2vw, 5rem); max-width: 14ch; color: #fff; text-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.hero h1 .plot { color: var(--marigold); }
.hero .deck { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--night-muted); max-width: 44ch; margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero .credit { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 240, 230, .5); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
#lanes, #about { scroll-margin-top: 4.5rem; }
#app h2:focus, #app h2:focus-visible { outline: none; }
.section.tint { background: var(--paper-2); }
.section.night { background: var(--night); color: var(--night-ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22ch; }
.section-head .eyebrow { color: var(--plot); margin-bottom: .8rem; display: block; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 52ch; }
.section.night .section-head p { color: var(--night-muted); }
.section.night .section-head .eyebrow { color: var(--marigold); }

/* Feature spread */
.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.feature {
  --lane: var(--plot);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: 1.4rem; overflow: hidden; background: #fffbf4; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(23, 19, 15, .35);
  text-decoration: none; color: inherit;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--lane) 60%, transparent); box-shadow: 0 40px 70px -40px rgba(23, 19, 15, .45); }
.feature .photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.feature .photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); transition: transform 1.4s var(--ease); }
.feature:hover .photo img { transform: scale(1.04); }
.feature .body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .8rem; }
.feature .meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-family: var(--display); font-size: .78rem; color: var(--muted); }
.feature h3 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.feature .read { font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--plot); display: inline-flex; gap: .4rem; align-items: center; }

/* Lanes */
.lanes { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lane-card {
  --lane: var(--plot);
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 17rem;
  border-radius: 1.25rem; overflow: hidden; text-decoration: none; color: var(--night-ink);
  background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.lane-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(23, 19, 15, .7); }
.lane-card .photo { position: absolute; inset: 0; }
.lane-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); opacity: .8; transition: transform 1.4s var(--ease), opacity .6s var(--ease); }
.lane-card:hover .photo img { transform: scale(1.05); opacity: .9; }
.lane-card .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 16, .05) 0%, rgba(20, 17, 16, .45) 50%, rgba(20, 17, 16, .95) 100%); }
.lane-card .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--lane); z-index: 1; }
.lane-card .body { position: relative; z-index: 1; margin-top: auto; padding: 1.3rem 1.3rem 1.3rem 1.6rem; display: grid; gap: .5rem; }
.lane-card h3 { font-size: 1.7rem; color: #fff; }
.lane-card p { margin: 0; color: var(--night-muted); font-size: 1rem; }
.lane-card .status { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-family: var(--display); font-size: .78rem; color: rgba(246, 240, 230, .75); }
.lane-card.coming { color: var(--ink); background: var(--paper-2); border-color: var(--line); }
.lane-card.coming .photo img { opacity: .18; filter: saturate(.4); }
.lane-card.coming .photo::after { background: linear-gradient(180deg, rgba(239, 230, 214, .1) 0%, rgba(239, 230, 214, .7) 55%, rgba(239, 230, 214, .98) 100%); }
.lane-card.coming h3 { color: var(--ink); }
.lane-card.coming p { color: var(--ink-2); }
.lane-card.coming .status { color: var(--muted); }

/* Story list */
.stories { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.story-row {
  --lane: var(--plot);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 2rem; align-items: start;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background-color .4s var(--ease);
}
@media (min-width: 48rem) { .story-row { grid-template-columns: 9rem minmax(0, 1fr) auto; } }
.story-row:hover { background: color-mix(in srgb, var(--lane) 8%, transparent); }
.story-row .when { font-family: var(--display); font-size: .82rem; color: var(--muted); padding-top: .35rem; }
.story-row h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.story-row .sum { margin: .35rem 0 0; color: var(--ink-2); font-size: 1.02rem; max-width: 62ch; }
.story-row .chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding-top: .35rem; }
.section.night .stories { border-color: rgba(255, 255, 255, .12); }
.section.night .story-row { border-color: rgba(255, 255, 255, .12); color: var(--night-ink); }
.section.night .story-row .when { color: var(--night-muted); }
.section.night .story-row .sum { color: var(--night-muted); }

/* About */
.about { display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4rem; } }
.about .portrait { border-radius: 1.4rem; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px rgba(23, 19, 15, .5); }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 45%; }
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.about p { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; }
.about .links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Lane page */
.lane-head { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--night-ink); min-height: 22rem; display: flex; align-items: flex-end; }
.lane-head .photo { position: absolute; inset: 0; z-index: -1; }
.lane-head .photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); }
.lane-head .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 16, .3) 0%, rgba(20, 17, 16, .9) 100%); }
.lane-head .wrap { padding-top: 4rem; padding-bottom: 2.5rem; display: grid; gap: .75rem; }
.lane-head .eyebrow { color: var(--lane); }
.lane-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: #fff; max-width: 18ch; }
.lane-head p { margin: 0; color: var(--night-muted); font-family: var(--serif); font-style: italic; font-size: 1.25rem; }

.empty {
  border: 1px dashed var(--line-strong); border-radius: 1.2rem; padding: 2rem; max-width: 46rem;
  background: #fffbf4;
}
.empty h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.empty p { margin: 0; color: var(--ink-2); }

/* Article */
.article { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.article .wrap { max-width: 50rem; }
.article .eyebrow { color: var(--lane); margin-bottom: 1.1rem; display: inline-flex; gap: .6rem; align-items: center; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.article .meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.1rem 0 0; font-family: var(--display); font-size: .85rem; color: var(--muted); }
.article .deck { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ink-2); margin: 1.4rem 0 0; max-width: 40ch; line-height: 1.4; }
.article .rule { height: 1px; border: 0; background: var(--line-strong); margin: 2rem 0; }
.article .body p { font-size: 1.22rem; line-height: 1.7; max-width: var(--measure); margin: 0 0 1.4rem; }
.article .body p:first-child::first-letter {
  font-family: var(--display); font-weight: 800; font-size: 3.6em; line-height: .78;
  float: left; padding: .12em .18em 0 0; color: var(--lane);
}
.article figure { margin: 2rem 0; }
.article figure img { border-radius: 1rem; }
.article figcaption { font-family: var(--display); font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.article .tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.article .tags span { font-family: var(--display); font-size: .78rem; padding: .35rem .65rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.article .back { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-family: var(--display); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink-2); margin-bottom: 1.5rem; }
.article .back:hover { color: var(--plot); }
.article .evidence { margin-top: 2.5rem; padding: 1.4rem 1.5rem; border-radius: 1.1rem; background: #fffbf4; border: 1px solid var(--line); }
.article .evidence h2 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-variation-settings: "opsz" 12; }
.article .evidence ul { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .85rem; }
.article .evidence li { display: grid; gap: .1rem; justify-items: start; }
.article .evidence a { display: inline-flex; align-items: flex-end; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--lane) 60%, transparent); text-underline-offset: .2em; overflow-wrap: anywhere; }
.article .evidence a:hover { color: var(--plot); }
.article .evidence-meta { font-family: var(--display); font-size: .8rem; color: var(--muted); }
.article .evidence-note { margin: .9rem 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.article .evidence-checked { margin: .6rem 0 0; font-family: var(--display); font-size: .78rem; color: var(--muted); }
.pill.evidence-pill { border-style: dashed; }
.pager { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: 3rem; }
.pager a {
  display: grid; gap: .3rem; padding: 1.1rem 1.25rem; border-radius: 1rem; border: 1px solid var(--line); text-decoration: none; color: inherit; background: #fffbf4;
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.pager a:hover { border-color: var(--plot); transform: translateY(-2px); }
.pager .eyebrow { color: var(--muted); }
.pager strong { font-family: var(--display); font-size: 1.1rem; letter-spacing: -0.01em; }

/* Booking band */
.book { background: var(--night); color: var(--night-ink); padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.book .wrap { display: grid; gap: 1.25rem; max-width: 60rem; }
.book .eyebrow { color: var(--marigold); }
.book h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); color: #fff; max-width: 18ch; }
.book p { margin: 0; color: var(--night-muted); max-width: 52ch; font-size: 1.15rem; }
.book .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* Footer */
.footer { background: var(--night-2); color: var(--night-ink); padding: 3rem 0 2.5rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { color: #fff; font-size: 1.2rem; }
.footer p { color: var(--night-muted); margin: .8rem 0 0; max-width: 34ch; font-size: 1rem; }
.footer h3 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--marigold); font-variation-settings: "opsz" 12; }
.footer ul { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .35rem; }
.footer a { color: rgba(246, 240, 230, .85); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.5rem; font-family: var(--display); font-size: .95rem; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.4rem; font-family: var(--display); font-size: .8rem; color: rgba(246, 240, 230, .55); }

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

@media print {
  .reveal { opacity: 1; transform: none; }
  .topbar, .book, .skip-link { display: none; }
}

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

/* Touch targets on small screens */
@media (max-width: 48rem) {
  a[href], button { min-height: 44px; }
  .story-row, .feature, .lane-card, .pager a { min-height: 44px; }
}

noscript .nojs { padding: 2rem var(--gutter); max-width: var(--wrap); margin: 0 auto; }
noscript .nojs ul { padding-left: 1.2rem; }
