/* Firefly Collective — base, layout and chrome (header, nav, footer, forms, prose,
 * the blog, consent). Block styles live in _core_sections.css, ornament
 * (seal, stars, fireflies, arches) in _core_ornament.css, tokens in
 * _core_tokens.css. */

/* ---------- Base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--fcg-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.fcg-page {
    margin: 0;
    /* Orbit rings and fireflies drift past the edges; never a sideways scroll (clip keeps the sticky header). */
    overflow-x: clip;
    background: var(--fcg-hall);
    color: var(--fcg-on-hall);
    font-family: var(--fcg-font-body);
    font-size: var(--fcg-step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
}
/* Components set display on their own class; [hidden] must still win. */
.fcg-page [hidden] { display: none !important; }
.fcg-page img, .fcg-page svg, .fcg-page video { display: block; max-width: 100%; height: auto; }
.fcg-page a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.fcg-page :focus-visible { outline: 2.5px solid var(--fcg-copper); outline-offset: 3px; border-radius: 4px; }
.fcg-sec--paper :focus-visible, .fcg-sec--parchment :focus-visible { outline-color: var(--fcg-copper-ink); }
.fcg-page ::selection { background: var(--fcg-copper); color: var(--fcg-on-copper); }

.fcg-page h1, .fcg-page h2, .fcg-page h3, .fcg-page h4 {
    font-family: var(--fcg-font-display);
    font-weight: 420;
    letter-spacing: -0.015em;
    line-height: 1.08;
    margin: 0 0 0.5em;
    color: inherit;
    text-wrap: balance;
}
.fcg-page h1 { font-size: var(--fcg-step-5); font-weight: 380; letter-spacing: -0.025em; }
.fcg-page h2 { font-size: var(--fcg-step-4); }
.fcg-page h3 { font-size: var(--fcg-step-2); line-height: 1.18; letter-spacing: -0.01em; }
.fcg-page h4 { font-size: var(--fcg-step-1); line-height: 1.25; }
/* An italic word in a headline is lit in gold: "Writing at the edge of *reason*". */
.fcg-page h1 em, .fcg-page h2 em, .fcg-page h3 em { font-style: italic; font-weight: 360; color: var(--fcg-copper); }
.fcg-sec--paper h1 em, .fcg-sec--paper h2 em, .fcg-sec--paper h3 em,
.fcg-sec--parchment h1 em, .fcg-sec--parchment h2 em, .fcg-sec--parchment h3 em { color: var(--fcg-copper-ink); }
.fcg-page p { margin: 0 0 1em; text-wrap: pretty; }

.fcg-skip {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--fcg-copper); color: var(--fcg-on-copper); padding: 0.6rem 1rem; border-radius: 8px;
}
.fcg-skip:focus { top: 1rem; }

/* ---------- Layout ----------------------------------------------------- */
.fcg-wrap { width: 100%; max-width: var(--fcg-wrap); margin-inline: auto; padding-inline: var(--fcg-gutter); }
.fcg-wrap--narrow { max-width: var(--fcg-wrap-narrow); }
.fcg-sec { padding-block: var(--fcg-section); position: relative; isolation: isolate; }
.fcg-sec--tight { padding-block: calc(var(--fcg-section) * 0.6); }
.fcg-sec--night { background: var(--fcg-hall); color: var(--fcg-on-hall); }
.fcg-sec--deep { background: var(--fcg-hall-deep); color: var(--fcg-on-hall); }
.fcg-sec--paper { background: var(--fcg-paper); color: var(--fcg-ink); }
.fcg-sec--parchment { background: var(--fcg-paper-2); color: var(--fcg-ink); }
/* Two neighbouring sections with the same background share one gap, not two. */
.fcg-sec--night + .fcg-sec--night, .fcg-sec--paper + .fcg-sec--paper, .fcg-sec--parchment + .fcg-sec--parchment, .fcg-sec--deep + .fcg-sec--deep { padding-top: 0; }
.fcg-sec__more { margin-top: var(--fcg-space-6); text-align: center; }

.fcg-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6em;
    font: 600 var(--fcg-step--2)/1.2 var(--fcg-font-body);
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--fcg-copper);
    margin-bottom: var(--fcg-space-3);
}
/* A four-point star either side of the label, like a chart's compass rose. */
.fcg-eyebrow::before, .fcg-head--center .fcg-eyebrow::after {
    content: ""; width: 0.7em; height: 0.7em; flex: none; background: currentColor;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.fcg-page p.fcg-eyebrow { margin-bottom: var(--fcg-space-3); }
.fcg-sec--paper .fcg-eyebrow, .fcg-sec--parchment .fcg-eyebrow { color: var(--fcg-copper-ink); }
.fcg-lead { font-size: var(--fcg-step-1); line-height: 1.6; color: var(--fcg-on-hall-muted); max-width: 60ch; }
.fcg-sec--paper .fcg-lead, .fcg-sec--parchment .fcg-lead { color: var(--fcg-muted); }
.fcg-muted { color: var(--fcg-on-hall-muted); }
.fcg-sec--paper .fcg-muted, .fcg-sec--parchment .fcg-muted { color: var(--fcg-muted); }

.fcg-head { max-width: 46rem; margin-bottom: var(--fcg-space-6); }
.fcg-head--center { margin-inline: auto; text-align: center; display: grid; justify-items: center; }
.fcg-head--center .fcg-lead { margin-inline: auto; }
.fcg-head h2 { margin-bottom: 0.35em; }
.fcg-head > :last-child { margin-bottom: 0; }
/* A section head can sit beside a link ("All articles") on wide screens. */
.fcg-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--fcg-space-4); margin-bottom: var(--fcg-space-6); }
.fcg-head-row .fcg-head { margin-bottom: 0; }

.fcg-checks { list-style: none; margin: 0 0 var(--fcg-space-4); padding: 0; display: grid; gap: 0.7rem; }
.fcg-checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.fcg-checks__icon { width: 1.5rem; height: 1.5rem; margin-top: 0.15em; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fcg-hall-line); color: var(--fcg-copper); }
.fcg-sec--paper .fcg-checks__icon, .fcg-sec--parchment .fcg-checks__icon { border-color: var(--fcg-line-strong); color: var(--fcg-copper-ink); }

.fcg-signature { font: italic 360 var(--fcg-step-3)/1 var(--fcg-font-display); color: var(--fcg-copper); }
.fcg-sec--paper .fcg-signature, .fcg-sec--parchment .fcg-signature { color: var(--fcg-copper-ink); }

/* ---------- Buttons ---------------------------------------------------- */
.fcg-btn {
    --_bg: var(--fcg-copper); --_fg: var(--fcg-on-copper); --_bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    min-height: 3.1rem; padding: 0.75rem 1.5rem;
    border: 1px solid var(--_bd); border-radius: 999px;
    background: var(--_bg); color: var(--_fg);
    font: 600 var(--fcg-step--1)/1.1 var(--fcg-font-body); letter-spacing: 0.02em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform var(--fcg-fast) var(--fcg-ease), background-color var(--fcg-fast) var(--fcg-ease),
                box-shadow var(--fcg-med) var(--fcg-ease), color var(--fcg-fast) var(--fcg-ease), border-color var(--fcg-fast) var(--fcg-ease);
}
.fcg-page .fcg-btn { color: var(--_fg); }
.fcg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--fcg-copper-glow); }
.fcg-btn:active { transform: translateY(0); box-shadow: none; }
.fcg-btn .fcg-icon--arrow { transition: transform var(--fcg-fast) var(--fcg-ease); }
.fcg-btn:hover .fcg-icon--arrow { transform: translateX(3px); }
.fcg-btn--primary:hover { --_bg: var(--fcg-copper-soft); }
.fcg-btn--brand { --_bg: var(--fcg-hall); --_fg: var(--fcg-vellum); }
.fcg-btn--brand:hover { --_bg: var(--fcg-hall-2); }
.fcg-btn--outline, .fcg-btn--ghost { --_bg: transparent; --_fg: var(--fcg-on-hall); --_bd: var(--fcg-hall-line); }
.fcg-btn--outline:hover, .fcg-btn--ghost:hover { --_bd: var(--fcg-copper); --_fg: var(--fcg-vellum); box-shadow: none; }
.fcg-sec--paper .fcg-btn--outline, .fcg-sec--parchment .fcg-btn--outline { --_fg: var(--fcg-ink); --_bd: var(--fcg-line-strong); }
.fcg-sec--paper .fcg-btn--outline:hover, .fcg-sec--parchment .fcg-btn--outline:hover { --_bd: var(--fcg-ink); --_fg: var(--fcg-ink); }
.fcg-btn--sm { min-height: 2.6rem; padding: 0.5rem 1.1rem; }
.fcg-btn--block { width: 100%; }
@media (max-width: 420px) { .fcg-btn { white-space: normal; text-align: center; } }
.fcg-actions { display: flex; flex-wrap: wrap; gap: var(--fcg-space-2) var(--fcg-space-3); align-items: center; }

.fcg-link-arrow {
    display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; font-size: var(--fcg-step--1); letter-spacing: 0.02em;
    color: var(--fcg-copper); text-decoration: none; border-bottom: 1px solid var(--fcg-hall-line); padding-bottom: 0.15em;
    transition: border-color var(--fcg-fast) var(--fcg-ease);
}
.fcg-page a.fcg-link-arrow { color: var(--fcg-copper); }
.fcg-page .fcg-sec--paper a.fcg-link-arrow, .fcg-page .fcg-sec--parchment a.fcg-link-arrow { color: var(--fcg-copper-ink); border-color: var(--fcg-line-strong); }
.fcg-link-arrow:hover { border-color: currentColor; }
.fcg-link-arrow .fcg-icon { transition: transform var(--fcg-fast) var(--fcg-ease); }
.fcg-link-arrow:hover .fcg-icon, a:hover .fcg-link-arrow .fcg-icon { transform: translateX(4px); }

.fcg-chip {
    display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.4rem; padding: 0.35rem 1rem; border-radius: 999px;
    border: 1px solid var(--fcg-hall-line); background: transparent; color: var(--fcg-on-hall);
    font: 600 var(--fcg-step--1)/1 var(--fcg-font-body); text-decoration: none; cursor: pointer;
    transition: background-color var(--fcg-fast) var(--fcg-ease), border-color var(--fcg-fast) var(--fcg-ease), color var(--fcg-fast) var(--fcg-ease);
}
.fcg-chip .fcg-icon { color: var(--fcg-copper); }
.fcg-chip:hover { border-color: var(--fcg-copper); }
.fcg-chip.is-active { background: var(--fcg-copper); border-color: var(--fcg-copper); color: var(--fcg-on-copper); }
.fcg-chip.is-active .fcg-icon { color: inherit; }
.fcg-chip__count { font-weight: 500; opacity: 0.6; }

/* ---------- Header ----------------------------------------------------- */
.fcg-topbar { background: var(--fcg-copper); color: var(--fcg-on-copper); font-size: var(--fcg-step--1); position: relative; z-index: 61; }
.fcg-topbar__inner { display: flex; align-items: center; justify-content: center; min-height: 38px; padding-block: 0.4rem; text-align: center; }
.fcg-topbar__notice { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; text-decoration: none; }
.fcg-topbar a.fcg-topbar__notice:hover { text-decoration: underline; }

/* The header must never change size when the page scrolls (it sits in the
 * page's flow: a header that shrinks pulls the page up, the scroll position
 * drops back under the threshold, it grows again, and on a slow computer the
 * two chase each other). Only colour and the hairline change. It is a plain
 * colour, not a blur of what is behind it: a blurred backdrop is repainted
 * on every scrolled frame. Check with scripts/scroll-check.js. */
.fcg-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--fcg-hall);
    color: var(--fcg-on-hall);
    border-bottom: 1px solid transparent;
    transition: border-color var(--fcg-med) var(--fcg-ease), background-color var(--fcg-med) var(--fcg-ease);
}
.fcg-header__inner { display: flex; align-items: center; gap: var(--fcg-space-4); min-height: var(--fcg-header-h); }
.fcg-header.is-scrolled { border-bottom-color: var(--fcg-hall-line); background: var(--fcg-hall-deep); }
.fcg-header .fcg-wrap { max-width: 1320px; }

.fcg-brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; flex-shrink: 0; }
.fcg-brand .fcg-sigil { width: 42px; height: 42px; }
.fcg-brand__logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.fcg-brand__text { display: grid; gap: 0.25rem; }
.fcg-brand__name { font: 440 1.32rem/1 var(--fcg-font-display); letter-spacing: -0.01em; color: var(--fcg-vellum); }
.fcg-brand__tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fcg-on-hall-muted); line-height: 1.2; }

.fcg-nav { margin-inline-start: auto; }
.fcg-ed-menu .fcg-nav { margin: 0; }
.fcg-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.fcg-nav__list > li { position: relative; }
.fcg-nav__list a {
    display: flex; align-items: center; gap: 0.3em; white-space: nowrap; padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none;
    font-weight: 500; font-size: 0.95rem; color: var(--fcg-on-hall);
    transition: background-color var(--fcg-fast) var(--fcg-ease), color var(--fcg-fast) var(--fcg-ease);
}
.fcg-nav__list > li > a:hover, .fcg-nav__list > li:focus-within > a { color: var(--fcg-vellum); background: var(--fcg-hall-line-soft); }
.fcg-nav__list > li.current-menu-item > a, .fcg-nav__list > li.current-menu-ancestor > a, .fcg-nav__list > li.current_page_parent > a { color: var(--fcg-copper); }
.fcg-nav__list .menu-item-has-children > a::after {
    content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-inline-start: 0.45em;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-0.2em) rotate(45deg); opacity: 0.6;
}
.fcg-nav__list .sub-menu {
    list-style: none; margin: 0; padding: 0.5rem; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
    background: var(--fcg-hall-2); border-radius: var(--fcg-radius); box-shadow: var(--fcg-glow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity var(--fcg-fast) var(--fcg-ease), transform var(--fcg-fast) var(--fcg-ease), visibility 0s linear var(--fcg-fast);
}
.fcg-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.fcg-nav__list li:hover > .sub-menu, .fcg-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.fcg-nav__list .sub-menu a { border-radius: 10px; padding: 0.6rem 0.85rem; }
.fcg-nav__list .sub-menu a:hover { background: var(--fcg-hall-line-soft); }

.fcg-header__cta { display: flex; align-items: center; gap: 0.6rem; }
.fcg-header__cta .wp-block-buttons { margin: 0; }
.fcg-page .fcg-header__cta .wp-block-button__link { min-height: 2.6rem; padding: 0.5rem 1.1rem; }
.fcg-header__inner > .fcg-ed-menu, .fcg-header__inner > .fcg-nav { margin-inline-start: auto; }

.fcg-nav-toggle {
    display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit; cursor: pointer;
    border-radius: 12px; position: relative; flex-shrink: 0;
}
.fcg-nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--fcg-med) var(--fcg-ease-out), opacity var(--fcg-fast); }
.fcg-nav-toggle span:nth-child(1) { top: 17px; }
.fcg-nav-toggle span:nth-child(2) { top: 23px; right: 18px; }
.fcg-nav-toggle span:nth-child(3) { top: 29px; }
.fcg-header.is-open .fcg-nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fcg-header.is-open .fcg-nav-toggle span:nth-child(2) { opacity: 0; }
.fcg-header.is-open .fcg-nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.fcg-nav__mobile-cta { display: none; gap: 0.6rem; margin-top: var(--fcg-space-5); }
@media (max-width: 960px) {
    .fcg-nav-toggle { display: block; }
    .fcg-header__cta { margin-inline-start: auto; }
    .fcg-nav {
        position: fixed; inset: var(--fcg-header-h) 0 0 0; margin: 0; background: var(--fcg-hall-deep);
        padding: var(--fcg-space-4) var(--fcg-gutter) calc(var(--fcg-space-7) + env(safe-area-inset-bottom, 0px));
        overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity var(--fcg-med) var(--fcg-ease), transform var(--fcg-med) var(--fcg-ease-out), visibility 0s linear var(--fcg-med);
    }
    .fcg-header.is-open .fcg-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .fcg-nav { top: var(--fcg-nav-top, var(--fcg-header-h)); height: calc(100dvh - var(--fcg-nav-top, var(--fcg-header-h))); }
    .fcg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .fcg-nav__list a { font: 400 var(--fcg-step-3)/1.15 var(--fcg-font-display); padding: 1rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--fcg-hall-line-soft); white-space: normal; }
    .fcg-nav__list > li > a:hover, .fcg-nav__list > li:focus-within > a { background: transparent; }
    .fcg-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; background: transparent; }
    .fcg-nav__list .sub-menu::before { display: none; }
    .fcg-nav__list .sub-menu a { font: 500 var(--fcg-step-0)/1.3 var(--fcg-font-body); padding: 0.8rem 0.25rem; }
    .fcg-nav__list .menu-item-has-children > a::after { display: none; }
    .fcg-nav__mobile-cta { display: grid; }
    body.fcg-nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
    .fcg-header__cta { display: none; }
    .fcg-nav-toggle { margin-inline-start: auto; }
    .fcg-brand__tag { display: none; }
}

/* ---------- Footer ----------------------------------------------------- */
.fcg-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--fcg-hall-deep); color: var(--fcg-on-hall-muted); padding-top: var(--fcg-space-7); font-size: 0.95rem; }
.fcg-footer a { text-decoration: none; }
.fcg-footer a:hover { color: var(--fcg-vellum); }
.fcg-page p.fcg-footer__signoff, .fcg-page .fcg-footer p.is-style-fcg-signoff {
    font: italic 340 var(--fcg-step-3)/1.3 var(--fcg-font-display);
    color: var(--fcg-vellum); text-align: center; max-width: 28em; margin: 0 auto var(--fcg-space-7); text-wrap: balance;
}
.fcg-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--fcg-space-6); padding-top: var(--fcg-space-6); border-top: 1px solid var(--fcg-hall-line); }
@media (max-width: 860px) { .fcg-footer__grid { grid-template-columns: 1fr 1fr; } .fcg-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fcg-footer__grid { grid-template-columns: 1fr; gap: var(--fcg-space-5); } }
.fcg-footer__brand .fcg-brand { margin-bottom: var(--fcg-space-3); }
.fcg-footer__brand p { max-width: 36ch; }
.fcg-page .fcg-footer h3 { font: 600 var(--fcg-step--2)/1.2 var(--fcg-font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fcg-copper); margin-bottom: var(--fcg-space-4); }
.fcg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.fcg-footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.fcg-footer__contact .fcg-icon { margin-top: 0.3em; flex-shrink: 0; color: var(--fcg-copper); }
.fcg-footer__contact a { overflow-wrap: anywhere; }
.fcg-social, .fcg-page ul.fcg-social { list-style: none; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: var(--fcg-space-4); }
.fcg-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fcg-hall-line); color: var(--fcg-on-hall); transition: background-color var(--fcg-fast), border-color var(--fcg-fast), color var(--fcg-fast); }
.fcg-social a:hover { background: var(--fcg-copper); border-color: var(--fcg-copper); color: var(--fcg-on-copper); }
.fcg-page p.fcg-footer__disclaimer { margin: var(--fcg-space-6) 0 0; max-width: 80ch; font-size: var(--fcg-step--1); line-height: 1.6; }
.fcg-footer__bottom { margin-top: var(--fcg-space-6); padding-block: var(--fcg-space-4); border-top: 1px solid var(--fcg-hall-line-soft); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; font-size: var(--fcg-step--1); }
.fcg-footer__bottom > p { margin: 0; }
.fcg-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.fcg-footer__cookies { all: unset; cursor: pointer; }
.fcg-footer__cookies:hover { color: var(--fcg-vellum); }
.fcg-footer__cookies:focus-visible { outline: 2.5px solid var(--fcg-copper); outline-offset: 3px; border-radius: 4px; }
.fcg-footer > .fcg-wrap { position: relative; z-index: 2; }
.fcg-footer.has-art > .fcg-wrap { padding-bottom: clamp(120px, 14vw, 220px); }
.fcg-footer__art { position: absolute; inset: auto 0 0 0; z-index: 1; pointer-events: none; }
.fcg-page .fcg-footer__art img { width: 100%; height: clamp(180px, 20vw, 320px); object-fit: cover; object-position: center bottom; opacity: 0.9; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }

/* ---------- Forms ------------------------------------------------------ */
.fcg-form__fields { display: grid; gap: var(--fcg-space-4); }
.fcg-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fcg-space-4); }
@media (max-width: 560px) { .fcg-form__grid { grid-template-columns: 1fr; } }
.fcg-field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.fcg-field label, .fcg-label { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; }
.fcg-field .fcg-optional { font-weight: 400; opacity: 0.7; }
.fcg-input, .fcg-page select.fcg-input, .fcg-page textarea.fcg-input {
    width: 100%; min-height: 3.1rem; padding: 0.75rem 1rem; border-radius: 12px;
    border: 1px solid var(--fcg-hall-line); background: color-mix(in oklab, var(--fcg-hall) 70%, #000); color: var(--fcg-vellum);
    font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color var(--fcg-fast), box-shadow var(--fcg-fast);
    -webkit-appearance: none; appearance: none;
}
.fcg-sec--paper .fcg-input, .fcg-sec--parchment .fcg-input, .fcg-card-paper .fcg-input { background: var(--fcg-surface); color: var(--fcg-ink); border-color: var(--fcg-line-strong); }
.fcg-page select.fcg-input { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.fcg-page textarea.fcg-input { min-height: 8rem; resize: vertical; }
.fcg-input:focus { outline: none; border-color: var(--fcg-copper); box-shadow: 0 0 0 4px var(--fcg-copper-glow); }
.fcg-input[aria-invalid="true"] { border-color: #e2725b; }
.fcg-field__error { font-size: 0.86rem; color: #f0a08f; margin: 0; }
.fcg-sec--paper .fcg-field__error, .fcg-sec--parchment .fcg-field__error { color: #b3261e; }
.fcg-consent { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.88rem; line-height: 1.5; opacity: 0.85; cursor: pointer; }
.fcg-consent input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--fcg-copper); }
.fcg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fcg-page p.fcg-form__privacy { font-size: 0.82rem; line-height: 1.5; opacity: 0.72; margin: 0; }
.fcg-form__privacy a { color: inherit; }
.fcg-page p.fcg-form__status { font-size: 0.95rem; margin: 0; }
.fcg-form__status:empty { display: none; }
.fcg-form__status.is-error { color: #f0a08f; }
.fcg-form.is-sending button[type="submit"] { opacity: 0.7; pointer-events: none; }
.fcg-form__done { display: none; text-align: center; padding: var(--fcg-space-5) var(--fcg-space-3); }
.fcg-form.is-done .fcg-form__fields { display: none; }
.fcg-form.is-done .fcg-form__done { display: block; animation: fcg-pop var(--fcg-med) var(--fcg-ease-out); }
.fcg-form__done .fcg-check { width: 64px; height: 64px; margin: 0 auto var(--fcg-space-3); border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fcg-copper); color: var(--fcg-copper); }
.fcg-form__done p { opacity: 0.8; margin: 0; }

.fcg-signup-form__row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: var(--fcg-space-3); align-items: end; }
.fcg-signup-form__row > .fcg-field:only-of-type { grid-column: span 2; }
@media (max-width: 720px) { .fcg-signup-form__row { grid-template-columns: 1fr; } .fcg-signup-form__row > .fcg-field:only-of-type { grid-column: auto; } .fcg-signup-form__row .fcg-btn { width: 100%; } }
.fcg-signup-form .fcg-form__fields { gap: var(--fcg-space-3); }

/* ---------- Long-form reading (articles, the Deism page, legal pages) -- *
 * Parchment, a reading serif at a generous size, a measure of about 68
 * characters. The first paragraph opens with a gold initial. */
.fcg-prose { font-family: var(--fcg-font-read); font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.22rem); line-height: 1.72; color: var(--fcg-ink); }
/* The reading measure: about 68 characters of body text, in rem so a big
   heading or quotation keeps the same column as the paragraphs. */
.fcg-prose { --fcg-measure: 42rem; }
.fcg-prose > * { max-width: var(--fcg-measure); margin-inline: auto; }
/* `.fcg-page p` sets all four margins; inside an article the measure stays centred. */
.fcg-page .fcg-prose > p, .fcg-page .fcg-prose > ul, .fcg-page .fcg-prose > ol, .fcg-page .fcg-prose > h2, .fcg-page .fcg-prose > h3, .fcg-page .fcg-prose > figure, .fcg-page .fcg-prose > blockquote { margin-inline: auto; }
.fcg-prose > figure.alignwide, .fcg-prose > .alignwide { max-width: 980px; }
.fcg-page .fcg-prose h2 { font-size: var(--fcg-step-3); margin-top: 1.8em; margin-bottom: 0.55em; }
.fcg-page .fcg-prose h3 { font-size: var(--fcg-step-2); margin-top: 1.5em; }
.fcg-prose > :first-child { margin-top: 0 !important; }
.fcg-page .fcg-prose p { margin-bottom: 1.15em; }
.fcg-prose--initial > p:first-of-type::first-letter {
    float: left; font: 400 4.6em/0.8 var(--fcg-font-display); margin: 0.06em 0.1em 0 -0.02em; color: var(--fcg-copper-ink);
}
.fcg-prose ul, .fcg-prose ol { padding-left: 1.3em; margin-bottom: 1.15em; }
.fcg-prose li { margin-bottom: 0.45em; }
.fcg-prose li::marker { color: var(--fcg-copper-ink); }
.fcg-prose img { border-radius: var(--fcg-radius); margin-block: var(--fcg-space-4); }
.fcg-prose figure { margin: var(--fcg-space-5) auto; }
.fcg-prose figcaption { font: var(--fcg-step--1)/1.5 var(--fcg-font-body); color: var(--fcg-muted); margin-top: 0.6rem; }
.fcg-prose blockquote, .fcg-prose .wp-block-pullquote {
    margin: var(--fcg-space-6) auto; padding: var(--fcg-space-2) 0 var(--fcg-space-2) var(--fcg-space-5); border-left: 2px solid var(--fcg-copper);
    font: italic 360 var(--fcg-step-2)/1.4 var(--fcg-font-display); color: var(--fcg-ink);
}
.fcg-prose blockquote p:last-child { margin-bottom: 0; }
.fcg-prose blockquote cite { display: block; margin-top: 0.7rem; font: 500 var(--fcg-step--1)/1.4 var(--fcg-font-body); font-style: normal; color: var(--fcg-muted); }
.fcg-page .fcg-prose a { color: var(--fcg-ink); text-decoration-color: var(--fcg-copper); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.fcg-page .fcg-prose a:hover { text-decoration-color: var(--fcg-ink); }
.fcg-prose hr, .fcg-prose .wp-block-separator { border: 0; height: 14px; margin: var(--fcg-space-6) auto; background: radial-gradient(circle, var(--fcg-copper-ink) 0 2px, transparent 2.5px) center / 28px 14px repeat-x; max-width: 84px; opacity: 0.7; }
.fcg-prose code { font: 0.88em var(--fcg-font-mono); background: var(--fcg-paper-2); padding: 0.1em 0.35em; border-radius: 5px; }
.fcg-prose pre { font: 0.9rem/1.6 var(--fcg-font-mono); background: var(--fcg-hall); color: var(--fcg-on-hall); padding: var(--fcg-space-4); border-radius: var(--fcg-radius); overflow-x: auto; }
.fcg-prose pre code { background: none; padding: 0; }
.fcg-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font: 0.95rem/1.5 var(--fcg-font-body); }
.fcg-prose th, .fcg-prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--fcg-line); text-align: left; vertical-align: top; }
.fcg-prose .fcg-source { font: 500 var(--fcg-step--1)/1.5 var(--fcg-font-body); color: var(--fcg-muted); }

/* ---------- The blog: listing, cards, one article ---------------------- */
.fcg-blog { background: var(--fcg-paper); color: var(--fcg-ink); }
.fcg-topicbar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.75rem; margin: 0 0 var(--fcg-space-6); scrollbar-width: thin; }
.fcg-sec--paper .fcg-chip { border-color: var(--fcg-line-strong); color: var(--fcg-ink); }
.fcg-sec--paper .fcg-chip .fcg-icon { color: var(--fcg-copper-ink); }
.fcg-sec--paper .fcg-chip:hover { border-color: var(--fcg-ink); }
.fcg-sec--paper .fcg-chip.is-active { background: var(--fcg-hall); border-color: var(--fcg-hall); color: var(--fcg-vellum); }
.fcg-sec--paper .fcg-chip.is-active .fcg-icon { color: var(--fcg-copper); }

.fcg-posts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fcg-space-6) var(--fcg-space-5); }
@media (max-width: 980px) { .fcg-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fcg-posts__grid { grid-template-columns: 1fr; } }
.fcg-post-card { position: relative; display: grid; align-content: start; gap: var(--fcg-space-3); }
.fcg-post-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--fcg-radius); background: var(--fcg-hall); }
.fcg-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--fcg-ease-out); }
.fcg-post-card:hover .fcg-post-card__media img { transform: scale(1.04); }
.fcg-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; font: 600 var(--fcg-step--2)/1.3 var(--fcg-font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fcg-muted); margin: 0; }
.fcg-post-card__meta .fcg-post-card__topic { color: var(--fcg-copper-ink); }
.fcg-post-card__meta > * + *::before, .fcg-post__meta > * + *::before { content: "·"; margin-inline-end: 0.8rem; opacity: 0.6; }
.fcg-page .fcg-post-card--lead p.fcg-post-card__meta { font-size: var(--fcg-step--2); }
.fcg-sec--night .fcg-post-card__meta, .fcg-sec--deep .fcg-post-card__meta { color: var(--fcg-on-hall-muted); }
.fcg-sec--night .fcg-post-card__meta .fcg-post-card__topic, .fcg-sec--deep .fcg-post-card__meta .fcg-post-card__topic { color: var(--fcg-copper); }
.fcg-page .fcg-post-card h2, .fcg-page .fcg-post-card h3 { font-size: var(--fcg-step-2); margin: 0; }
.fcg-post-card__link { text-decoration: none; }
.fcg-post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fcg-post-card__link:hover { text-decoration: underline; text-decoration-color: var(--fcg-copper); text-decoration-thickness: 1.5px; }
.fcg-post-card p { margin: 0; color: var(--fcg-muted); font-size: 0.98rem; }
.fcg-sec--night .fcg-post-card p, .fcg-sec--deep .fcg-post-card p { color: var(--fcg-on-hall-muted); }
/* The newest article leads the listing, wide. */
.fcg-post-card--lead { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr; align-items: center; gap: var(--fcg-space-6); }
.fcg-post-card--lead .fcg-post-card__media { aspect-ratio: 16 / 10; }
.fcg-page .fcg-post-card--lead h2 { font-size: var(--fcg-step-4); }
.fcg-post-card--lead p:not(.fcg-post-card__meta) { font-size: var(--fcg-step-1); }
@media (max-width: 820px) { .fcg-post-card--lead { grid-template-columns: 1fr; gap: var(--fcg-space-4); } }

.fcg-pager { margin-top: var(--fcg-space-7); }
.fcg-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.fcg-pager a, .fcg-pager span { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--fcg-line-strong); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.fcg-pager .current { background: var(--fcg-hall); border-color: var(--fcg-hall); color: var(--fcg-vellum); }
.fcg-pager a:hover { border-color: var(--fcg-ink); }

.fcg-empty { text-align: center; padding: var(--fcg-space-7) 0; }

/* One article. */
.fcg-post { background: var(--fcg-paper); color: var(--fcg-ink); }
.fcg-page p.fcg-post__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; font: 600 var(--fcg-step--2)/1.3 var(--fcg-font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fcg-on-hall-muted); margin: var(--fcg-space-5) 0 0; }
.fcg-post__body { padding-block: var(--fcg-space-7) var(--fcg-space-6); }
.fcg-post__end { max-width: 42rem; margin: var(--fcg-space-7) auto 0; display: grid; gap: var(--fcg-space-5); }
.fcg-post__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fcg-post__tags a { font: 600 var(--fcg-step--2)/1 var(--fcg-font-body); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55rem 0.8rem; border: 1px solid var(--fcg-line-strong); border-radius: 999px; text-decoration: none; }
.fcg-post__tags a:hover { border-color: var(--fcg-ink); }
.fcg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font: 600 var(--fcg-step--1)/1 var(--fcg-font-body); }
.fcg-share > span { margin-inline-end: 0.4rem; color: var(--fcg-muted); }
.fcg-share a, .fcg-share button { display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.5rem; padding: 0 0.95rem; border: 1px solid var(--fcg-line-strong); border-radius: 999px; background: transparent; color: var(--fcg-ink); font: inherit; text-decoration: none; cursor: pointer; }
.fcg-share a:hover, .fcg-share button:hover { border-color: var(--fcg-ink); }
.fcg-author { display: grid; grid-template-columns: auto 1fr; gap: var(--fcg-space-4); align-items: center; padding: var(--fcg-space-5); border-radius: var(--fcg-radius-lg); background: var(--fcg-hall); color: var(--fcg-on-hall); }
.fcg-author .fcg-sigil { width: 72px; height: 72px; }
.fcg-author p { margin: 0; font-size: 0.98rem; color: var(--fcg-on-hall-muted); }
.fcg-author strong { display: block; font: 440 var(--fcg-step-1)/1.2 var(--fcg-font-display); color: var(--fcg-vellum); margin-bottom: 0.25rem; }
.fcg-author a { color: var(--fcg-copper); }
@media (max-width: 520px) { .fcg-author { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
/* How far through the article: a gold hairline under the header. */
.fcg-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 70; background: var(--fcg-copper); transform: scaleX(var(--fcg-progress, 0)); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Consent banner (models/consent.php) ------------------------ */
.fcg-consent-bar {
    position: fixed; left: var(--fcg-space-3); right: var(--fcg-space-3); bottom: calc(var(--fcg-space-3) + env(safe-area-inset-bottom, 0px)); z-index: 90;
    max-width: 44rem; margin-inline: auto; padding: var(--fcg-space-4);
    background: var(--fcg-hall-2); color: var(--fcg-on-hall); border-radius: var(--fcg-radius-lg); box-shadow: var(--fcg-glow);
    font-size: 0.94rem; line-height: 1.55;
}
.fcg-page .fcg-consent-bar h2 { font: 600 var(--fcg-step-0)/1.3 var(--fcg-font-body); letter-spacing: 0; margin: 0 0 0.35rem; }
.fcg-consent-bar p { margin: 0 0 var(--fcg-space-3); color: var(--fcg-on-hall-muted); }
.fcg-page .fcg-consent-bar a { color: var(--fcg-copper); }
.fcg-consent-bar__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
/* The two choices carry the same weight: refusing is as easy as agreeing. */
.fcg-consent-bar__actions .fcg-btn { flex: 1 1 12rem; }

/* ---------- Motion ----------------------------------------------------- *
 * Only when JS is running (.fcg-js) AND the owner left motion on, AND the
 * visitor has not asked for less. Without any of the three, content is
 * simply visible: an animation must never be the thing that hides it. */
@media (prefers-reduced-motion: no-preference) {
    /* Opacity only, short, little stagger: a slide on many elements at once made scrolling stall on slow machines (scroll-check, 2026-10-26). */
    .fcg-js .fcg-motion [data-reveal] { opacity: 0; transition: opacity 420ms var(--fcg-ease-out); transition-delay: calc(min(var(--fcg-i, 0), 3) * 50ms); }
    .fcg-js .fcg-motion [data-reveal="fade"] { transform: none; }
    .fcg-js .fcg-motion [data-reveal="scale"] { transform: none; }
    .fcg-js .fcg-motion [data-reveal].is-revealed { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fcg-page *, .fcg-page *::before, .fcg-page *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@keyframes fcg-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
