/* Boardroom Advisory · parchment editorial system, drawn from the Credit Card Forensics slides */

:root {
  --ink: #1c1a16;          /* warm near-black body text */
  --muted: #6d675c;        /* warm gray helper text */
  --white: #fffefb;        /* warm white canvas */
  --parchment: #ece4d3;    /* section band, from the slides */
  --parchment-card: #f4ecdd; /* quote/callout card on parchment */
  --navy: #0e1c37;         /* deep navy, footer + callouts */
  --cherry: #81040a;       /* cherry red, rationed */
  --gold: #9a7d3a;         /* muted gold labels */
  --cream: #f2e9d8;        /* text on navy */
  --hairline: #ddd4c2;

  --serif: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --page-max: 1160px;
  --prose-max: 660px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 760px) {
  .container { padding-inline: 48px; }
}

/* ---------- Navigation ---------- */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 20px;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 22px;
  order: 3;
  width: 100%;
  font-size: 15px;
}
@media (min-width: 760px) {
  .nav-links { order: 0; width: auto; font-size: 15px; }
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 2px;
}
.nav-links a:hover { color: var(--cherry); }
.nav-links a[aria-current="page"] {
  color: var(--cherry);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  background: var(--cherry);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  padding: 13px 28px;
  transition: background 140ms ease;
}
.btn:hover { background: #5f0307; }

.btn-sm { padding: 9px 20px; font-size: 15px; }

.btn-navy { background: var(--navy); }
.btn-navy:hover { background: #091326; }

.arrow-link {
  display: inline-block;
  color: var(--cherry);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding-block: 8px;
}
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Chapter labels (from the slides: red numeral, gold label) ---------- */

.chapter {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.chapter b {
  color: var(--cherry);
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}

h1 {
  font-size: clamp(37px, 6.6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(29px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.008em;
  text-wrap: balance;
  margin-bottom: 26px;
}

h3 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--navy);
  margin-bottom: 10px;
}

.lede {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: var(--prose-max);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

em { font-family: var(--serif); font-style: italic; }
h1 em, h2 em { color: var(--cherry); }

.prose { max-width: var(--prose-max); }
.prose p + p { margin-top: 18px; }

.muted { color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding-block: 64px; }
@media (min-width: 760px) { .section { padding-block: 96px; } }

.band-parchment { background: var(--parchment); }
.band-parchment .painlist li { border-color: #d8cdb6; }

.hero { padding-block: 64px 64px; }
@media (min-width: 760px) { .hero { padding-block: 108px 100px; } }

.hero .lede { margin-top: 24px; }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; }

/* ---------- Cards ---------- */

.card {
  background: var(--parchment-card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px 28px;
}
@media (min-width: 760px) { .card { padding: 40px 36px; } }

.card h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.card p { margin-bottom: 20px; }
.card .arrow-link { padding-bottom: 0; }

.band-parchment .card { background: var(--parchment-card); border-color: #d8cdb6; }

/* Quote card: parchment surface, cherry left border, Didone text (slide 1) */
.quote-card {
  background: var(--parchment-card);
  border-left: 4px solid var(--cherry);
  border-radius: 0 16px 16px 0;
  padding: 32px 28px;
  max-width: 760px;
}
@media (min-width: 760px) { .quote-card { padding: 40px 44px; } }
.quote-card .q {
  font-family: var(--serif);
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1.3;
  color: var(--ink);
}
.quote-card .q-sub { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* Navy callout: navy surface, cream text, gold lead phrase (slide 2) */
.navy-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 760px;
}
@media (min-width: 760px) { .navy-card { padding: 44px 44px; } }
.navy-card h2, .navy-card h3, .navy-card p { color: var(--cream); }
.navy-card h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.navy-card .gold-lead { color: #cbb475; font-weight: 600; }
.navy-card p + p { margin-top: 14px; }
.navy-card a { color: #cbb475; }

.doors {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Checklist ("Sound familiar?") ---------- */

.painlist {
  list-style: none;
  max-width: 720px;
  counter-reset: pain;
}
.painlist li {
  padding: 18px 0 18px 44px;
  border-top: 1px solid var(--hairline);
  position: relative;
  counter-increment: pain;
}
.painlist li::before {
  content: "0" counter(pain);
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cherry);
}
.painlist li:last-child { border-bottom: 1px solid var(--hairline); }

.kicker-line {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--cherry);
}

/* ---------- Deliverables / feature blocks ---------- */

.blocks { display: grid; gap: 36px; max-width: 720px; margin-top: 40px; }
.blocks .block p + p { margin-top: 12px; }

.section-lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.4;
  max-width: var(--prose-max);
}

/* ---------- Cycle graphic ---------- */

.cycle-wrap { margin-block: 40px; }
.cycle-svg { display: block; width: 100%; max-width: 600px; height: auto; margin-inline: auto; }
.cycle-caption {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 20px auto 0;
}
.cycle-lead-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 23px);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 8px;
}

/* ---------- Pull quote ---------- */

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.28;
  color: var(--navy);
  max-width: 560px;
  margin-top: 44px;
}

/* ---------- Footer (navy band, like the slide footers) ---------- */

.footer {
  background: var(--navy);
  color: var(--cream);
  padding-block: 44px 56px;
  font-size: 15px;
  margin-top: 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  justify-content: space-between;
}
.footer a { color: #cbb475; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .btn { background: var(--cherry); color: var(--cream); }
.footer .footer-mark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 8px;
}

/* ---------- Utility ---------- */

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* Door question: the line each door hangs on */
.card .door-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.35;
  color: var(--cherry);
  margin-block: 4px 20px;
}

/* How it runs: numbered step flow, carousel-style kickers */
.runs { margin-top: 48px; }
.runs-title { margin-bottom: 24px; }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
}
.step {
  counter-increment: step;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  position: relative;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cherry);
  margin-bottom: 8px;
}
.step-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.step-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (max-width: 899px) {
  .step { padding-left: 44px; border-top: none; border-left: 1px solid var(--hairline); padding-block: 4px 12px; }
  .step::before { position: absolute; left: 16px; top: 6px; margin: 0; }
}

/* ---------- Navy masthead: the slide footer bar, moved to the top ---------- */

.site-head { background: var(--navy); }
.site-head .nav { border-bottom: none; padding-block: 20px; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wm-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.wm-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #cbb475;
  margin-top: 6px;
  padding-left: 2px;
}

.site-head .nav-links a { color: var(--cream); }
.site-head .nav-links a:hover { color: #cbb475; }
.site-head .nav-links a[aria-current="page"] { color: #cbb475; }
.site-head .btn:hover { background: #9c1520; }

/* Centered prose under the cycle graphic */
.prose-center { margin-inline: auto; text-align: center; }

/* Stage labels: a step up from the standard eyebrow */
.eyebrow.stage {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}
