/* ============================================================
   P.Sean Tales — pseantales.com
   Accessible (WCAG 2.1 AA) static site styles.
   All text/background pairs verified >= 4.5:1 (see build notes).
   ============================================================ */

:root {
  --cream: #FBF6EA;
  --cream-2: #F5EEDC;
  --card: #FFFFFF;
  --ink: #22262F;
  --muted: #565F6B;
  --navy: #22417A;
  --navy-hover: #1A3260;
  --gold: #E6B84D;
  --gold-tint: #F3E3B8;
  --gold-ink: #5A4300;
  --line: #E4DBC4;
  --focus: #12213B;
  --focus-ring: #1B60C9;
  --shadow: 0 1px 3px rgba(34,38,47,.10), 0 6px 18px rgba(34,38,47,.08);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
p { margin: 0 0 1rem; }

a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-hover); }

/* Visible, high-contrast focus for keyboard users */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800;
  font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .dot { color: var(--gold); }

.main-nav ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.main-nav a:hover { background: var(--cream-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

.header-tools { display: flex; align-items: center; gap: .75rem; }
.theme-toggle { padding: .45rem .7rem; font-size: .9rem; }
.theme-toggle [aria-hidden] { font-size: 1rem; line-height: 1; }

/* site-menu wraps nav + theme toggle: inline row on desktop, dropdown on phones */
.site-menu { display: flex; align-items: center; gap: .75rem; }
.nav-burger { display: none; }
@media (max-width: 800px) {
  .site-header .wrap { position: relative; flex-wrap: nowrap; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 42px; padding: 0 11px; cursor: pointer;
    background: none; border: 2px solid var(--navy); border-radius: 10px; flex: none;
  }
  .nav-burger span { display: block; height: 3px; width: 100%; background: var(--navy);
    border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
  .menu-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .menu-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-menu {
    display: none; position: absolute; top: calc(100% + 4px); right: clamp(16px, 4vw, 32px);
    z-index: 80; min-width: 230px; padding: .5rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .28);
    flex-direction: column; align-items: stretch; gap: .3rem;
  }
  .menu-open .site-menu { display: flex; }
  .site-menu .main-nav ul { flex-direction: column; gap: .15rem; }
  .site-menu .main-nav a { display: block; padding: .65rem .8rem; }
  .site-menu .theme-toggle { width: 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .7rem 1.15rem; border-radius: 10px; text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.hero .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.hero-art img { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 660/857; object-fit: cover; }
.hero-art img:nth-child(2) { transform: translateY(-14px); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(2rem, 5vw, 3.2rem) 0; }
.section-head { margin-bottom: 1.4rem; }
.section-head p { color: var(--muted); margin: .25rem 0 0; max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 800; color: var(--navy); margin: 0 0 .3rem; }

.alt-bg { background: var(--cream-2); }

/* ---------- Updates feed ---------- */
.updates { display: grid; gap: 1rem; }
.update {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow);
}
.update time { display: inline-block; font-size: .82rem; font-weight: 700;
  color: var(--gold-ink); background: var(--gold-tint); padding: .15rem .6rem; border-radius: 999px; }
.update h3 { margin: .55rem 0 .4rem; font-size: 1.25rem; }
.update p:last-child { margin-bottom: 0; }
.update a { font-weight: 600; }

/* ---------- Book grid ---------- */
.genre-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.genre-nav a {
  display: inline-block; padding: .45rem .8rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.genre-nav a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.genre { padding-top: 1.5rem; scroll-margin-top: 84px; }
.genre > .genre-blurb { color: var(--muted); margin: -.2rem 0 1.2rem; max-width: 60ch; }

.book-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.book {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.book .cover-wrap { position: relative; background: var(--cream-2); }
.book .cover-wrap img { width: 100%; aspect-ratio: 660/857; object-fit: cover; }
.book-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.book h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.book .tagline { font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; flex: 1; }
.book .ages { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 .8rem; }

.badge {
  position: absolute; top: .6rem; left: .6rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  padding: .22rem .55rem; border-radius: 999px; text-transform: uppercase;
}
.badge-live { background: #12633C; color: #fff; }
.badge-free { background: var(--navy); color: #fff; }

.book .btn { width: 100%; justify-content: center; padding: .6rem 1rem; font-size: .95rem; }
.book .soon {
  display: inline-flex; width: 100%; justify-content: center; align-items: center; gap: .4rem;
  padding: .6rem 1rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
  background: var(--cream-2); color: var(--gold-ink); border: 1px dashed #C9B27A;
}

/* ---------- Feedback / states ---------- */
.state { color: var(--muted); padding: 1rem 0; }
.state.error { color: #8A1F1F; }

/* ---------- Catalog tabs ---------- */
.tabs { display: flex; gap: .5rem; margin: 0 0 1.6rem; border-bottom: 2px solid var(--line); }
.tab-btn {
  font: inherit; font-weight: 800; cursor: pointer; background: none; border: none;
  color: var(--muted); padding: .7rem 1.1rem; border-radius: 10px 10px 0 0;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn:hover { color: var(--ink); background: var(--cream-2); }
.tab-btn[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Myths view: sections + sticky map ---------- */
.myths-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.map-panel { position: sticky; top: 88px; }
.map-panel .map-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.map-panel h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.map-panel svg { width: 100%; height: auto; display: block; }
.map-region { fill: var(--cream-2); stroke: var(--muted); stroke-width: 1.2; cursor: pointer;
  transition: fill .15s ease; }
.map-region:hover { fill: var(--gold-tint); }
g.map-hit { cursor: pointer; }
g.map-hit:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
g.map-hit.active .map-region { fill: var(--gold); stroke: var(--navy); stroke-width: 1.6; }
.map-legend { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .3rem; }
.map-legend button {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: .5rem; text-align: left;
  background: none; border: none; color: var(--ink); padding: .4rem .5rem; border-radius: 8px;
}
.map-legend button:hover { background: var(--cream-2); }
.map-legend button.active { background: var(--navy); color: #fff; }
.map-legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }

/* Luciano sticker that "teleports" onto the active continent */
.map-luciano { pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.map-luciano.show { opacity: 1; }
.map-luciano .pop { transform-box: fill-box; transform-origin: 50% 100%; }
.map-luciano.popping .pop { animation: lucianoPop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes lucianoPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .map-luciano.popping .pop { animation: none; }
}

.region-section { scroll-margin-top: 90px; padding: 1.4rem 0 .6rem; }
.region-section > h2 { font-size: 1.6rem; margin: 0 0 .2rem; }
.region-section > .region-blurb { color: var(--muted); margin: 0 0 1rem; max-width: 58ch; }
.sub-sep { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 .9rem; }
.sub-sep h3 { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy); margin: 0; white-space: nowrap; }
.sub-sep::before, .sub-sep::after { content: ""; height: 2px; background: var(--line); flex: 1; }
.sub-sep::before { max-width: 28px; }

@media (max-width: 900px) {
  .myths-layout { grid-template-columns: 1fr; }
  .map-panel { position: static; order: -1; }
  .map-panel .map-card { max-width: 420px; }
}

/* Smaller book cards on phones — two across instead of one huge column */
@media (max-width: 700px) {
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .book h3 { font-size: .92rem; }
  .book .tagline { font-size: .8rem; }
  .book .ages { font-size: .72rem; margin-bottom: .6rem; }
  .book-body { padding: .7rem .75rem .9rem; }
  .book .btn, .book .soon { font-size: .82rem; padding: .5rem .55rem; }
  .badge { font-size: .64rem; padding: .18rem .45rem; }
}

/* Floating mini-map (phones only) — follows you down the myths list */
.map-float {
  position: fixed; right: .75rem; bottom: .9rem; z-index: 70;
  width: min(46vw, 200px); padding: .45rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .3); display: none;
}
.map-float.on { display: block; }
.map-float svg { width: 100%; height: auto; display: block; }
.map-float-close {
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px;
  border: none; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.map-fab {
  position: fixed; right: .75rem; bottom: .9rem; z-index: 70;
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .3); display: none;
  align-items: center; justify-content: center;
}
.map-fab.on { display: flex; }
@media (min-width: 901px) { .map-float, .map-fab { display: none !important; } }

/* ---------- Book detail page ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.detail-cover { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.detail-body h1 { margin: .1rem 0 .4rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.detail-body .tagline { font-size: 1.15rem; color: var(--muted); margin: 0 0 .6rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.detail-meta li { font-size: .82rem; font-weight: 700; color: var(--gold-ink);
  background: var(--gold-tint); padding: .2rem .7rem; border-radius: 999px; }
.detail-desc p { max-width: 62ch; }
.back-link { display: inline-block; margin-bottom: 1.2rem; font-weight: 600; }
.previews-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.previews-row img { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  background: #fff; width: 100%; height: auto; }

/* Character pairs: coloring page + its matching story page, shown like a book spread */
.previews-pairs { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.prev-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.6vw, 1rem);
  margin: 0; width: 100%; max-width: 760px; justify-self: center; }
.prev-pair img { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  background: #fff; width: 100%; height: auto; }
/* previews display-only: no long-press save sheet (iOS/Android), no right-click save, no drag-out */
.previews-row img, .prev-pair img { pointer-events: none; -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
@media (max-width: 700px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cover { max-width: 300px; }
  .previews-row { grid-template-columns: 1fr 1fr; }
  .previews-row img:last-child { grid-column: span 2; max-width: 60%; justify-self: center; }
}

/* ---------- Signup box ---------- */
.signup-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.2rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: center;
}
.signup-box h2 { margin: 0 0 .4rem; }
.signup-box .fineprint { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.signup-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup-form input[type="email"] {
  flex: 1 1 220px; font: inherit; padding: .7rem .9rem; border-radius: 10px;
  border: 2px solid var(--line); background: var(--cream); color: var(--ink); min-width: 0;
}
.signup-form input[type="email"]:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.signup-msg { font-weight: 600; margin-top: .6rem; }
.signup-msg.ok { color: #12633C; }
.signup-msg.err { color: #8A1F1F; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* wishlist / availability-alert buttons */
.wish-btn {
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  margin-top: .55rem; width: 100%; padding: .45rem .5rem; border-radius: 999px;
  border: 2px solid var(--line); background: transparent; color: var(--muted);
}
.wish-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.wish-btn.on { background: var(--gold-tint); border-color: var(--gold); color: var(--gold-ink); }
.wish-btn.wish-big { width: auto; font-size: .95rem; padding: .55rem 1.1rem; margin-top: 0; }

/* profile: alerts & wishlist rows */
.alert-list { list-style: none; margin: .8rem 0 0; padding: 0; }
.alert-list li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.alert-list li:last-child { border-bottom: none; }
.alert-list img { width: 44px; height: 57px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.alert-list .t { flex: 1; min-width: 0; }
.alert-list .st { font-size: .78rem; color: var(--muted); display: block; }
.wish-remove { font: inherit; cursor: pointer; border: none; background: var(--cream-2); color: var(--ink);
  width: 30px; height: 30px; border-radius: 50%; flex: none; font-size: 1rem; line-height: 1; }
.wish-remove:hover { background: #E8D5D5; color: #8A1F1F; }

/* Coloring Club */
.club-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem; max-width: 640px; margin-top: 1.6rem; }
.club-plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.club-plan-best { border: 2px solid var(--gold); position: relative; }
.club-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--gold); color: #22262F; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; padding: .2rem .7rem; border-radius: 999px; margin: 0; }
.club-plan h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.club-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 0 0 .6rem; }
.club-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.club-plan ul { margin: 0 0 1rem; padding-left: 1.1rem; flex: 1; }
.club-plan li { margin: .25rem 0; }
.club-plan .btn { justify-content: center; }
.club-steps { max-width: 62ch; padding-left: 1.2rem; }
.club-steps li { margin: .6rem 0; }

/* member vault */
.today-pages { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 460px; margin: .8rem 0 1rem; }
.today-pages a img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); background: #fff; }
.today-pages .dl { display: block; text-align: center; font-size: .82rem; font-weight: 700; margin-top: .3rem; }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-top: .8rem; }
.vault-grid a img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* account forms (profile page: login / set password) */
.account-form { display: grid; gap: .9rem; max-width: 420px; }
.account-form label { display: grid; gap: .3rem; font-weight: 600; }
.account-form input {
  font: inherit; padding: .7rem .9rem; border-radius: 10px;
  border: 2px solid var(--line); background: var(--cream); color: var(--ink); min-width: 0;
}
.account-form input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.account-form p { margin: 0; }
@media (max-width: 760px) { .signup-box { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .signup-msg.ok { color: #4CC98A; } .signup-msg.err { color: #F09090; } }
:root[data-theme="dark"] .signup-msg.ok { color: #4CC98A; }
:root[data-theme="dark"] .signup-msg.err { color: #F09090; }
:root[data-theme="light"] .signup-msg.ok { color: #12633C; }
:root[data-theme="light"] .signup-msg.err { color: #8A1F1F; }

/* card link (cover+title -> detail page) */
.book a.card-link { color: inherit; text-decoration: none; }
.book a.card-link:hover h3 { color: var(--navy); text-decoration: underline; }
.book .free-line { display: inline-flex; width: 100%; justify-content: center; text-align: center;
  padding: .6rem .8rem; border-radius: 10px; font-weight: 700; font-size: .9rem;
  background: var(--gold-tint); color: var(--gold-ink); text-decoration: none; }
.book .free-line:hover { background: var(--gold); color: #22262F; }

/* ---------- Prose (about) ---------- */
.prose { max-width: 66ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #EAF0FB; margin-top: 2rem; padding: 2.4rem 0; }
.site-footer a { color: #EAF0FB; text-decoration: underline; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .5rem; }
.site-footer .social { display: flex; gap: 1rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.site-footer small { color: #C4D2EC; }

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #14171C; --cream-2: #1A1E25; --card: #1E232B;
    --ink: #EAEDF2; --muted: #A7B0BE; --navy: #7FA8E8; --navy-hover: #A9C4F0;
    --line: #2C333D; --gold: #E6B84D; --gold-tint: #3A3316; --gold-ink: #F2D98A;
    --focus-ring: #9DBEF0; --focus: #EAEDF2;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
  }
  .btn-primary { background: #2E4C82; color: #fff; }
  .btn-primary:hover { background: #3B5C97; color: #fff; }
  .btn-outline { color: var(--navy); border-color: var(--navy); }
  .btn-outline:hover { background: #2E4C82; color: #fff; border-color: #2E4C82; }
  .main-nav a[aria-current="page"] { background: #2E4C82; color: #fff; }
  .genre-nav a:hover { background: #2E4C82; color: #fff; border-color: #2E4C82; }
  .badge-live { background: #1E9160; color: #06130C; }
  .badge-free { background: #2E4C82; color: #fff; }
  .map-float-close, .map-fab { background: #2E4C82; }
  .book .soon { border-color: #4A4326; }
  .site-footer { background: #10141B; color: #D3DBE8; }
  .site-footer small { color: #9AA6B8; }
}

/* manual theme toggle overrides (data-theme wins over media query) */
:root[data-theme="dark"] {
  --cream: #14171C; --cream-2: #1A1E25; --card: #1E232B;
  --ink: #EAEDF2; --muted: #A7B0BE; --navy: #7FA8E8; --navy-hover: #A9C4F0;
  --line: #2C333D; --gold-tint: #3A3316; --gold-ink: #F2D98A;
  --focus-ring: #9DBEF0;
}
:root[data-theme="light"] {
  --cream: #FBF6EA; --cream-2: #F5EEDC; --card: #FFFFFF;
  --ink: #22262F; --muted: #565F6B; --navy: #22417A; --navy-hover: #1A3260;
  --line: #E4DBC4; --gold-tint: #F3E3B8; --gold-ink: #5A4300; --focus-ring: #1B60C9;
}
