/* Frontier Resilience Canada: Ghost theme stylesheet
   Palette: charcoal, brand yellow, warm greys. Type: Inter. */

:root {
    --char: #1E1E1E;
    --ink: #262626;
    --ink2: #5C5C58;
    --grid: #DEDDD8;
    --light: #C9C7C0;
    --muted-dark: #A9A7A0;
    --tint: #F3F2EE;
    --paper: #FFFFFF;
    --yellow: #FFDF00;
    --yellow-hover: #F2D000;
    --footer: #141414;
    --divider-dark: #5C5C58;
    --container: 1200px;
    --radius: 4px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: var(--gh-font-body, var(--font));
    --font-heading: var(--gh-font-heading, var(--font));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--char); }
p { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--char); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

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

.eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink2);
    margin-bottom: 14px;
}
.eyebrow--light { color: var(--light); }
.eyebrow--dark { color: var(--char); }

.h2 { font-size: 42px; margin-bottom: 18px; }
.h2--medium { font-size: 36px; line-height: 1.15; }
.h3 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.h3--large { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.h3--small { font-size: 20px; }
.h3--light { color: var(--paper); font-size: 22px; }

.lead { font-size: 18px; line-height: 1.55; color: var(--ink2); }
.lead--light { color: var(--light); }
.lead--dark { color: var(--char); }
.body-text { font-size: 17px; line-height: 1.6; color: var(--ink); }
.body-text + .body-text { margin-top: 18px; }

.rule {
    display: inline-block;
    width: 40px;
    height: 4px;
    background: var(--yellow);
    vertical-align: middle;
    margin-right: 12px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.btn--yellow { background: var(--yellow); color: var(--char); }
.btn--yellow:hover { background: var(--yellow-hover); color: var(--char); }
.btn--dark { background: var(--char); color: var(--paper); }
.btn--dark:hover { background: #000; color: var(--paper); }
.btn--ghost { border-color: var(--light); color: var(--paper); font-weight: 600; }
.btn--ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- Header ---------- */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--grid);
    position: relative;
    z-index: 10;
}
.site-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand__logo { width: 260px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav__link:hover, .nav__link--current { border-bottom-color: var(--yellow); color: var(--char); }
.nav__link--current { font-weight: 600; }
.nav__cta { min-height: 44px; padding: 0 20px; margin-left: 8px; }
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid var(--grid);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle__bar { display: block; width: 20px; height: 2px; background: var(--char); }

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

.section { padding: 96px 0 88px; }
.section--bordered { border-bottom: 1px solid var(--grid); }
.section--dark { background: var(--char); color: var(--paper); }
.section--dark .h2, .section--dark .h3 { color: var(--paper); }
.section--dark p { color: var(--light); }
.section--dark .panel p { color: inherit; }
.section--tint { background: var(--tint); }
.section--yellow { background: var(--yellow); color: var(--char); }
.section--yellow .h2 { color: var(--char); }
.section--post { padding-top: 64px; }

.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    align-items: flex-end;
}
.section__head--split > div { flex: 1 1 420px; min-width: 0; }
.section__head--split > .lead { flex: 1 1 380px; min-width: 0; }
.section__head--split .h2 { margin-bottom: 0; }
.section__head--row {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}
.section__head--row > div { flex: 1 1 420px; min-width: 0; }
.section__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--divider-dark);
    padding-top: 32px;
    margin-top: 48px;
}
.section__foot p { flex: 1 1 420px; min-width: 0; font-size: 16px; }

/* ---------- Hero ---------- */

.hero { background: var(--char); color: var(--paper); }
.hero__row {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 80px;
}
.hero__text { flex: 1 1 520px; min-width: 0; }
.hero__tagline {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 24px;
}
.hero__title {
    font-size: 50px;
    line-height: 1.08;
    color: var(--paper);
    margin-bottom: 24px;
}
.hero__text .lead { max-width: 640px; margin-bottom: 24px; }
.hero__media { flex: 1 1 360px; min-width: 0; max-width: 460px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 55%; border-radius: var(--radius); }
.hero__media figcaption { margin-top: 12px; font-size: 13px; color: var(--muted-dark); }

.page-hero { background: var(--char); color: var(--paper); padding: 72px 0 64px; }
.page-hero__title { font-size: 46px; color: var(--paper); margin-bottom: 20px; max-width: 900px; }
.page-hero .lead { max-width: 720px; }
.back-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--light); text-decoration: none; margin-bottom: 20px; }
.back-link:hover { color: var(--paper); }

/* ---------- Proof strip and stats ---------- */

.proof { background: var(--tint); border-bottom: 1px solid var(--grid); }
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 40px;
    padding-top: 56px;
    padding-bottom: 56px;
}
.stats--dark { padding: 0; margin-bottom: 56px; }
.stat {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 3px solid var(--yellow);
    padding-top: 18px;
}
.stat__num { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; color: var(--char); }
.stat__text { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.stat__text--light { font-size: 16px; color: var(--light); }
.stats--dark .stat { flex-basis: 280px; }
.stats--dark .h3 { margin-bottom: 0; }

/* ---------- Cards and panels ---------- */

.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.cards--stretch { align-items: stretch; }
.card {
    flex: 1 1 300px;
    min-width: 0;
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.card p { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.card--tint { background: var(--tint); }
.card--outline { border: 1px solid var(--grid); background: var(--paper); }
.card__icon { color: var(--char); margin-bottom: 12px; }
.card .eyebrow { margin-bottom: 8px; }
.card__link {
    margin-top: auto;
    padding-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--char);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.courses__intro .card__link { display: inline-block; margin-top: 14px; padding-top: 0; }
.hero__trust { margin-top: 16px; font-size: 14px; color: var(--muted-dark); }
.founder {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--divider-dark);
    max-width: 640px;
}
.founder__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.founder__text { font-size: 15px; line-height: 1.5; color: var(--light); }
.founder__text strong { color: var(--paper); }
.founder__text a { color: var(--paper); text-underline-offset: 3px; }

.panel {
    flex: 1 1 300px;
    min-width: 0;
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.panel--white { background: var(--paper); color: var(--ink); }
.panel--dark { background: var(--char); color: var(--paper); }
.panel--accent { border-top: 6px solid var(--yellow); }
.panel .h3 { margin-bottom: 0; }
.panel .eyebrow { margin-bottom: 0; }
.panel__text { font-size: 15px; line-height: 1.55; color: var(--ink2); }
.panel__foot { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.panel--dark .h3 { color: var(--paper); }

/* ---------- Lists ---------- */

.dots { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.dots li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.dots li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--char);
}

.checks, .crosses { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li, .crosses li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.checks li::before {
    content: "";
    position: absolute;
    left: 2px; top: 4px;
    width: 12px; height: 7px;
    border-left: 2.25px solid var(--char);
    border-bottom: 2.25px solid var(--char);
    transform: rotate(-45deg);
}
.crosses li::before {
    content: "\00d7";
    position: absolute;
    left: 2px; top: -3px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink2);
}

.kv { list-style: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--divider-dark); padding-top: 18px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--paper); }
.kv li span:first-child { color: var(--light); }
.kv li span:last-child { font-weight: 600; text-align: right; }

.pricelist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pricelist li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--grid);
    padding-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--char);
}
.pricelist li span:last-child { flex: none; text-align: right; }

.addons { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.addons li { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--divider-dark); padding-top: 14px; }
.addon__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--paper); }
.addon__price { color: var(--yellow); flex: none; text-align: right; }
.addon__text { font-size: 14px; line-height: 1.45; color: var(--light); }

/* ---------- Courses panel ---------- */

.courses {
    margin-top: 24px;
    border: 1px solid var(--grid);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    align-items: flex-start;
}
.courses__intro { flex: 1 1 280px; min-width: 0; }
.courses__intro p { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.courses__list { flex: 2 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.course {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 3px solid var(--yellow);
    padding-top: 14px;
}
.course__name { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--char); }
.course__text { font-size: 14px; line-height: 1.5; color: var(--ink2); }

/* ---------- Bespoke panel ---------- */

.bespoke {
    margin-top: 24px;
    background: var(--char);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    align-items: center;
    justify-content: space-between;
}
.bespoke__text { flex: 1 1 560px; min-width: 0; }
.bespoke__text .h3 { margin-bottom: 12px; }
.bespoke__text p { font-size: 16px; line-height: 1.6; color: var(--light); max-width: 800px; }

/* ---------- Readiness ---------- */

.readiness__top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
    align-items: flex-start;
    margin-bottom: 48px;
}
.readiness__text { flex: 1 1 520px; min-width: 0; }
.readiness__text .lead { max-width: 640px; margin-bottom: 20px; }
.readiness__note { font-size: 16px; line-height: 1.55; color: var(--char); max-width: 640px; }
.price-card {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 420px;
    background: var(--char);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.price-card .eyebrow { margin-bottom: 0; }
.price-card__price { display: flex; flex-direction: column; gap: 4px; }
.price { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--paper); }
.price small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--light); margin-right: 4px; }
.kv--tiers li span:last-child { color: var(--yellow); }
.price-card__sub { font-size: 15px; line-height: 1.5; color: var(--light); }

/* ---------- Media rows ---------- */

.row { display: flex; flex-wrap: wrap; gap: 48px; }
.row--center { align-items: center; }
.row--start { align-items: flex-start; gap: 56px; }
.row__text { flex: 1 1 440px; min-width: 0; }
.row__text--wide { flex-basis: 480px; }
.media { flex: 1 1 380px; min-width: 0; }
.media--wide { max-width: 560px; }
.media--wide img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius); }
.media--portrait { flex-basis: 320px; max-width: 420px; }
.media--portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; width: 100%; border-radius: var(--radius); }
.media figcaption { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.row__text .lead { margin-bottom: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: var(--tint);
    border: 1px solid var(--grid);
    border-radius: 999px;
    padding: 6px 12px;
}
.chip--white { background: var(--paper); }

/* ---------- Approach ---------- */

.approach__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    border-top: 1px solid var(--divider-dark);
    padding-top: 40px;
}
.approach__grid > div { flex: 1 1 240px; min-width: 0; }
.approach__grid .eyebrow { margin-bottom: 8px; }
.approach__grid p { font-size: 16px; line-height: 1.55; color: var(--paper); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.faq__intro { flex: 1 1 320px; min-width: 0; }
.faq__list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.faq__item { padding: 28px 0; border-top: 1px solid var(--grid); }
.faq__item:last-child { border-bottom: 1px solid var(--grid); }
.faq__q { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.faq__item p { font-size: 16px; line-height: 1.6; color: var(--ink2); }

/* ---------- Contact ---------- */

.contact { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.contact__text { flex: 1 1 440px; min-width: 0; }
.contact__text .rule { display: block; margin: 0 0 20px; }
.contact__text .lead { max-width: 560px; margin-bottom: 24px; }
.contact__details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    border-top: 1px solid var(--divider-dark);
    padding-top: 28px;
    margin-top: 36px;
}
.contact__item { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; color: var(--paper); }
.contact__item .eyebrow { margin-bottom: 0; }
.contact__item a { color: var(--paper); text-decoration: none; }
.contact__item a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact__form {
    flex: 1 1 420px;
    min-width: 0;
    max-width: 560px;
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-form__heading { font-size: 17px; font-weight: 700; color: var(--char); margin-bottom: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--char); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--light);
    border-radius: var(--radius);
    background: var(--paper);
    font: inherit;
    font-size: 16px;
    color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--char); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dark); }
.contact-form .btn { align-self: flex-start; }
.contact-form__note { font-size: 13px; line-height: 1.5; color: var(--ink2); }
.contact-form__note a { color: var(--ink2); }
.contact-form__success {
    background: var(--tint);
    border-left: 4px solid var(--yellow);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--char);
    margin-bottom: 20px;
}
.contact-form__success[hidden] { display: none; }
.section--dark .contact__form p { color: var(--ink2); }
.section--dark .contact__form .contact-form__success { color: var(--char); }

/* ---------- Articles: cards, rows, asides ---------- */

.post-card {
    flex: 1 1 300px;
    min-width: 0;
    background: var(--paper);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink2);
}
.post-card__title { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.post-card__title a, .post-row__title a { color: var(--char); text-decoration: none; }
.post-card__title a:hover, .post-row__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--ink2); }
.post-card__link {
    margin-top: auto;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--char);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.listing { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.listing__main { flex: 2 1 600px; min-width: 0; }
.listing__aside { flex: 1 1 280px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 24px; }

.post-row { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; border-top: 1px solid var(--grid); }
.post-row:last-of-type { border-bottom: 1px solid var(--grid); }
.post-row__title { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.post-row__excerpt { font-size: 16px; line-height: 1.6; color: var(--ink2); max-width: 680px; }

.aside-box { border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.aside-box--tint { background: var(--tint); }
.aside-box--dark { background: var(--char); color: var(--paper); }
.aside-box .eyebrow { margin-bottom: 0; }
.aside-box__title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--paper); }
.aside-box__text { font-size: 15px; line-height: 1.5; color: var(--ink2); }
.aside-box--dark .aside-box__text { color: var(--light); }
.topic-list { list-style: none; display: flex; flex-direction: column; }
.topic-list li { padding: 10px 0; border-bottom: 1px solid var(--grid); }
.topic-list li:last-child { border-bottom: 0; }
.topic-list a { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--char); text-decoration: none; }
.topic-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; font-size: 15px; }
.pagination a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pagination .page-number { color: var(--ink2); }

/* ---------- Post page ---------- */

.post__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--light); padding-top: 8px; }
.post__feature { max-width: var(--container); margin: 0 auto; padding: 0 24px; margin-top: -32px; }
.post__feature img { width: 100%; border-radius: var(--radius); }
.post__feature figcaption { margin-top: 12px; font-size: 13px; color: var(--ink2); }

.post-body { font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 720px; }
.post-body--page { margin: 0 auto; }
.post-body > * + * { margin-top: 22px; }
.post-body h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 40px; }
.post-body h3 { font-size: 22px; line-height: 1.25; letter-spacing: 0; font-weight: 700; margin-top: 32px; }
.post-body h4 { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-body blockquote {
    margin: 8px 0;
    padding: 20px 28px;
    border-left: 4px solid var(--yellow);
    background: var(--tint);
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--char);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body blockquote p { margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--grid); margin: 40px 0; }
.post-body pre { background: var(--tint); padding: 16px 20px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; }
.post-body code { background: var(--tint); padding: 2px 5px; border-radius: 3px; font-size: 0.9em; }
.post-body pre code { background: none; padding: 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.post-body th { background: var(--char); color: var(--paper); font-weight: 600; }
.post-body figure { margin: 0; }
.post-body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.post-body img { border-radius: var(--radius); }

/* Ghost editor card widths */
.kg-width-wide { max-width: 1000px; width: calc(100% + 280px); margin-left: calc(-140px); }
.kg-width-full { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-full img { border-radius: 0; }
.kg-card { margin: 0; }
.kg-callout-card { display: flex; gap: 12px; padding: 20px 24px; border-radius: var(--radius); background: var(--tint); }
.kg-callout-card p { margin: 0; }
.kg-bookmark-card a, .kg-bookmark-container { text-decoration: none; display: flex; border: 1px solid var(--grid); border-radius: var(--radius); overflow: hidden; color: inherit; }
.kg-bookmark-content { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.kg-bookmark-title { font-weight: 700; font-size: 16px; }
.kg-bookmark-description { font-size: 14px; color: var(--ink2); }
.kg-bookmark-metadata { font-size: 13px; color: var(--ink2); display: flex; gap: 8px; align-items: center; }
.kg-bookmark-icon { width: 18px; height: 18px; }
.kg-bookmark-thumbnail { flex: 0 0 220px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.kg-embed-card { position: relative; }
.kg-embed-card iframe { max-width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1 1 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-button-card { display: flex; }
.kg-button-card.kg-align-center { justify-content: center; }
.kg-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--radius); background: var(--char); color: var(--paper); font-weight: 700; text-decoration: none; }
.kg-btn:hover { background: #000; color: var(--paper); }
.kg-toggle-card { border: 1px solid var(--grid); border-radius: var(--radius); padding: 16px 20px; }
.kg-toggle-heading-text { font-weight: 700; }
.kg-header-card { padding: 48px 32px; border-radius: var(--radius); background: var(--char); color: var(--paper); text-align: center; }
.kg-header-card h2, .kg-header-card h3 { color: var(--paper); }
.kg-product-card { border: 1px solid var(--grid); border-radius: var(--radius); padding: 20px; }
.kg-file-card a { display: flex; gap: 12px; padding: 14px 18px; border: 1px solid var(--grid); border-radius: var(--radius); text-decoration: none; }
.kg-audio-card, .kg-video-card { border-radius: var(--radius); overflow: hidden; }

/* Post extras */
.cta-box {
    margin-top: 40px;
    background: var(--char);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
}
.cta-box__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cta-box__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.cta-box__sub { font-size: 15px; line-height: 1.5; color: var(--light); }

.author-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    border-top: 1px solid var(--grid);
    padding-top: 28px;
    margin-top: 36px;
    max-width: 720px;
}
.author-box__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box > div { flex: 1 1 320px; min-width: 0; }
.author-box__name { font-size: 16px; font-weight: 700; }
.author-box__name a { text-decoration: none; color: var(--char); }
.author-box__bio { font-size: 15px; line-height: 1.5; color: var(--ink2); margin-top: 4px; }

/* Subscribe forms (Ghost members) */
.subscribe { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe__input {
    flex: 1 1 200px;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--grid);
    border-radius: var(--radius);
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
}
.subscribe__btn { flex: none; }
.subscribe__msg { display: none; width: 100%; font-size: 14px; }
.success .subscribe__msg[data-members-success] { display: block; }
.error .subscribe__msg[data-members-error] { display: block; }
.subscribe-wide {
    margin-top: 36px;
    max-width: 720px;
    background: var(--char);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.subscribe-wide p { font-size: 15px; color: var(--light); }
.subscribe-wide .eyebrow { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: var(--light); border-top: 1px solid #2A2A2A; padding: 40px 0; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 40px; }
.site-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.site-footer__brand img { width: 240px; }
.site-footer__blurb { font-size: 14px; line-height: 1.5; color: var(--light); }
.site-footer__medal { font-size: 13px; color: var(--muted-dark); }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a { color: var(--light); text-decoration: none; font-size: 14px; }
.site-footer__nav a:hover { color: var(--paper); }
.site-footer__bottom { border-top: 1px solid #2A2A2A; margin-top: 24px; padding-top: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--muted-dark); }
.site-footer__legal { line-height: 1.5; }
.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Consent banner ---------- */

.btn--light { background: var(--paper); color: var(--char); }
.btn--light:hover { background: var(--tint); color: var(--char); }
.consent {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: var(--char);
    color: var(--paper);
    border-top: 4px solid var(--yellow);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}
.consent[hidden] { display: none; }
.consent__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    align-items: center;
    justify-content: space-between;
}
.consent__text { flex: 1 1 480px; min-width: 0; }
.consent__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.consent__text p { font-size: 14px; line-height: 1.5; color: var(--light); }
.consent__text a { color: var(--paper); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent__actions .btn { min-width: 160px; }

/* ---------- Error page ---------- */
.error-page .page-hero { min-height: 100vh; display: flex; align-items: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .hero__title { font-size: 42px; }
    .h2 { font-size: 36px; }
    .page-hero__title { font-size: 40px; }
    .section { padding: 72px 0 64px; }
    .kg-width-wide { width: 100%; margin-left: 0; }
}

@media (max-width: 760px) {
    .section { padding: 56px 0 52px; }
    .hero__row { padding-top: 56px; padding-bottom: 52px; }
    .hero__title { font-size: 34px; line-height: 1.12; }
    .page-hero__title { font-size: 32px; line-height: 1.15; }
    .h2 { font-size: 29px; line-height: 1.15; }
    .h2--medium { font-size: 28px; }
    .h3 { font-size: 21px; }
    .lead { font-size: 17px; }
    .price { font-size: 42px; }
    .stat__num { font-size: 26px; }
    .stats { padding-top: 40px; padding-bottom: 40px; }
    .brand__logo { width: 200px; }
    .site-header__row { gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
    .nav-toggle { display: flex; }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 8px;
        border-top: 1px solid var(--grid);
    }
    .nav.is-open { display: flex; }
    .nav__link { min-height: 48px; border-bottom: 1px solid var(--grid); }
    .nav__link:hover, .nav__link--current { border-bottom-color: var(--grid); }
    .nav__cta { margin: 12px 0 4px; }
    .card { padding: 28px 22px; }
    .panel { padding: 26px 22px; }
    .courses { padding: 28px 22px; }
    .hero__media { max-width: none; }
    .price-card { max-width: none; }
    .contact__form { padding: 24px 20px; max-width: none; }
    .contact-form .btn { align-self: stretch; }
    .post-body { font-size: 17px; }
    .post-body h2 { font-size: 24px; }
    .post-body blockquote { font-size: 19px; padding: 16px 20px; }
    .post-row__title { font-size: 24px; }
    .listing__aside { max-width: none; }
    .post__feature { margin-top: 0; padding: 24px 24px 0; }
    .kg-width-full { width: 100%; margin-left: 0; }
}

@media (max-width: 420px) {
    .hero__title { font-size: 30px; }
    .page-hero__title { font-size: 28px; }
    .btn { width: 100%; }
    .nav__cta { width: 100%; }
    .subscribe__btn { width: 100%; }
    .consent__actions { width: 100%; }
    .consent__actions .btn { flex: 1 1 140px; min-width: 0; }
}

@media print {
    .site-header, .site-footer, .nav-toggle, .cta-box, .subscribe-wide, .listing__aside { display: none !important; }
    body { color: #000; }
}
