/* ============================================================
   gillianparkinsonf.com — Design System
   Tokens per Build Brief §3. Mobile-first.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --accent: #8B7355;        /* muted bronze/gold */
  --accent-deep: #6E5B43;   /* hover/pressed */
  --accent-soft: #C9B89A;   /* faint accent for large letters */
  --dark: #1A1A1A;          /* body text, primary headings */
  --soft-grey: #8A8580;     /* secondary text, captions */
  --cream: #F5F2ED;         /* card backgrounds, score boxes */
  --cream-deep: #ECE6DB;    /* slightly deeper cream for nested cards */
  --rule: #D4D4D4;          /* dividers, cell borders */
  --bg: #FFFFFF;            /* page background */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-text: 720px;
  --container-wide: 1200px;

  --space-section: clamp(48px, 8vw, 120px);
  --space-section-tight: clamp(32px, 5vw, 64px);

  --radius: 4px;
  --transition: 200ms ease-out;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--accent-deep); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--dark); color: #fff; padding: 8px 16px;
  font-family: var(--sans); font-size: 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Containers ---------- */
.container { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 212, 212, 0.5);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-wide); margin: 0 auto;
  padding: 16px 24px;
}
.brand {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--dark); letter-spacing: 0.02em;
}
.brand:hover { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--dark); text-transform: uppercase; letter-spacing: 0.12em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  display: inline-block;
  border: 1.5px solid var(--accent); color: var(--accent);
  padding: 10px 20px; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover { background: var(--accent); color: #fff; }
.lang-toggle {
  background: transparent; border: 1px solid var(--rule);
  padding: 6px 10px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--dark);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 4px 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: 16px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .site-header[data-open="true"] .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* ---------- Section primitives ---------- */
section { padding: var(--space-section) 0; }
section.tight { padding: var(--space-section-tight) 0; }
section.cream { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 20px;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--dark); margin: 0 0 24px; }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -0.005em; }
h3 { font-size: clamp(22px, 2.8vw, 30px); }
h4 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; }
.italic-clause { font-style: italic; color: var(--accent); }

p { margin: 0 0 1.2em; max-width: 65ch; }
p.lead { font-size: 19px; color: var(--dark); }
p.soft { color: var(--soft-grey); }
p.italic-open { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--soft-grey); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 16px 32px; border: 1.5px solid var(--accent);
  color: var(--accent); background: transparent;
  transition: background var(--transition), color var(--transition);
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: #fff; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-deep); color: #fff; }
.btn-link {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.btn-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Stats row ---------- */
.stats-row {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 32px 0; margin: 48px 0 0;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--serif); font-size: clamp(36px, 5vw, 52px);
  color: var(--accent); font-weight: 500; line-height: 1; margin-bottom: 8px;
}
.stat-label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--soft-grey); font-weight: 500;
}

/* ---------- Pull quote ---------- */
.pullquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px; margin: 32px 0;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--dark); line-height: 1.5;
}

/* ---------- Cards ---------- */
.card {
  background: var(--cream); padding: 32px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--accent); }

.numbered-card {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 24px;
  background: var(--cream); padding: 32px; margin-bottom: 16px;
  border-left: 3px solid var(--accent);
}
.numbered-card .num {
  font-family: var(--serif); font-size: 36px; color: var(--accent);
  line-height: 1; font-weight: 500;
}
.numbered-card .quote {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--dark); margin: 0 0 8px;
}
.numbered-card .body { color: var(--soft-grey); margin: 0; font-size: 16px; }

/* ---------- Three-column grids ---------- */
.cols-3 {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- Pillar block (B / M / AI) ---------- */
.pillar {
  border-top: 1px solid var(--rule); padding-top: 32px;
}
.pillar .big-letter {
  font-family: var(--serif); font-size: 80px;
  color: var(--accent-soft); line-height: 0.9; margin-bottom: 16px;
}
.pillar .pillar-name {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.pillar ul { list-style: none; margin: 0; padding: 0; }
.pillar li {
  padding: 8px 0; border-bottom: 1px dotted var(--rule);
  font-size: 15px; color: var(--dark);
}
.pillar li:last-child { border-bottom: 0; }

/* ---------- Offer card (preview) ---------- */
.offer-card {
  background: var(--bg); border: 1px solid var(--rule);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: border-color var(--transition), background var(--transition);
}
.offer-card:hover { border-color: var(--accent); background: var(--cream); }
.offer-card .offer-num {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.2em; margin-bottom: 8px;
}
.offer-card .offer-name {
  font-family: var(--serif); font-size: 28px; margin-bottom: 12px;
}
.offer-card .offer-tag {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--soft-grey); margin-bottom: 16px;
}
.offer-card .offer-body { font-size: 15px; color: var(--dark); margin-bottom: 20px; }
.offer-card .offer-meta {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--rule);
}
.offer-card .offer-cta { margin-top: auto; }

/* ---------- Story card ---------- */
.story-card {
  background: var(--bg); border: 1px solid var(--rule);
  padding: 36px; display: block; color: inherit;
  transition: border-color var(--transition), background var(--transition);
}
.story-card:hover { border-color: var(--accent); background: var(--cream); color: inherit; }
.story-card .story-tag {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.story-card .story-headline {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px; color: var(--dark);
}
.story-card .story-preview {
  color: var(--soft-grey); font-size: 16px; margin-bottom: 20px;
}
.story-card .inline-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 18px; color: var(--accent);
  padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.story-card .read-link {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em;
}
.story-card:hover .read-link { color: var(--accent-deep); }

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  padding: 16px; border: 1px solid var(--rule); text-align: left; vertical-align: top;
}
.compare-table thead th {
  background: var(--cream); font-family: var(--sans); font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.compare-table tbody th {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  font-weight: 500; color: var(--dark); background: #fff;
}
.compare-table .check { color: var(--accent); font-weight: 600; }

/* ---------- "What I Don't Do" list ---------- */
.dontdo-item {
  border-top: 1px solid var(--rule); padding: 32px 0;
}
.dontdo-item:last-child { border-bottom: 1px solid var(--rule); }
.dontdo-item h3 {
  font-family: var(--serif); font-size: 24px; margin-bottom: 12px;
  color: var(--dark);
}
.dontdo-item .dontdo-num {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.2em; margin-right: 12px;
}
.dontdo-item p { color: var(--soft-grey); margin-bottom: 0; }

/* ---------- Tag pills ---------- */
.tag-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.tag-pill {
  display: inline-block;
  border: 1px solid var(--accent); color: var(--accent);
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; color: var(--accent);
  text-transform: uppercase; font-weight: 500; margin-bottom: 24px;
  font-family: var(--sans);
}
.hero h1 { margin-bottom: 24px; }
.hero .subhead {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px);
  color: var(--soft-grey); margin-bottom: 24px; line-height: 1.4;
}
.hero .body { font-size: 17px; color: var(--dark); margin-bottom: 32px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--soft-grey); font-family: var(--serif); font-style: italic;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Score box ---------- */
.score-box {
  background: var(--cream); border: 1px solid var(--rule);
  padding: 32px; border-radius: var(--radius);
  max-width: 540px; margin: 32px auto;
}

/* ---------- Lead magnet form ---------- */
.lead-form { display: grid; gap: 16px; max-width: 520px; }
.lead-form label {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--dark);
}
.lead-form input, .lead-form textarea {
  font: inherit; padding: 14px 16px; border: 1px solid var(--rule);
  background: #fff; border-radius: var(--radius);
  transition: border-color var(--transition);
}
.lead-form input:focus, .lead-form textarea:focus {
  border-color: var(--accent); outline: none;
}
.lead-form .honeypot { position: absolute; left: -9999px; }
.lead-form .consent {
  font-size: 13px; color: var(--soft-grey); line-height: 1.5;
}
.form-status {
  font-family: var(--sans); font-size: 14px; padding: 12px 16px;
  border-radius: var(--radius); display: none;
}
.form-status.ok { display: block; background: var(--cream); color: var(--dark); border-left: 3px solid var(--accent); }
.form-status.err { display: block; background: #FBECEC; color: #7A2222; border-left: 3px solid #C44; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark); color: #D9D5CE;
  padding: 64px 0 32px; margin-top: 80px;
  font-size: 14px;
}
.site-footer .footer-tagline {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px);
  color: var(--cream); margin-bottom: 48px; line-height: 1.3;
}
.site-footer .footer-tagline .italic-clause { color: var(--accent-soft); }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h5 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--accent-soft); text-transform: uppercase; letter-spacing: 0.18em;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #D9D5CE; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; color: #8A8580;
}
.footer-bottom a { color: #8A8580; margin-left: 16px; }
.footer-bottom a:hover { color: var(--accent-soft); }

/* ---------- Reveal on scroll (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 300ms ease-out, transform 300ms ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Story long-form layout ---------- */
.story-article { padding: clamp(40px, 6vw, 80px) 0; }
.story-article .story-hero {
  text-align: center; max-width: 800px; margin: 0 auto 64px;
}
.story-article h1 { margin-bottom: 16px; }
.story-article .story-sub {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--soft-grey); margin-bottom: 32px;
}
.story-article .story-section { max-width: var(--container-text); margin: 0 auto; padding: 32px 24px; }
.story-article .rule {
  width: 60px; height: 1px; background: var(--accent);
  margin: 48px auto;
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted { color: var(--soft-grey); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 64px; }
.flow > * + * { margin-top: 1.2em; }
