/* Brandon Ellis Writes — site styles
   Palette: parchment / ink / gold (from the Lost Atlas direction)
   Type: Oswald (display) + Source Sans 3 (body) */

:root {
  --parchment: #efe5cf;
  --parchment-deep: #e6d9bb;
  --cream: #f7efdc;
  --ink: #2b2117;
  --ink-soft: #4a3822;
  --muted: #6b5636;
  --muted-2: #8a7a5a;
  --gold: #8a5a1c;
  --gold-dark: #5e3c0f;
  --gold-light: #d8a44a;
  --line: rgba(43, 33, 23, 0.18);
  --line-strong: rgba(43, 33, 23, 0.35);
  --on-dark: #efe5cf;
  --on-dark-soft: #cbbfa8;
  --on-dark-muted: #8f887a;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --max: 1440px;
  --pad: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--parchment);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4, .display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.kicker { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); }
.small { font-size: 14px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--body);
  line-height: 1.2;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--cream); }
.btn-gold:hover { background: var(--gold-dark); color: var(--cream); }
.btn-outline { border-color: var(--ink-soft); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(43,33,23,0.06); color: var(--ink); }
.btn-light { background: var(--gold-light); color: #0b0c10; }
.btn-light:hover { background: #e8b95c; color: #0b0c10; }
.btn-sm { padding: 9px 14px; font-size: 13px; letter-spacing: 0.08em; }
.btn-block { display: block; width: 100%; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--parchment); position: relative; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a { color: var(--ink-soft); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav-links .btn { padding: 12px 22px; font-size: 14px; border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink-soft); border-radius: 2px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 88px);
  background: radial-gradient(ellipse 70% 60% at 75% 40%, rgba(138,90,28,0.16) 0%, rgba(239,229,207,0) 60%);
}
.hero h1 { font-size: clamp(44px, 5.8vw, 84px); font-weight: 700; line-height: 0.98; }
.hero .stack { gap: 28px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cover-trio { position: relative; height: 520px; }
.cover-trio img { position: absolute; border-radius: 4px; border: 1px solid var(--line-strong); box-shadow: 0 24px 50px rgba(43,33,23,0.28); }
.cover-trio .c1 { left: 8%; top: 70px; width: 45%; transform: rotate(-8deg); }
.cover-trio .c2 { left: 60%; top: 90px; width: 45%; transform: rotate(7deg); }
.cover-trio .c3 { left: 32%; top: 20px; width: 50%; z-index: 2; }

/* Free book band */
.band-dark { background: var(--ink); color: var(--on-dark); }
.free-band { margin: 0 var(--pad); max-width: calc(var(--max) - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.free-band .inner {
  margin: 0 var(--pad); padding: 40px 48px; background: var(--ink); color: var(--on-dark);
  display: grid; grid-template-columns: 200px 1fr 420px; gap: 40px; align-items: center;
}
.free-band img { width: 200px; box-shadow: 0 24px 40px rgba(0,0,0,0.55); }
.free-band h2 { color: #fff; font-size: clamp(30px, 3vw, 44px); font-weight: 700; line-height: 1; }
.free-band .kicker { color: var(--gold-light); }
.free-band p { color: var(--on-dark-soft); font-size: 18px; }
.free-band p.fine { color: var(--on-dark-muted); font-size: 16px; }
.free-band .small { color: #6b6558; text-align: center; font-size: 13px; }

/* Forms */
.field {
  width: 100%; padding: 16px 18px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--cream); border: 1px solid rgba(43,33,23,0.4); border-radius: 2px;
}
.field:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.band-dark .field { background: rgba(255,255,255,0.06); border-color: rgba(239,229,207,0.25); color: #fff; }
.band-dark .field::placeholder { color: var(--on-dark-muted); }
textarea.field { min-height: 160px; resize: vertical; }
label { display: block; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.inline-form { display: flex; gap: 12px; align-items: stretch; }
.inline-form .field { flex: 1 1 auto; min-width: 0; }

/* Sections */
.section { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section h2 { font-size: clamp(30px, 3vw, 40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--cream); border: 1px solid rgba(43,33,23,0.22); }
.card h3 { font-size: 28px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card .more { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: auto; }
.band-deep { background: var(--parchment-deep); }
.feature { padding: 32px; border: 1px solid rgba(138,90,28,0.5); background: linear-gradient(180deg, rgba(247,239,220,0.9), rgba(247,239,220,0.4)); display: flex; flex-direction: column; gap: 16px; }
.feature h3 { font-size: 26px; }
.feature p { color: var(--ink-soft); font-size: 16px; }
.feature svg { width: 28px; height: 28px; }
.soon { display: inline-block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line-strong); padding: 4px 8px; align-self: flex-start; }

/* Atlas preview */
.atlas-preview {
  position: relative; height: 420px; border: 1px solid var(--line-strong); overflow: hidden;
  background-color: #e0d1ad;
  background-image: linear-gradient(rgba(43,33,23,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(43,33,23,0.12) 1px, transparent 1px);
  background-size: 80px 80px;
}
.pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--parchment); box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(138,90,28,0.45); }
.pin-label { position: absolute; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

/* Newsletter (bottom) */
.newsletter .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.newsletter h2 { font-size: clamp(32px, 3.2vw, 44px); }
.newsletter .mini-cover { width: 144px; border: 1px solid var(--line-strong); box-shadow: 0 10px 20px rgba(43,33,23,0.25); flex: 0 0 auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { width: 220px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer .legal { width: 100%; font-size: 13px; color: var(--muted-2); margin-top: 12px; }

/* Page header */
.page-head .wrap { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(44px, 5vw, 72px); font-weight: 700; line-height: 1; }
.page-head .lede { max-width: 640px; margin-top: 18px; }
.page-head .kicker { margin-bottom: 18px; }

/* Books page */
.books-head .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.free-panel { display: flex; align-items: center; gap: 24px; padding: 28px; background: var(--ink); color: var(--on-dark); }
.free-panel img { width: 150px; box-shadow: 0 16px 30px rgba(0,0,0,0.5); flex: 0 0 auto; }
.free-panel h2 { color: #fff; font-size: 28px; }
.free-panel p { color: var(--on-dark-soft); font-size: 15px; }
.free-panel .kicker { color: var(--gold-light); }
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.chip { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--ink-soft); color: var(--ink); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.chip:hover { background: rgba(43,33,23,0.06); color: var(--ink); }
.collection-head { padding-top: 56px; padding-bottom: 8px; }
.collection-head h2 { font-size: clamp(32px, 3.4vw, 44px); }
.collection-head p { font-size: 19px; color: var(--ink-soft); margin-top: 6px; }
.series { padding: 44px 0; border-top: 1px solid var(--line); }
.series-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 24px; }
.series-head h3 { font-size: clamp(26px, 2.5vw, 34px); }
.series-head p { font-size: 18px; color: var(--ink-soft); max-width: 760px; margin-top: 8px; }
.series-head .credit { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 190px)); gap: 28px; }
.book-card { display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
.book-card .art { height: 303px; display: flex; align-items: flex-end; justify-content: center; }
.book-card .art img { width: 100%; border: 1px solid var(--line-strong); box-shadow: 0 14px 30px rgba(43,33,23,0.25); }
.book-card .art img.box { width: auto; max-width: 100%; max-height: 303px; border: 0; box-shadow: none; filter: drop-shadow(0 14px 22px rgba(43,33,23,0.35)); }
.book-card .tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.book-card h4 { font-size: 18px; line-height: 1.1; }
.book-card h4 a { color: var(--ink); }
.book-card h4 a:hover { color: var(--gold); }
.book-card .btn { align-self: flex-start; margin-top: auto; }

/* Book detail */
.book-detail .wrap { display: grid; grid-template-columns: 380px 1fr; gap: 56px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.book-detail .art img { border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(43,33,23,0.3); }
.book-detail .art img.box { border: 0; box-shadow: none; filter: drop-shadow(0 24px 40px rgba(43,33,23,0.35)); }
.book-detail h1 { font-size: clamp(36px, 4vw, 56px); font-weight: 700; line-height: 1; }
.blurb { font-size: 18px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 1em; }
.blurb p { margin: 0; }
.series-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.series-strip a { width: 110px; }
.series-strip img { border: 1px solid var(--line-strong); }
.series-strip a.current img { outline: 3px solid var(--gold); }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 12px; background: var(--cream); border: 1px solid rgba(43,33,23,0.22); overflow: hidden; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 24px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--ink-soft); font-size: 16px; }
.post-card .meta { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post { max-width: 760px; margin: 0 auto; padding-top: 56px; padding-bottom: 72px; }
.post .hero-img { margin: 28px 0 8px; border: 1px solid var(--line-strong); }
.post-body { font-size: 19px; color: var(--ink-soft); }
.post-body p { margin: 0 0 1.2em; }
.post-body h2, .post-body h3 { margin: 2em 0 0.6em; color: var(--ink); }
.post-body h2 { font-size: 32px; }
.post-body h3 { font-size: 24px; }
.post-body img { margin: 1.5em 0; border: 1px solid var(--line-strong); }
.post-body blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); margin-top: 48px; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.signoff { display: flex; align-items: center; gap: 20px; margin-top: 48px; }
.signoff img { width: 200px; }

/* About */
.about-hero { position: relative; background: var(--parchment); }
.about-hero .banner { width: 100%; height: auto; display: block; }
.about-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; padding-top: 40px; }
.about-hero h1 { font-size: clamp(44px, 5vw, 72px); font-weight: 700; line-height: 1; }
.about-hero .portrait { width: 360px; border: 6px solid var(--parchment); box-shadow: 0 30px 60px rgba(0,0,0,0.35); margin-top: -200px; justify-self: end; }
.about-body .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 64px; padding-top: 56px; padding-bottom: 72px; }
.about-text { font-size: 19px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 1.2em; }
.about-text strong { color: var(--ink); }
.aside { display: flex; flex-direction: column; gap: 24px; }
.aside .box { padding: 24px; background: var(--cream); border: 1px solid rgba(43,33,23,0.22); display: flex; flex-direction: column; gap: 12px; }
.aside h3 { font-size: 22px; }
.aside ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--ink-soft); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.contact form { display: flex; flex-direction: column; gap: 20px; }
.notice { padding: 20px 24px; background: var(--cream); border: 1px solid rgba(43,33,23,0.22); color: var(--ink-soft); }

/* Responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free-band .inner { grid-template-columns: 160px 1fr; }
  .free-band .inner > :last-child { grid-column: 1 / -1; }
  .free-band img { width: 160px; }
  .book-detail .wrap { grid-template-columns: 300px 1fr; gap: 40px; }
  .about-hero .wrap { grid-template-columns: 1fr 280px; }
  .about-hero .portrait { width: 280px; margin-top: -140px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--parchment); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .cover-trio { height: 360px; max-width: 520px; margin: 0 auto; width: 100%; }
  .cover-trio .c1 { top: 40px; } .cover-trio .c2 { top: 56px; } .cover-trio .c3 { top: 0; }
  .free-band .inner { grid-template-columns: 1fr; padding: 28px; margin: 0; }
  .free-band .inner > :last-child { grid-column: auto; }
  .free-band { margin: 0 var(--pad); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .newsletter .wrap { grid-template-columns: 1fr; gap: 24px; }
  .books-head .wrap { grid-template-columns: 1fr; }
  .series-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
  .book-card { min-height: 0; }
  .book-card .art { height: auto; }
  .book-card .art img.box { max-height: none; }
  .book-detail .wrap { grid-template-columns: 1fr; }
  .book-detail .art { max-width: 320px; }
  .post-list { grid-template-columns: 1fr; }
  .about-hero .wrap { grid-template-columns: 1fr; padding-top: 0; }
  .about-hero .banner { height: 240px; object-fit: cover; object-position: center 35%; }
  .about-hero .portrait { width: 180px; margin-top: -90px; justify-self: end; order: -1; }
  .about-body .wrap { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .atlas-preview { height: 300px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}

.aside .box-dark { background: var(--ink); border: 0; color: var(--on-dark); }

/* Page banners (wide Midjourney art) */
.page-banner { position: relative; height: clamp(220px, 28vw, 420px); overflow: hidden; background: #0b0c10; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(239,229,207,0) 0%, var(--parchment) 100%); }
.page-banner.no-fade::after { display: none; }
.band-art { position: relative; overflow: hidden; }
.band-art > .art { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.28; }
.band-art > .wrap { position: relative; }

/* ===== Expedition Map ===== */
.map-ui { padding-bottom: 72px; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 8px 0 20px; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.map-tab { font: inherit; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 18px; border: 1.5px solid var(--ink-soft); background: transparent; color: var(--ink); cursor: pointer; border-radius: 2px; }
.map-tab.is-active { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.dig-progress { min-width: 280px; flex: 1 1 320px; max-width: 520px; }
.dig-text { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dig-text strong { color: var(--gold); font-weight: 600; }
.dig-bar { height: 6px; background: rgba(43,33,23,0.15); border-radius: 3px; overflow: hidden; }
.dig-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 0.5s ease; }
.map-stage { position: relative; display: block; }
.map-panel { border: 1px solid var(--line-strong); background: #e6d9bb; overflow: hidden; }
.map-panel[hidden] { display: none; }
.worldmap { width: 100%; height: auto; display: block; background: #e6d9bb; }
.worldmap .sphere { fill: #e4d5b4; stroke: none; }
.worldmap .sphere-edge { fill: none; stroke: #5a4630; stroke-width: 1.2; }
.worldmap .graticule { fill: none; stroke: rgba(43,33,23,0.10); stroke-width: 0.6; }
.worldmap .rhumbs { fill: none; stroke: #6b5636; stroke-width: 0.5; opacity: 0.16; }
.worldmap .waterline { fill: none; stroke: #6b5636; stroke-linejoin: round; }
.worldmap .waterline.w1 { stroke-width: 5; opacity: 0.16; }
.worldmap .waterline.w2 { stroke-width: 11; opacity: 0.09; }
.worldmap .waterline.w3 { stroke-width: 18; opacity: 0.05; }
.worldmap .land-shadow { fill: none; stroke: #4a3620; stroke-width: 1.4; opacity: 0.45; }
.worldmap .land { fill: #d9c69b; stroke: #3d2c18; stroke-width: 0.9; stroke-linejoin: round; }
.worldmap .land-hatch { fill: none; stroke: #6b5636; stroke-width: 3; stroke-dasharray: 0.8 2.2; opacity: 0.35; }
.worldmap .grain { pointer-events: none; opacity: 0.22; mix-blend-mode: multiply; }
.worldmap .stain { fill: none; stroke: #7a5a30; stroke-width: 2.5; opacity: 0.10; pointer-events: none; }
.worldmap .stain + .stain { stroke-width: 1; opacity: 0.08; }
.worldmap .ocean { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 15px; letter-spacing: 0.34em; text-transform: uppercase; fill: #5a4630; opacity: 0.55; text-anchor: middle; pointer-events: none; }
.worldmap .rose { pointer-events: none; }
.worldmap .rose-ring { fill: none; stroke: #4a3620; stroke-width: 0.9; opacity: 0.7; }
.worldmap .rose-ring.thin { stroke-width: 0.5; }
.worldmap .rose-star { fill: #e4d5b4; stroke: #3d2c18; stroke-width: 0.9; }
.worldmap .rose-star.minor { fill: #b89a62; stroke: #3d2c18; stroke-width: 0.6; }
.worldmap .rose-half { fill: #3d2c18; }
.worldmap .rose-n { font-family: var(--display); font-size: 14px; fill: #3d2c18; text-anchor: middle; }
.worldmap .ornament { fill: #4a3620; stroke: #4a3620; stroke-width: 1; opacity: 0.55; pointer-events: none; stroke-linecap: round; }
.worldmap .cartouche rect { fill: #e9dcbd; stroke: #3d2c18; stroke-width: 1.2; }
.worldmap .cartouche rect + rect { fill: none; stroke-width: 0.5; }
.worldmap .cartouche text { text-anchor: middle; fill: #3d2c18; }
.worldmap .c-title { font-family: var(--display); font-size: 19px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.worldmap .c-sub { font-family: Georgia, serif; font-style: italic; font-size: 11px; letter-spacing: 0.08em; }
.worldmap .c-rule { stroke: #3d2c18; stroke-width: 0.6; }
.worldmap .c-line { font-family: var(--display); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.worldmap .scale path { stroke: #3d2c18; stroke-width: 0.9; fill: none; }
.worldmap .scale rect { fill: #3d2c18; }
.worldmap .scale text { font-family: var(--display); font-size: 9px; letter-spacing: 0.1em; fill: #3d2c18; text-anchor: middle; }
.worldmap .scale text:first-of-type { text-anchor: start; }
.worldmap .scale text:last-of-type { text-anchor: end; }
.worldmap .neat { fill: none; stroke: #3d2c18; stroke-width: 1.4; pointer-events: none; }
.worldmap .neat.thin { stroke-width: 0.5; }
/* routes */
.route[hidden] { display: none; }
.route .trail-under { fill: none; stroke: #e4d5b4; stroke-width: 6; stroke-linecap: round; opacity: 0.9; }
.route .trail { fill: none; stroke: #9a1d1d; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 6 5; }
.route .trail.gold { stroke: var(--gold-light); stroke-width: 2; stroke-dasharray: 4 6; filter: url(#star-glow); }
.route .launch { fill: none; stroke: #9a1d1d; stroke-width: 1.6; stroke-dasharray: 2 5; opacity: 0; transition: opacity 0.6s; }
.route .launch-star { cursor: pointer; opacity: 0; transition: opacity 0.6s; }
.route .launch-star path { fill: #9a1d1d; }
.route .launch-star text { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; fill: #9a1d1d; paint-order: stroke; stroke: #e6d9bb; stroke-width: 3px; }
.route .lone { fill: none; stroke: #9a1d1d; stroke-width: 1.6; stroke-dasharray: 3 4; animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.route .lone.gold { stroke: var(--gold-light); }
.route .vessel { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.world-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 4px 0 18px; }
.world-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.world-chip { font: inherit; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid rgba(43,33,23,0.4); }
.world-chip:hover, .world-chip:focus-visible { border-color: var(--ink); background: rgba(43,33,23,0.06); outline: none; }
.world-chip.is-active { background: var(--gold); color: #2b2117; border-color: var(--gold); }
.world-help { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 720px; }
.route-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: -6px 0 16px; }
.route-how { display: flex; flex-direction: column; gap: 4px; }
.route-help { font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 720px; margin: 0; }
.route-status { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0; min-height: 1.5em; max-width: 720px; }
.route-status.live { color: var(--ink-soft); }
.route-status strong { color: #9a1d1d; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.route-status em { font-style: normal; color: #9a1d1d; font-weight: 600; }
.dig-save { font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 8px; max-width: 520px; }
.page-head .lede-sub { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; margin-top: 14px; }
.page-head .no-spoilers { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 16px; }
/* the flag on the first stop of a series */
.start-flag { pointer-events: none; }
.start-flag[hidden] { display: none; }
.start-flag .sf-text { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; fill: #9a1d1d; text-anchor: middle; paint-order: stroke; stroke: #e6d9bb; stroke-width: 3px; stroke-linejoin: round; }
.start-flag .sf-arrow { fill: #9a1d1d; }
.start-flag .start-flag-inner { animation: bob 1.6s ease-in-out infinite; }
.start-flag.gold .sf-text { fill: var(--gold-light); stroke: #0b0c10; }
.start-flag.gold .sf-arrow { fill: var(--gold-light); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.route-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.route-chip { font: inherit; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 11px; border: 1px solid rgba(43,33,23,0.35); background: transparent; color: var(--ink-soft); cursor: pointer; border-radius: 2px; }
.route-chip:hover { background: rgba(43,33,23,0.06); }
.route-chip.is-active { background: #9a1d1d; border-color: #9a1d1d; color: #fff; }
.route-chip.clear { border-style: dashed; }
/* dig sites (stamps) */
.site { cursor: pointer; transition: opacity 0.3s; }
/* a nudged pin is tethered to the spot it really sits on */
.leaders { pointer-events: none; }
.leader-line { stroke: #6b5636; stroke-width: calc(1px * var(--lblscale, 1)); stroke-dasharray: calc(3px * var(--lblscale, 1)) calc(3px * var(--lblscale, 1)); opacity: 0.55; }
.leader-dot { fill: none; stroke: #6b5636; stroke-width: calc(1px * var(--lblscale, 1)); opacity: 0.7; }
.leader.is-dim { opacity: 0.25; }
.site.is-dim { opacity: 0.32; }
.site .hit { fill: transparent; }
.site .halo { fill: var(--gold); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.site .stamp { fill: none; stroke: #3d2c18; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.3s; pointer-events: none; }
.site .stamp path { fill: none; }
.site.buried .stamp { opacity: 0.5; stroke-dasharray: 2.5 1.5; }
.site.uncovered .stamp, .site.cleared .stamp { opacity: 1; stroke-dasharray: none; }
.site.cleared .stamp { stroke: #3d2c18; }
.site.cleared .stamp path:first-child { fill: rgba(216,164,74,0.55); }
.site.cleared .halo { opacity: 0.35; filter: url(#pin-glow); }
.site .label { font-family: var(--display); font-size: calc(13px * var(--lblscale, 1)); letter-spacing: 0.1em; text-transform: uppercase; fill: var(--ink-soft); pointer-events: auto; cursor: pointer; paint-order: stroke; stroke: #e4d5b4; stroke-width: calc(3px * var(--lblscale, 1)); stroke-linejoin: round; }
.site .label.left { text-anchor: end; }
.site .label { transition: opacity 0.15s; }
.site.buried .label { opacity: 0.75; }
.map-panel .site .label.label-off { opacity: 0; pointer-events: none; }
.map-panel .site:hover .label.label-off, .map-panel .site:focus .label.label-off,
.map-panel .site.is-open .label.label-off { opacity: 1; }
.site:hover .stamp, .site:focus .stamp, .site.is-open .stamp { opacity: 1; stroke: #000; stroke-dasharray: none; }
.site:hover .halo, .site.is-open .halo { opacity: 0.25; }
.site:focus { outline: none; }
/* star chart */
.starmap { width: 100%; height: auto; display: block; background: #0b0c10; }
.starmap .starfield circle { fill: #efe5cf; }
.starmap .sol .ray { stroke: #f2c76a; stroke-width: 1.4; opacity: 0.8; stroke-linecap: round; }
.starmap .orbit { fill: none; stroke: var(--gold-light); stroke-width: 0.7; stroke-dasharray: 3 5; opacity: 0.4; }
.starmap .orbit.earth-orbit { stroke-dasharray: none; opacity: 0.25; }
.starmap .helio-fill { fill: #f2c76a; opacity: 0.045; }
.starmap .helio { fill: none; stroke: var(--gold-light); stroke-width: 1.2; stroke-dasharray: 1 6; stroke-linecap: round; opacity: 0.55; }
.starmap .earth-mark circle { fill: #7fb6ff; stroke: #fff; stroke-width: 1; }
.starmap .earth-mark text { font-family: var(--display); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; fill: rgba(239,229,207,0.7); text-anchor: middle; }
.starmap .chart-label { font-family: var(--display); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; fill: rgba(239,229,207,0.45); }
.starmap .chart-label.small { font-size: 9px; letter-spacing: 0.18em; }
.starmap .const { fill: none; stroke: var(--gold-light); stroke-width: 0.8; opacity: 0.22; transition: opacity 0.4s; }
.starmap .const.is-active { opacity: 0; }
.star-site { cursor: pointer; transition: opacity 0.3s; }
.star-site.is-dim { opacity: 0.3; }
.star-site .hit { fill: transparent; }
.star-site .glow { fill: var(--gold-light); opacity: 0; transition: opacity 0.3s; }
.star-site .disc { transition: filter 0.4s; }
.star-site .term { pointer-events: none; }
.star-site .pring { fill: none; stroke: rgba(239,229,207,0.55); stroke-width: 1.6; }
.star-site .pring.back { opacity: 0.5; }
.star-site.buried .disc, .star-site.buried .term { filter: grayscale(0.55) brightness(0.72); }
.star-site.buried .star-name { opacity: 0.6; }
.star-site.cleared .glow { opacity: 0.5; filter: url(#star-glow); }
.star-site.uncovered .glow { opacity: 0.25; filter: url(#star-glow); }
.star-site .star-name { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; fill: rgba(239,229,207,0.85); text-anchor: middle; pointer-events: auto; cursor: pointer; }
.star-site:hover .star-name, .star-site.is-open .star-name { fill: #fff; }
.star-site:hover .glow { opacity: 0.35; }
.star-site.is-open .disc { stroke: #fff; stroke-width: 2; }
.star-site:focus { outline: none; }
/* drawer */
.site-drawer { position: absolute; top: 14px; right: 14px; width: 370px; z-index: 8; background: var(--cream); border: 1px solid rgba(43,33,23,0.42); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100% - 28px); overflow: auto; box-shadow: 0 20px 50px rgba(24,16,6,0.38); }
.site-drawer[hidden] { display: none; }
.site-drawer h2 { font-size: 30px; }
.drawer-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.d-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.d-section p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.d-soon { font-size: 13.5px; line-height: 1.5; color: var(--muted); padding: 10px 12px; border: 1px dashed rgba(138,90,28,0.55); background: rgba(216,164,74,0.08); margin-top: -6px; }
.d-books { display: flex; flex-direction: column; gap: 12px; }
.d-book { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid rgba(43,33,23,0.18); background: rgba(255,255,255,0.35); }
.d-book.is-read { border-color: var(--gold); background: rgba(216,164,74,0.12); }
.d-cover img { width: 56px; border: 1px solid var(--line-strong); }
.d-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-series { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.d-title { font-family: var(--display); font-size: 16px; text-transform: uppercase; color: var(--ink); line-height: 1.1; }
.d-read { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: none; color: var(--ink-soft); margin: 4px 0 0; cursor: pointer; }
.d-read input { width: 16px; height: 16px; accent-color: var(--gold); }
.map-note { margin-top: 16px; }

/* ---- map: where am I, how do I get back, how do I zoom ---- */
.map-panel { position: relative; }
.map-panel[hidden] { display: none; }

/* breadcrumb above the map */
.map-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px;
  font-family: var(--display); font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.map-crumb .crumb-lead { color: var(--muted); }
.map-crumb button { font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0;
  padding: 0; color: var(--gold); cursor: pointer; border-bottom: 1px solid rgba(216,164,74,0.5); }
.map-crumb button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.map-crumb .crumb-now { color: var(--ink); font-weight: 600; }
.map-crumb .crumb-sep { color: var(--muted); opacity: 0.7; }

/* zoom-to-region row above the map */
.map-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.map-regions[hidden] { display: none; }
.map-regions .d-label { margin: 0 4px 0 0; }
.region-btn { font: inherit; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid rgba(43,33,23,0.4); }
.region-btn:hover, .region-btn:focus-visible { border-color: var(--ink); background: rgba(43,33,23,0.06); outline: none; }
.region-btn.is-active { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

/* back buttons floated on the map itself */
.map-nav { position: absolute; top: 14px; right: 14px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.map-btn { font: inherit; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  padding: 9px 15px; border-radius: 2px; cursor: pointer;
  background: rgba(240,232,213,0.94); color: #2b2117; border: 1.5px solid rgba(43,33,23,0.55);
  box-shadow: 0 3px 12px rgba(20,14,6,0.28); }
.map-btn:hover, .map-btn:focus { background: #2b2117; color: var(--parchment); border-color: #2b2117; }
.map-btn.primary { background: #8a1c1c; color: #f6ecd8; border-color: #6d1414; }
.map-btn.primary:hover, .map-btn.primary:focus { background: #2b2117; border-color: #2b2117; }
/* when the drawer is open it sits where the back buttons are, so slide them left */
.map-stage.drawer-open .map-nav { right: 398px; }

/* zoom controls */
.map-zoom { position: absolute; left: 14px; bottom: 14px; z-index: 6; display: flex; flex-direction: column; gap: 6px; }
.map-zoom button { font: inherit; font-size: 17px; line-height: 1; width: 38px; height: 38px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,232,213,0.94); color: #2b2117; border: 1.5px solid rgba(43,33,23,0.55); border-radius: 2px;
  box-shadow: 0 3px 12px rgba(20,14,6,0.28); }
.map-zoom button:hover { background: #2b2117; color: var(--parchment); border-color: #2b2117; }
.map-zoom button.reset { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; height: 32px; }
.map-zoom button[disabled] { opacity: 0.4; cursor: default; }
.map-zoom button[disabled]:hover { background: rgba(240,232,213,0.94); color: #2b2117; border-color: rgba(43,33,23,0.55); }
.map-hint { margin: 10px 0 0; font-family: var(--display); font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.map-panel.is-panning { cursor: grabbing; }
.map-panel.can-pan { cursor: grab; }
/* the cartouche and scale bar belong to the whole-map view; they balloon when you zoom */
.map-panel.is-zoomed .cartouche, .map-panel.is-zoomed .scale { opacity: 0; transition: opacity 0.2s; }
.map-panel .cartouche, .map-panel .scale { transition: opacity 0.2s; }

/* legend telling scenery apart from clickable sites */
.map-legend { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: flex; flex-direction: column; gap: 5px;
  padding: 10px 13px; border-radius: 2px; max-width: 260px;
  background: rgba(18,14,10,0.72); border: 1px solid rgba(240,232,213,0.28); }
.map-legend .lg-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.35; color: rgba(244,236,220,0.92); }
.map-legend .lg-dot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: #e8c169; border: 1.5px solid #f6ecd8; }
.map-legend .lg-ghost { flex: 0 0 auto; width: 11px; height: 11px; font-family: Georgia, serif; font-style: italic;
  font-size: 12px; line-height: 11px; text-align: center; color: rgba(244,236,220,0.55); }
.map-legend .lg-row em { font-style: italic; opacity: 0.75; }

/* real terrain names read as background, not as places you can click */


@media (max-width: 900px) {
  .site-drawer { position: static; width: auto; max-height: none; margin-top: 16px; box-shadow: none; }
  .site .label { font-size: calc(16px * var(--lblscale, 1)); }
  .map-crumb { font-size: 12.5px; }
  /* the map itself scrolls sideways here, so the controls stick to the left edge
     and stay in reach instead of sliding off with it */
  .map-panel { display: flex; flex-direction: column; }
  .map-panel[hidden] { display: none; }
  .map-panel > svg { order: 2; }
  .map-nav { position: sticky; left: 0; top: auto; right: auto; order: 1;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; max-width: 100vw; }
  .map-stage.drawer-open .map-nav { right: auto; }
  .map-zoom { position: sticky; left: 0; bottom: auto; order: 3; flex-direction: row; padding: 0 10px 10px; }
  .map-legend { position: sticky; left: 0; right: auto; bottom: auto; order: 4;
    margin: 0 10px 12px; max-width: calc(100vw - 56px); }
  .map-btn { font-size: 12px; padding: 8px 12px; }
}

/* ===== Decode the Tablet ===== */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--cream); border: 1px solid rgba(43,33,23,0.22); font-size: 16px; color: var(--ink-soft); }
.how strong { color: var(--ink); }
.how-n { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--gold); flex: 0 0 auto; }
.tablets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; align-items: start; }
.tablet-card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid rgba(43,33,23,0.25); }
.tablet-info { padding: 28px 28px 20px; display: flex; flex-direction: column; gap: 10px; }
.tablet-head { display: flex; gap: 16px; align-items: flex-start; }
.tablet-titling { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tablet-cover { flex: 0 0 104px; width: 104px; aspect-ratio: 640 / 1021; border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px rgba(20,14,6,0.3); background: rgba(43,33,23,0.06); overflow: hidden; }
.tablet-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tablet-cover.is-empty { display: flex; align-items: center; justify-content: center; text-align: center;
  border-style: dashed; border-color: rgba(43,33,23,0.35); box-shadow: none; }
.bonus-cover { width: 150px; margin: 4px 0 6px; border: 1px solid rgba(239,229,207,0.28);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
.bonus-cover img { display: block; width: 100%; height: auto; }
.tablet-cover.is-empty span { font-family: var(--display); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.tablet-info h2 { font-size: 30px; }
.tablet-teaser { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin-top: 6px; }
.tablet-stone { padding: 24px 28px 28px; background: #2b2117; color: var(--on-dark); display: flex; flex-direction: column; gap: 18px; flex: 1; }
.stone { position: relative; padding: 22px 20px 18px; background: linear-gradient(160deg, #4a3b2c 0%, #2f261c 60%, #241d15 100%); border: 1px solid rgba(239,229,207,0.15); box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 10px 24px rgba(0,0,0,0.35); border-radius: 6px 10px 8px 12px; }
.stone-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(216,164,74,0.8); margin-bottom: 12px; }
.glyph-line { display: flex; gap: 6px; flex-wrap: nowrap; align-items: flex-start; }
.glyph { width: 44px; height: 44px; }
.glyph path { fill: none; stroke: #d8a44a; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.glyph-line .glyph { flex: 0 1 48px; width: auto; height: auto; min-width: 0; aspect-ratio: 1 / 1; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6)); }
.glyph-line .glyph path { stroke: #e8c46a; }
.stone-hint { font-size: 13px; color: rgba(239,229,207,0.6); margin-top: 12px; font-style: italic; }
.key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.key-item { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px;
  background: rgba(239,229,207,0.05); border: 1px solid rgba(239,229,207,0.22); border-radius: 3px;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.08s; }
.key-item:hover, .key-item:focus-visible { background: rgba(216,164,74,0.18); border-color: rgba(216,164,74,0.75); outline: none; }
.key-item:hover .glyph path, .key-item:focus-visible .glyph path { stroke: #f0dfae; }
.key-item:active { transform: translateY(1px); }
.key-item.tapped { animation: keytap 0.25s; }
@keyframes keytap {
  0% { background: rgba(216,164,74,0.55); border-color: #d8a44a; }
  100% { background: rgba(239,229,207,0.05); border-color: rgba(239,229,207,0.22); }
}
.key-tip { font-size: 13.5px; line-height: 1.5; color: var(--on-dark-muted); margin: 10px 0 0; }
.decode-tools { display: flex; gap: 8px; margin-top: 10px; }
.decode-tools[hidden] { display: none; }
.tool-btn { font: inherit; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--on-dark); border: 1px solid rgba(239,229,207,0.3); }
.tool-btn:hover, .tool-btn:focus-visible { background: rgba(239,229,207,0.12); border-color: rgba(239,229,207,0.6); outline: none; }
.key-item .glyph { width: 34px; height: 34px; }
.key-item .glyph path { stroke: #cbbfa8; stroke-width: 5; }
.key-item span { font-family: var(--display); font-size: 15px; letter-spacing: 0.1em; color: var(--on-dark); }
.decode-form { display: flex; gap: 10px; }
.decode-form .field { flex: 1; text-transform: uppercase; letter-spacing: 0.2em; font-family: var(--display); font-size: 18px; background: rgba(255,255,255,0.06); border-color: rgba(239,229,207,0.25); color: #fff; }
.decode-form .field::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 16px; color: var(--on-dark-muted); }
.decode-msg { font-size: 14px; color: #d8a44a; min-height: 20px; }
.decode-win { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid rgba(216,164,74,0.5); background: rgba(216,164,74,0.08); }
.decode-win .win-title { font-family: var(--display); font-size: 26px; text-transform: uppercase; color: #fff; }
.decode-win .btn { align-self: flex-start; }
.tablet-card.is-solved .stone { border-color: rgba(216,164,74,0.6); box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 0 30px rgba(216,164,74,0.25); }
.tablet-card.is-solved .glyph-line .glyph path { stroke: #fff; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.tablet-card.shake .stone { animation: shake 0.5s; }

/* Tablets still being written */
.tablet-card.is-carving .stone { background: linear-gradient(160deg, #3a3025 0%, #2a231b 60%, #211b15 100%); }
.carving-note { font-size: 15px; color: rgba(239,229,207,0.5); font-style: italic; padding: 14px 0 6px; }

/* Share to unlock the bonus book */
.share-rule { height: 1px; background: rgba(216,164,74,0.35); margin: 4px 0 2px; }
.share-lock, .bonus-win { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.share-title { font-family: var(--display); font-size: 22px; line-height: 1.15; color: #fff; }
.share-copy { font-size: 15px; line-height: 1.55; color: var(--on-dark-soft); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.share-row .btn { font-size: 12px; padding: 8px 12px; border-color: rgba(239,229,207,0.35); color: var(--on-dark); }
.share-row .btn:hover { border-color: #d8a44a; color: #fff; }
.share-msg { font-size: 14px; color: #d8a44a; }
.share-msg:empty { display: none; }
.share-done { align-self: flex-start; }
.share-post { padding: 16px 16px 18px; background: rgba(239,229,207,0.06); border: 1px dashed rgba(216,164,74,0.45); display: flex; flex-direction: column; gap: 12px; }
.share-post-text { font-size: 15px; line-height: 1.55; color: #efe5cf; }
.share-post-url { color: #d8a44a; word-break: break-all; }
.share-post .btn { align-self: flex-start; }
.share-or { color: #8f887a; margin-top: 2px; }
.share-fine { color: #8f887a; }
.decode-win .btn { align-self: flex-start; }

/* Three tablets across on a wide screen */
@media (min-width: 1120px) { .tablets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Whole cards are clickable */
.feature, .card { position: relative; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.feature:hover, .card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43,33,23,0.14); }
.feature:has(.soon):hover { border-color: rgba(138,90,28,0.5); transform: none; box-shadow: none; }
.feature .more::after, .card .more::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature .more:focus-visible::after, .card .more:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -3px; }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .tablets { grid-template-columns: 1fr; }
}

.site-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.site-chip { font: inherit; font-size: 13px; letter-spacing: 0.06em; padding: 7px 12px; border: 1px solid rgba(43,33,23,0.3); background: var(--cream); color: var(--ink-soft); cursor: pointer; border-radius: 2px; }
.site-chip.space { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.site-chip.uncovered, .site-chip.cleared { border-color: var(--gold); color: var(--gold-dark); }
.site-chip.space.uncovered, .site-chip.space.cleared { color: var(--gold-light); border-color: var(--gold-light); }
.site-chip.cleared::after { content: " \2713"; }
.site-chip:hover, .site-chip.is-open { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (max-width: 860px) {
  .map-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .worldmap { min-width: 900px; }
  .starmap { min-width: 900px; }
  .route-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .route-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; width: 100%; max-width: 100%; }
  .route-bar { align-self: stretch; width: 100%; }
  .route-chip { white-space: nowrap; flex: 0 0 auto; }
}

/* ===== First Dig ===== */
.dig-card { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; padding: 36px; background: var(--cream); border: 1px solid rgba(43,33,23,0.25); margin-top: 8px; }
.dig-cover img { border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(43,33,23,0.3); }
.cover-ph { aspect-ratio: 2 / 3; background: linear-gradient(160deg, #5a1f1a 0%, #1a1114 70%); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px; box-shadow: 0 30px 60px rgba(43,33,23,0.3); }
.dig-body { display: flex; flex-direction: column; gap: 16px; }
.dig-body h2 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1; }
.dig-state { margin-top: 8px; padding: 24px; border: 1px solid rgba(138,90,28,0.5); background: rgba(216,164,74,0.08); display: flex; flex-direction: column; gap: 14px; }
.dig-state p { color: var(--ink-soft); }
.dig-state.live { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.dig-state.live .d-label { color: var(--gold-light); }
.dig-price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.dig-price { font-family: var(--display); font-size: 40px; color: #fff; line-height: 1; }
.dig-countdown .count { font-family: var(--display); font-size: 28px; color: var(--gold-light); letter-spacing: 0.04em; }
.dig-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.dig-facts { margin: 4px 0 0; padding-left: 1.2em; color: var(--on-dark-soft); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .dig-card { grid-template-columns: 1fr; padding: 24px; } .dig-cover { max-width: 260px; } }

/* First Dig editions */
.editions.preview { margin-top: 4px; }
.edition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.edition { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; background: var(--cream); border: 1px solid rgba(43,33,23,0.25); }
.edition.featured { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.edition-name { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.edition-price { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--ink); }
.edition-note { font-size: 14px; color: var(--muted); flex: 1; }
.edition .btn, .edition .soon { margin-top: 8px; align-self: flex-start; white-space: nowrap; }
.edition-grid.on-dark .edition { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); }
.edition-grid.on-dark .edition.featured { border-color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold-light); }
.edition-grid.on-dark .edition-price { color: #fff; }
.edition-grid.on-dark .edition-name, .edition-grid.on-dark .edition-note { color: var(--on-dark-soft); }
.edition-grid.on-dark .soon { color: var(--on-dark-soft); border-color: rgba(255,255,255,0.3); }
.dig-honest { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-left: 3px solid var(--gold-light); background: rgba(255,255,255,0.04); }
.dig-honest p { margin: 0; color: var(--on-dark-soft); font-size: 16px; }
.dig-honest p:last-child { color: #fff; }
/* the trail coming back down from the stars */
.route .launch.landing { stroke: #9a1d1d; }
.route .landing-mark path { fill: #9a1d1d; }
/* ===== Mars surface map ===== */
.marsmap { width: 100%; height: auto; display: block; background: #3c1607; }
.marsmap .m-dust { opacity: 0.5; mix-blend-mode: overlay; pointer-events: none; }
.marsmap .m-grat { fill: none; stroke: #f0c9a0; stroke-width: 0.5; opacity: 0.09; }
.marsmap .m-cap { fill: #efe6d6; opacity: 0.8; }
.marsmap .m-basin { fill: #341306; opacity: 0.5; stroke: #290d03; stroke-width: 1; }
.marsmap .m-valles-fill { fill: #2c1105; opacity: 0.55; }
.marsmap .m-valles { fill: none; stroke: #280d03; stroke-width: 2; opacity: 0.6; }
.marsmap .mv-ring { fill: none; stroke: #f0c49a; stroke-width: 1.4; opacity: 0.5; }
.marsmap .mv-cal { fill: #f0c49a; opacity: 0.55; }
.marsmap .m-region { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; fill: #f4dcc2; opacity: 0.5; pointer-events: none; }
.marsmap .cartouche rect { fill: #3a1a0e; stroke: #e9be92; stroke-width: 1.2; }
.marsmap .cartouche rect + rect { fill: none; stroke-width: 0.5; }
.marsmap .cartouche text { text-anchor: middle; fill: #f4dcc2; }
.marsmap .c-title { font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.marsmap .c-sub { font-family: Georgia, serif; font-style: italic; font-size: 11px; letter-spacing: 0.06em; }
.marsmap .c-rule { stroke: #e9be92; stroke-width: 0.6; }
.marsmap .c-line { font-family: var(--display); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.marsmap .neat { fill: none; stroke: #e9be92; stroke-width: 1.4; opacity: 0.5; }
.marsmap .neat.thin { stroke-width: 0.5; }
.marsmap .m-trail-under { fill: none; stroke: #34130699; stroke: #341306; stroke-width: 6; stroke-linecap: round; opacity: 0.55; }
.marsmap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.marsmap .m-node circle { fill: #f2c76a; stroke: #3c1607; stroke-width: 1.5; }
.marsmap .m-node text { font-family: var(--display); font-size: 11px; fill: #3c1607; text-anchor: middle; font-weight: 600; }
.marsmap .site .stamp { stroke: #f4dcc2; }
.marsmap .site .stamp path:first-child { fill: none; }
.marsmap .site.cleared .stamp path:first-child { fill: rgba(242,199,106,0.55); }
.marsmap .site .label { fill: #f6e4cd; stroke: #4a1c0c; stroke-width: calc(3px * var(--lblscale, 1)); }
.marsmap .site .halo { fill: #f2c76a; }
.marsmap .site:hover .stamp, .marsmap .site:focus .stamp, .marsmap .site.is-open .stamp { stroke: #fff; }
.marsmap .m-back { cursor: pointer; }
.marsmap .m-back text { font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; fill: #f4dcc2; }
.marsmap .m-back:hover text, .marsmap .m-back:focus text { fill: #fff; }
.site-chip.mars { border-color: rgba(154,58,28,0.5); }
/* ===== Callisto surface map ===== */
.callistomap { width: 100%; height: auto; display: block; background: #161d27; }
.callistomap .c-frost { opacity: 0.35; mix-blend-mode: overlay; pointer-events: none; }
.callistomap .c-crater { fill: none; stroke: #cdd8e6; stroke-width: 1; opacity: 0.14; }
.callistomap .c-grat { fill: none; stroke: #cfe0f2; stroke-width: 0.5; opacity: 0.08; }
.callistomap .c-cap { fill: #e7eef6; opacity: 0.14; }
.callistomap .c-basin circle { fill: none; stroke: #d6e4f2; stroke-width: 1.4; opacity: 0.32; }
.callistomap .c-basin .c-basin-core { fill: #cdd9e6; opacity: 0.16; stroke: none; }
.callistomap .c-region { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; fill: #dbe6f2; opacity: 0.5; pointer-events: none; }
.callistomap .cartouche rect { fill: #202a37; stroke: #b9cadd; stroke-width: 1.2; }
.callistomap .cartouche rect + rect { fill: none; stroke-width: 0.5; }
.callistomap .cartouche text { text-anchor: middle; fill: #e4edf6; }
.callistomap .c-title { font-family: var(--display); font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.callistomap .c-sub { font-family: Georgia, serif; font-style: italic; font-size: 11px; letter-spacing: 0.06em; }
.callistomap .c-rule { stroke: #b9cadd; stroke-width: 0.6; }
.callistomap .c-line { font-family: var(--display); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.callistomap .neat { fill: none; stroke: #b9cadd; stroke-width: 1.4; opacity: 0.45; }
.callistomap .neat.thin { stroke-width: 0.5; }
.callistomap .m-trail-under { fill: none; stroke: #10161f; stroke-width: 6; stroke-linecap: round; opacity: 0.55; }
.callistomap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.callistomap .m-node circle { fill: #f2c76a; stroke: #161d27; stroke-width: 1.5; }
.callistomap .m-node text { font-family: var(--display); font-size: 11px; fill: #161d27; text-anchor: middle; font-weight: 600; }
.callistomap .site .stamp { stroke: #e4edf6; }
.callistomap .site .stamp path:first-child { fill: none; }
.callistomap .site.cleared .stamp path:first-child { fill: rgba(216,164,74,0.5); }
.callistomap .site .label { fill: #eef4fb; stroke: #10161f; stroke-width: calc(3px * var(--lblscale, 1)); }
.callistomap .site .halo { fill: #f2c76a; }
.callistomap .site:hover .stamp, .callistomap .site:focus .stamp, .callistomap .site.is-open .stamp { stroke: #fff; }
.callistomap .m-back text { fill: #dbe6f2; }
.callistomap .m-back:hover text, .callistomap .m-back:focus text { fill: #fff; }
.site-chip.callisto { border-color: rgba(120,150,190,0.5); }
/* ===== Leonia + Taiyo surface maps (shared world-surface bits) ===== */
.leoniamap, .taiyomap { width: 100%; height: auto; display: block; }
.leoniamap { background: #4c3a14; }
.taiyomap { background: #0f2018; }
.leoniamap .leo-fields, .taiyomap .tai-forest { opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; }
.taiyomap .tai-water { fill: url(#tai-lake); opacity: 0.85; stroke: #7cc0d8; stroke-width: 1; }
.w-grat { fill: none; stroke: #fff; stroke-width: 0.5; opacity: 0.06; }
.w-region { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.55; pointer-events: none; }
.leoniamap .w-region { fill: #f6ead0; }
.taiyomap .w-region { fill: #dff0e6; }
.w-star, .w-moon { pointer-events: none; }
.world-cartouche rect { stroke-width: 1.2; }
.leoniamap .world-cartouche rect { fill: #4a3814; stroke: #e6cf94; }
.taiyomap .world-cartouche rect { fill: #16302320; fill: #163023; stroke: #a9d4bf; }
.world-cartouche rect + rect { fill: none !important; stroke-width: 0.5; }
.world-cartouche text { text-anchor: middle; }
.leoniamap .world-cartouche text { fill: #f6ead0; }
.taiyomap .world-cartouche text { fill: #e4f2ea; }
.world-cartouche .c-title { font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.world-cartouche .c-sub { font-family: Georgia, serif; font-style: italic; font-size: 11px; letter-spacing: 0.06em; }
.leoniamap .c-rule { stroke: #e6cf94; stroke-width: 0.6; }
.taiyomap .c-rule { stroke: #a9d4bf; stroke-width: 0.6; }
.world-cartouche .c-line { font-family: var(--display); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.leoniamap .neat { fill: none; stroke: #e6cf94; stroke-width: 1.4; opacity: 0.5; }
.taiyomap .neat { fill: none; stroke: #a9d4bf; stroke-width: 1.4; opacity: 0.45; }
.leoniamap .neat.thin, .taiyomap .neat.thin { stroke-width: 0.5; }
.leoniamap .m-trail-under { fill: none; stroke: #2e2209; }
.taiyomap .m-trail-under { fill: none; stroke: #0a1710; }
.leoniamap .m-trail, .taiyomap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.leoniamap .m-node circle { fill: #f2c76a; stroke: #4c3a14; stroke-width: 1.5; }
.taiyomap .m-node circle { fill: #f2c76a; stroke: #0f2018; stroke-width: 1.5; }
.leoniamap .m-node text, .taiyomap .m-node text { font-family: var(--display); font-size: 11px; text-anchor: middle; font-weight: 600; }
.leoniamap .m-node text { fill: #4c3a14; }
.taiyomap .m-node text { fill: #0f2018; }
.leoniamap .site .stamp { stroke: #f6ead0; }
.taiyomap .site .stamp { stroke: #e4f2ea; }
.leoniamap .site .stamp path:first-child, .taiyomap .site .stamp path:first-child { fill: none; }
.leoniamap .site.cleared .stamp path:first-child, .taiyomap .site.cleared .stamp path:first-child { fill: rgba(242,199,106,0.5); }
.leoniamap .site .label { fill: #f9efd8; stroke: #2e2209; stroke-width: calc(3px * var(--lblscale, 1)); }
.taiyomap .site .label { fill: #eef7f0; stroke: #0a1710; stroke-width: calc(3px * var(--lblscale, 1)); }
.leoniamap .site .halo, .taiyomap .site .halo { fill: #f2c76a; }
.leoniamap .site:hover .stamp, .leoniamap .site.is-open .stamp, .taiyomap .site:hover .stamp, .taiyomap .site.is-open .stamp { stroke: #fff; }
.leoniamap .m-back text { fill: #f6ead0; }
.taiyomap .m-back text { fill: #dff0e6; }
.leoniamap .m-back:hover text, .taiyomap .m-back:hover text { fill: #fff; }
.site-chip.leonia { border-color: rgba(180,143,66,0.55); }
.site-chip.taiyo { border-color: rgba(90,167,150,0.5); }
/* ===== honshumap surface map ===== */
.honshumap { width: 100%; height: auto; display: block; background: #0c2a25; }
.honshumap .hon-tex { opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; }
.honshumap .w-region { fill: #d9f2ea; }
.honshumap .world-cartouche rect { fill: #06201c; stroke: #d9f2ea; }
.honshumap .world-cartouche text { fill: #d9f2ea; }
.honshumap .neat { fill: none; stroke: #d9f2ea; stroke-width: 1.4; opacity: 0.45; }
.honshumap .neat.thin { stroke-width: 0.5; }
.honshumap .m-trail-under { fill: none; stroke: #06201c; stroke-width: 6; stroke-linecap: round; opacity: 0.55; }
.honshumap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.honshumap .m-node circle { fill: #f2c76a; stroke: #06201c; stroke-width: 1.5; }
.honshumap .m-node text { font-family: var(--display); font-size: 11px; fill: #06201c; text-anchor: middle; font-weight: 600; }
.honshumap .site .stamp { stroke: #d9f2ea; }
.honshumap .site .stamp path:first-child { fill: none; }
.honshumap .site.cleared .stamp path:first-child { fill: rgba(242,199,106,0.5); }
.honshumap .site .label { fill: #d9f2ea; stroke: #06201c; stroke-width: calc(3px * var(--lblscale, 1)); }
.honshumap .site .halo { fill: #f2c76a; }
.honshumap .site:hover .stamp, .honshumap .site.is-open .stamp { stroke: #fff; }
.honshumap .hon-water { fill: url(#hon-sea); opacity: 0.85; }
.honshumap .hon-wall { fill: none; stroke: #cfe6dd; stroke-width: 3; opacity: 0.28; stroke-dasharray: 14 8; }
.honshumap .hon-wall.thin { stroke-width: 1; opacity: 0.2; stroke-dasharray: none; }
.site-chip.honshu { border-color: rgba(90,180,160,0.5); }
/* ===== volcadiamap surface map ===== */
.volcadiamap { width: 100%; height: auto; display: block; background: #3a2211; }
.volcadiamap .vol-tex { opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; }
.volcadiamap .w-region { fill: #f6ddc0; }
.volcadiamap .world-cartouche rect { fill: #2a1509; stroke: #f6ddc0; }
.volcadiamap .world-cartouche text { fill: #f6ddc0; }
.volcadiamap .neat { fill: none; stroke: #f6ddc0; stroke-width: 1.4; opacity: 0.45; }
.volcadiamap .neat.thin { stroke-width: 0.5; }
.volcadiamap .m-trail-under { fill: none; stroke: #2a1509; stroke-width: 6; stroke-linecap: round; opacity: 0.55; }
.volcadiamap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.volcadiamap .m-node circle { fill: #f2c76a; stroke: #2a1509; stroke-width: 1.5; }
.volcadiamap .m-node text { font-family: var(--display); font-size: 11px; fill: #2a1509; text-anchor: middle; font-weight: 600; }
.volcadiamap .site .stamp { stroke: #f6ddc0; }
.volcadiamap .site .stamp path:first-child { fill: none; }
.volcadiamap .site.cleared .stamp path:first-child { fill: rgba(242,199,106,0.5); }
.volcadiamap .site .label { fill: #f6ddc0; stroke: #2a1509; stroke-width: calc(3px * var(--lblscale, 1)); }
.volcadiamap .site .halo { fill: #f2c76a; }
.volcadiamap .site:hover .stamp, .volcadiamap .site.is-open .stamp { stroke: #fff; }
.volcadiamap .vol-range { fill: none; stroke: #e3b483; stroke-width: 8; stroke-linecap: round; opacity: 0.4; }
.volcadiamap .vol-river { fill: none; stroke: #6fa8c4; stroke-width: 5; stroke-linecap: round; opacity: 0.4; }
.volcadiamap .vol-band { fill: #ffd9a0; opacity: 0.07; pointer-events: none; }
.site-chip.volcadia { border-color: rgba(200,140,70,0.55); }
/* ===== craggmap surface map ===== */
.craggmap { width: 100%; height: auto; display: block; background: #24272b; }
.craggmap .cra-tex { opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; }
.craggmap .w-region { fill: #dfe4ea; }
.craggmap .world-cartouche rect { fill: #16181b; stroke: #dfe4ea; }
.craggmap .world-cartouche text { fill: #dfe4ea; }
.craggmap .neat { fill: none; stroke: #dfe4ea; stroke-width: 1.4; opacity: 0.45; }
.craggmap .neat.thin { stroke-width: 0.5; }
.craggmap .m-trail-under { fill: none; stroke: #16181b; stroke-width: 6; stroke-linecap: round; opacity: 0.55; }
.craggmap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.craggmap .m-node circle { fill: #f2c76a; stroke: #16181b; stroke-width: 1.5; }
.craggmap .m-node text { font-family: var(--display); font-size: 11px; fill: #16181b; text-anchor: middle; font-weight: 600; }
.craggmap .site .stamp { stroke: #dfe4ea; }
.craggmap .site .stamp path:first-child { fill: none; }
.craggmap .site.cleared .stamp path:first-child { fill: rgba(242,199,106,0.5); }
.craggmap .site .label { fill: #dfe4ea; stroke: #16181b; stroke-width: calc(3px * var(--lblscale, 1)); }
.craggmap .site .halo { fill: #f2c76a; }
.craggmap .site:hover .stamp, .craggmap .site.is-open .stamp { stroke: #fff; }
.craggmap .cra-storm { pointer-events: none; }
.craggmap .cra-road { fill: none; stroke: #c9d0d8; stroke-width: 5; stroke-linecap: round; opacity: 0.3; }
.craggmap .cra-road.thin { stroke-width: 3; opacity: 0.2; }
.site-chip.cragg { border-color: rgba(150,160,175,0.5); }

/* ===== Kahwin surface map (Farthest Reaches) ===== */
.kahwinmap { width: 100%; height: auto; display: block; background: #122a1f; }
.kahwinmap .kah-forest { opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; }
.kahwinmap .kah-water { fill: url(#kah-sea); opacity: 0.85; }
.kahwinmap .kah-river { fill: none; stroke: #5aa0c4; stroke-width: 7; stroke-linecap: round; opacity: 0.5; }
.kahwinmap .kah-cap { pointer-events: none; opacity: 0.45; }
.kahwinmap .w-region { fill: #dff0e2; }
.kahwinmap .world-cartouche rect { fill: #14301f; stroke: #a9d4b6; }
.kahwinmap .world-cartouche text { fill: #e4f2e8; }
.kahwinmap .neat { fill: none; stroke: #a9d4b6; stroke-width: 1.4; opacity: 0.45; }
.kahwinmap .neat.thin { stroke-width: 0.5; }
.kahwinmap .m-trail-under { fill: none; stroke: #0b1c12; stroke-width: 6; stroke-linecap: round; opacity: 0.55; }
.kahwinmap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.kahwinmap .m-node circle { fill: #f2c76a; stroke: #122a1f; stroke-width: 1.5; }
.kahwinmap .m-node text { font-family: var(--display); font-size: 11px; fill: #122a1f; text-anchor: middle; font-weight: 600; }
.kahwinmap .site .stamp { stroke: #e4f2e8; }
.kahwinmap .site .stamp path:first-child { fill: none; }
.kahwinmap .site.cleared .stamp path:first-child { fill: rgba(242,199,106,0.5); }
.kahwinmap .site .label { fill: #eefaf0; stroke: #0b1c12; stroke-width: calc(3px * var(--lblscale, 1)); }
.kahwinmap .site .halo { fill: #f2c76a; }
.kahwinmap .site:hover .stamp, .kahwinmap .site.is-open .stamp { stroke: #fff; }
.site-chip.kahwin { border-color: rgba(90,167,120,0.5); }

/* ===== Eos surface map (ebb-mining world) ===== */
.eosmap { width: 100%; height: auto; display: block; background: #140810; }
.eosmap .eos-ebb { opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; }
.eosmap .eos-grat { stroke: #e0a0c0; }
.eosmap .eos-line { stroke: #e8b04a; stroke-width: 2; stroke-dasharray: 3 7; opacity: 0.7; }
.eosmap .eos-warn { font-family: var(--display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; fill: #f0b45a; opacity: 0.75; pointer-events: none; }
.eosmap .w-region { fill: #f2d6cf; }
.eosmap .world-cartouche rect { fill: #331420; stroke: #e0a888; }
.eosmap .world-cartouche text { fill: #f4dcd4; }
.eosmap .c-rule { stroke: #e0a888; }
.eosmap .neat { fill: none; stroke: #e0a888; stroke-width: 1.4; opacity: 0.5; }
.eosmap .neat.thin { stroke-width: 0.5; }
.eosmap .m-trail-under { fill: none; stroke: #100509; stroke-width: 6; stroke-linecap: round; opacity: 0.55; }
.eosmap .m-trail { fill: none; stroke: #f2c76a; stroke-width: 2.4; stroke-dasharray: 7 5; stroke-linecap: round; }
.eosmap .m-node circle { fill: #f2c76a; stroke: #140810; stroke-width: 1.5; }
.eosmap .m-node text { font-family: var(--display); font-size: 11px; fill: #140810; text-anchor: middle; font-weight: 600; }
.eosmap .site .stamp { stroke: #f4dcd4; }
.eosmap .site .stamp path:first-child { fill: none; }
.eosmap .site.cleared .stamp path:first-child { fill: rgba(242,199,106,0.5); }
.eosmap .site .label { fill: #f8e6df; stroke: #100509; stroke-width: calc(3px * var(--lblscale, 1)); }
.eosmap .site .halo { fill: #f2c76a; }
.eosmap .site:hover .stamp, .eosmap .site.is-open .stamp { stroke: #fff; }
.eosmap .m-back text { fill: #f2d6cf; }
.eosmap .m-back:hover text { fill: #fff; }
.site-chip.eos { border-color: rgba(200,90,60,0.5); }

/* ---- Two doors (home page) ---- */
.two-doors .doors-lede {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 26px;
}
.door-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.door {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--on-dark);
  isolation: isolate;
}
.door img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms ease;
}
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(12, 9, 6, 0.92) 0%,
    rgba(12, 9, 6, 0.72) 26%,
    rgba(12, 9, 6, 0.18) 55%,
    rgba(12, 9, 6, 0.05) 100%);
}
.door-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
}
.door-copy h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  color: var(--on-dark);
}
.door-line {
  margin: 0;
  color: #e6dcc7;
  max-width: 34ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.door-cue {
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 4px 0 0;
}
.door-bar {
  width: 44px;
  height: 3px;
  background: var(--gold);
  transition: width 400ms ease, background-color 400ms ease;
}
.door:hover img,
.door:focus-visible img { transform: scale(1.06); }
.door:hover .door-bar,
.door:focus-visible .door-bar { width: 96px; background: var(--gold-light); }
.door:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 720px) {
  .door-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .door img, .door-bar { transition: none; }
}

/* ---- Art strip on the feature boxes ---- */
.feature { position: relative; overflow: hidden; }
.feature-art {
  margin: -32px -32px 2px;
  height: 124px;
  overflow: hidden;
}
/* the picture dissolves into the card, so it matches whatever is behind it */
.feature-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 68%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,0.55) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0,0,0,0.55) 72%, transparent 100%);
}

/* ---- Cover thumbnail on the book cards ---- */
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.card-head-text { min-width: 0; }
.card-cover {
  flex: 0 0 84px;
  width: 84px;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px rgba(43, 33, 23, 0.18);
}

@media (max-width: 520px) {
  .feature-art { height: 104px; }
  .card-cover { flex-basis: 68px; width: 68px; }
}

/* real terrain names read as background, not as places you can click */
.map-panel .marsmap .m-region,
.map-panel .callistomap .c-region,
.map-panel .w-region { opacity: 0.3; letter-spacing: 0.3em; font-size: 11px; }

/* ---------------------------------------------------------------
   Which Ancient Mystery Are You? (/quiz/)
   --------------------------------------------------------------- */
.quiz-wrap { max-width: 780px; }

.quiz-prev {
  font-size: 15px; color: var(--ink-soft); margin-bottom: 20px;
  padding: 12px 16px; border: 1px dashed var(--line-strong); background: rgba(247,239,220,0.5);
}
.quiz-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px;
}
.quiz-link:hover { color: var(--gold-dark); }

.quiz-top { margin-bottom: 26px; }
.quiz-step { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.quiz-bar { height: 3px; background: rgba(43,33,23,0.15); }
.quiz-bar-fill { height: 100%; background: var(--gold); transition: width 0.25s ease; }

.quiz-q h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin-bottom: 24px; }
.quiz-opts { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  text-align: left; font: inherit; font-size: 17px; line-height: 1.45; color: var(--ink);
  padding: 16px 18px; cursor: pointer;
  background: var(--cream); border: 1px solid rgba(43,33,23,0.22);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.quiz-opt:hover { border-color: var(--gold); background: #fff; }
.quiz-opt:active { transform: translateY(1px); }
.quiz-back { margin-top: 22px; font-size: 15px; }
.quiz-note { font-size: 14px; color: var(--muted-2); margin-top: 14px; }

.quiz-result { display: flex; flex-direction: column; gap: 28px; }
.quiz-verdict h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1; margin: 10px 0 16px; }
.quiz-real {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; margin-top: 18px;
}
.quiz-real span { color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; }

.quiz-book {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start;
  padding: 24px; background: var(--cream); border: 1px solid rgba(43,33,23,0.22);
}
.quiz-book-cover { width: 150px; height: auto; display: block; border: 1px solid rgba(43,33,23,0.18); }
.quiz-book-body h3 { font-size: 30px; line-height: 1.1; margin: 8px 0 4px; }
.quiz-book-series { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.quiz-book-body p { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }

.quiz-share { padding-top: 4px; }
.quiz-copy {
  margin: 12px 0 14px; padding: 14px 16px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft);
  border: 1px dashed var(--line-strong); background: rgba(247,239,220,0.5);
}
.quiz-share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-copied { color: var(--gold); }

.quiz-ps { font-size: 16px; color: var(--ink-soft); border-top: 1px solid rgba(43,33,23,0.15); padding-top: 20px; }
.quiz-ps span { color: var(--gold); letter-spacing: 0.1em; }
.quiz-again { align-self: flex-start; font-size: 15px; }

@media (max-width: 620px) {
  .quiz-book { grid-template-columns: 104px 1fr; gap: 18px; padding: 18px; }
  .quiz-book-cover { width: 104px; }
  .quiz-book-body h3 { font-size: 24px; }
  .quiz-opt { font-size: 16px; padding: 14px 15px; }
}

/* Nav: collapse to the hamburger before the links run out of room.
   With eight links the row needed ~1055px, so it overflowed (and pushed the
   whole page sideways) anywhere under about 1050px. The rules below are the
   same ones in the 860px block, just switched on earlier. */
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--parchment); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
}

/* ---------------------------------------------------------------
   The Quarterly Dig (/giveaway/)
   --------------------------------------------------------------- */
.give-wrap { max-width: 1000px; }

.give-prize {
  display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: start;
  padding: 32px; background: var(--cream); border: 1px solid rgba(43,33,23,0.22); margin-bottom: 32px;
}
.give-prize h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 10px 0 14px; }
.give-cover { width: 240px; height: auto; display: block; border: 1px solid rgba(43,33,23,0.18); }
.give-note {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; margin-top: 20px;
}

.give-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.give-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border: 1px solid rgba(138,90,28,0.5);
  background: linear-gradient(180deg, rgba(247,239,220,0.9), rgba(247,239,220,0.4));
}
.give-card h3 { font-size: 24px; line-height: 1.15; }
.give-card p { font-size: 16px; color: var(--ink-soft); }
.give-small { font-size: 14px; color: var(--muted-2); }

.give-rules { padding: 28px 32px; border: 1px dashed var(--line-strong); }
.give-rules h3 { font-size: 24px; margin: 8px 0 16px; }
.give-rules ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.give-rules li { font-size: 16px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.give-rules li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

@media (max-width: 900px) {
  .give-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .give-prize { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .give-cover { width: 180px; }
}

/* ===== Reader feedback pass (2026-10-12) ===== */
/* Home: the genre line reads as the brand, not a label */
.hero .kicker.tagline { font-family: var(--display); font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; letter-spacing: 0.12em; color: var(--gold-dark); line-height: 1.25; padding-bottom: 10px; border-bottom: 2px solid var(--gold); align-self: flex-start; }

/* Map: one list of every book */
.dig-list-link { display: inline-block; margin-top: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--gold); }
.read-list { font-family: var(--body); text-transform: none; letter-spacing: normal; margin-top: 28px; border: 1px solid var(--line-strong); background: var(--cream); }
.read-list > summary { cursor: pointer; padding: 14px 18px; font-family: var(--display); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.read-list > summary:hover { background: rgba(43,33,23,0.05); }
.read-list[open] > summary { border-bottom: 1px solid var(--line); }
.read-list-sub { margin: 14px 18px 0; color: var(--ink-soft); font-size: 15px; }
.read-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 14px 18px 18px; }
.rl-group { border: 1px solid var(--line); margin: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,0.35); }
.rl-group legend { padding: 0 6px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.rl-book { margin: 0; text-transform: none; letter-spacing: normal; font-family: var(--body); display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; color: var(--ink-soft); cursor: pointer; padding: 3px 0; }
.rl-book input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--gold); }
.rl-all { align-self: flex-start; margin-top: 4px; font: inherit; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px dashed var(--gold); color: var(--gold-dark); padding: 2px 0; cursor: pointer; }

/* Map: a series trail as words */
.route-list-jump { white-space: nowrap; }
.route-list { font-family: var(--body); text-transform: none; letter-spacing: normal; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--cream); }
.route-list-h { font-family: var(--display); font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: #9a1d1d; margin: 0; }
.route-list-h:focus { outline: none; }
.route-list-sub { margin: 4px 0 12px; font-size: 14.5px; color: var(--muted); }
.route-steps { margin: 0; padding-left: 1.6em; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.route-steps li::marker { color: #9a1d1d; font-weight: 600; }
.route-step { display: block; font: inherit; text-align: left; background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--ink); }
.route-step .rs-name { border-bottom: 1px solid rgba(154,29,29,0.4); }
.route-step:hover .rs-name { border-bottom-color: #9a1d1d; }
.route-step .rs-where { display: block; font-size: 12.5px; color: var(--muted); }
#d-name:focus { outline: none; }
#map-crumb, #route-status, #map-stage { scroll-margin-top: 12px; }

/* Phones: show every series instead of hiding most of them off the right edge */
@media (max-width: 860px) {
  .route-chips { flex-wrap: wrap; overflow-x: visible; }
  .route-chip { white-space: normal; }
  .map-regions .region-btn { font-size: 11.5px; padding: 6px 9px; letter-spacing: 0.06em; }
  /* keep the map close under the buttons: the zoom-to-region row moves below the map on phones */
  .map-ui { display: flex; flex-direction: column; }
  .map-ui > * { order: 3; }
  .map-ui > .map-toolbar, .map-ui > .world-bar, .map-ui > .route-bar, .map-ui > .map-crumb, .map-ui > .map-stage { order: 1; }
  .map-ui > .map-regions { order: 2; margin-top: 12px; }
  .read-groups { grid-template-columns: 1fr; }
}

/* Map oceans: faded sea-green, like an old atlas (Brandon picked Option A, 2026-10-12) */
.worldmap .sphere { fill: #c9d4cc; }
.worldmap .waterline { stroke: #46646b; }
.worldmap .ocean { fill: #35535b; opacity: 0.7; }

/* Surface maps: the numbered trail markers open their stop too */
.m-node[data-node] { cursor: pointer; pointer-events: auto; }
.m-node[data-node]:hover circle, .m-node[data-node]:focus-visible circle { stroke-width: 2.5; }
.m-node[data-node]:focus { outline: none; }

/* Sea serpent on the Earth map: an old-chart monster, not a squiggle */
.worldmap .ornament.serpent { opacity: 0.72; fill: #3f5f62; stroke: #2c4447; stroke-width: 0.6; stroke-linejoin: round; }
.worldmap .ornament.serpent .eye { fill: #e9dcbd; stroke: none; }
.worldmap .ornament.serpent .ripple { fill: none; stroke: #2c4447; stroke-width: 0.9; opacity: 0.8; }
.route-help strong { color: #9a1d1d; font-weight: 600; }

/* Book search box (home hero + Books page) */
.book-search { position: relative; width: 100%; max-width: 460px; margin-top: 6px; font-family: var(--body); }
.bs-label { margin: 0 0 6px; }
.bs-box { position: relative; }
.bs-icon { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bs-input { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px 11px 40px; border: 1px solid var(--line-strong); background: var(--cream); color: var(--ink); border-radius: 2px; }
.bs-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.bs-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: var(--cream); border: 1px solid var(--line-strong); box-shadow: 0 14px 30px rgba(43,33,23,0.22); max-height: 420px; overflow-y: auto; }
.bs-results[hidden] { display: none; }
.bs-hit { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 7px 12px; color: var(--ink); }
.bs-hit:hover, .bs-hit:focus { background: rgba(138,90,28,0.12); color: var(--ink); outline: none; }
.bs-hit img { grid-row: 1 / span 2; width: 34px; height: 51px; object-fit: cover; border: 1px solid var(--line); }
.bs-t { font-size: 15.5px; line-height: 1.25; }
.bs-r { font-size: 12.5px; color: var(--muted); }
.bs-status { min-height: 1.2em; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.books-head .book-search { margin-top: 18px; }
.bs-hit { grid-template-rows: auto auto auto; }
.bs-hit img { grid-row: 1 / span 3; }
.bs-why { font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); font-style: italic; }
.bs-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.bs-try span { margin-right: 2px; }
.bs-chip { font: inherit; font-size: 12.5px; padding: 3px 9px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); border-radius: 999px; cursor: pointer; }
.bs-chip:hover, .bs-chip:focus-visible { border-color: var(--gold); color: var(--gold-dark); outline: none; }

/* ===== Home hero, tightened so the free book shows on the first screen (2026-10-13) ===== */
.hero .wrap { padding-top: clamp(28px, 3.6vw, 52px); padding-bottom: clamp(32px, 3.6vw, 52px); align-items: start; }
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); }
.hero .stack { gap: 20px; }
.hero .lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; }
.hero .small { margin-top: -6px; }
.hero .cover-trio { height: 470px; }
.hero .book-search { margin-top: 2px; }
.hero .bs-try { display: none; }
.hero .book-search:focus-within .bs-try { display: flex; }
@media (max-width: 860px) {
  .hero .wrap { padding-top: 14px; padding-bottom: 28px; gap: 18px; }
  .hero h1 { font-size: 34px; line-height: 1; }
  .hero .stack { gap: 14px; }
  .hero .kicker.tagline { font-size: 14px; padding-bottom: 8px; }
  .hero .lede { font-size: 16.5px; line-height: 1.5; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero .cover-trio { height: 300px; max-width: 420px; }
}

/* ===== Home: no hero buttons; the free-book band sits right under the headline and covers (2026-10-13) ===== */
.hero .wrap { align-items: center; padding-bottom: clamp(20px, 2.4vw, 36px); }
.hero .wrap > .stack { padding-top: clamp(12px, 2vw, 36px); }
.hero .small { margin-top: 2px; }
.free-band .inner { padding-top: 32px; padding-bottom: 32px; }
.home-search { padding: 36px 0 8px; }
.home-search .book-search { max-width: 560px; margin: 0 auto; }
.home-search .bs-label { text-align: center; }
@media (max-width: 860px) {
  .hero .cover-trio { height: 230px; max-width: 340px; }
  .hero .wrap > .stack { padding-top: 0; }
}
@media (min-width: 1101px) {
  .free-band .inner { align-items: start; }
  .free-band .inner > .stack:first-of-type { padding-top: 6px; }
  .free-band .inner > :last-child { padding-top: 42px; }
}
/* keep the tilted covers inside the hero so they don't hang over the free-book band */
@media (min-width: 861px) {
  .hero .cover-trio { height: 480px; }
  .hero .cover-trio .c1 { top: 56px; width: 40%; left: 10%; }
  .hero .cover-trio .c2 { top: 70px; width: 40%; left: 56%; }
  .hero .cover-trio .c3 { top: 14px; width: 45%; left: 31%; }
}
/* phones: the free-book band comes straight after the headline; covers sit out, band is compact */
@media (max-width: 860px) {
  .hero .cover-trio { display: none; }
  .free-band .inner { display: grid; grid-template-columns: 96px 1fr; gap: 14px 16px; padding: 20px; align-items: start; }
  .free-band .inner > img { width: 96px; grid-row: 1; }
  .free-band .inner > .stack:first-of-type { grid-column: 2; }
  .free-band .inner > :last-child { grid-column: 1 / -1; }
  .free-band h2 { font-size: 26px; }
  .free-band p { font-size: 15.5px; }
  .free-band p.fine { display: none; }
}

/* First Dig: "tell me when it opens" form (2026-10-14) */
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; max-width: 560px; }
.notify-form .field { flex: 1 1 240px; min-width: 0; }
.notify-form .btn { flex: 0 0 auto; }
.notify-done { font-weight: 600; color: var(--ink); }
.notify-done:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 520px) { .notify-form .field, .notify-form .btn { flex: 1 1 100%; width: 100%; justify-content: center; } .notify-form .btn { white-space: normal; } }
