/* Legata — Historical Figures landing site
   Palette derived from app icon: golden astrolabe on deep ink navy. */

:root {
  --ink: #10131c;
  --ink-soft: #1c2130;
  --gold: #c9971f;
  --gold-bright: #e8b83a;
  --gold-deep: #7c5e0e;
  --paper: #faf6ec;
  --paper-soft: #f1ead9;
  --text: #23283a;
  --text-muted: #5a5f72;
  --line: #ddd3ba;
  --card: #ffffff;
  --link: #7c5e0e;
  --badge-bg: #10131c;
  --badge-text: #faf6ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1118;
    --paper-soft: #161b26;
    --text: #e9e2cf;
    --text-muted: #a9a894;
    --line: #2b3040;
    --card: #171c28;
    --link: #e8b83a;
    --gold-deep: #e8b83a;
    --badge-bg: #e9e2cf;
    --badge-text: #10131c;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
}

h1, h2, h3, .brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p + p { margin-top: 1rem; }

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #10131c;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #f3edda;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}
.site-nav a {
  color: #e6ddc2;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-bright); text-decoration: underline; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
    z-index: 50;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .site-nav a { display: block; padding: 0.6rem 0; font-size: 1.05rem; }
  .site-header .wrap { position: relative; }
  .site-header { position: relative; }
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at 50% -20%, #232b42 0%, var(--ink) 60%);
  color: #ece5d0;
  padding: 4rem 0 4.5rem;
  text-align: center;
}
.hero .kicker {
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 { color: #f6f0dd; max-width: 46rem; margin: 0 auto 1.1rem; }
.hero .lede {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: #c8c2ab;
}
.hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  margin: 0 auto 1.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,184,58,0.35);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: #9d987f; }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 0.65rem 1.3rem;
  text-decoration: none;
  text-align: left;
  line-height: 1.2;
}
.hero .appstore-badge { background: #f3edda; color: #10131c; }
.appstore-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.appstore-badge .small { display: block; font-size: 0.7rem; letter-spacing: 0.02em; }
.appstore-badge .big { display: block; font-size: 1.15rem; font-weight: 700; }
.appstore-badge:hover, .appstore-badge:focus-visible { transform: translateY(-2px); transition: transform 0.15s ease; }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--paper-soft); }
.section-intro { max-width: 44rem; color: var(--text-muted); margin-bottom: 2rem; }

/* Problem / solution */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
}
.panel h3 { color: var(--gold-deep); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
}
.feature .num {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.3rem;
}
.feature p { font-size: 0.97rem; color: var(--text-muted); }

/* Bio anatomy card (text mock — no screenshots available) */
.bio-card {
  background: var(--ink);
  color: #e9e2cf;
  border: 1px solid rgba(232,184,58,0.4);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  max-width: 30rem;
}
.bio-card .era-tag {
  color: var(--gold-bright);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.bio-card h3 {
  color: #f6f0dd;
  font-size: 1.6rem;
  margin: 0.3rem 0 0.1rem;
}
.bio-card .aka { color: #a9a288; font-style: italic; font-size: 0.95rem; margin-bottom: 1rem; }
.bio-card ul { list-style: none; margin-top: 1rem; }
.bio-card li {
  padding: 0.55rem 0;
  border-top: 1px solid #2b3040;
  font-size: 0.95rem;
}
.bio-card li::before { content: "◆ "; color: var(--gold); font-size: 0.7rem; }

/* Eras & cities lists */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; margin-top: 1rem; }
.pill-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.92rem;
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

/* Pricing */
.price-box {
  background: var(--card);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  max-width: 34rem;
}
.price-box strong { color: var(--gold-deep); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-family: inherit; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  padding: 1.1rem 2.2rem 1.1rem 0.2rem;
  cursor: pointer;
  position: relative;
  font-size: 1.05rem;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 1.5rem;
  font-weight: 400;
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { padding: 0 0.2rem 1.2rem; color: var(--text-muted); max-width: 46rem; }
.faq-a[hidden] { display: none; }

/* Guides teaser */
.guide-links { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-links a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--text);
}
.guide-links a:hover, .guide-links a:focus-visible { border-left-color: var(--gold-bright); background: var(--paper-soft); }
.guide-links .g-title { font-weight: 700; color: var(--link); display: block; margin-bottom: 0.25rem; }
.guide-links .g-desc { font-size: 0.92rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #b9b299;
  padding: 2.8rem 0 2.2rem;
  font-size: 0.95rem;
}
.site-footer h2 { color: #f0e9d5; font-size: 1.15rem; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin: 0.45rem 0; }
.site-footer a { color: #dccf9f; }
.footer-legal { border-top: 1px solid #2b3040; padding-top: 1.4rem; font-size: 0.85rem; }

/* Guide article pages */
.breadcrumb { font-size: 0.9rem; margin: 1.5rem 0 0; color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--text-muted); }
.article { max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem 3.5rem; }
.article header h1 { margin: 0.8rem 0 0.6rem; }
.article .byline { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 2rem; }
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { margin: 1rem 0 1rem 1.4rem; }
.article li { margin: 0.45rem 0; }
.article blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.1rem;
  margin: 1.4rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.how-legata-helps {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  margin-top: 2.5rem;
}
.related { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
