:root {
  --navy: #0D1B2A;
  --gold: #C9A84C;
  --gold-light: #F4E8C0;
  --burgundy: #8B1A4A;
  --burgundy-dark: #6B0A35;
  --burgundy-mid: #7A1240;
  --cream: #FAF7F2;
  --text: #24313F;
  --muted: #66717D;
  --border: #E8DED0;
  --shadow: 0 18px 40px rgba(139,26,74,0.13);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--cream); color: var(--text); line-height: 1.75; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ── */
.header {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 55%, var(--burgundy-mid) 100%);
  color: white; padding: 28px 0 36px; position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,.25);
}
.header::before, .header::after { content: ''; position: absolute; border-radius: 50%; background: rgba(201,168,76,.10); }
.header::before { width: 260px; height: 260px; top: -120px; right: -100px; }
.header::after  { width: 180px; height: 180px; bottom: -90px; left: -50px; }
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.brand-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo-plate { display: inline-flex; align-items: center; background: #FBF6F1; padding: 6px 12px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.18); text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.logo-plate:hover, .logo-plate:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.logo-plate:focus-visible { outline: 2px solid #C9A84C; outline-offset: 3px; }
.logo { height: 60px; width: auto; display: block; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(201,168,76,.18); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light); font-size: .84rem; letter-spacing: .04em; text-transform: uppercase;
}
.title-block { margin-top: 18px; max-width: 860px; }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-top: 12px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; color: rgba(255,255,255,.85); font-size: .98rem; }
.hero-sub { margin-top: 18px; max-width: 740px; font-size: 1.08rem; color: rgba(255,255,255,.9); }

/* ── DOWNLOAD BAR ── */
.dl-bar { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--gold); color: var(--burgundy-dark); font-weight: 700; font-size: .98rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; border: 0; cursor: pointer; font-family: inherit;
}
.dl-btn:hover { transform: translateY(-2px); text-decoration: none; }
.dl-btn.ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.55); box-shadow: none; }

/* ── BODY ── */
.article {
  max-width: 820px; margin: -26px auto 0; background: #fffdf9; border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow); padding: 44px 34px 0;
}
.article p { margin: 0 0 1.1rem; font-size: 1.02rem; }
.article h2 { margin: 2.4rem 0 .9rem; font-size: clamp(1.55rem, 3vw, 2rem); color: var(--burgundy); }
.article h3 { margin: 1.6rem 0 .6rem; font-size: 1.22rem; color: var(--navy); }
.article ul, .article ol { padding-left: 1.25rem; margin: 0 0 1.3rem; }
.article li { margin-bottom: .6rem; }
.article li::marker { color: var(--gold); }
.lead { font-size: 1.15rem; }
.eyebrow { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .2rem; font-family: 'Inter', sans-serif; }
.pullquote {
  margin: 2rem 0; padding: 18px 20px; border-left: 4px solid var(--gold); background: #FFF7E8; color: #4A3F22;
  font-style: italic; font-size: 1.08rem; border-radius: 0 14px 14px 0;
}
.callout-box {
  background: #F8F0F3; border: 1px solid #E0C4CE; border-left: 4px solid var(--burgundy);
  border-radius: 0 18px 18px 0; padding: 18px 20px; margin: 1.5rem 0;
}
.callout-box p:last-child { margin-bottom: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,.45), transparent); margin: 1.8rem 0; }

/* contents */
.toc { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin: 1.6rem 0; }
.toc ol { margin: .4rem 0 0; }
.toc li { margin-bottom: .25rem; }

/* phase / step cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.2rem 0 1.6rem; }
.card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.card h4 { margin: 0 0 .35rem; font-family: 'Playfair Display', serif; color: var(--burgundy); font-size: 1.08rem; }
.card p { font-size: .95rem; margin: 0; }
.num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--burgundy); color: white; font-weight: 700; font-size: .85rem; align-items: center; justify-content: center; margin-right: 8px; }

/* worksheet elements */
.worksheet { background: white; border: 1.5px dashed #D9C6A0; border-radius: 16px; padding: 18px 20px; margin: 1.4rem 0; break-inside: avoid; }
.worksheet .ws-title { font-family: 'Playfair Display', serif; color: var(--burgundy); font-weight: 700; font-size: 1.08rem; margin-bottom: .6rem; }
.prompt { font-weight: 600; color: var(--navy); font-size: .96rem; margin: .9rem 0 .2rem; }
.line { border-bottom: 1px solid #CDBFA6; height: 30px; }
.box { border: 1px solid #CDBFA6; border-radius: 10px; min-height: 70px; margin-top: 6px; }
table.sheet { width: 100%; border-collapse: collapse; margin: .6rem 0 1.2rem; font-size: .9rem; }
table.sheet th { background: var(--burgundy); color: white; font-weight: 600; padding: 8px 6px; text-align: left; font-size: .82rem; }
table.sheet th:first-child { border-radius: 10px 0 0 0; }
table.sheet th:last-child { border-radius: 0 10px 0 0; }
table.sheet td { border: 1px solid #DCCFB8; height: 34px; padding: 6px; vertical-align: top; }
table.sheet td.label { background: #FBF6F1; font-weight: 600; color: var(--navy); width: 30%; }
table.sheet.center td:not(.label) { text-align: center; }
.tick { display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--burgundy); border-radius: 4px; vertical-align: middle; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.scale span { width: 30px; height: 30px; border: 1px solid #CDBFA6; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; color: var(--muted); }
.script { background: #FBF6F1; border-radius: 14px; padding: 14px 18px; margin: 1rem 0; font-size: .98rem; }
.script p { margin: 0 0 .5rem; }
.script strong { color: var(--burgundy); }
.sources { font-size: .84rem; color: var(--muted); }
.sources li { margin-bottom: .3rem; }

/* ── CTA ── */
.cta {
  margin-top: 42px; background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  color: white; border-top: 1px solid rgba(201,168,76,.2); padding: 44px 30px 50px;
  border-radius: 0 0 22px 22px; text-align: center; margin-left: -34px; margin-right: -34px; break-inside: avoid;
}
.cta h2 { color: white !important; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .7rem !important; }
.cta p { color: rgba(255,255,255,.90); max-width: 650px; margin: 0 auto 1.6rem; font-size: 1.05rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; padding: 16px 30px;
  background: var(--gold); color: var(--burgundy-dark); border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; box-shadow: 0 12px 25px rgba(201,168,76,.35); transition: transform .15s, box-shadow .15s;
}
.button:hover { transform: translateY(-2px); text-decoration: none; }
footer { text-align: center; padding: 18px 20px 34px; color: #6B7480; font-size: .94rem; }

@media (max-width: 640px) {
  .article { padding: 34px 20px 0; margin-top: -18px; }
  .cta { margin-left: -20px; margin-right: -20px; }
  .header { padding: 22px 0 30px; }
  .logo { height: 52px; }
  .grid-2 { grid-template-columns: 1fr; }
  table.sheet { font-size: .78rem; }
}

/* ── PRINT / PDF ── */
@page { size: A4; margin: 14mm 12mm; }
@media print {
  html { font-size: 14px; }
  body { background: white; }
  .worksheet { break-inside: auto; }
  .toc, .grid-2, .sources { break-inside: avoid; }
  .dl-bar { display: none !important; }
  .header { padding: 20px 0 30px; border-radius: 0; }
  .article { box-shadow: none; border: 0; margin-top: 0; padding: 26px 6px 0; max-width: none; background: white; }
  .cta { margin: 24px -6px 0; border-radius: 18px; padding: 28px 24px 32px; }
  .page-break { break-before: page; }
  h2, h3, .prompt { break-after: avoid; }
  .card, .callout-box, .pullquote, table.sheet tr, .script { break-inside: avoid; }
  a.button { box-shadow: none; }
  footer { padding-bottom: 0; }
}
