/* Everyday History – edhistory.com
   Parchment, royal blue and gold, after the EDHistory shop brand. Each book adds its own accent (theme-*). */

@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/ebgaramond-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/ebgaramond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/ebgaramond-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #221d17;
  --ink-soft: #4d4438;
  --muted: #6d6252;
  --paper: #fbf6ea;
  --parch: #f3ead6;
  --parch-2: #e9dcc0;
  --line: #d9c8a6;
  --navy: #1b2f63;
  --navy-deep: #0f1b3d;
  --gold: #e2bd5f;
  --gold-deep: #a97f22;
  --red: #a3302a;
  --yt: #c4302b;
  --accent: var(--navy);
  --accent-deep: var(--navy-deep);
  --radius: 10px;
  --shadow: 0 10px 30px rgba(34, 29, 23, .18);
  --wrap: 1180px;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
}
.theme-manuscript { --accent: #8e1d1b; --accent-deep: #5a100f; }
.theme-victorian  { --accent: #1f4d36; --accent-deep: #11301f; }
.theme-psalter    { --accent: #5b3518; --accent-deep: #38200d; }
.theme-norse      { --accent: #1f2d57; --accent-deep: #111a35; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .h3 { font-family: var(--display); font-weight: 700; line-height: 1.18; color: var(--ink); letter-spacing: .01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3, .h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 1.05rem; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: .5em 1em; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease; line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { font-size: .78rem; padding: .7em 1.1em; }
.btn-block { display: flex; width: 100%; margin-top: .6em; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #1a1407; box-shadow: 0 2px 0 var(--gold-deep); }
.btn-gold:hover { background: #ecc96b; color: #1a1407; }
.btn-light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-red { background: var(--yt); color: #fff; }
.btn-red:hover { background: #a7231f; color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.eyebrow { font-family: var(--display); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .7em; }
.eyebrow-dark { color: var(--red); }

/* Header */
.site-header { background: var(--navy-deep); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--gold); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.12rem; letter-spacing: .04em; }
.brand-text small { font-size: .85rem; color: var(--gold); font-style: italic; }
.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: #f2ead8; text-decoration: none; font-family: var(--display); font-size: .86rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: .55em .7em; border-radius: 6px; display: block; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--gold); background: rgba(255,255,255,.06); }
.nav-cta { font-size: .78rem; padding: .7em 1.1em; }
.nav-button { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: .5em .8em; font-family: var(--display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; align-items: center; gap: .5em; }
.nav-button-bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-button-bars::before, .nav-button-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-button-bars::before { top: -6px; } .nav-button-bars::after { top: 6px; }
@media (max-width: 1060px) {
  .nav-button { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; align-items: stretch; padding: .5rem 16px 1.2rem; border-bottom: 3px solid var(--gold); }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { font-size: 1rem; padding: .8em .4em; border-bottom: 1px solid rgba(255,255,255,.08); }
  .js .main-nav { display: none; }
  .js .nav-open .main-nav { display: flex; }
  .brand-text small { display: none; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .3em; font-size: .98rem; }
.crumbs li + li::before { content: "›"; margin-right: .3em; opacity: .6; }
.crumbs a { color: inherit; }
.crumbs span { opacity: .75; }

/* Heroes */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-deep); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,16,36,.92) 0%, rgba(10,16,36,.72) 45%, rgba(10,16,36,.25) 100%), linear-gradient(0deg, rgba(10,16,36,.6), transparent 40%); }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-content { position: relative; max-width: 680px; }
.hero-intro { font-size: clamp(1.15rem, 2vw, 1.4rem); color: #f3ead6; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-note { margin-top: 1.2rem; font-style: italic; color: var(--gold); }
.hero .crumbs { color: #f3ead6; }
.hero-page { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-home { padding: clamp(3rem, 7vw, 6rem) 0; min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero-home-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.hero-home .hero-content { max-width: none; }
.hero-feature { position: relative; justify-self: center; width: min(340px, 80%); text-decoration: none; color: #fff; transform: rotate(2.5deg); transition: transform .25s ease; }
.hero-feature:hover { transform: rotate(0deg) scale(1.02); color: #fff; }
.hero-feature .cover-img { border-radius: 4px; box-shadow: 0 25px 60px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2); }
.hero-feature-cap { display: block; text-align: center; margin-top: 1rem; font-family: var(--display); font-size: .9rem; letter-spacing: .06em; }
.ribbon { position: absolute; top: 18px; right: -12px; z-index: 2; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .15em; padding: .35em 1em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
@media (max-width: 800px) {
  .hero-home-grid { grid-template-columns: 1fr; }
  .hero-feature { width: min(240px, 62%); order: -1; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,16,36,.55), rgba(10,16,36,.9)); }
}

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tight { padding-top: 1rem; }
.section-alt { background: var(--parch); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 2rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.section-intro { font-size: 1.25rem; color: var(--ink-soft); max-width: 46em; }
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; background: linear-gradient(180deg, var(--parch), var(--paper)); }
.page-head-books { padding-bottom: 0; }
.era-title { margin-top: 2.4rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.era-title:first-of-type { margin-top: 0; }

/* Shelf (home) */
.shelf { background: var(--parch); background-image: radial-gradient(circle at 20% 0%, rgba(255,255,255,.6), transparent 60%); }
.shelf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.2rem); margin-bottom: 2rem; }
.shelf-book { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .3rem; }
.shelf-cover { display: block; transition: transform .2s ease; }
.shelf-cover .cover-img { border-radius: 4px; box-shadow: var(--shadow); border-bottom: 6px solid var(--accent); }
.shelf-book:hover .shelf-cover { transform: translateY(-6px) rotate(-1deg); }
.shelf-num { margin-top: .8rem; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.shelf-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.shelf-sub { color: var(--muted); font-style: italic; font-size: 1.02rem; }
.shelf-small { grid-template-columns: repeat(3, minmax(0, 220px)); }
@media (max-width: 900px) { .shelf-grid { grid-template-columns: repeat(2, 1fr); } .shelf-small { grid-template-columns: repeat(3, 1fr); } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-top { align-items: start; grid-template-columns: 1.4fr .8fr; }
@media (max-width: 900px) { .split, .split-top { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px var(--paper), 0 0 0 1px var(--gold-deep); }

/* Bands */
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; color: #f5ecd8; background: var(--navy); }
.band h2 { color: #fff; }
.band a:not(.btn) { color: var(--gold); }
.band-free { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); }
.band-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } }
.band-news { background: var(--navy-deep); background-image: radial-gradient(circle at 50% -20%, rgba(226,189,95,.18), transparent 60%); }
.band-news .nl-form { margin: 1.5rem auto 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2rem; margin-bottom: 2rem; }
.card-meta { font-size: .95rem; color: var(--red); font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; margin: .9rem 0 .3rem; }
.card-title { font-size: 1.2rem; margin: 0 0 .4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-text { color: var(--ink-soft); font-size: 1.08rem; }
.video-card-thumb, .article-card-img { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(34,29,23,.15); aspect-ratio: 16 / 9; background: var(--parch-2); }
.video-card-thumb img, .article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-card-thumb:hover img, .article-card-img:hover img { transform: scale(1.04); }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: .85rem; padding: .1em .5em; border-radius: 4px; font-family: system-ui, sans-serif; }

/* Book cards (books page) */
.book-list { display: grid; gap: 2rem; }
.book-card { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--accent); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); box-shadow: 0 6px 20px rgba(34,29,23,.06); }
.book-card-cover .cover-img { border-radius: 4px; box-shadow: var(--shadow); }
.book-num { font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.book-card-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .2rem; }
.book-card-title a { color: var(--ink); text-decoration: none; }
.book-card-sub { font-style: italic; color: var(--ink-soft); }
.book-card-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
@media (max-width: 640px) { .book-card { grid-template-columns: 1fr; } .book-card-cover { max-width: 200px; } }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.format { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.18rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--ink-soft); }

/* Book page */
.book-hero { background: var(--accent-deep); background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.12), transparent 55%), linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #f8f0dc; padding: clamp(2rem, 5vw, 4rem) 0; border-bottom: 4px solid var(--gold); }
.book-hero .crumbs { color: #f3ead6; }
.book-hero h1 { color: #fff; margin-bottom: .2em; }
.book-hero-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book-hero-cover .cover-img { border-radius: 4px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.book-subtitle { font-style: italic; font-size: 1.35rem; color: var(--gold); }
.book-lead { font-size: 1.25rem; }
.facts-row { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.facts-row li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .3em .9em; font-size: 1rem; }
.facts-row strong { font-family: var(--display); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-right: .3em; }
@media (max-width: 900px) { .book-hero-grid { grid-template-columns: 1fr; } .book-hero-cover { max-width: 300px; } }

.buy { display: grid; gap: .7rem; margin-top: 1.5rem; max-width: 560px; }
.buy-option { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); text-decoration: none; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: transform .15s ease; }
.buy-option:hover { transform: translateY(-2px); color: var(--ink); }
.buy-store { font-family: var(--display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.buy-etsy .buy-store { color: #d5521b; }
.buy-amazon .buy-store { color: #b06b00; }
.buy-free { background: var(--gold); }
.buy-free .buy-store { color: var(--ink); }
.buy-what { font-size: 1.02rem; line-height: 1.3; }
.buy-price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.buy-soon { font-size: 1rem; color: #f3ead6; margin: .2rem 0 0; font-style: italic; }
.buy-soon a { color: var(--gold); }
@media (max-width: 520px) { .buy-option { grid-template-columns: 1fr auto; } .buy-what { grid-column: 1 / -1; grid-row: 2; } }

.sample-box { background: var(--accent-deep); background-image: linear-gradient(160deg, var(--accent), var(--accent-deep)); color: #f8f0dc; border-radius: var(--radius); padding: 1.8rem; border: 2px solid var(--gold); position: sticky; top: 96px; }
.sample-title { color: #fff; font-size: 1.6rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.gallery figure { margin: 0; }
.gallery img { box-shadow: var(--shadow); }
.gallery figcaption { font-style: italic; color: var(--muted); margin-top: .5rem; font-size: 1.02rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.4rem, 2.4vw, 1.85rem); scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem; font-style: italic; color: var(--ink-soft); }
.lead { font-size: 1.38rem; line-height: 1.55; color: var(--ink); }
.answer { background: var(--parch); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.6rem 0 2rem; }
.answer p { margin: 0; }

/* Free page */
.notice { background: #fff4d6; border: 1px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; }
.notice-ok { background: #e7f4e3; border-color: #7aa96b; }
.unlock-box { background: var(--navy); color: #f5ecd8; border-radius: var(--radius); padding: 2rem; margin-bottom: 2.5rem; text-align: center; }
.unlock-box h2 { color: #fff; }
.free-list { display: grid; gap: 1.6rem; }
.free-item { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; scroll-margin-top: 96px; }
.free-item h2 { font-size: 1.45rem; }
.free-cover .cover-img { border-radius: 3px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .free-item { grid-template-columns: 1fr; } .free-cover { max-width: 160px; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3em 1em; text-decoration: none; font-family: var(--display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.chip:hover { background: var(--navy); color: #fff; }

/* Video page */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
@media (max-width: 1000px) { .video-layout { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.yt-poster, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 58px; transform: translate(-50%, -50%); background: var(--yt); border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .15s ease; }
.yt-play::after { content: ""; position: absolute; left: 34px; top: 17px; border-style: solid; border-width: 12px 0 12px 21px; border-color: transparent transparent transparent #fff; }
.yt-poster:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.video-summary { margin-bottom: 1.5rem; }
.callout { display: block; text-decoration: none; background: var(--parch); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 1.5rem; color: var(--ink); }
.callout-label { display: block; font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.callout-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.transcript, .sources { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 1rem; background: #fff; }
.transcript summary, .sources summary { cursor: pointer; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.transcript .prose { margin-top: 1rem; }
.sources ol, .source-list { font-size: 1rem; word-break: break-word; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.side-title { font-size: 1.1rem; margin-bottom: .8rem; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters a { display: flex; gap: .7rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.chapters a:hover { color: var(--red); }
.ch-time { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; color: var(--red); min-width: 3.2em; padding-top: .15em; }
.side-book { background: var(--accent-deep); background-image: linear-gradient(160deg, var(--accent), var(--accent-deep)); color: #f8f0dc; border: 2px solid var(--gold); }
.side-book .side-title a { color: #fff; text-decoration: none; }
.side-book p { font-size: 1.05rem; }
.side-book-cover { display: block; width: 140px; margin: .4rem 0 1rem; }
.side-book-cover .cover-img { border-radius: 3px; box-shadow: 0 10px 25px rgba(0,0,0,.45); }

/* Article */
.article-head { padding-top: clamp(2rem, 4vw, 3rem); background: linear-gradient(180deg, var(--parch), var(--paper) 70%); }
.byline { color: var(--muted); font-size: 1.05rem; }
.article-hero { margin-top: 1.5rem; margin-bottom: 0; }
.article-hero img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; box-shadow: var(--shadow); }
.article-hero figcaption { font-size: .9rem; color: var(--muted); font-style: italic; margin-top: .4rem; text-align: right; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); padding: 2.5rem 0 3rem; align-items: start; }
.article-side { position: sticky; top: 96px; }
.toc ol { padding-left: 1.1em; margin: 0; font-size: 1.02rem; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--red); }
.faq-section, .sources-section { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--line); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .article-side { position: static; } .toc { display: none; } }

/* Teachers */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.three-up > div { border-top: 4px solid var(--gold); padding-top: 1rem; }
@media (max-width: 800px) { .three-up { grid-template-columns: 1fr; } }
.units { display: grid; gap: 1.6rem; }
.unit { display: grid; grid-template-columns: 160px 1fr; gap: 1.8rem; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.unit h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.unit h3 a { color: var(--ink); text-decoration: none; }
.unit ul { margin: .3rem 0 0; font-size: 1.06rem; }
.unit-cover .cover-img { border-radius: 3px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .unit { grid-template-columns: 1fr; } .unit-cover { max-width: 150px; } }

/* Newsletter form */
.nl-form { max-width: 560px; text-align: left; }
.nl-row { display: flex; gap: .5rem; }
.nl-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: .7em 1em; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.nl-row input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(226,189,95,.35); }
.nl-consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; font-size: .98rem; line-height: 1.4; }
.nl-consent input { margin-top: .25em; width: 1.1em; height: 1.1em; accent-color: var(--gold); flex: none; }
.nl-notice { background: #fff1e0; color: #6b2a10; border-radius: 8px; padding: .6rem .9rem; font-size: 1rem; }
.nl-small { font-size: .95rem; margin-top: .6rem; }
@media (max-width: 520px) { .nl-row { flex-direction: column; } }

/* Footer */
.site-footer { background: #0b142e; color: #cfc6b3; padding: 3.5rem 0 1.5rem; font-size: 1.05rem; }
.site-footer a { color: #f0e6cf; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.3fr; gap: 2.2rem; }
.footer-title { color: var(--gold); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { text-decoration: none; }
.footer-social { display: flex; gap: 1rem; flex-wrap: wrap; }
.brand-footer { margin-bottom: 1rem; }
.footer-news .nl-row input { font-size: 1rem; }
.footer-news .nl-consent { font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 640px; margin-inline: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.3); padding: 1.1rem 1.3rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: 1.02rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent-actions { display: flex; gap: .5rem; }

@media print { .site-header, .site-footer, .band-news, .consent, .article-side { display: none; } body { background: #fff; } }

/* Amazon "coming soon" */
.buy-soon-row { background: rgba(255,255,255,.75); box-shadow: none; cursor: default; }
.buy-soon-row:hover { transform: none; }
.buy-badge { font-family: var(--display); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #232f3e; color: #ff9900; padding: .35em .7em; border-radius: 999px; white-space: nowrap; }
.btn-amazon { background: #232f3e; color: #fff; }
.btn-amazon:hover { background: #131a22; color: #ff9900; }
.pill-soon { display: inline-block; font-family: var(--display); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #232f3e; color: #ff9900; padding: .5em 1em; border-radius: 999px; }

/* Home hero v2 (Runware painting: reader on the right, text on the left) */
.hero-home { min-height: min(82vh, 720px); }
.hero-home .hero-content { max-width: 620px; }
.hero-bg-right { object-position: 70% 50%; }
.hero-home .hero-shade { background: linear-gradient(90deg, rgba(8,14,34,.88) 0%, rgba(8,14,34,.55) 42%, rgba(8,14,34,0) 70%), linear-gradient(0deg, rgba(8,14,34,.5), transparent 35%); }
.new-pill { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.4rem; padding: .35em .9em .35em .35em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(226,189,95,.5); color: #f3ead6; text-decoration: none; font-size: 1rem; }
.new-pill span { background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; }
.new-pill:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 800px) {
  .hero-home { min-height: 0; padding-top: 58vw; }
  .hero-bg-right { object-position: 80% 20%; }
  .hero-home .hero-shade { background: linear-gradient(180deg, rgba(8,14,34,0) 0%, rgba(8,14,34,.7) 40%, rgba(8,14,34,.95) 70%); }
}
.shelf-stores { font-size: .9rem; color: var(--muted); font-family: var(--display); letter-spacing: .04em; }

/* Explore by era */
.era-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.era-card { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; box-shadow: var(--shadow); isolation: isolate; }
.era-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.era-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,14,34,0) 35%, rgba(8,14,34,.92) 100%); }
.era-card:hover img { transform: scale(1.06); }
.era-card:hover { color: #fff; }
.era-card-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.era-card-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.era-card-line { font-size: .98rem; line-height: 1.3; color: #efe6d2; }
.era-card-count { font-family: var(--display); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
@media (max-width: 1000px) { .era-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .era-grid { grid-template-columns: repeat(2, 1fr); } .era-card { aspect-ratio: 4 / 5; } }
.hero .pill-soon { align-self: center; }
