/* Readaloft marketing site. Warm, calm, editorial. No em dashes anywhere. */

:root {
  --bg: #fbf7f1;
  --bg-alt: #f3ece0;
  --ink: #1c1a16;
  --ink-soft: #4a4238;
  --muted: #665e52;
  --accent: #9c3e22;
  --accent-ink: #ffffff;
  --accent-soft: #fde7d6;
  --rule: #e3d9c7;
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(28, 26, 22, 0.04),
                 0 8px 24px rgba(28, 26, 22, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1100px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Charter", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
          Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --bg-alt: #1c1915;
    --ink: #f6ead9;
    --ink-soft: #d9cdba;
    --muted: #9c9382;
    --accent: #e27a4f;
    --accent-ink: #15130f;
    --accent-soft: #3a241a;
    --rule: #2b261f;
    --card: #1f1b16;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3),
                   0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Underline links in prose so colour isn't the only signal. */
p a, .faq p a, .foot-credit a { text-decoration: underline; text-underline-offset: 2px; }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav nav a { color: var(--ink-soft); margin-left: 20px; font-size: 15px; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft), var(--accent) 70%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, black);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* Hero */
.hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 52ch;
}
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--rule);
}
.hero-card-title { font-weight: 600; font-size: 15px; }
.hero-card-sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hero-card audio { width: 100%; }
.hero-card-foot { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 600;
}
.section-lede { color: var(--ink-soft); max-width: 62ch; margin: 0 0 32px; }

/* Samples */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sample-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}
.sample-card h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.sample-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.sample-card audio { width: 100%; }

/* Features */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.feat-grid h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.feat-grid p { color: var(--ink-soft); margin: 0; }

/* Pricing */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--rule);
  padding: 32px;
  text-align: center;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.price-amount {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-period { color: var(--muted); font-size: 15px; }
.pricing-copy { color: var(--ink-soft); margin: 0 0 20px; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--ink-soft);
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-features li { padding: 6px 0 6px 28px; position: relative; }
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.restore { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  padding-right: 24px;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  font-size: 22px;
  color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); margin: 10px 0 2px; }

.restore-form { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.restore-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
}
.restore-status { font-size: 14px; color: var(--muted); margin: 0; width: 100%; }
.restore-status.ok { color: var(--accent); }
.restore-status.err { color: #a93939; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 40px 0 28px;
  background: var(--bg);
  color: var(--ink-soft);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: start;
  margin-bottom: 20px;
}
.foot-tag { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.foot-links a { color: var(--ink-soft); margin-left: 18px; font-size: 14px; }
.foot-credit { color: var(--muted); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .sample-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav nav a { margin-left: 12px; font-size: 14px; }
  .nav nav a:not(.btn) { display: none; }
}
