/* St. Vitus Dance — Ghost theme
   Built from the St. Vitus Dance Style Guide (Nov 30, 2026).
   IM Fell English lives only in the title and cover files, never in live text. */

:root {
    --brick: #AA2C20;
    --parchment: #F7E6B8;
    --oxblood: #710E18;
    --ochre: #B27228;
    --navy: #0E2540;
    --black: #000000;

    --font-sans: var(--gh-font-heading, "Libre Franklin"), "Helvetica Neue", Arial, sans-serif;
    --font-serif: var(--gh-font-body, "Cardo"), Georgia, "Times New Roman", serif;

    --container: 1160px;
    --narrow: 720px;
    --gutter: clamp(20px, 4vw, 40px);
}

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

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

body {
    margin: 0;
    background: var(--parchment);
    color: var(--black);
    font-family: var(--font-serif);
    font-size: 1.125rem;      /* P2 body: 18px */
    line-height: 1.75rem;     /* 28px */
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxblood); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

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

.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;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: var(--parchment); padding: 8px 14px; font-family: var(--font-sans); }
.skip-link:focus { left: 8px; }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 500; margin: 0; }

/* H1: headlines & episode titles, 30/36 */
.article-title, .gh-content h1 { font-size: 1.875rem; line-height: 2.25rem; }

/* H2: subheads, 24/30 */
.post-card-title, .gh-content h2 { font-size: 1.5rem; line-height: 1.875rem; }

/* H3: labels & episode numbers, Semibold caps 14/20, 8% tracking */
.label, .gh-content h3 {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--brick);
}

/* H4: buttons, Semibold caps 12/18, 8% tracking */
.button, .gh-content h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* P1: lead paragraphs, 20/28 */
.lead { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.75rem; margin: 0; }

/* P3: captions & credits, Libre Franklin Medium 12/18.4 */
.caption, figcaption {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.15rem;
    margin: 0;
}

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

.button {
    display: inline-block;
    padding: 12px 20px;
    background: var(--brick);
    color: var(--parchment);
    border: 2px solid var(--brick);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.button:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--parchment); }
.button-small { padding: 8px 14px; }
.button-outline { background: transparent; color: var(--brick); }
.button-outline:hover { background: var(--brick); border-color: var(--brick); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Trembling divider ---------- */

.tremble-divider { display: block; width: 100%; height: 24px; color: var(--brick); margin: 24px 0; }

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

.site-header { background: var(--parchment); border-bottom: 1px solid rgba(170, 44, 32, .25); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }

/* Title never smaller than 150px wide; the PNG/SVG carries its own clear space via padding */
.site-logo, .footer-logo { text-decoration: none; }
.site-logo { display: block; padding: 8px 0; }
.site-logo img { width: clamp(180px, 26vw, 300px); }
.site-logo-text { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; color: var(--brick); }

.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-nav .nav, .footer-nav .nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.site-nav .nav a {
    font-family: var(--font-sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em;
    text-transform: uppercase; text-decoration: none; color: var(--black);
}
.site-nav .nav a:hover, .site-nav .nav-current a { color: var(--brick); }

/* ---------- Hero (brick, matching the cover) ---------- */

.hero { background: var(--brick); color: var(--parchment); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 6vw, 72px); }
.hero-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero .label { color: var(--parchment); margin-bottom: 12px; }
.hero .lead { margin-bottom: 28px; max-width: 34em; }
.hero .button { background: var(--parchment); color: var(--brick); border-color: var(--parchment); }
.hero .button:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--parchment); }
.hero .button-outline { background: transparent; color: var(--parchment); }

/* ---------- Post feed ---------- */

.post-feed-wrap { padding-top: 48px; padding-bottom: 64px; }
.section-label { margin-bottom: 0; }
.post-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 36px; margin-top: 16px; }

.post-card-link { display: block; color: var(--black); text-decoration: none; }
.post-card-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 18px; background: var(--brick); }
.post-card .label { margin-bottom: 6px; }
.post-card-title { margin-bottom: 10px; }
.post-card-link:hover .post-card-title { color: var(--brick); }
.post-card-excerpt { margin: 0 0 10px; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-family: var(--font-sans); font-weight: 600; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; }
.pagination a { text-decoration: none; }

/* ---------- Articles ---------- */

.article { padding-bottom: 48px; }
.article-header, .archive-header { padding-top: clamp(40px, 7vw, 80px); }
.article-header .label { margin-bottom: 12px; }
.article-title { margin-bottom: 16px; }
.article-header .lead { margin-bottom: 16px; }
.article-meta { color: var(--black); }
.archive-header .lead { margin-top: 12px; }

.article-image { margin-top: 8px; margin-bottom: 40px; }
.article-image figcaption { margin-top: 10px; }

.gh-content > * + * { margin-top: 1.4em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content p, .gh-content ul, .gh-content ol { margin-bottom: 0; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 2em; margin-bottom: -0.4em; }
.gh-content h3 { display: block; }
.gh-content li + li { margin-top: .4em; }
.gh-content hr { border: 0; height: 24px; margin: 2.4em 0; background: none; }
.gh-content figcaption { margin-top: 10px; text-align: left; }

/* Pull quotes: Cardo Bold, P1 size */
.gh-content blockquote {
    margin-left: 0; margin-right: 0;
    padding-left: 24px;
    border-left: 3px solid var(--brick);
    font-weight: 700; font-size: 1.25rem; line-height: 1.75rem;
}
.gh-content blockquote.kg-blockquote-alt {
    border-left: 0; padding: 0;
    font-size: 1.5rem; line-height: 2.125rem; color: var(--brick);
}

/* Ghost card widths (required by Ghost) */
.gh-content .kg-width-wide { position: relative; width: min(1040px, 100vw - 2 * var(--gutter)); left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full figcaption { padding: 0 var(--gutter); }

/* Keep Ghost's built-in cards on brand */
.kg-bookmark-card, .kg-product-card, .kg-file-card, .kg-audio-card { font-family: var(--font-sans); }
.kg-button-card .kg-btn, .kg-header-card .kg-header-card-button { font-family: var(--font-sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 0; }

.subscribe-cta { margin-top: 56px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid rgba(170, 44, 32, .3); }
.subscribe-cta .lead { margin: 8px 0 20px; }

.more-posts { padding-top: 24px; padding-bottom: 72px; border-top: 1px solid rgba(170, 44, 32, .25); margin-top: 24px; }
.more-posts .section-label { margin-top: 32px; }

/* ---------- Footer (brick, with the parchment title) ---------- */

.site-footer { background: var(--brick); color: var(--parchment); }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.footer-logo { display: block; padding: 8px 0; }
.footer-logo img { width: 220px; }
.site-footer .site-logo-text { color: var(--parchment); }
.footer-nav .nav a { color: var(--parchment); font-family: var(--font-sans); font-weight: 500; font-size: 0.75rem; }
.footer-copy { width: 100%; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; }
    .site-header-inner { justify-content: center; }
    .site-nav { justify-content: center; }
}

/* ---------- Team (homepage) ---------- */
.team-section { border-top: 1px solid rgba(170, 44, 32, .25); padding-top: 48px; padding-bottom: 72px; }
.team-body { margin-top: 20px; columns: 2 320px; column-gap: 48px; }
.team-body.gh-content > * { break-inside: avoid; margin: 0 0 1.4em; }
.hero + .team-section { border-top: 0; }
.team-section { padding-bottom: 24px; }
.team-section + .post-feed-wrap { border-top: 1px solid rgba(170, 44, 32, .25); }

/* ---------- Section colors (navy for News, ochre divider for Newsletter) ---------- */
.tag-news .label, .tag-news .tremble-divider { color: var(--navy); }
.tag-newsletter .tremble-divider { color: var(--ochre); }

/* ---------- Navy subscribe band ---------- */
.subscribe-band { background: var(--navy); color: var(--parchment); }
.subscribe-band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; padding-top: 48px; padding-bottom: 48px; }
.subscribe-band .label.label { color: var(--parchment); margin-bottom: 8px; }
.subscribe-band .lead { max-width: 32em; }
.subscribe-band .button { background: var(--parchment); color: var(--navy); border-color: var(--parchment); }
.subscribe-band .button:hover { background: var(--ochre); border-color: var(--ochre); color: var(--black); }

/* ---------- Callout cards in brand colors ---------- */
.gh-content .kg-callout-card { border-radius: 0; font-family: var(--font-serif); }
.gh-content .kg-callout-card-yellow { background: var(--ochre); color: var(--black); }
.gh-content .kg-callout-card-blue { background: var(--navy); color: var(--parchment); }
.gh-content .kg-callout-card-red, .gh-content .kg-callout-card-accent { background: var(--brick); color: var(--parchment); }

/* ---------- Homepage archival photo ---------- */
.hero-photo { margin: 28px 0 0; max-width: 520px; }
.hero-photo img { width: 100%; }
.hero-photo figcaption { margin-top: 8px; color: var(--parchment); opacity: .85; }

.hero .hero-label-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hero .hero-label-link:hover { color: var(--parchment); text-decoration-thickness: 2px; }

/* ---------- Warmer palette: ochre team, ochre home divider, navy footer ---------- */
.team-section { background: var(--ochre); color: var(--black); border-top: 0; padding-bottom: 48px; }
.team-section .label.label { color: var(--black); }
.team-section + .post-feed-wrap { border-top: 0; }
.home-template .post-feed-wrap .tremble-divider { color: var(--ochre); }
.site-footer { background: var(--navy); border-top: 1px solid rgba(247, 230, 184, .18); }

/* ---------- Thin ochre band instead of full ochre team section; ochre subscribe buttons ---------- */


/* ---------- Homepage Latest section on ochre ---------- */
.home-template .post-feed-wrap { background: var(--ochre); box-shadow: 0 0 0 100vmax var(--ochre); clip-path: inset(0 -100vmax); border-top: 1px solid rgba(0, 0, 0, .2); }
.home-template .post-feed-wrap .label, .home-template .post-feed-wrap .tag-news .label { color: var(--black); }
.home-template .post-feed-wrap .tremble-divider { color: var(--black); }
.home-template .post-feed-wrap .post-card-link:hover .post-card-title { color: var(--parchment); }
.home-template .post-feed-wrap .post-card-link:hover { color: var(--black); }

/* ---------- Ochre bottom: subscribe band and footer ---------- */
.subscribe-band { background: var(--ochre); color: var(--black); border-top: 1px solid rgba(0, 0, 0, .2); }
.subscribe-band .label.label { color: var(--black); }
.subscribe-band .button { background: var(--brick); border-color: var(--brick); color: var(--parchment); }
.subscribe-band .button:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--parchment); }
.site-footer { background: var(--ochre); color: var(--black); border-top: 1px solid rgba(0, 0, 0, .2); }
.site-footer .site-logo-text, .footer-nav .nav a { color: var(--black); }

/* ---------- Team back on parchment ---------- */
.team-section { background: var(--parchment); padding-bottom: 48px; }
.team-section .label.label { color: var(--brick); }
.home-template .team-section + .post-feed-wrap { border-top: 0; }

/* ---------- Navy footer again ---------- */
.site-footer { background: var(--navy); color: var(--parchment); border-top: 0; }
.site-footer .site-logo-text, .footer-nav .nav a { color: var(--parchment); }

/* ---------- Homepage Latest on navy ---------- */
.home-template .post-feed-wrap { background: var(--navy); box-shadow: 0 0 0 100vmax var(--navy); color: var(--parchment); }
.home-template .post-feed-wrap .label, .home-template .post-feed-wrap .tag-news .label { color: var(--parchment); }
.home-template .post-feed-wrap .tremble-divider { color: var(--ochre); }
.home-template .post-feed-wrap .post-card-link, .home-template .post-feed-wrap .post-card-link:hover { color: var(--parchment); }
.home-template .post-feed-wrap .post-card-link:hover .post-card-title { color: var(--ochre); }

/* ---------- Ochre footer ---------- */
.site-footer { background: var(--ochre); color: var(--black); border-top: 1px solid rgba(0, 0, 0, .2); }
.site-footer .site-logo-text, .footer-nav .nav a { color: var(--black); }

/* ---------- Ochre header ---------- */
.site-header { background: var(--ochre); border-bottom: 1px solid rgba(0, 0, 0, .2); }
.site-nav .nav a, .site-nav .nav-current a, .site-nav .nav a:hover { color: var(--black); }
.site-nav .nav-current a, .site-nav .nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.site-header .site-logo-text { color: var(--parchment); }

/* ---------- Team on ochre again ---------- */
.team-section { background: var(--ochre); color: var(--black); }
.team-section .label.label { color: var(--black); }

/* ---------- Homepage Latest on cream ---------- */
.home-template .post-feed-wrap { background: var(--parchment); box-shadow: 0 0 0 100vmax var(--parchment); color: var(--black); border-top: 0; }
.home-template .post-feed-wrap .label { color: var(--brick); }
.home-template .post-feed-wrap .tag-news .label { color: var(--navy); }
.home-template .post-feed-wrap .tremble-divider { color: var(--ochre); }
.home-template .post-feed-wrap .post-card-link, .home-template .post-feed-wrap .post-card-link:hover { color: var(--black); }
.home-template .post-feed-wrap .post-card-link:hover .post-card-title { color: var(--brick); }
