/* ============================================================
   LearnBridge Access — shared stylesheet
   Palette:  ink #182B3A / slate #2E4A62 / mist #E7EEF3
             gold #E0A24E (signature accent) / paper #FBFAF6
   Type:     "Fraunces" display · "Inter" body/utility
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:    #182B3A;
  --slate:  #2E4A62;
  --mist:   #E7EEF3;
  --gold:   #E0A24E;
  --gold-d: #C4863A;
  --paper:  #FBFAF6;
  --line:   #D6DEE5;
  --muted:  #5C6B77;
  --maxw:   1080px;
  --rad:    10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--gold-d); text-decoration: underline; }

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

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-d);
}

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,246,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--slate), var(--ink));
  display: grid; place-items: center; color: var(--gold); font-size: 17px;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--gold-d); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 18px;
  border-radius: var(--rad); font-size: 14px; font-weight: 600;
}
.nav-cta:hover { background: var(--slate); text-decoration: none !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px 24px; gap: 16px;
  }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(224,162,78,0.16), transparent 60%),
    linear-gradient(180deg, var(--mist), var(--paper));
  padding: 78px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 14px 0 18px; }
.hero p.lead { font-size: 18px; color: var(--slate); max-width: 46ch; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--rad);
  font-weight: 600; font-size: 15px; cursor: pointer; border: 0;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-d); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--slate); text-decoration: none; }

/* opt-in card (the CTIA call-to-action lives here) */
.optin {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; box-shadow: 0 20px 40px -28px rgba(24,43,58,0.4);
}
.optin h3 { font-size: 20px; margin-bottom: 6px; }
.optin .kw {
  font-family: 'Fraunces', serif; font-size: 15px;
  background: var(--mist); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; margin: 14px 0;
}
.optin .kw b { color: var(--gold-d); }
.optin label.consent { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.optin input[type=checkbox] { margin-top: 3px; flex: 0 0 auto; }
.optin .field { margin-bottom: 14px; }
.optin .field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.optin .field input {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  font-family: inherit; font-size: 15px; background: #fff; width: 100%;
}
.optin .field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.optin input.invalid { border-color: #c0392b; }
.optin .disc { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

/* ---------- generic sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 8px; }
.section .intro { color: var(--slate); max-width: 60ch; margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 820px){ .grid-3,.grid-2,.hero-grid{ grid-template-columns:1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--rad);
  padding: 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -26px rgba(24,43,58,0.45); }
.card .num { font-family: 'Fraunces', serif; color: var(--gold-d); font-size: 14px; font-weight: 600; }
.card h3 { font-size: 19px; margin: 8px 0; }
.card p { color: var(--muted); font-size: 15px; }

/* article list */
.article-card { display: flex; flex-direction: column; }
.article-card .tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); }
.article-card h3 { margin: 8px 0; font-size: 20px; }
.article-card h3 a { color: var(--ink); }
.article-card p { color: var(--muted); font-size: 15px; flex: 1; }
.article-card .more { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--slate); }

/* ---------- article body ---------- */
.article-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.article-body { padding: 48px 0 64px; }
.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 34px 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 10px; }
.prose p { margin: 14px 0; font-size: 17px; color: #24333f; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; }
.prose li { margin: 8px 0; font-size: 17px; color: #24333f; }
.prose blockquote {
  border-left: 3px solid var(--gold); background: var(--paper);
  padding: 14px 20px; margin: 22px 0; color: var(--slate); font-style: italic;
}

/* ---------- legal pages ---------- */
.legal { padding: 52px 0 72px; }
.legal .prose h2 { font-size: 22px; }
.legal .prose h3 { font-size: 17px; }
.legal .prose p, .legal .prose li { font-size: 15.5px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.legal .callout {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 18px 20px; margin: 22px 0; font-size: 15px;
}

/* ---------- contact ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  font-family: inherit; font-size: 15px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #cdd8e0; padding: 48px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h4 { color: #fff; font-family: 'Inter',sans-serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.site-foot a { color: #cdd8e0; font-size: 14px; display: block; margin: 8px 0; }
.site-foot a:hover { color: var(--gold); text-decoration: none; }
.foot-brand { font-family: 'Fraunces', serif; font-size: 20px; color: #fff; }
.foot-brand span { color: var(--gold); }
.foot-note { font-size: 13px; color: #8ea0ad; margin-top: 10px; max-width: 34ch; }
.foot-bottom { border-top: 1px solid #2b4155; margin-top: 34px; padding-top: 18px; font-size: 12.5px; color: #8ea0ad; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px){ .foot-grid{ grid-template-columns:1fr; } }

/* compliance strip repeated near opt-in points */
.compliance-strip {
  font-size: 12.5px; color: var(--muted); background: var(--mist);
  border: 1px solid var(--line); border-radius: var(--rad);
  padding: 14px 18px; line-height: 1.6;
}
.compliance-strip b { color: var(--ink); }
