/* A paper-and-walnut reading room. Scoped to the fiction entrance. */
:root {
  --ink: #f4efe5;
  --ink-soft: #e8dfd0;
  --paper: #29291f;
  --muted: #595b4d;
  --quiet: #686858;
  --bronze: #735235;
  --line: #ccc4b5;
}
:root[data-reading-theme="dark"] {
  color-scheme: dark;
  --ink: #191c15; --ink-soft: #25291f; --paper: #eee9df;
  --muted: #c0bcae; --quiet: #ada99b; --bronze: #d5ac78; --line: #55594a;
}
.reading-controls { margin-left: auto; }
.reader-theme { min-height: 44px; padding: .65rem .85rem; border: 1px solid var(--line); background: transparent; color: var(--paper); font: 500 .85rem/1.3 var(--sans); cursor: pointer; white-space: nowrap; }
.reading-guide { max-width: 68ch; color: var(--muted); font: 1.08rem/1.7 var(--serif); margin-bottom: 2rem; }
.reading-guide a { text-underline-offset: .2em; }
.earlier-fragments { margin-top: 2rem; }
.earlier-fragments summary { padding: 1rem 0; cursor: pointer; font: 1.1rem/1.5 var(--serif); }
.earlier-fragments > p { color: var(--muted); line-height: 1.6; }
.earlier-fragments summary:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
[data-reading-theme="dark"] .generation, [data-reading-theme="dark"] .story-row:hover { background: var(--ink-soft); }
[data-reading-theme="dark"] .nav { background: var(--ink); }
body { background: var(--ink); }
body::before { content: none; }
.shell { width: min(1180px, calc(100% - 80px)); }
.site-head { height: 88px; }
.brand { letter-spacing: .035em; }
.nav a { padding-block: 12px; }
.hero { min-height: 0; border-bottom: 0; }
.hero-inner { max-width: 1000px; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
h1 { max-width: 940px; font-size: clamp(2.8rem, 5.7vw, 5.25rem); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 1.75rem; text-wrap: pretty; }
.hero-copy { max-width: 650px; font-size: 1.17rem; margin-bottom: 1.5rem; }
.actions { gap: .5rem 1.8rem; }
.text-link { min-height: 44px; padding: .75rem 0; letter-spacing: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bronze); outline-offset: 5px; }
.scene { padding: 1.6rem 0; background: #eae3d6; border-block: 1px solid var(--line); }
.scene blockquote { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: .35rem 1rem; max-width: none; text-align: left; }
.scene p { font-size: 1.35rem; letter-spacing: 0; margin: 0; }
.scene footer { margin: 0 0 0 auto; font-size: .7rem; letter-spacing: .06em; }
.feature-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); border: 0; padding: 0; }
.feature-media { aspect-ratio: 1.3; }
.feature-media img { filter: none; transition: none; }
.feature:hover .feature-media img { transform: none; }
.feature-note { font-family: var(--sans); font-size: .74rem; letter-spacing: .06em; }
.feature h2 { font-size: clamp(2.8rem, 4.4vw, 4.3rem); line-height: 1.06; margin: 1.1rem 0 1.4rem; }
.feature-copy > p { max-width: 32ch; font-size: 1.17rem; }
.story-invite .shell { padding-block: 1.5rem; }
.shelf { padding: clamp(3rem, 6vw, 5rem) 0; }
.shelf h2, .return h2 { font-size: clamp(2.5rem, 4vw, 3.8rem); margin-bottom: 2rem; line-height: 1.12; letter-spacing: -.035em; }
.story-row { min-height: 125px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 10rem; gap: 2rem; }
.story-row span { text-align: right; white-space: normal; }
.story-row strong { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.story-row:hover { background: #ede6d9; }
.generation { padding: 4rem 0; background: #eae3d6; }
.generation-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.generation h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.15; letter-spacing: -.025em; }
.generation-copy p { font-size: 1.12rem; }
.return { padding: 4.5rem 0; }
.return p { font-size: 1.15rem; }
.button { background: #364332; color: #f4efe5; border-color: #364332; font-size: .85rem; }
.button:hover, .button:focus-visible { background: #273324; color: #fff; border-color: #273324; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .site-head { height: 78px; }
  .site-head .shell { gap: .65rem; }
  .nav { background: #f4efe5; }
  .hero { min-height: 0; }
  .hero-inner { padding: 3rem 0 2rem; }
  h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .scene footer { flex-basis: 100%; margin: .5rem 0 0; }
  .feature { grid-template-columns: 1fr; gap: 1.75rem; padding: 0; }
  .feature-media { aspect-ratio: 1.5; }
  .feature h2 { max-width: 13ch; font-size: 2.8rem; }
  .story-row { grid-template-columns: 1fr; gap: .6rem; }
  .story-row span { text-align: left; }
  .generation-grid { grid-template-columns: 1fr; gap: 1rem; }
  .site-foot .shell { flex-direction: column; gap: 1rem; }
}
