/* =========================================================
   MORE PRESS — shared styles
   Colors and sizes live in :root. Change them here only.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand (taken from the app icon and App Store screenshots) */
  --cream: #F6EFE2;
  --cream-deep: #EFE4CF;
  --paper: #FFFDF8;
  --ink: #1B2433;
  --ink-soft: #3E4A5A;
  --green: #1F5139;
  --green-dark: #163B29;
  --gold: #C99A3B;
  --sky: #DCE7EC;
  --line: #D9CDB6;

  /* Decades (as shown in the app) */
  --d50: #0E6E6F;
  --d60: #B4461A;
  --d70: #5B6620;
  --d80: #7B2D7E;
  --d90: #1F4E8C;

  /* Type: large by default for comfortable reading */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step-0: 1.25rem;                              /* body ~20px */
  --step-1: clamp(1.375rem, 1.2rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.7rem + 3vw, 4rem);    /* H1 */

  --radius: 22px;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 10;
}
.skip-link:focus { left: 12px; color: #fff; }

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

/* ---------- Header ---------- */
.site-header { padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 2px 6px rgba(27,36,51,.18); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.header-link { font-weight: 600; font-size: 1.05rem; padding: 12px 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 64px; padding: 14px 30px;
  border-radius: 999px; border: 3px solid transparent;
  font-family: var(--sans); font-size: 1.3rem; font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn small { font-size: 0.95rem; font-weight: 500; opacity: .92; margin-top: 2px; }
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 6px 0 var(--green-dark), 0 10px 24px rgba(31,81,57,.28);
}
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-dark); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }

.cta-group { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 460px; }
.cta-note { font-size: 1.05rem; color: var(--ink-soft); margin: 4px 0 0; }
.cta-note strong { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 28px 0 56px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(246,239,226,.0) 0%, rgba(246,239,226,.75) 70%, var(--cream) 100%),
    repeating-conic-gradient(from -4deg at 50% 45%, var(--sky) 0deg 7.5deg, var(--cream) 7.5deg 15deg);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--paper); border: 2px solid var(--line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 0.35em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 34ch; }
.hero-shot { justify-self: center; width: min(78vw, 340px); }
.hero-shot img { border-radius: 26px; box-shadow: 0 18px 40px rgba(27,36,51,.22); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-alt { background: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.section-intro { max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

/* Decades */
.decades { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.decades li {
  color: #fff; border-radius: 18px; padding: 18px 20px;
  font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1;
  position: relative; overflow: hidden;
}
.decades li span { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-top: 8px; opacity: .95; }
.decades li::after {
  content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 46px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 10px, transparent 10px 18px);
}
.d50 { background: var(--d50); } .d60 { background: var(--d60); } .d70 { background: var(--d70); }
.d80 { background: var(--d80); } .d90 { background: var(--d90); }

/* Topic list */
.topics { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.topics li {
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px;
  padding: 16px 20px; font-weight: 700; font-size: 1.2rem;
}
.section-alt .topics li { background: var(--cream); }

/* Feature checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.25rem; line-height: 1.45; }
.checklist li::before {
  content: ""; flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* Screenshot gallery: swipe on phones, grid on large screens */
.gallery {
  list-style: none; margin: 28px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery li { scroll-snap-align: center; }
.gallery img { border-radius: 22px; box-shadow: 0 10px 26px rgba(27,36,51,.18); background: var(--cream-deep); }
.gallery-hint { font-size: 1rem; color: var(--ink-soft); margin: 4px 0 0; }

/* Pricing cards */
.plans { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan-full { border-color: var(--green); }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; margin: 0 0 12px; color: var(--green); }
.plan .price small { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li { margin-bottom: 8px; }
.fineprint { font-size: 1rem; color: var(--ink-soft); margin-top: 18px; }

/* Books ↔ Play */
.books-grid { display: grid; gap: 28px; align-items: center; }
.books-logo { width: min(64vw, 260px); justify-self: center; }
.bridge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 22px; font-weight: 700; font-size: 1.2rem; }
.bridge span { background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 6px 16px; }
.bridge .arrow { border: 0; background: none; padding: 0; color: var(--gold); font-size: 1.6rem; }
.books-actions { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }

/* FAQ */
.faq { margin-top: 24px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 700; font-size: 1.25rem; min-height: 64px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 2rem; font-weight: 400; color: var(--green); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta .cta-group { margin: 0 auto; }
.final-cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 6px 16px rgba(27,36,51,.2); }

/* Home page cards */
.home-hero { text-align: center; padding: 40px 0 24px; }
.home-hero img { width: min(70vw, 300px); margin: 0 auto 12px; }
.home-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding-bottom: 56px; }
.home-card { background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.home-card .btn { margin-top: auto; }
.home-card img.card-icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9EDF2; padding: 40px 0 48px; font-size: 1.05rem; }
.site-footer a { color: #fff; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer nav a { display: inline-block; padding: 8px 0; font-weight: 600; }
.site-footer .legal { font-size: 0.92rem; color: #B9C2CE; margin: 6px 0 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 860px) {
  .hero { padding: 40px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-shot { width: 360px; }
  .books-grid { grid-template-columns: 0.7fr 1.3fr; }
  .gallery {
    overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr);
    margin: 28px 0 0; padding: 0;
  }
  .gallery-hint { display: none; }
  section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Small helpers ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.home-card img.logo-icon { border-radius: 0; height: auto; }
.not-found { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.not-found .section-intro { margin-bottom: 28px; }
.nf-icon { margin: 0 auto 20px; border-radius: 22px; }
[hidden] { display: none !important; }

@media (max-width: 400px) {
  .btn { padding: 14px 18px; font-size: 1.2rem; }
  .eyebrow { font-size: 0.9rem; letter-spacing: .04em; }
}
