:root {
  --bg: #FBF6EA;
  --bg-alt: #FFFFFF;
  --bg-card: #FFFCF3;
  --ink: #0F1F44;
  --ink-soft: #4A5878;
  --line: #E6DDC4;
  --navy: #0F1F44;
  --navy-soft: #1B2F5C;
  --gold: #C8932B;
  --gold-light: #E8C26A;
  --gold-bg: #FBEFCE;
  --accent: #0F1F44;
  --max: 1180px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15,31,68,.06);
  --shadow: 0 1px 2px rgba(15,31,68,.06), 0 14px 30px -18px rgba(15,31,68,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif; color: var(--ink);
  letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section-head { margin: 0 auto 2rem; max-width: 720px; text-align: center; }
.section-head.left { text-align: left; margin: 0 0 1.25rem; }
.section-head h1, .section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; font-size: .76rem; letter-spacing: .14em; color: var(--gold); font-weight: 700; margin: 0 0 .8em; }
.lede { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 2px 0 rgba(200,147,43,.5), 0 6px 20px -10px rgba(15,31,68,.3);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; }
.brand:hover { color: var(--gold-light); }
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.brand-block { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.brand-sub  { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.site-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.site-nav a { color: #DDE3F0; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { background: var(--gold); color: var(--navy); padding: .5rem .9rem; border-radius: 999px; font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--gold-light); color: var(--navy); }

.nav-toggle { display: none; background: transparent; border: 0; padding: .5rem; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 1rem 0 0; gap: .8rem; }
  body.nav-open .site-nav { display: flex; }
  .header-row { flex-wrap: wrap; }
}

/* ============================================================
   CRUMBS
   ============================================================ */
.crumbs { padding: .9rem 1.5rem; color: var(--ink-soft); font-size: .9rem; }
.crumbs .sep { margin: 0 .45rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--gold); }

/* ============================================================
   PAGE SHELL — main + sidebar layout
   ============================================================ */
.page-shell { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 2.5rem; padding-top: 1rem; padding-bottom: 2rem; align-items: start; }
.site-main { min-width: 0; }
.site-side { position: sticky; top: 90px; }
@media (max-width: 1000px) {
  .page-shell { grid-template-columns: 1fr; }
  .site-side { position: static; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 30%, rgba(200,147,43,.18), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(15,31,68,.08), transparent 50%),
    linear-gradient(180deg, #FBF1D8 0%, var(--bg) 100%);
  padding: 5rem 0 4rem;
  margin: -1rem -1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; padding: 0 1.5rem; max-width: var(--max); margin: 0 auto; }
.hero h1 { margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--gold); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4%; height: 8px; background: var(--gold-light); opacity: .35; z-index: -1; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-art .laurel { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); width: 220px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.8rem; }
.hero-meta { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta strong { display: block; color: var(--ink); font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: none; }
@media (max-width: 880px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 4px 12px -4px rgba(15,31,68,.4); }
.btn.primary:hover { background: var(--navy-soft); color: #fff; box-shadow: 0 6px 16px -4px rgba(15,31,68,.5); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-light); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* ============================================================
   THEME / STYLE / SUBJECT GRIDS
   ============================================================ */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.theme-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem; color: var(--ink); display: block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative; overflow: hidden;
}
.theme-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.theme-card:hover h3 { color: var(--gold); }
.theme-card h3 { margin: 0 0 .35rem; transition: color .15s ease; }
.theme-card p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .92rem; }
.theme-link { color: var(--navy); font-weight: 600; font-size: .88rem; }
.theme-card:hover .theme-link { color: var(--gold); }
.theme-dot { display: inline-block; width: 30px; height: 6px; border-radius: 999px; background: var(--accent); margin-bottom: .8rem; }

.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.style-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; color: var(--ink); display: block; transition: transform .15s ease, box-shadow .15s ease; }
.style-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.style-card p { color: var(--ink-soft); font-size: .92rem; }
.style-card .theme-link { color: var(--navy); }

/* Pills */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem 1rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.pill:hover { background: var(--gold-bg); border-color: var(--gold); color: var(--navy); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ============================================================
   CERT GRID
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.cert-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: block; transition: transform .15s ease, box-shadow .15s ease; }
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-card-body { padding: .9rem 1rem 1.1rem; }
.cert-card-body h3 { font-family: 'Inter', sans-serif; font-size: .98rem; margin-bottom: .15rem; line-height: 1.25; color: var(--navy); }
.cert-card:hover .cert-card-body h3 { color: var(--gold); }
.cert-card-body p { color: var(--ink-soft); margin: 0; font-size: .82rem; }

/* SVG cert thumbnail */
.cert-thumb { aspect-ratio: 4/3; padding: .85rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FFFCF3, #FBF1D8); position: relative; }
.cert-thumb-svg { width: 100%; height: 100%; display: block; border-radius: 6px; }
.cert-thumb-ribbon { position: absolute; top: 6px; right: 10px; width: 32px; height: 32px; }

/* ============================================================
   THEME / SUBJECT HERO
   ============================================================ */
.theme-hero { padding-top: 3rem; padding-bottom: 1.5rem; text-align: center; }
.theme-hero h1 { color: var(--navy); }
.theme-hero h1 .tag { display: block; font-family: 'Inter', sans-serif; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .8rem; }
.theme-hero .theme-dot { width: 60px; height: 8px; }

/* ============================================================
   CERT DETAIL
   ============================================================ */
.cert-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.cert-detail-preview .cert-thumb { aspect-ratio: 4/3; max-width: 100%; }
.meta-list { list-style: none; padding: 0; margin: 1.4rem 0; border-top: 1px solid var(--line); }
.meta-list li { display: grid; grid-template-columns: 130px 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.meta-list li span { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
@media (max-width: 800px) { .cert-detail-grid { grid-template-columns: 1fr; } }

/* ============================================================
   NARRATIVE / LONG-FORM COPY
   ============================================================ */
.narrative { max-width: 820px; }
.narrative h2 { margin-top: 2rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.narrative h2:first-of-type { border-top: 0; padding-top: 0; }
.narrative p { color: var(--ink); font-size: 1.04rem; }
.narrative ul { padding-left: 1.2rem; color: var(--ink); }
.narrative li { margin-bottom: .35rem; }
.narrative blockquote { border-left: 3px solid var(--gold); margin: 1.2rem 0; padding: .35rem 0 .35rem 1.2rem; color: var(--ink-soft); font-style: italic; }

/* ============================================================
   SUGGESTED WORDING / TIPS BLOCKS
   ============================================================ */
.callout { background: var(--gold-bg); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.callout h3 { margin-top: 0; color: var(--navy); }
.callout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .callout-grid { grid-template-columns: 1fr; } }
.wording-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; }
.wording-card .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; margin-bottom: .35rem; }
.wording-card p { margin: 0; font-style: italic; color: var(--ink); }

/* ============================================================
   EDITORIAL RESOURCES BLOCK
   ============================================================ */
.editorial-resources { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.editorial-resources .er-title { font-family: 'Fraunces', serif; font-size: 1.05rem; margin: 0 0 .85rem; color: var(--navy); }
.editorial-resources .er-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.editorial-resources .er-item { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.editorial-resources .er-item:last-child { border-bottom: 0; padding-bottom: 0; }
.editorial-resources .er-link { display: block; color: var(--navy); font-weight: 600; font-size: .96rem; }
.editorial-resources .er-link:hover { color: var(--gold); }
.editorial-resources .er-note { display: block; color: var(--ink-soft); font-size: .83rem; margin-top: .15rem; line-height: 1.4; }
.editorial-resources .er-foot { color: var(--ink-soft); font-size: .78rem; margin: 1rem 0 0; font-style: italic; }
.footer-er-wrap { padding: 0 1.5rem; margin-top: 2rem; }
.footer-er { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.footer-er .er-title, .footer-er .er-link { color: #fff; }
.footer-er .er-note, .footer-er .er-foot { color: #9CACCB; }
.footer-er .er-item { border-color: rgba(255,255,255,.1); }
.footer-er .er-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
@media (max-width: 700px) { .footer-er .er-list { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: #DDE3F0; margin-top: 4rem; padding: 3rem 0 1.5rem; border-top: 4px solid var(--gold); }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #DDE3F0; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-tagline { color: #9CACCB; font-size: .92rem; margin-top: .8rem; max-width: 320px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 0 1.5rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); color: #9CACCB; font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BANNER / NOTICES
   ============================================================ */
.gold-banner { background: var(--gold-bg); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0; display: flex; gap: 1rem; align-items: center; }
.gold-banner svg { flex: 0 0 auto; }
.gold-banner p { margin: 0; }
