/* Fighting Matters — Ghost theme */

:root {
    --fm-accent: var(--ghost-accent-color, #b91c1c);
    --fm-ink: #111111;
    --fm-ink-2: #3f3f3f;
    --fm-muted: #595959;
    --fm-paper: #f6f5f2;
    --fm-card: #ffffff;
    --fm-line: #d9d6cf;
    --fm-black: #0b0b0b;
    --fm-dark-2: #262626;
    --fm-font-ui: 'Space Grotesk', system-ui, sans-serif;
    --fm-font-head: var(--gh-font-heading, 'Space Grotesk', system-ui, sans-serif);
    --fm-font-body: var(--gh-font-body, 'Newsreader', Georgia, serif);
    --fm-font-mark: 'Permanent Marker', cursive;
    --fm-wrap: 1200px;
    --fm-narrow: 680px;
    --fm-gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--fm-paper);
    color: var(--fm-ink);
    font-family: var(--fm-font-ui);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fm-accent); }
:focus-visible { outline: 3px solid var(--fm-accent); outline-offset: 2px; }

.fm-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fm-skip { position: absolute; left: -9999px; }
.fm-skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--fm-ink); padding: 12px 16px; }

.fm-wrap { max-width: var(--fm-wrap); margin: 0 auto; padding: 0 var(--fm-gutter); }
.fm-narrow { max-width: calc(var(--fm-narrow) + 2 * var(--fm-gutter)); margin-left: auto; margin-right: auto; padding-left: var(--fm-gutter); padding-right: var(--fm-gutter); }

/* ---------- Shared bits ---------- */
.fm-kicker {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--fm-accent);
}
.fm-kicker--light { color: #f87171; }
.fm-meta { font-size: 14px; color: var(--fm-muted); }
.fm-rule-title {
    margin: 0 0 8px; padding-bottom: 10px;
    border-bottom: 3px solid var(--fm-ink);
    font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.fm-section__title { margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; }
.fm-more { color: var(--fm-accent); font-weight: 500; padding: 12px 0; display: inline-block; }

.fm-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border: 0; border-radius: 4px;
    background: var(--fm-accent); color: #fff;
    font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.fm-button:hover { color: #fff; filter: brightness(1.1); }
.fm-button--big { min-height: 48px; font-size: 16px; padding: 0 24px; }
.fm-button--white { background: #fff; color: var(--fm-black); }
.fm-button--white:hover { color: var(--fm-black); }
.fm-button--ghost { background: transparent; color: #fff; border: 1px solid #525252; font-weight: 500; }
.fm-button--outline { background: transparent; color: var(--fm-ink); border: 1px solid #a3a3a3; font-weight: 500; }
.fm-button--outline:hover { color: var(--fm-accent); }

.fm-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--fm-dark-2); object-fit: cover; flex: none; display: block; }
.fm-avatar--small { width: 44px; height: 44px; }
.fm-avatar--big { width: 96px; height: 96px; }

/* Headlines use the heading font chosen in Ghost (Design & branding); everything else stays in the theme font */
.fm-lead__title, .fm-card__title, .fm-section__title, .fm-article__title, .fm-podcast__text h2,
.fm-signup__text h2, .fm-cta h2, .fm-episode__title { font-family: var(--fm-font-head); }
.fm-rt:empty { display: none; }
.fm-rt::before { content: "· "; }

/* ---------- Header ---------- */
.fm-header { background: var(--fm-black); color: #fff; }
.fm-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.fm-logo { color: #fff; display: inline-flex; align-items: center; gap: 12px; }
.fm-logo:hover { color: #fff; }
.fm-logo img { max-height: 44px; width: auto; }
.fm-wordmark { font-family: var(--fm-font-mark); font-size: 30px; line-height: 1; letter-spacing: 0.5px; }
.fm-wordmark span { color: var(--fm-accent); }
.fm-logo--small .fm-wordmark { font-size: 22px; }

.fm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.fm-nav a { color: #e5e5e5; font-weight: 500; font-size: 15px; display: inline-block; padding: 10px 0; }
.fm-nav a:hover, .fm-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--fm-accent); }
.fm-header__actions { display: flex; align-items: center; gap: 16px; }
.fm-header__link { color: #e5e5e5; font-size: 15px; padding: 10px 0; }
.fm-header__link:hover { color: #fff; }

.fm-trending { border-top: 1px solid #2a2a2a; }
.fm-trending__bar { display: flex; align-items: center; gap: 20px; min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.fm-trending__bar::-webkit-scrollbar { display: none; }
.fm-trending__label { color: var(--fm-accent); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; flex: none; }
.fm-trending .fm-nav__list { flex-wrap: nowrap; gap: 20px; }
.fm-trending a { color: #a3a3a3; font-size: 13px; white-space: nowrap; display: inline-block; padding: 10px 0; }
.fm-trending a:hover { color: #fff; }

/* ---------- Homepage ---------- */
.fm-main { min-height: 50vh; }
.fm-top { display: flex; flex-wrap: wrap; gap: 40px; padding: 40px 0 48px; border-bottom: 1px solid var(--fm-line); }
.fm-top__lead { flex: 999 1 560px; min-width: 0; }
.fm-latest { flex: 1 1 300px; min-width: 0; }

.fm-lead__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 20px; background: var(--fm-dark-2); }
.fm-lead__title { margin: 8px 0 12px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; font-weight: 700; letter-spacing: -1px; }
.fm-lead__dek { margin: 0 0 16px; font-family: var(--fm-font-body); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; color: var(--fm-ink-2); }
.fm-lead a:hover .fm-lead__title { color: var(--fm-accent); }
.fm-lead a:hover { color: inherit; }

.fm-latest__list { list-style: none; margin: 0; padding: 0; }
.fm-latest__list a { display: block; padding: 18px 0; border-bottom: 1px solid var(--fm-line); }
.fm-latest__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin: 4px 0 6px; background: var(--fm-dark-2); }
.fm-latest__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fm-latest__text time { font-size: 13px; }
.fm-latest__title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.fm-latest__list a:hover { color: inherit; }
.fm-latest__list a:hover .fm-latest__title { color: var(--fm-accent); }

.fm-section { padding: 48px 0; border-bottom: 1px solid var(--fm-line); }
.fm-section:last-child { border-bottom: 0; }
.fm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.fm-section .fm-rule-title { margin-bottom: 24px; }

.fm-card__link { display: flex; flex-direction: column; gap: 10px; }
.fm-card__link:hover { color: inherit; }
.fm-card__link:hover .fm-card__title { color: var(--fm-accent); }
.fm-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--fm-dark-2); }
.fm-card__title { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -0.3px; }
.fm-card__dek { margin: 0; font-family: var(--fm-font-body); font-size: 17px; line-height: 1.45; color: var(--fm-ink-2); }

.fm-opinion { display: flex; flex-wrap: wrap; gap: 40px; }
.fm-opinion__intro { flex: 1 1 260px; }
.fm-opinion__intro p { margin: 12px 0 0; font-family: var(--fm-font-body); font-size: 18px; color: var(--fm-ink-2); }
.fm-opinion__list { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.fm-column { display: flex; gap: 16px; align-items: flex-start; background: var(--fm-card); padding: 24px; border-radius: 4px; }
.fm-column > span { display: flex; flex-direction: column; gap: 6px; }
.fm-column__title { font-family: var(--fm-font-body); font-style: italic; font-size: 22px; line-height: 1.3; }
.fm-column:hover { color: inherit; }
.fm-column:hover .fm-column__title { color: var(--fm-accent); }

.fm-podcast { background: var(--fm-black); color: #fff; }
.fm-podcast__inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.fm-podcast__cover { width: min(480px, 100%); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; flex: none; }
.fm-podcast__cover--empty, .fm-episode__cover--empty {
    background: var(--fm-dark-2); display: flex; align-items: center; justify-content: center;
    font-family: var(--fm-font-mark); font-size: 32px;
}
.fm-podcast__text { flex: 1 1 360px; min-width: 0; }
.fm-podcast__text h2 { margin: 10px 0 12px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.5px; }
.fm-podcast__text p { margin: 0 0 24px; font-family: var(--fm-font-body); font-size: 19px; line-height: 1.5; color: #d4d4d4; }
.fm-podcast__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Ads ---------- */
.fm-ad-slot { display: none; }
.fm-ad-slot.is-filled { display: block; padding: 32px 0; }
.fm-wrap > .fm-ad-slot.is-filled { border-bottom: 1px solid var(--fm-line); }
/* When an ad is the last thing before the dark podcast band, keep space under its divider line */
.fm-wrap > .fm-ad-slot.is-filled:last-child { margin-bottom: 56px; }
.fm-ad-slot--side.is-filled { padding: 24px 0 0; }
.fm-ad-slot--side .fm-ad__link, .fm-content .fm-ad__link { width: 100%; display: flex; justify-content: center; }
.fm-ad { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fm-ad__label { font-family: var(--fm-font-ui); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--fm-muted); }
.fm-ad__link { display: block; max-width: 100%; }
/* main.js sets each ad's width from its shape and where it sits (homepage, story, sidebar) */
.fm-ad__img { display: block; width: 360px; max-width: 100%; height: auto; border-radius: 4px; }
.fm-content .fm-ad-slot.is-filled { margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); max-width: none; }

/* ---------- Article ---------- */
.fm-article__head { padding-top: 56px; }
.fm-article__title { margin: 12px 0 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -1.2px; }
.fm-article__dek { margin: 0 0 28px; font-family: var(--fm-font-body); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: var(--fm-ink-2); }
.fm-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.fm-byline__who { display: flex; align-items: center; gap: 12px; }
.fm-byline__who > div { display: flex; flex-direction: column; gap: 2px; }
.fm-byline__name { font-size: 14px; font-weight: 700; }
.fm-byline__name a:hover { color: var(--fm-accent); }
.fm-share { display: flex; gap: 8px; }
.fm-icon-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fm-line); background: var(--fm-card);
    display: inline-flex; align-items: center; justify-content: center; color: var(--fm-ink); cursor: pointer;
}
.fm-icon-btn:hover { color: var(--fm-accent); border-color: var(--fm-accent); }
.fm-icon-btn.is-copied { color: #fff; background: var(--fm-accent); border-color: var(--fm-accent); }

.fm-article__figure { max-width: calc(1080px + 2 * var(--fm-gutter)); margin: 40px auto 0; padding: 0 var(--fm-gutter); }
.fm-article__figure img { width: 100%; border-radius: 4px; }
.fm-article__video .kg-embed-card { margin: 0; width: 100%; }
.fm-article__video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.fm-article__figure figcaption, .fm-content figcaption { margin-top: 10px; font-family: var(--fm-font-ui); font-size: 13px; color: var(--fm-muted); text-align: left; }

.fm-content { padding-top: 40px; font-family: var(--fm-font-body); font-size: 21px; line-height: 1.65; color: #1f1f1f; }
.fm-content > * { margin: 0 0 24px; }
.fm-content > p:first-of-type::first-letter {
    float: left; font-family: var(--fm-font-ui); font-weight: 700; font-size: 68px; line-height: 0.9;
    margin: 6px 10px 0 0; color: var(--fm-accent);
}
.fm-content a { color: var(--fm-accent); text-decoration: underline; text-underline-offset: 3px; }
.fm-content h2, .fm-content h3, .fm-content h4 { font-family: var(--fm-font-head); line-height: 1.2; letter-spacing: -0.4px; margin: 40px 0 16px; }
.fm-content h2 { font-size: 28px; }
.fm-content h3 { font-size: 23px; }
.fm-content blockquote:not(.kg-blockquote-alt) { margin: 32px 0; padding: 0 0 0 20px; border-left: 3px solid var(--fm-accent); font-style: italic; }
.fm-content blockquote.kg-blockquote-alt {
    margin: 40px 0; padding: 20px 0; border-top: 3px solid var(--fm-ink); border-bottom: 1px solid var(--fm-line);
    font-family: var(--fm-font-ui); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; font-style: normal; text-align: left;
}
.fm-content ul, .fm-content ol { padding-left: 1.3em; }
.fm-content li { margin-bottom: 8px; }
.fm-content hr { border: 0; border-top: 1px solid var(--fm-line); margin: 40px 0; }
.fm-content img { border-radius: 4px; margin: 0 auto; }
.fm-content pre { font-size: 15px; overflow-x: auto; background: #f0eee9; padding: 16px; border-radius: 4px; }
.fm-content iframe { max-width: 100%; }
/* Video embeds (YouTube, Vimeo): full width of the text column at 16:9, instead of Ghost's tiny default size */
.fm-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; width: 100%; }
.fm-content .kg-embed-card iframe[src*="youtube"],
.fm-content .kg-embed-card iframe[src*="youtu.be"],
.fm-content .kg-embed-card iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; }

/* Koenig card widths (required by Ghost) */
.kg-width-wide { position: relative; width: min(1000px, calc(100vw - 2 * var(--fm-gutter))); left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full img { border-radius: 0; }

.fm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.fm-tags a { border: 1px solid #a3a3a3; border-radius: 999px; padding: 10px 16px; font-size: 14px; }
.fm-tags a:hover { border-color: var(--fm-accent); }

.fm-episode {
    margin-top: 40px; margin-bottom: 0; padding-top: 24px; padding-bottom: 24px;
    background: var(--fm-black); color: #fff; border-radius: 6px;
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
    max-width: var(--fm-narrow);
}
.fm-episode__cover { width: 176px; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; object-fit: cover; flex: none; }
.fm-episode__text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fm-episode__title { font-size: 20px; font-weight: 700; line-height: 1.25; }

.fm-cta { margin-top: 48px; }
.fm-cta, .fm-signup__inner { background: var(--fm-card); border-top: 4px solid var(--fm-accent); border-radius: 4px; padding: 32px; }
.fm-cta { max-width: var(--fm-narrow); }
.fm-cta h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.4px; }
.fm-cta p, .fm-signup__text p { margin: 0 0 20px; font-family: var(--fm-font-body); font-size: 18px; color: var(--fm-ink-2); }
.fm-comments { margin-top: 48px; }

/* ---------- Signup ---------- */
.fm-signup { padding-top: 64px; padding-bottom: 64px; }
.fm-signup__inner { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; }
.fm-signup__text { flex: 1 1 360px; }
.fm-signup__text h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.5px; line-height: 1.15; }
.fm-signup__inner .fm-form { flex: 1 1 360px; }
.fm-form { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-form input {
    flex: 1 1 220px; min-height: 48px; padding: 0 16px; border: 1px solid #a3a3a3; border-radius: 4px;
    font: inherit; font-size: 16px; background: #fff; color: var(--fm-ink);
}
.fm-form__msg { display: none; flex-basis: 100%; margin: 0; font-size: 14px; }
.fm-form.success .fm-form__msg--success { display: block; color: #166534; }
.fm-form.error .fm-form__msg--error { display: block; color: var(--fm-accent); }
.fm-form.loading .fm-button { opacity: 0.6; pointer-events: none; }

/* ---------- Archives ---------- */
.fm-archive-head { padding: 48px 0 32px; border-bottom: 3px solid var(--fm-ink); margin-bottom: 40px; }
.fm-archive-head .fm-section__title { font-size: clamp(32px, 4vw, 44px); margin-top: 6px; }
.fm-archive-head__desc { margin: 12px 0 0; font-family: var(--fm-font-body); font-size: 19px; color: var(--fm-ink-2); max-width: 640px; }
.fm-archive-head--author { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.fm-pagination { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 48px 0 16px; }
.fm-error { padding: 96px var(--fm-gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- Footer ---------- */
.fm-footer { background: var(--fm-black); color: #a3a3a3; margin-top: 0; }
.fm-footer__bar { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.fm-footer a:hover { color: #fff; }
.fm-footer .fm-logo:hover { color: #fff; }

@media (max-width: 600px) {
    .fm-header__bar { min-height: 64px; }
    .fm-wordmark { font-size: 24px; }
    .fm-content { font-size: 19px; }
    .fm-cta, .fm-signup__inner { padding: 24px; }
    .fm-episode__cover { width: 100%; }
}
