/* ============================================================
   The Lucky Cave-Book — luckyorabook.com
   An unofficial fan storybook for Cavemen Tales: Prehistoric Age
   Palette sampled from the game's Play Store icon + screenshots:
   warm sand background, terracotta accent, umber ink, moss green.
   Display: Baloo 2 · Body: Karla
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --sand: #F3E5C3;          /* page background — sun-baked sand (from screenshot creams/sands) */
  --sand-deep: #E9D6AB;    /* borders, pebble fills */
  --earth: #ECDCB4;        /* alternating section band */
  --slab: #FDF6E7;         /* stone-slab card face */
  --slab-lit: #FFFBF0;     /* form fields */
  --ink: #2E1B10;          /* deep charcoal-brown text (icon darks) */
  --ink-soft: #5D4030;     /* secondary text */
  --accent: #C0532D;       /* terracotta (icon #D26D4E / #B14F31 family) */
  --fire: #B34A26;         /* button fill — deeper for contrast */
  --fire-shadow: #7E3117;
  --accent-deep: #A03D1D;  /* text-safe terracotta links */
  --amber: #E89A5B;        /* ochre highlight on dark (icon apricot family) */
  --moss: #55752B;         /* secondary accent, used sparingly (screenshot greens) */
  --cave: #2C1A0E;         /* dark umber cave sections */
  --cave-soft: #3B2415;    /* cave panels */
  --cave-deep: #241407;    /* footer */
  --cream: #F2E4C4;        /* text on dark */
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --radius-slab: 22px 26px 20px 28px / 26px 20px 28px 22px;
  --radius-btn: 16px 20px 14px 22px / 20px 14px 22px 16px;
  --shadow-slab: 0 10px 0 -4px rgba(46, 27, 16, 0.16), 0 26px 42px -24px rgba(46, 27, 16, 0.3);
  --shadow-slab-hover: 0 13px 0 -4px rgba(46, 27, 16, 0.2), 0 30px 48px -24px rgba(46, 27, 16, 0.34);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--sand);
  /* speckled sandstone texture */
  background-image:
    radial-gradient(rgba(93, 64, 48, 0.055) 1.5px, transparent 1.6px),
    radial-gradient(rgba(191, 149, 92, 0.07) 1px, transparent 1.1px);
  background-size: 30px 30px, 19px 19px;
  background-position: 0 0, 9px 11px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.55em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.4vw + 1rem, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.6vw + 1.3rem, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--accent-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(192, 83, 45, 0.28); }

:focus-visible {
  outline: 3px solid rgba(192, 83, 45, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 28px);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 14px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--slab);
  color: var(--ink);
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 12px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Overlines, chapter heads, dividers ---------- */
.overline {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.overline svg { width: 15px; height: 15px; flex: none; color: var(--accent); }

.tale-head {
  max-width: 740px;
  margin: 0 auto clamp(30px, 4.5vw, 52px);
  text-align: center;
}

.tale-head .tale-lede {
  color: var(--ink-soft);
  font-size: 1.09rem;
  margin: 10px auto 0;
  max-width: 640px;
}

.glyph-divider {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
  color: rgba(192, 83, 45, 0.75);
}
.glyph-divider svg { width: 224px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.1;
  border: 2.5px solid transparent;
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-fire {
  background: var(--fire);
  color: #FFF8EC;
  box-shadow: 0 7px 0 -3px var(--fire-shadow);
}
.btn-fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 -3px var(--fire-shadow);
  background: var(--accent);
  color: #FFF8EC;
}
.btn-fire:active { transform: translateY(1px); box-shadow: 0 4px 0 -2px var(--fire-shadow); }
.btn-ghost {
  color: var(--ink);
  border-color: rgba(46, 27, 16, 0.8);
  background: transparent;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(46, 27, 16, 0.07);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sm { padding: 10px 20px; font-size: 0.96rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 229, 195, 0.9);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-bottom: 2px dashed rgba(46, 27, 16, 0.18);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; line-height: 1; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(46, 27, 16, 0.55);
  border-radius: 14px 16px 12px 18px / 16px 12px 18px 14px;
  background: var(--slab);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: 4px;
}
.nav-link:hover {
  color: var(--accent-deep);
  text-decoration: underline wavy rgba(192, 83, 45, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: clamp(18px, 4vw, 28px);
    right: clamp(18px, 4vw, 28px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px;
    background: var(--slab);
    border: 2px solid rgba(46, 27, 16, 0.25);
    border-radius: var(--radius-slab);
    box-shadow: var(--shadow-slab);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .main-nav .nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 1.05rem;
  }
  .main-nav .nav-link:hover { background: rgba(46, 27, 16, 0.06); text-decoration: none; }
  .main-nav .btn { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(52px, 8vw, 104px) 0 clamp(34px, 5vw, 58px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero .overline { justify-content: flex-start; }

.hero h1 { margin-bottom: 0.35em; }

.hero h1 .paint {
  color: var(--accent);
  text-decoration: underline wavy rgba(192, 83, 45, 0.55);
  text-decoration-thickness: clamp(2px, 0.4vw, 4px);
  text-underline-offset: clamp(7px, 1vw, 13px);
}

.hero-lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: var(--slab);
  border: 2px solid rgba(46, 27, 16, 0.15);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 0 -2px rgba(46, 27, 16, 0.1);
}
.chips li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50% 44% 56% 48%;
  background: var(--accent);
}
.chips li:nth-child(2)::before { background: var(--moss); }
.chips li:nth-child(3)::before { background: var(--amber); }
.chips li:nth-child(4)::before { background: var(--accent); }
.chips li:nth-child(5)::before { background: var(--moss); }

.hero-find { margin: 0; justify-self: center; text-align: center; }
.hero-icon {
  width: min(280px, 62vw);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  background: var(--slab);
  border: 3px solid rgba(46, 27, 16, 0.16);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  box-shadow:
    0 16px 0 -6px rgba(46, 27, 16, 0.15),
    inset 0 0 0 14px rgba(233, 214, 171, 0.55),
    0 34px 60px -30px rgba(46, 27, 16, 0.4);
  position: relative;
}
.hero-icon img {
  width: 76%;
  border-radius: 22%;
  border: 2px solid rgba(46, 27, 16, 0.12);
}
.hero-find figcaption {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.mural-strip {
  margin-top: clamp(34px, 6vw, 64px);
  display: flex;
  justify-content: center;
  color: rgba(46, 27, 16, 0.5);
}
.mural-strip svg { width: min(560px, 92%); height: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .overline { justify-content: center; }
  .hero-lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .chips { justify-content: center; }
  .hero-find { order: -1; }
  .hero-icon { width: min(200px, 48vw); }
  .hero-find figcaption { display: none; }
}

/* ---------- Tale sections ---------- */
.tale {
  padding-block: clamp(60px, 8.5vw, 108px);
}
.tale--earth {
  background-color: var(--earth);
  background-image:
    radial-gradient(rgba(93, 64, 48, 0.05) 1.5px, transparent 1.6px);
  background-size: 34px 34px;
  border-block: 2px dashed rgba(46, 27, 16, 0.12);
}
.tale--cave {
  background-color: var(--cave);
  background-image:
    radial-gradient(rgba(232, 154, 91, 0.09) 1.5px, transparent 1.6px),
    radial-gradient(rgba(242, 228, 196, 0.05) 1px, transparent 1.1px);
  background-size: 30px 30px, 21px 21px;
  background-position: 0 0, 8px 13px;
  color: var(--cream);
}
.tale--cave h2, .tale--cave h3 { color: var(--cream); }
.tale--cave .tale-lede { color: rgba(242, 228, 196, 0.8); }
.tale--cave .overline { color: var(--amber); }
.tale--cave .overline svg { color: var(--amber); }
.tale--cave .glyph-divider { color: rgba(232, 154, 91, 0.75); }

/* ---------- Slab cards ---------- */
.slab {
  background: var(--slab);
  border: 2px solid rgba(46, 27, 16, 0.14);
  border-radius: var(--radius-slab);
  box-shadow: var(--shadow-slab);
}

/* ---------- Tale I: story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.story-copy .drop::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.1em;
  line-height: 0.78;
  color: var(--accent);
  float: left;
  padding: 8px 12px 0 0;
}

.pull-quote {
  margin: 1.6em 0;
  padding: 20px 24px;
  background: var(--slab);
  border: 2px solid rgba(192, 83, 45, 0.35);
  border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px;
  font-style: italic;
  color: var(--ink);
}
.pull-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-deep);
}

.fact-sheet {
  padding: clamp(22px, 3vw, 30px);
}
.fact-sheet h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.18rem;
}
.fact-sheet h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.fact-table th, .fact-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px dashed rgba(46, 27, 16, 0.16);
}
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.fact-table tr:nth-child(even) { background: rgba(233, 214, 171, 0.32); }
.fact-table th {
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.fact-table td { font-weight: 500; }

@media (max-width: 920px) {
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fact-table th, .fact-table td { padding: 8px 8px; font-size: 0.88rem; }
  .fact-table th { white-space: normal; width: 38%; }
}

/* ---------- Tale II: pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
.pillar {
  padding: clamp(22px, 2.5vw, 30px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pillar:hover, .pillar:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-slab-hover);
}
.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.tally {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  background: rgba(233, 214, 171, 0.6);
  border: 2px solid rgba(46, 27, 16, 0.12);
  border-radius: 12px 14px 11px 15px / 14px 11px 15px 12px;
  color: var(--accent-deep);
}
.tally svg { height: 18px; width: auto; display: block; }
.pillar-glyph { width: 44px; height: 44px; color: var(--accent); flex: none; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 920px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Tale III: modes (cave panels) ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
.mode-panel {
  background: var(--cave-soft);
  border: 2.5px solid rgba(232, 154, 91, 0.45);
  border-radius: var(--radius-slab);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.5vw, 30px);
  text-align: center;
  box-shadow: 0 12px 0 -5px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.mode-panel:hover { transform: translateY(-5px); border-color: rgba(232, 154, 91, 0.8); }
.mode-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(232, 154, 91, 0.5);
  border-radius: 50% 44% 52% 46% / 46% 52% 44% 54%;
  color: var(--amber);
}
.mode-icon svg { width: 34px; height: 34px; }
.mode-panel h3 { font-size: 1.35rem; margin-bottom: 6px; }
.mode-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--cave);
  background: var(--amber);
  border-radius: 999px;
}
.mode-panel p { color: rgba(242, 228, 196, 0.82); margin: 0; font-size: 0.98rem; }

@media (max-width: 860px) { .mode-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---------- Tale IV: gallery ---------- */
.mural-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
.mural { margin: 0; }
.mural--wide { grid-column: span 3; }
.mural--tall { grid-column: span 2; }
.mural-frame {
  border: 3px solid rgba(46, 27, 16, 0.16);
  border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px;
  overflow: hidden;
  background: var(--slab);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-slab);
}
.mural:hover .mural-frame { transform: translateY(-4px); border-color: rgba(192, 83, 45, 0.55); }
.mural-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}
.mural-cap {
  padding: 13px 8px 2px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}
.mural-cap .cap-tally { height: 15px; width: auto; color: var(--accent); flex: none; }

@media (max-width: 880px) {
  .mural--wide, .mural--tall { grid-column: span 6; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px;
  background: rgba(24, 13, 6, 0.93);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(94vw, 1180px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border: 3px solid rgba(232, 154, 91, 0.55);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.lightbox-caption {
  margin: 0;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--cave);
  background: var(--amber);
  border: 2px solid rgba(242, 228, 196, 0.6);
  border-radius: 50% 44% 52% 48%;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--cream); }

/* ---------- Tale V: promise ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 26px);
}
.promise-cell {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: clamp(20px, 2.5vw, 26px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.promise-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-slab-hover); }
.promise-icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  background: rgba(192, 83, 45, 0.13);
  border: 2px solid rgba(192, 83, 45, 0.25);
  border-radius: 50% 44% 52% 48% / 48% 52% 44% 52%;
}
.promise-icon svg { width: 26px; height: 26px; }
.promise-cell h3 { font-size: 1.06rem; margin-bottom: 5px; }
.promise-cell p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

@media (max-width: 920px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- Tale VI: makers ---------- */
.makers-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.makers-copy .drop::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.1em;
  line-height: 0.78;
  color: var(--accent);
  float: left;
  padding: 8px 12px 0 0;
}
.makers-list { padding: clamp(22px, 3vw, 30px); }
.makers-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.18rem;
}
.makers-list h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.shelf-note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 10px; }
.makers-list ul { list-style: none; margin: 0; padding: 0; }
.makers-list li { border-bottom: 1px dashed rgba(46, 27, 16, 0.16); }
.makers-list li:last-child { border-bottom: 0; }
.makers-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.97rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.makers-list a:hover { color: var(--accent-deep); background: rgba(192, 83, 45, 0.06); }
.makers-list a span {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.makers-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 920px) { .makers-grid { grid-template-columns: 1fr; } }

/* ---------- Tale VII: FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  margin-bottom: 14px;
  background: var(--slab);
  border: 2px solid rgba(46, 27, 16, 0.14);
  border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px;
  box-shadow: 0 7px 0 -3px rgba(46, 27, 16, 0.12);
  transition: border-color 0.2s ease;
}
.faq-item.is-open { border-color: rgba(192, 83, 45, 0.5); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: inherit;
}
.faq-icon { flex: none; width: 22px; height: 22px; color: var(--accent); transition: transform 0.3s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-soft); }
.faq-a-inner p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background-color: var(--cave);
  background-image:
    radial-gradient(rgba(232, 154, 91, 0.09) 1.5px, transparent 1.6px),
    radial-gradient(rgba(242, 228, 196, 0.05) 1px, transparent 1.1px);
  background-size: 30px 30px, 21px 21px;
  background-position: 0 0, 8px 13px;
  color: var(--cream);
  padding-block: clamp(64px, 9vw, 112px);
  text-align: center;
}
.cta-fire { width: 96px; height: 96px; margin: 0 auto 10px; color: var(--amber); }
.cta-band .overline { color: var(--amber); }
.cta-band .overline svg { color: var(--amber); }
.cta-band h2 { color: var(--cream); }
.cta-band .cta-lede {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(242, 228, 196, 0.82);
  font-size: 1.1rem;
}
.cta-band .hero-cta { justify-content: center; margin-bottom: 22px; }
.cta-band .btn-ghost {
  color: var(--cream);
  border-color: rgba(242, 228, 196, 0.6);
}
.cta-band .btn-ghost:hover {
  background: rgba(242, 228, 196, 0.1);
  border-color: var(--cream);
  color: var(--cream);
}
.cta-note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(242, 228, 196, 0.66);
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  border-bottom: 2px dashed rgba(46, 27, 16, 0.14);
  background: rgba(253, 246, 231, 0.55);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px clamp(18px, 4vw, 28px);
  max-width: 1120px;
  margin-inline: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--accent); }
.crumbs a { color: var(--accent-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: clamp(54px, 8vw, 96px) 0 clamp(26px, 4vw, 44px);
  text-align: center;
}
.page-hero h1 { max-width: 760px; margin-inline: auto; }
.page-hero .page-lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.14rem;
}
.fleuron {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  color: var(--accent);
}
.fleuron svg { width: 44px; height: 44px; }

/* ---------- Prose (about / privacy / terms) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose .lead { font-size: 1.15rem; }
.prose h2 {
  font-size: 1.55rem;
  margin-top: 2em;
  padding-bottom: 8px;
  border-bottom: 2px dashed rgba(192, 83, 45, 0.4);
}
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose a { font-weight: 700; }
.prose-note {
  margin-top: 2.6em;
  padding: 18px 22px;
  background: var(--slab);
  border: 2px solid rgba(46, 27, 16, 0.14);
  border-left: 5px solid var(--accent);
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact-info dl { margin: 22px 0 0; }
.contact-info dt { font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 18px; }
.contact-info dt:first-of-type { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; }

.contact-form { padding: clamp(24px, 3.5vw, 36px); }
.contact-form h2 { margin-bottom: 6px; }
.form-note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--slab-lit);
  border: 2px solid rgba(46, 27, 16, 0.2);
  border-radius: 12px 14px 11px 15px / 14px 11px 15px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 83, 45, 0.18);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-status { min-height: 1.4em; margin: 14px 0 0; font-weight: 700; font-size: 0.92rem; color: var(--moss); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--cave-deep);
  color: rgba(242, 228, 196, 0.85);
  padding: clamp(48px, 6vw, 72px) 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand svg { color: var(--amber); }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-name em { color: var(--amber); }
.footer-brand p { font-size: 0.94rem; color: rgba(242, 228, 196, 0.72); max-width: 420px; }
.site-footer h3 { color: var(--cream); font-size: 1.02rem; margin-bottom: 14px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin-bottom: 9px; }
.site-footer nav a {
  color: rgba(242, 228, 196, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer nav a:hover { color: var(--amber); text-decoration: underline wavy rgba(232, 154, 91, 0.6); text-underline-offset: 5px; }
.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 228, 196, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.85rem;
  color: rgba(242, 228, 196, 0.6);
}
.footer-bottom p { margin: 0; max-width: 560px; }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--slab);
  border: 2px solid rgba(46, 27, 16, 0.35);
  border-radius: 50% 44% 52% 48% / 48% 52% 44% 54%;
  box-shadow: 0 6px 0 -2px rgba(46, 27, 16, 0.25), 0 16px 30px -12px rgba(46, 27, 16, 0.4);
  cursor: pointer;
  transition: transform 0.18s ease;
}
.to-top.is-shown { display: grid; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

html.no-motion .reveal,
.no-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar, .mode-panel, .promise-cell, .mural-frame, .to-top {
    transition: none;
  }
  .btn:hover, .pillar:hover, .mode-panel:hover, .promise-cell:hover, .mural:hover .mural-frame, .to-top:hover {
    transform: none;
  }
}