/* Classica — website styles
   Design tokens mirror the app's AppTheme:
   parchment-and-ink ground, Tyrian purple + gold leaf, restrained serif display. */

:root {
  /* Parchment / ink (light) */
  --parchment:      #F4ECD8;
  --parchment-deep: #E8DCC4;
  --ink:            #2E2A26;
  --ink-soft:       #5A5247;

  /* Imperial accents */
  --imperial:       #5B2A6B;
  --imperial-deep:  #3F1A4C;
  --gold:           #C8A24B;
  --gold-deep:      #B8923A;
  --oxblood:        #7A2E2E;

  /* Semantic (light) */
  --surface:        var(--parchment);
  --surface-muted:  var(--parchment-deep);
  --accent:         var(--imperial);
  --gold-rule:      var(--gold-deep);
  --text-primary:   var(--ink);
  --text-secondary: var(--ink-soft);
  --divider:        rgba(184, 146, 58, 0.35);

  --radius:  16px;
  --radius-s: 8px;
  --maxw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Inked basalt (dark) */
    --surface:        #1A1614;
    --surface-muted:  #262019;
    --accent:         var(--gold);      /* app tints to gold in dark mode */
    --gold-rule:      var(--gold);
    --text-primary:   #EAE0C8;
    --text-secondary: rgba(234, 224, 200, 0.7);
    --divider:        rgba(200, 162, 75, 0.25);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */
header {
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent); }

/* ---- Type ---- */
h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 2.3rem; margin: 0 0 12px; letter-spacing: 0.01em; }
h2 { font-size: 1.5rem; margin: 40px 0 12px; }
h3 { font-size: 1.15rem; margin: 28px 0 6px; }

p { margin: 0 0 16px; }

a { color: var(--accent); }

.lede {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

.gold-rule {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-rule), transparent);
  margin: 40px 0;
}

/* ---- Hero ---- */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  padding: 12px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  margin-top: 8px;
}
.btn:hover { opacity: 0.92; }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.card {
  background: var(--surface-muted);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { margin-top: 0; color: var(--accent); }
.card p { margin: 0; color: var(--text-secondary); font-size: 0.96rem; }

/* ---- Content sections ---- */
main { padding: 8px 0 56px; }
section { margin-bottom: 8px; }

.faq h3 { margin-bottom: 4px; }
.faq p { color: var(--text-secondary); }

.contact-box {
  background: var(--surface-muted);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 24px;
}

.muted { color: var(--text-secondary); font-size: 0.95rem; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--divider);
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-inner a { color: var(--text-secondary); text-decoration: none; margin-left: 18px; }
.footer-inner a:hover { color: var(--accent); }
.footer-links { display: flex; }
.footer-links a:first-child { margin-left: 0; }
