/* Wolves Among Us: site styles. No framework, no build step. */
@font-face { font-family: Lexend; font-weight: 300; font-display: swap; src: url('/assets/fonts/lexend-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Lexend; font-weight: 300; font-display: swap; src: url('/assets/fonts/lexend-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Lexend; font-weight: 400; font-display: swap; src: url('/assets/fonts/lexend-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Lexend; font-weight: 400; font-display: swap; src: url('/assets/fonts/lexend-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Lexend; font-weight: 600; font-display: swap; src: url('/assets/fonts/lexend-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Lexend; font-weight: 600; font-display: swap; src: url('/assets/fonts/lexend-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Anton; font-weight: 400; font-display: swap; src: url('/assets/fonts/anton-latin-400-normal.woff2') format('woff2'); }

:root {
  --paper: #f5f2ec; --card: #ffffff; --ink: #141414; --muted: #514c46; --rule: #d8d1c5;
  --night: #0d0e11; --night-2: #181a1f; --bone: #ece7de; --bone-muted: #c9c2b6;
  --red: #b3161d; --red-dark: #8f0f15; --red-on-night: #ff7a7a;
  --focus-light: #1a4fb4; --focus-dark: #ffd166;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --body: Lexend, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px; --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-dark); }
strong, b { font-weight: 600; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { background: var(--night); color: var(--bone); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #2a2d33; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { white-space: nowrap; color: var(--bone); text-decoration: none; font-family: var(--display); font-size: 1.45rem; letter-spacing: .04em; display: inline-flex; align-items: center; min-height: 44px; }
.brand:hover { color: #fff; }
.nav-toggle { display: none; background: transparent; color: var(--bone); border: 1px solid #4a4e57; border-radius: var(--radius); font: 600 .95rem var(--body); min-height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--bone); text-decoration: none; font-size: .9rem; font-weight: 400; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: var(--night-2); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red-on-night); }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--night); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; border-bottom: 1px solid #2a2d33; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; }
}
.no-js .site-nav { display: flex; position: static; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 600 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn[aria-disabled="true"], .btn:disabled { background: transparent; color: inherit; border: 2px dashed currentColor; opacity: .85; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* sections */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-tight { padding: clamp(36px, 6vw, 56px) 0; }
.dark { background: var(--night); color: var(--bone); }
.dark a { color: var(--red-on-night); }
.dark a:hover { color: #ffb0b0; }
.card-bg { background: var(--card); }
.eyebrow { font: 600 .8rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.dark .eyebrow { color: var(--red-on-night); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; }
.muted { color: var(--muted); }
.dark .muted { color: var(--bone-muted); }
.small { font-size: .9rem; }

/* page header band */
.page-head { background: var(--night); color: var(--bone); padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 52px); }
.page-head h1 { margin-bottom: .25em; }
.page-head p { max-width: 760px; color: var(--bone-muted); font-size: 1.1rem; }
.page-head .eyebrow { color: var(--red-on-night); }

/* hero */
.hero { background: var(--night); color: var(--bone); padding: clamp(40px, 7vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.hero-cover { border-radius: 4px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); line-height: .98; margin-bottom: .25em; }
.hero .subtitle { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--bone); margin-bottom: .8em; }
.hero .byline { font-family: var(--display); letter-spacing: .08em; font-size: 1.3rem; color: var(--bone); }
.mission { border-left: 3px solid var(--red-on-night); padding-left: 16px; color: var(--bone-muted); font-size: 1.05rem; }
.buy-note { margin-top: 10px; font-size: .9rem; color: var(--bone-muted); }
.hero-grid-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero-grid-wide h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
.hero-mockup { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.55); width: 100%; }
@media (max-width: 760px) { .hero-grid-wide { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } .hero-cover { max-width: 260px; } }

/* grids and cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.dark .card { background: var(--night-2); border-color: #2c2f36; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.stage-num { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--red); margin: 0 0 6px; }
.dark .stage-num { color: var(--red-on-night); }
.link-card { display: block; text-decoration: none; color: inherit; }
.link-card:hover { border-color: var(--red); color: inherit; }
.link-card .go { color: var(--red); font-weight: 600; }
.quote { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; margin: 0; }

/* notices */
.notice { border: 2px solid var(--red); background: #fff6f5; color: var(--ink); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 24px; }
.notice strong { color: var(--red-dark); }
.notice-hold { border-style: solid; }
.notice-info { border-color: #6b665f; background: #faf8f4; }
.content-note { font-style: italic; color: var(--muted); font-size: .95rem; }
.label { display: inline-block; font: 600 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; background: #ece6dc; color: #3d3833; border-radius: 3px; padding: 2px 7px; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.label-us { background: #e4ebf7; color: #1d3a73; }

/* prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose p, .prose li { overflow-wrap: anywhere; }
.contents-list { list-style: none; padding: 0; margin: 0; }
.contents-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.contents-list .part { font-family: var(--display); font-size: 1.3rem; padding-top: 22px; border-bottom: none; }
.contents-list .cn { display: block; font-size: .88rem; color: var(--muted); font-style: italic; margin-top: 3px; }

/* notes */
.notes-toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.notes-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.notes-toc a:hover { border-color: var(--red); }
details.chapter-notes { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; }
details.chapter-notes > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
details.chapter-notes > summary::-webkit-details-marker { display: none; }
details.chapter-notes > summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; color: var(--red); }
details.chapter-notes[open] > summary::after { content: "–"; }
details.chapter-notes .count { font-weight: 300; color: var(--muted); font-size: .88rem; margin-left: auto; }
.note-list { list-style: none; margin: 0; padding: 0 18px 12px; }
.note-list li { padding: 10px 0; border-top: 1px solid #ece6dc; font-size: .95rem; overflow-wrap: anywhere; }
.note-list .anchor { font-style: italic; font-weight: 400; }

/* forms */
.form fieldset { border: 0; padding: 0; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .88rem; color: var(--muted); }
input, textarea, select { font: inherit; font-weight: 300; padding: 12px 14px; min-height: 48px; border: 1px solid #8a837a; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 180px; resize: vertical; }
input:disabled, textarea:disabled, select:disabled { background: #eeeae3; color: #4a4540; }
.field.check { flex-direction: row; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 3px; flex: none; }
.newsletter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.newsletter .field { flex: 1 1 220px; margin: 0; }
.site-footer input:disabled, .dark input:disabled { background: #22252b; color: var(--bone-muted); border-color: #4a4e57; }

/* footer */
.site-footer { background: var(--night); color: var(--bone-muted); padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--bone); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.footer-brand { font-family: var(--display); color: var(--bone); font-size: 1.4rem; letter-spacing: .04em; margin-bottom: 6px; }
.foot-nav { display: flex; flex-direction: column; gap: 2px; }
.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.legal { border-top: 1px solid #2a2d33; margin-top: 32px; padding-top: 18px; font-size: .85rem; }
.site-footer .eyebrow { color: var(--bone); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } .btn, .link-card, .notes-toc a { transition: background-color .15s, border-color .15s, color .15s; } }
@media print { .site-header, .site-footer, .nav-toggle, .skip { display: none; } body { background: #fff; } details.chapter-notes { border: 0; } }

/* ---- Oct 22 review: sources sub-menu */
.nav-group { position: relative; display: inline-flex; flex-direction: column; }
.nav-sub-toggle { background: transparent; border: 0; color: var(--bone); font: 400 .9rem var(--body); padding: 10px 10px; min-height: 44px; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-sub-toggle::after { content: "▾"; font-size: .75em; }
.nav-sub-toggle:hover, .nav-sub-toggle[aria-expanded="true"] { background: var(--night-2); color: #fff; }
.nav-group.is-current > .nav-sub-toggle { box-shadow: inset 0 -2px 0 var(--red-on-night); color: #fff; }
.nav-sub { list-style: none; margin: 0; padding: 6px; background: var(--night-2); border: 1px solid #2c2f36; border-radius: var(--radius); position: absolute; top: 100%; left: 0; min-width: 210px; z-index: 60; }
.nav-sub a { display: flex; width: 100%; }
@media (max-width: 1100px) {
  .nav-group { display: flex; }
  .nav-sub-toggle { font-size: 1rem; width: 100%; justify-content: flex-start; }
  .nav-sub { position: static; border: 0; background: transparent; padding: 0 0 0 16px; min-width: 0; }
}

/* ---- launch sign-up */
.what { font-size: 1.02rem; color: var(--bone); max-width: 560px; }
.launch { color: var(--bone); margin-bottom: .4em; }
.signup-h { font-family: var(--body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin: 18px 0 8px; }
.signup-form fieldset { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.signup-form .field { flex: 1 1 220px; margin: 0; }
.signup-dark input { background: #fff; }
.signup-note { margin-top: 8px; color: var(--muted); }
.signup-dark .signup-note, .site-footer .signup-note, .hero .signup-note { color: var(--bone-muted); }
.status-box { border-left: 3px solid var(--red-on-night); padding: 8px 12px; margin: 8px 0 0; }
.form-error { color: #ffb0b0; font-weight: 600; margin: 8px 0 0; }
.signup:not(.signup-dark) .form-error { color: var(--red-dark); }
.signup:not(.signup-dark) .status-box { border-left-color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sourced { margin-top: 14px; color: var(--bone-muted); }
.site-footer .field label { color: var(--bone); }

/* ---- book details list */
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 16px; font-size: .95rem; }
.details dt { font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .details { grid-template-columns: 1fr; } .details dd { margin-bottom: 6px; } }

/* ---- Living Notes tools */
.notes-bar { position: sticky; top: 68px; z-index: 20; background: var(--paper); padding: 10px 0 6px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.notes-bar .notes-toc { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 10px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.notes-bar .notes-toc li { flex: none; }
.notes-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.notes-search { flex: 1 1 260px; margin: 0; }
.note-link { color: var(--muted); text-decoration: none; font-weight: 600; padding: 0 4px; }
.note-link:hover { color: var(--red); }
.note-list li.is-target { background: #fff6d6; }
.note-list li, details.chapter-notes { scroll-margin-top: 240px; }
[hidden] { display: none !important; }
.hero a:not(.btn), .site-footer .signup a { color: var(--red-on-night); }
.hero a:not(.btn):hover { color: #ffb0b0; }

/* ---- Oct 22: more images */
.photo { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cover-art { width: 100%; border-radius: 3px; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
figure { margin: 0; }
.cover-figure { max-width: 240px; margin: 0 auto 20px; }
.split-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 760px) { .split-media { grid-template-columns: 1fr; } }
.launch-band { background: var(--card); }
.float-photo { float: right; width: min(340px, 45%); margin: 4px 0 16px 24px; }
.float-cover { float: right; width: 160px; margin: 0 0 12px 20px; }
@media (max-width: 600px) { .float-photo { float: none; width: 100%; margin: 0 0 18px; } .float-cover { width: 120px; } }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; margin: 12px 0 24px; align-items: end; }
.press-grid figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.press-grid a { display: block; }
.prose h2 { clear: both; }

/* ---- org logos (only where the org publishes them for public use) */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 4px 0 8px; }
.logo-row a { display: inline-flex; align-items: center; padding: 28px; min-height: 44px; border-radius: var(--radius); background: #fff; }
.org-logo { height: 40px; width: auto; min-width: 120px; }
.logo-note { margin-bottom: 20px; }
