/* Book Alarm — content site. Dusk + lamplight: navy, cream, gold. */
:root {
  --navy: #16213e;
  --navy-soft: #243456;
  --cream: #f5edd9;
  --cream-deep: #efe4c8;
  --gold: #e8b85a;
  --gold-deep: #d6a23f;
  --ink: #1b2238;
  --muted: #5d6072;
  --paper: #fbf7ec;
  --line: #e3d9bf;
  --radius: 14px;
  --wrap: 1080px;
  --shadow: 0 1px 2px rgba(22,33,62,.06), 0 8px 24px rgba(22,33,62,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: 720px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--cream);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  padding: .62em 1.15em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { background: transparent; border-color: rgba(22,33,62,.25); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: .8em 1.5em; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-name { font-family: "Fraunces", serif; font-size: 1.2rem; color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .96rem; font-weight: 500; }
.site-nav a:hover { color: var(--navy); }
.site-nav .lang-switch { color: var(--muted); }
.site-nav .btn { color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--gold-deep); margin: 0 0 .6em; }
.hero h1 { margin: 0 0 .5em; }
.hero h1 em { color: var(--navy-soft); }
.lead { font-size: 1.18rem; color: #36405c; margin: 0 0 1.6em; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { filter: drop-shadow(0 14px 30px rgba(22,33,62,.22)); border-radius: 28px; }

/* Sections */
.section { padding-block: clamp(44px, 6vw, 76px); }
.section-alt { background: var(--cream); border-block: 1px solid var(--line); }
.section-center { text-align: center; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-link { font-weight: 600; text-decoration: none; white-space: nowrap; }

.page-head { background: var(--cream); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.page-head .lead { margin-top: .5em; }

/* Value props */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.prop { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.prop h3 { margin: 0 0 .4em; }
.prop p { margin: 0; color: var(--muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(22,33,62,.12); }
.card h2, .card h3 { margin: 0; font-size: 1.22rem; }
.card p { margin: 0; color: var(--muted); }
.card-meta { font-size: .9rem; color: var(--gold-deep) !important; font-weight: 500; }
.card-date { font-size: .82rem; color: var(--muted); letter-spacing: .03em; }
.card-more { margin-top: auto; color: var(--navy); font-weight: 600; font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--navy); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-band h2 { color: var(--cream); max-width: 22ch; }

/* Article / prose */
.article { padding-block: clamp(36px, 5vw, 64px); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-meta { color: var(--muted); font-size: .92rem; margin-top: -.4em; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.7em; }
.prose p, .prose ul, .prose ol { margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { font-weight: 500; }

.article-cta {
  margin-top: 40px; padding: 28px; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.article-cta p { margin: 0; font-family: "Fraunces", serif; font-size: 1.2rem; color: var(--navy); max-width: 34ch; }

/* pSEO specifics */
.why-stall { margin-top: 36px; }
.why-stall ul { padding-left: 1.2em; }
.plan { margin-top: 40px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 18px 0; }
.plan-card {
  background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.plan-pace { font-size: .9rem; color: var(--gold); letter-spacing: .02em; }
.plan-days { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 600; }

.faq { margin-top: 40px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 10px 0; background: var(--paper); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: .7em 0 0; color: var(--muted); }

.related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.related-list a { font-weight: 500; }

/* 404 */
.big-404 { font-family: "Fraunces", serif; font-size: clamp(4rem, 14vw, 8rem); color: var(--gold); margin: 0; line-height: 1; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-block: 48px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand p { margin: 0; color: #cdd3e0; max-width: 42ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--cream); text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
/* Newsletter (in footer) */
.newsletter { border-top: 1px solid rgba(245,237,217,.15); padding-block: 30px; }
.news-form { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.news-copy strong { display: block; font-family: "Fraunces", serif; font-size: 1.25rem; color: var(--cream); }
.news-copy span { color: #cdd3e0; font-size: .94rem; }
.news-row { display: flex; gap: 10px; position: relative; }
.news-row input[type=email] { padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(245,237,217,.25); background: rgba(255,255,255,.06); color: var(--cream); min-width: 240px; font: inherit; }
.news-row input[type=email]::placeholder { color: #9aa3ba; }
.news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news-flash { padding: 10px 16px; border-radius: 10px; font-size: .92rem; margin: 0 0 16px; }
.news-ok { background: rgba(120,200,140,.18); color: #bfe6c8; }
.news-err { background: rgba(220,120,120,.18); color: #f0c3c3; }
.news-privacy { display: inline-block; margin-top: 12px; color: #9aa3ba; font-size: .82rem; text-decoration: none; }
.news-privacy:hover { color: var(--cream); text-decoration: underline; }

/* Optional ad slot (renders only when admin pastes code; empty = nothing) */
.ad-slot { margin: 32px auto; max-width: 760px; text-align: center; min-height: 0; }
.ad-slot:empty { display: none; }

.footer-legal { border-top: 1px solid rgba(245,237,217,.15); padding-block: 18px; font-size: .85rem; color: #aab2c6; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 150px; height: 150px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .site-nav { gap: 14px; font-size: .9rem; }
  .site-nav a:not(.btn):not(.lang-switch) { display: none; }
}
