/* Founder's Story pages. Palette + type match the main Lantern Arcana site
   (see template_supporting_page.html). Root-relative asset paths so these
   files work from the /story/ subdirectory. */
:root {
  --bg-cream: #EFE6DF;
  --bg-cream-soft: #F5EEE8;
  --bg-card: #EBE0D6;
  --ink: #151413;
  --ink-soft: #4A4644;
  --ink-mute: #6C6966;
  --gold: #C9A26B;
  --gold-soft: rgba(201, 162, 107, 0.28);
  --border-subtle: rgba(21, 20, 19, 0.08);
  --content-width: 680px;
  --shell-width: 1100px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', system-ui, sans-serif;
  background: var(--bg-cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
.shell { max-width: var(--shell-width); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  padding: 20px 0;
  position: sticky; top: 0;
  background: rgba(239, 230, 223, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 19px; letter-spacing: 0.2px;
  color: var(--ink); text-decoration: none;
}
.logo img { height: 32px; width: auto; }
nav ul { display: flex; gap: 30px; list-style: none; }
nav a {
  color: var(--ink-mute); text-decoration: none;
  font-size: 15px; font-weight: 500; transition: color 0.2s;
}
nav a:hover { color: var(--ink); }

/* Page body */
main.page { padding: 64px 0 96px; }
.page-header { max-width: var(--content-width); margin: 0 auto 48px; text-align: center; }
.eyebrow {
  color: var(--gold); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 12px;
}
h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 16px;
  color: var(--ink);
}
.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.65; }

/* Chapter grid (landing) */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--shell-width);
  margin: 0 auto;
}
.chapter-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 180px;
}
.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(21, 20, 19, 0.10);
  border-color: var(--gold-soft);
}
.chapter-card.coming { opacity: 0.6; pointer-events: none; }
.chapter-num {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.chapter-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.2; margin-bottom: 10px;
}
.chapter-blurb { font-size: 15px; color: var(--ink-mute); line-height: 1.55; flex: 1; }
.chapter-cta {
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.chapter-cta::after { content: ' \2192'; color: var(--gold); }
.chapter-card.coming .chapter-cta { color: var(--ink-mute); }
.chapter-card.coming .chapter-cta::after { content: ''; }

/* Chapter page: vertical player */
.chapter-body { max-width: var(--content-width); margin: 0 auto; }
.back-link {
  display: inline-block; margin-bottom: 24px;
  color: var(--ink-mute); text-decoration: none; font-size: 14px; font-weight: 500;
}
.back-link:hover { color: var(--ink); }
.back-link::before { content: '\2190  '; color: var(--gold); }
.player {
  /* Height-driven so the tall 9:16 frame always fits the viewport and the
     Prev/Next pager stays visible below it without a long scroll. */
  height: min(68vh, 620px);
  aspect-ratio: 9 / 16;
  width: auto;
  max-width: 100%;
  margin: 0 auto 16px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(21, 20, 19, 0.18);
}
.player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.player.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 15px; text-align: center; padding: 24px;
}
.chapter-body .eyebrow { text-align: center; }
.chapter-body h1 { text-align: center; }
.chapter-body .blurb {
  font-size: 18px; color: var(--ink-soft); line-height: 1.7;
  text-align: center; margin: 12px auto 0; max-width: 560px;
}
.chapter-pager {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-subtle);
}
.chapter-pager a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 1.5px solid var(--gold-soft); padding-bottom: 2px;
}
.chapter-pager a:hover { border-bottom-color: var(--gold); }
.chapter-pager .spacer { flex: 1; }

/* Footer */
footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-mute); font-size: 14px;
  background: var(--bg-cream-soft);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 24px; width: auto; opacity: 0.85; }
footer ul { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
footer a { color: var(--ink-mute); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--ink); }
.fine-print {
  max-width: 720px; margin: 32px auto 0;
  font-size: 12px; color: var(--ink-mute); line-height: 1.55;
  text-align: center; opacity: 0.85;
}

@media (max-width: 768px) {
  main.page { padding: 48px 0 80px; }
  nav ul { gap: 16px; font-size: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  footer ul { gap: 14px; }
}
@media (max-width: 480px) {
  header { padding: 16px 0; }
  .shell { padding: 0 20px; }
  .logo img { height: 28px; }
}
