@font-face {
  font-family: AgentDisplay;
  src: url("/assets/fonts/comic-agent-display-bold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #21171a;
  --dark: #25181c;
  --paper: #fff9eb;
  --tint: #f3e5cf;
  --red: #86192c;
  --gold: #ffc647;
  --muted: #594b46;
  --line: #d3b99b;
  --display: AgentDisplay, Arial, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.65 Georgia, serif; }
a { color: var(--red); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap, .site-header .shell, footer .shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: .75rem; left: .75rem; transform: translateY(-180%); background: var(--paper); padding: .5rem 1rem; }
.skip-link:focus { transform: none; }

.site-header, footer { background: #151219; color: var(--paper); font: 700 .875rem/1.45 var(--sans); }
.site-header a, footer a { color: inherit; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.site-brand, .footer-brand { display: flex; align-items: center; gap: .7rem; }
.site-brand { text-decoration: none; }
.site-brand img, .footer-brand img { flex: none; width: 2.65rem; }
.site-brand small, .footer-brand span { display: block; color: #ded2c4; font-size: .75rem; }
.site-nav nav, .footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.15rem; }
footer { padding-block: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; }
.footer-links { align-items: start; }

.hero {
  color: #fff9ec;
  background: linear-gradient(114deg, #38151f 0%, #771729 66%, #9b2934 100%);
  border-bottom: .4rem solid var(--gold);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .78fr); align-items: center; gap: clamp(1.5rem, 6vw, 5.2rem); padding-block: clamp(2.5rem, 5vw, 4.8rem); }
.breadcrumb { margin-bottom: 2.4rem; font: 700 .8rem/1.5 var(--sans); }
.hero a, .chapter-dark a { color: var(--gold); }
.breadcrumb a { color: inherit; }
.eyebrow { color: var(--red); font: 700 .78rem/1.5 var(--sans); letter-spacing: .11em; text-transform: uppercase; margin: 0 0 .55rem; }
.hero .eyebrow, .chapter-dark .eyebrow { color: var(--gold); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 800; }
h1 { color: var(--gold); font-size: clamp(3.6rem, 11vw, 8.1rem); letter-spacing: -.055em; line-height: .95; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3.65rem); letter-spacing: -.025em; max-width: 21ch; }
h3 { font-family: var(--sans); font-size: clamp(1.15rem, 2.25vw, 1.5rem); }
.deck { font: 700 clamp(1.55rem, 3.5vw, 2.65rem)/1.12 var(--sans); margin: .75rem 0 1.15rem; }
.standfirst { max-width: 51ch; margin: .65rem 0; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.45rem; }
.hero .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem .9rem; border: 2px solid var(--gold); font: 700 .9rem/1.35 var(--sans); text-decoration: none; }
.hero .button-primary { color: var(--ink); background: var(--gold); }
.hero .button:hover { background: #fff3d3; color: var(--ink); }
.hero .cover { margin-inline: auto; max-width: 20rem; }
.hero .cover img { border: 3px solid var(--gold); box-shadow: .65rem .65rem 0 #2f1420; }
.hero .cover figcaption { margin-top: .95rem; color: #ffeed6; }

.chapter-nav { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.chapter-nav .wrap { display: flex; gap: 1.2rem; overflow-x: auto; }
.chapter-nav a { flex: none; display: block; padding: .75rem 0; font: 700 .83rem/1.4 var(--sans); }
.chapter-nav a:focus-visible { outline-offset: -3px; }
.chapter { padding-block: clamp(2.8rem, 6vw, 5.2rem); }
.chapter-dark { background: var(--dark); color: var(--paper); }
.chapter-tint { background: var(--tint); }
.section-lead { max-width: 72ch; color: var(--muted); margin: 1rem 0 1.45rem; }
.chapter-dark .section-lead { color: #e2d4c6; }
.tier-grid, .story-grid { display: grid; gap: 1rem; margin-top: 1.6rem; }
.tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier, .story-grid article { background: #fffdf6; padding: 1.2rem; border: 1px solid var(--line); border-top: .28rem solid var(--red); }
.tier p:last-child, .story-grid article p:last-child { margin-bottom: 0; }
.tier h3, .story-grid h3 { margin-bottom: .55rem; }
.tier .checked-price { color: var(--red); font: 800 1.8rem/1 var(--display); }
.buying-note { padding: .8rem 1.15rem; margin: 1.2rem 0 0; background: var(--tint); border-left: .28rem solid var(--red); }

.era-nav { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-block: 1.15rem 2rem; font: 700 .9rem/1.5 var(--sans); }
.era-nav a { padding: .4rem .6rem; border: 1px solid #82666a; }
.era { border-top: 1px solid #806267; margin-top: 2.7rem; padding-top: 2.4rem; }
.era h3 { font: 800 clamp(1.65rem, 3.6vw, 2.6rem)/1.13 var(--display); }
.era-text { max-width: 82ch; color: #f0e2d5; }
.era-text p { margin: .75rem 0; }
.cover-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem 1.1rem; margin-top: 1.4rem; }
#modern .cover-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
.cover { margin: 0; min-width: 0; }
.cover img { width: 100%; border: 1px solid var(--line); }
.cover-link { display: block; }
.cover-grid .cover-link { display: grid; max-height: 18rem; aspect-ratio: 2 / 3; background: #1a1114; }
.cover-grid .cover img { height: 100%; width: 100%; object-fit: contain; object-position: center bottom; border-color: #70545a; }
.cover-grid .cover-wide .cover-link { display: block; max-height: none; aspect-ratio: auto; }
.cover-grid .cover-wide img { height: auto; }
.cover figcaption { margin-top: .65rem; color: var(--muted); font: .86rem/1.48 var(--sans); }
.cover figcaption strong { color: inherit; display: block; }
.cover-grid figcaption { color: #e9d8c9; }
.cover-grid figcaption strong { color: #fff6e6; }
.cover figcaption small { display: block; margin-block: .12rem .32rem; }
.cover-grid figcaption small { color: #f8cb74; }
.cover-credit { font: .86rem/1.5 var(--sans); color: #dccbc0; margin: 2.3rem 0 0; }
.reading-list { display: grid; gap: .95rem; margin-top: 1.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reading-list article { border-top: 2px solid var(--line); padding-top: .75rem; }
.reading-list article p { margin: .45rem 0 .25rem; }
.shop-card { max-width: 34rem; }
.checklist, .reference-list { padding-left: 1.3rem; }
.checklist li, .reference-list li { padding-left: .25rem; margin-bottom: .75rem; }
.checklist { max-width: 80ch; }

.market { display: grid; gap: .75rem; margin: 1.35rem 0 0; }
.market article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .25rem .9rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.market h3 { line-height: 1.4; }
.market p { grid-column: 1/-1; margin: 0; }
.market .amount { color: var(--red); font: 800 1.25rem/1.4 var(--display); white-space: nowrap; }

@media (max-width: 820px) {
  .site-nav { flex-wrap: wrap; }
  .tier-grid { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #modern .cover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cover-grid .cover-wide { grid-column: 1 / -1; width: min(100%, 29rem); }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .site-header .shell, footer .shell { width: calc(100% - 2rem); }
  .hero-grid, .story-grid, .reading-list { grid-template-columns: minmax(0, 1fr); }
  .hero .cover { width: min(100%, 13.5rem); margin-inline: 0; }
  .breadcrumb { margin-bottom: 1.35rem; }
  .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  #modern .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market article { grid-template-columns: minmax(0, 1fr) auto; }
}

@media print {
  .site-header, .chapter-nav, .actions, .cookie-banner, footer { display: none !important; }
  .hero, .chapter-dark { color: black; background: white; }
  .hero h1, .hero .eyebrow, .chapter-dark .eyebrow { color: black; }
  .chapter { padding-block: 1rem; }
}
