:root {
  color-scheme: dark;
  --bg: #111513;
  --panel: #1a201b;
  --line: #384239;
  --text: #f1f0e7;
  --muted: #bdc7bc;
  --accent: #e3dc9f;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible, audio:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(71rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.header-row { min-height: 4.75rem; }
.brand, nav a { color: var(--text); text-decoration: none; }
.brand { font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: .55rem 1.35rem; }
nav a { font-size: .9rem; color: var(--muted); }
nav a[aria-current], nav a:hover { color: var(--accent); text-decoration: underline; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .5rem; background: var(--bg); }
.skip:focus { transform: none; z-index: 2; }
.masthead { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 8vw, 6.5rem) 0; }
.eyebrow { margin: 0 0 .7rem; color: var(--accent); font-size: .875rem; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.07; font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.75rem, 7vw, 6rem); letter-spacing: -.055em; }
h2 { margin-bottom: 1.3rem; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.4rem, 2.1vw, 1.8rem); }
.lede { max-width: 34rem; margin: 1.4rem 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.19rem); }
.subtitle { margin: .7rem 0; font-size: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.button { display: inline-block; padding: .65rem 1rem; border: 1px solid #6a7468; border-radius: .25rem; color: var(--text); text-decoration: none; font-weight: 650; }
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #191c14; }
.button.primary:hover { background: #f3ebaf; }
.home-art { display: grid; place-items: center; background: radial-gradient(ellipse at center, #435044, #202820 68%); padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: .35rem; }
.home-art img, .product-cover { box-shadow: 0 1rem 2.5rem #0007; width: min(100%, 23rem); }
.product-cover { justify-self: center; }
.section { border-top: 1px solid var(--line); padding: clamp(2rem, 5vw, 4rem) 0; scroll-margin-top: 1rem; }
.cards, .features, .editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .edition, .features article { border: 1px solid var(--line); background: var(--panel); border-radius: .35rem; }
.card { display: block; overflow: hidden; color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card-art { height: 12rem; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; overflow: hidden; background: #141b17; }
.card-art img { width: auto; height: 100%; object-fit: contain; }
.game-art img { width: 100%; height: 100%; object-fit: contain; }
.card-copy, .edition, .features article { padding: 1.25rem; }
.card-copy p:last-child, .features p, .note, .site-footer { color: var(--muted); }
.card-copy p:last-child, .features p:last-child { margin-bottom: 0; }
.sequel-art { place-content: center; gap: .3rem; background: radial-gradient(ellipse at top, #4b5636, #1c281f 70%); text-align: center; color: var(--accent); }
.sequel-art strong { font: 2.5rem Georgia, serif; }
.standalone { display: grid; min-height: 18rem; border: 1px solid var(--line); border-radius: .35rem; }
.ghost-hero img { width: 100%; border-radius: .35rem; }
.note { max-width: 43rem; }
.sample-section { max-width: 48rem; }
.chapter-links { gap: 1.25rem; margin: 1.5rem 0; }
.chapter { padding: 1.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.chapter audio { width: min(100%, 27rem); margin: 1rem 0 .25rem; display: block; }
.reading { font: 1.14rem/1.75 Georgia, serif; max-width: 37rem; }
.editions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; }
.price { font-size: 1.8rem; }
.price small { display: block; font-size: .875rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 1.25rem 0; font-size: .9rem; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .header-row { align-items: flex-start; flex-direction: column; gap: .5rem; padding-block: 1rem; }
  .masthead, .cards, .features { grid-template-columns: 1fr; }
  .masthead { padding: 2.65rem 0; }
  .home-art img, .product-cover { max-width: 15rem; }
  .card-art { height: 10rem; }
}
@media (max-width: 380px) { .editions { grid-template-columns: 1fr; } }
