/* =============================================================
   THE HUMAN AGENCY — combined stylesheet (no build step).
   Source order: tokens, base, components, Ghost parts, system.
   ============================================================= */

/* ---- vars.css ---- */
/* =============================================================================
   THE HUMAN AGENCY — Design Tokens
   Adapted from the editorial design system into Ghost's CSS pipeline.
   NOTE: Ghost sets html { font-size: 62.5% }, so 1rem = 10px. All rem values
   below assume that 10px root.
   ============================================================================= */

:root {

    /* --- Ghost-required variables (kept for compatibility) --- */
    --color-primary: var(--ghost-accent-color, #C2410C);
    --color-base: #181712;
    --color-border: #E2DED3;
    --color-bg: #FBFAF6;
    --color-success: #1F7A5A;
    --color-error: #C2410C;

    /* --- Canvas & ink --- */
    --paper:        #FBFAF6;   /* page background — warm white */
    --paper-2:      #F3F1E9;   /* sunken panels, alt rows */
    --paper-3:      #ECE9DE;   /* deeper tint */
    --ink:          #181712;   /* primary text — warm near-black */
    --ink-soft:     #4B4842;   /* secondary text */
    --ink-mute:     #807C72;   /* meta, captions */
    --ink-faint:    #A8A296;   /* timestamps, disabled */
    --hairline:     #E2DED3;   /* 1px rules */
    --hairline-2:   #D3CEC0;   /* stronger rules */
    --white:        #FFFFFF;

    /* --- Brand accent --- */
    --accent:       #C2410C;   /* Human Agency clay */
    --accent-deep:  #9A330A;
    --accent-tint:  #F6E7DC;

    /* --- Section accents --- */
    --c-pessimist:  #8A3D2E;
    --c-optimist:   #1F7A5A;
    --c-action:     #B5611B;
    --c-ideas:      #3F4D8A;
    --c-turnout:    #1B6E8C;
    --c-justice:    #6B3F86;
    --c-survival:   #4A6A2F;
    --c-signals:    #9A6A12;
    --c-future:     #2D3340;

    /* --- Dark surfaces --- */
    --ink-surface:  #15140F;
    --ink-surface-2:#221F18;
    --on-dark:      #F4F1E8;
    --on-dark-mute: #A39E91;
    --on-dark-line: #322E24;

    /* --- Fonts --- */
    --font-display: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
    --font-serif:   "Newsreader", Georgia, "Times New Roman", serif;
    --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    /* legacy aliases used by Ghost component CSS */
    --font-sans-serif: var(--font-sans);
    --font-mono: Menlo, Courier, monospace;
    --font-light: 360;
    --font-normal: 400;
    --font-bold: 600;
    --font-heavy: 700;

    /* --- Type scale (rem on a 10px root) --- */
    --fs-100: 1.1rem;   /* micro labels */
    --fs-200: 1.2rem;   /* eyebrows, meta */
    --fs-300: 1.3rem;   /* small UI */
    --fs-400: 1.5rem;   /* captions, nav */
    --fs-500: 1.6rem;   /* UI body */
    --fs-600: 1.8rem;   /* body copy */
    --fs-700: 2.3rem;   /* card heads */
    --fs-800: 3.1rem;   /* sub-display */

    --lh-tight: 1.02;
    --lh-snug: 1.12;
    --lh-head: 1.18;
    --lh-body: 1.62;

    /* --- Breakpoints (kept from Starter) --- */
    --xlarge: 1680px;
    --large: 1280px;
    --medium: 980px;
    --small: 740px;
    --xsmall: 480px;

    /* --- Spacing (rem on 10px root) --- */
    --s-1: 0.4rem; --s-2: 0.8rem; --s-3: 1.2rem; --s-4: 1.6rem;
    --s-5: 2.4rem; --s-6: 3.2rem; --s-7: 4.8rem; --s-8: 6.4rem;
    --s-9: 9.6rem; --s-10: 12rem;

    /* --- Layout --- */
    --maxw: 1280px;
    --maxw-text: 720px;
    --gutter: clamp(1.6rem, 4vw, 4rem);

    /* --- Effects --- */
    --height: 4rem;
    --margin: 2rem;
    --radius: 4px;
    --radius-lg: 12px;
    --radius-pill: 999px;
    --shadow-md: 0 6px 24px -8px rgba(24,23,18,.18);
    --shadow-lg: 0 24px 60px -20px rgba(24,23,18,.30);
    --ease: cubic-bezier(.2,.6,.2,1);
    --dur: .28s;
}

/* ---- components/global.css ---- */
/* Reset
/* ---------------------------------------------------------- */

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

html {
    font-size: 62.5%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: var(--fs-600);
    line-height: var(--lh-body);
    font-weight: 400;
    font-style: normal;
    background: var(--paper);
    scroll-behavior: smooth;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


p,
ul,
ol,
li,
dl,
dd,
hr,
pre,
form,
table,
video,
figure,
figcaption,
blockquote {
    margin: 0;
    padding: 0;
}

ul[class],
ol[class] {
    padding: 0;
    list-style: none;
}

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

input,
button,
select,
textarea {
    font: inherit;
    -webkit-appearance: none;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

label {
    display: block;
    font-size: 0.9em;
    font-weight: 700;
}

hr {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    border: 0;
    border-top: 1px solid currentcolor;
    opacity: 0.2;
}

::selection {
    text-shadow: none;
    background: var(--accent-tint);
    color: var(--accent-deep);
}

mark {
    background-color: #fdffb6;
}

small {
    font-size: 80%;
}

sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}
sup {
    top: -0.5em;
}
sub {
    bottom: -0.25em;
}

ul:not([class]) li + li {
    margin-top: 0.6em;
}

a:not([class]) {
    color: var(--color-primary);
    text-decoration-skip-ink: auto;
}

a[class] {
    color: inherit;
    text-decoration: none;
    transition: 0.4s ease;
}

a[class]:hover {
    transition: 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-display);
    line-height: var(--lh-head);
    font-weight: 470;
    letter-spacing: -0.012em;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: 4.6rem;
    letter-spacing: -0.02em;
}
@media (max-width: 500px) {
    h1 {
        font-size: 2.7rem;
    }
}

h2 {
    font-size: 3.6rem;
}
@media (max-width: 500px) {
    h2 {
        font-size: 2.2rem;
    }
}

h3 {
    font-size: 3.2rem;
}
@media (max-width: 500px) {
    h3 {
        font-size: 1.8rem;
    }
}

h4 {
    font-size: 2.6rem;
}

h5 {
    font-size: 2.4rem;
}

h6 {
    font-size: 2.2rem;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- components/forms.css ---- */
/* Forms
/* ---------------------------------------------------------- */

.gh-input,
.gh-textarea {
    background: var(--color-bg);
    border-radius: var(--radius);
    border: none;
    border: solid 1px var(--color-border);
    color: inherit;
    display: block;
    outline: 0;
    padding: 0 0.6em;
    text-decoration: none;
    width: 100%;
}

.gh-input:focus {
    border-color: var(--color-primary);
}

.gh-select {
    height: var(--height);
    padding-right: var(--height);
    text-overflow: ellipsis;
}

.gh-select option {
    color: var(--color-primary);
    background: var(--color-bg);
}

.gh-select:focus::-ms-value {
    background-color: transparent;
}

.gh-select::-ms-expand {
    display: none;
}

.gh-input,
.gh-select {
    height: var(--height);
}

.gh-textarea {
    padding: 0.3em 0.6em;
    resize: vertical;
}

.gh-check {
    display: block;
    margin-right: -2em;
    opacity: 0;
    width: 1em;
    z-index: -1;
}

.gh-check + label,
.gh-check + label {
    display: flex;
    align-items: center;
    color: var(--color-base);
    cursor: pointer;
    font-size: 1em;
    font-weight: var(--font-normal);
    padding-left: calc((var(--height) * 0.6) + 0.75em);
    padding-right: 2rem;
    position: relative;
    user-select: none;
}

.gh-check + label:before,
.gh-check + label:before {
    background: var(--color-bg);
    border-radius: var(--radius);
    border: solid 1px var(--color-border);
    content: '';
    display: inline-block;
    height: calc(var(--height) * 0.6);
    line-height: calc(var(--height) * 0.56);
    text-align: center;
    width: calc(var(--height) * 0.6);
    margin-right: 1rem;
}

.gh-check:checked + label:before,
.gh-check:checked + label:before {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
    content: '✓';
}

.gh-check:focus + label:before,
.gh-check:focus + label:before {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}


.gh-check + label:before {
    border-radius: var(--radius);
}

.gh-check + label:before {
    border-radius: 100%;
}

/* ---- components/buttons.css ---- */
/* Buttons
/* ---------------------------------------------------------- */

.gh-button {
    display: inline-block;
    min-width: 75px;
    height: var(--height);
    padding: 0 2rem;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans-serif);
    font-size: 1.4rem;
    font-weight: var(--font-normal);
    line-height: var(--height);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    appearance: none;
    transition: 0.4s ease;
}

.gh-button.gh-button-fit {
    width: 100%;
}

.gh-button.gh-button-small {
    height: calc(var(--height) * 0.9);
    line-height: calc(var(--height) * 0.9);
    padding: 0 1.5rem;
    font-size: 1.2rem;
}

.gh-button.gh-button-large {
    height: calc(var(--height) * 1.2);
    line-height: calc(var(--height) * 1.2);
    padding: 0 2.5rem;
    font-size: 1.7rem;
}

.gh-button.gh-button-disabled,
.gh-button:disabled {
    pointer-events: none;
    opacity: 0.4;
}

.gh-button {
    color: inherit;
    background-color: transparent;
    box-shadow: inset 0 0 0 2px currentColor
}

.gh-button:hover {
    text-decoration: none;
    color: var(--color-primary) !important;
    box-shadow: inset 0 0 0 2px var(--color-primary);
    transition: 0.2s ease;
}

.gh-button.gh-button-primary {
    color: #fff !important;
    background-color: var(--color-primary);
    box-shadow: none;
}

.gh-button.gh-button-primary:hover {
    background-color: var(--color-primary);
}

/* ---- ghost/content.css ---- */


/* Content grid
/* ---------------------------------------------------------- */

.gh-canvas,
.kg-width-full.kg-content-wide {
    --gap: 4vw;
    --main: min(var(--content-width, 720px), 100% - var(--gap) * 2);
    --wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 720px)) / 2));
    --full: minmax(var(--gap), 1fr);

    display: grid;
    grid-template-columns:
        [full-start] var(--full)
        [wide-start] var(--wide)
        [main-start] var(--main) [main-end]
        var(--wide) [wide-end]
        var(--full) [full-end];
}

.gh-canvas > * {
    grid-column: main-start / main-end;
}

.kg-width-wide,
.kg-content-wide > div {
    grid-column: wide-start / wide-end;
}

.kg-width-full {
    grid-column: full-start / full-end;
}

.kg-width-full img {
    width: 100%;
}


/* Content & Typography
/* ---------------------------------------------------------- */

.gh-content > * + * {
    margin-top: 4vmin;
}

.gh-content [id]:not(:first-child) {
    margin: 1.5em 0 0;
}

.gh-content > [id] + * {
    margin-top: 1.5rem;
}

.gh-content [id] + .kg-card,
.gh-content blockquote + .kg-card {
    margin-top: 6vmin;
}

.gh-canvas > blockquote,
.gh-canvas > ol,
.gh-canvas > ul,
.gh-canvas > dl,
.gh-canvas > p {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.6em;
}

.gh-content > ul,
.gh-content > ol,
.gh-content > dl {
    padding-left: 1.9em;
}

.gh-content hr {
    margin-top: 6vmin;
}

.gh-content hr + * {
    margin-top: 6vmin !important;
}

.gh-content blockquote {
    position: relative;
    font-style: italic;
}

.gh-content blockquote::before {
    content: "";
    position: absolute;
    left: -1.5em;
    top: 0;
    bottom: 0;
    width: 0.3rem;
    background: var(--color-primary);
}

@media (max-width: 650px) {
    .gh-canvas blockquote,
    .gh-canvas ol,
    .gh-canvas ul,
    .gh-canvas dl,
    .gh-canvas p {
        font-size: 1.8rem;
    }

    .gh-content blockquote::before {
        left: -4vmin;
    }
}


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

.gh-content :not(.kg-card):not([id]) + .kg-card {
    margin-top: 6vmin;
}

.gh-content .kg-card + :not(.kg-card) {
    margin-top: 6vmin;
}

figcaption {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
    color: rgba(0,0,0,0.5);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4em;
}

figcaption strong {
    color: rgba(0,0,0,0.8);
}

.gh-canvas :not(pre) code {
    vertical-align: middle;
    padding: 0.15em 0.4em 0.15em;
    border: #e1eaef 1px solid;
    font-weight: 400 !important;
    font-size: 0.9em;
    line-height: 1em;
    color: #dc0050;
    background: #f0f6f9;
    border-radius: 0.25em;
}

.gh-canvas > pre {
    overflow: scroll;
    padding: 16px 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 5px;
    box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
}

.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Default to 16 / 9 aspect ratio for YouTube & Vimeo embeds  */
.kg-embed-card > :where(iframe[src*="youtube.com"],iframe[src*="vimeo.com"]) {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.kg-image-card img {
    margin: auto;
}


/* Card captions
/* ---------------------------------------------------------- */

.kg-width-full.kg-card-hascaption {
    display: grid;
    grid-template-columns: inherit;
}

.kg-width-wide.kg-card-hascaption img {
    grid-column: wide-start / wide-end;
}
.kg-width-full.kg-card-hascaption img {
    grid-column: 1 / -1;
}

.kg-width-full.kg-card-hascaption figcaption {
    grid-column: main-start / main-end;
}


/* Tables
/* ---------------------------------------------------------- */

.gh-content table {
    border-collapse: collapse;
    width: 100%;
}

.gh-content th {
    padding: 0.5em 0.8em;
    text-align: left;
    font-size: .75em;
    text-transform: uppercase;
}

.gh-content td {
    padding: 0.4em 0.7em;
}

.gh-content tbody tr:nth-child(2n + 1) {
    background-color: rgba(0,0,0,0.1);
    padding: 1px;
}

.gh-content tbody tr:nth-child(2n + 2) td:last-child {
    box-shadow:
        inset 1px 0 rgba(0,0,0,0.1),
        inset -1px 0 rgba(0,0,0,0.1);
}

.gh-content tbody tr:nth-child(2n + 2) td {
    box-shadow: inset 1px 0 rgba(0,0,0,0.1);
}

.gh-content tbody tr:last-child {
    border-bottom: 1px solid rgba(0,0,0,.1);
}

/* ---- ghost/readmore.css ---- */
/* Read More
/* ---------------------------------------------------------- */

.gh-readmore {
    padding: 8vmin 4vmin;
    font-size: 2.6rem;
}

.gh-readmore-inner {
    display: grid;
    grid-gap: 8vmin;
    grid-template-columns: 1fr 1fr;
}

.gh-readmore-prev {
    justify-content: flex-end;
    text-align: right;
}

.gh-readmore a {
    display: flex;
    color: currentColor;
    text-decoration: none;
}

.gh-readmore h4 {
    width: 100%;
    font-size: inherit;
}

.gh-readmore svg {
    display: inline-block;
    vertical-align: middle;
    height: 1em;
    margin: 0.15em 0 0;
}

.gh-readmore svg + h4,
.gh-readmore h4 + svg {
    margin-left: 2vmin;
}

@media (max-width: 700px) {
    .gh-readmore {
        font-size: 1.6rem;
    }
    .gh-readmore svg {
        margin: 0.1em 0 0;
    }
}

/* ---- ghost/members.css ---- */
/* Members Auth Template
/* ---------------------------------------------------------- */

.gh-auth-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 10vmin;
    text-align: center;
}

.gh-auth-title {
    margin: 0 0 0.1em;
    font-size: 4.2rem;
}

.gh-auth-form p {
    margin: 10px 0 4vmin 0;
    font-size: 1.7rem;
    color: rgba(0,0,0,0.6)
}

.gh-auth-form p small {
    display: inline-block;
    margin: 15px 0 0 0;
    font-size: 1.4rem;
}

.gh-auth-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 460px;
    margin: 0 auto;
}

.gh-auth-box .gh-button {
    margin-left: 10px;
}

@media (max-width: 600px) {
    .gh-auth-box {
        flex-direction: column;
        max-width: 400px;
    }
    .gh-auth-box .gh-button {
        width: 100%;
        margin: 15px 0 0 0;
    }
}

/* Members Forms
/* ---------------------------------------------------------- */

form[data-members-form] .gh-button-loader,
form[data-members-form] .message-success,
form[data-members-form] .message-error {
    display: none;
}

.gh-button-content {
    min-width: 100px;
}

.message-success svg,
.message-error svg {
    position: relative;
    top: -1px;
    margin-right: 5px;
    height: 15px;
    width: 15px;
}
.message-success svg {
    fill: #fff;
}
.message-error svg {
    fill: var(--color-error);
}

form[data-members-form].success .message-success,
form[data-members-form].error .message-error {
    position: fixed;
    top: 20px;
    left: 4vmin;
    right: 4vmin;
    z-index: 9999;
    max-width: calc(1400px - 8vmin);
    margin: 0 auto;
    padding: 10px 0;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.5em;
    font-weight: 500;
    text-align: center;
    background: var(--color-base);
    border-radius: var(--radius);
}
form[data-members-form].success .message-success {
    background: var(--color-success);
}
form[data-members-form].error .message-error {
    color: var(--color-error);
    background: #fff;
    box-shadow: var(--color-error) 0 0 0 1px;
}

form[data-members-form] .gh-button {
    position: relative;
    min-width: 120px;
}

/*-- Loading --*/

/* Hide button text */
form[data-members-form].loading .gh-button-content {
    visibility: hidden;
}

/* Show loading spinner */
form[data-members-form].loading .gh-button-loader {
    display: inline-block;
    position: absolute;
    left: 50%;
    bottom: -30%;
    margin: 0 0 0 -19px;
    transform: scale(0.6);
}

.gh-button-loader svg path,
.gh-button-loader svg rect{
  fill: #fff;
}

/*-- Show success message on success --*/
form[data-members-form].success .message-success {
    display: block;
}

/*-- Show error message on error --*/
form[data-members-form].error .message-error {
    display: block;
}

/* ---- ghost/errors.css ---- */
/* Error Templates
/* ---------------------------------------------------------- */

.gh-error {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2vmin;
}

.gh-error-content {
    flex: 1 0 auto;
    text-align: center;
}

.gh-error-code {
    margin: 0;
    font-size: 14vmin;
}

.gh-error-description {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 4vmin;
    line-height: 1.2em;
    font-weight: 300;
    opacity: 0.6;
}

.gh-error-link {
    display: block;
    margin-top: 4vmin;
    font-size: 1.6rem;
}

.gh-error-stack {
    max-width: 600px;
    margin: 0 auto 0;
    padding: 8vmin 0;
    text-align: left;
}

.gh-error-stack-list {
    margin: 4vmin 0 0;
    font-size: 1.4rem;
}

.gh-error-stack-list > li {
    padding: 2rem 0;
    margin: 0;
    border-top: rgba(0,0,0,0.1) 1px solid;
}

.gh-error-stack-function {
    margin: 0 0 0.5em;
    font-size: 1.8rem;
    color: red;
}

/* ---- ghost/pagination.css ---- */

.gh-pagination .pagination {
    display: flex;
    justify-content: space-between;
    margin-block: 4vmin;
}
/* ---- ghost/comments.css ---- */
.gh-post-comments {
    margin-block: 8vmin 4vmin;
}
/* ---- ghost/badge.css ---- */
a.gh-powered,
a.gh-powered:hover {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px 6px 6px;
    border: none;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-weight: 600;
    text-decoration: none;
    color: #383838;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.08);
    cursor: pointer;
}

a.gh-powered svg {
    height: 16px;
    width: 16px;
    margin: 0 6px 0 0;
}

/* ---- structural layout ---- */
html, .gh-viewport { display:flex; flex-direction:column; min-height:100vh; background:var(--paper); }
.gh-main { flex:1 0 auto; display:flex; flex-direction:column; }
.gh-page { padding:0 var(--gutter); }
.gh-container { width:100%; max-width:var(--maxw); margin:0 auto; }
/* ---- ha-system.css (wins) ---- */
/* =============================================================================
   THE HUMAN AGENCY — Editorial Component System (Ghost)
   Typography primitives, navigation, cards, article layout, footer.
   Assumes Ghost's 10px root (html { font-size: 62.5% }).
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.display-1 {
    font-family: var(--font-display);
    font-weight: 470;
    font-size: clamp(3.4rem, 5vw, 6.4rem);
    line-height: var(--lh-snug);
    letter-spacing: -0.02em;
}
.display-2 {
    font-family: var(--font-display);
    font-weight: 460;
    font-size: clamp(2.6rem, 3.5vw, 4.4rem);
    line-height: var(--lh-head);
    letter-spacing: -0.015em;
}

/* Eyebrow / kicker — the brand's signature uppercase label */
.eyebrow {
    font-family: var(--font-sans);
    font-size: var(--fs-200);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
.eyebrow--accent { color: var(--accent); }

.lede {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 1.8vw, 2.2rem);
    line-height: 1.5;
    color: var(--ink-soft);
    font-weight: 400;
    letter-spacing: -0.005em;
}

.byline {
    font-family: var(--font-sans);
    font-size: var(--fs-300);
    color: var(--ink-mute);
    letter-spacing: 0.01em;
}
.byline strong { color: var(--ink); font-weight: 600; }

.meta {
    font-family: var(--font-sans);
    font-size: var(--fs-200);
    letter-spacing: 0.04em;
    color: var(--ink-mute);
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--accent); flex: none; }
.dot--pessimist { background: var(--c-pessimist); } .dot--optimist { background: var(--c-optimist); }
.dot--action { background: var(--c-action); } .dot--ideas { background: var(--c-ideas); }
.dot--turnout { background: var(--c-turnout); } .dot--justice { background: var(--c-justice); }
.dot--survival { background: var(--c-survival); } .dot--signals { background: var(--c-signals); }
.dot--future { background: var(--c-future); }

/* -----------------------------------------------------------------------------
   Buttons, links, tags (extends Ghost .gh-button where used)
   -------------------------------------------------------------------------- */
.ha-btn {
    font-family: var(--font-sans);
    font-size: var(--fs-400);
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: 0.7em 1.35em;
    border-radius: var(--radius-pill);
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ha-btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: var(--white); }
.ha-btn--ghost { background: transparent; color: var(--ink); }
.ha-btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ha-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.ha-btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.ha-btn--sm { font-size: var(--fs-300); padding: 0.5em 1em; }

.link-arrow {
    font-family: var(--font-sans); font-size: var(--fs-400); font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.4em; color: var(--ink);
}
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

.tag-pill {
    font-family: var(--font-sans); font-size: var(--fs-100); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em;
    padding: 0.35em 0.7em; border-radius: var(--radius-pill);
    border: 1px solid var(--hairline-2); color: var(--ink-soft); background: var(--white);
}

/* -----------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.ha-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.ha-section { padding-block: var(--s-7); }
.ha-rule { height: 1px; background: var(--hairline); border: 0; opacity: 1; }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--s-5); flex-wrap: wrap;
    border-bottom: 2px solid var(--ink);
    padding-bottom: var(--s-3); margin-bottom: var(--s-6);
}
.section-head__title { font-family: var(--font-display); font-size: var(--fs-700); font-weight: 480; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: var(--s-3); }

.ha-grid { display: grid; gap: var(--s-6); }
.ha-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ha-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ha-grid--feature { grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 900px) {
    .ha-grid--3, .ha-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ha-grid--feature { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ha-grid--3, .ha-grid--4 { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   Header — utility bar + masthead
   -------------------------------------------------------------------------- */
.gh-viewport { background: var(--paper); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--hairline); }

.utility-bar {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-sans); font-size: var(--fs-200);
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
    padding-block: var(--s-2); border-bottom: 1px solid var(--hairline);
}
.utility-bar a { color: inherit; }
.utility-bar a:hover { color: var(--accent); }
.utility-bar__links { display: flex; gap: var(--s-4); }
@media (max-width: 700px) { .utility-bar__date { display: none; } }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-5); }
.masthead__side { flex: 1 1 0; display: flex; align-items: center; gap: var(--s-3); }
.masthead__side--right { justify-content: flex-end; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; color: var(--ink); }
.wordmark__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 3.4rem); letter-spacing: -0.02em; }
.wordmark__tag { font-family: var(--font-sans); font-size: var(--fs-100); text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-mute); margin-top: 0.7em; }
.wordmark__name img { max-height: 44px; width: auto; }

.icon-btn { width: 40px; height: 40px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline-2); color: var(--ink); background: transparent; transition: all var(--dur) var(--ease); }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn svg { height: 1.8rem; width: 1.8rem; }
@media (max-width: 820px) { .masthead__side .btn-label { display: none; } }

/* Ghost search button sits inside masthead actions */
.masthead .gh-search { color: var(--ink); }

/* -----------------------------------------------------------------------------
   Primary navigation — desktop mega-menu
   -------------------------------------------------------------------------- */
.primary-nav { border-top: 1px solid var(--hairline); display: none; }
@media (min-width: 1024px) { .primary-nav { display: block; } }
.primary-nav__list { display: flex; align-items: stretch; justify-content: center; gap: clamp(0.5rem, 1.5vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item__link {
    font-family: var(--font-sans); font-size: var(--fs-400); font-weight: 500;
    color: var(--ink); display: inline-flex; align-items: center;
    padding-block: var(--s-4); position: relative;
    transition: color var(--dur) var(--ease);
}
.nav-item__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.nav-item:hover .nav-item__link, .nav-item:focus-within .nav-item__link { color: var(--accent); }
.nav-item:hover .nav-item__link::after, .nav-item:focus-within .nav-item__link::after { transform: scaleX(1); }

.mega {
    position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(8px);
    width: 320px; background: var(--white); border: 1px solid var(--hairline);
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); padding: var(--s-5);
    opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    z-index: 120;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega__desc { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-500); color: var(--ink-soft); border-bottom: 1px solid var(--hairline); padding-bottom: var(--s-3); margin-bottom: var(--s-4); }
.mega__list { display: flex; flex-direction: column; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.mega__list a {
    font-family: var(--font-sans); font-size: var(--fs-400); color: var(--ink-soft);
    padding: 0.4em 0.5em; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.mega__list a::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: all var(--dur) var(--ease); font-family: var(--font-sans); }
.mega__list a:hover { background: var(--paper-2); color: var(--ink); padding-left: 0.85em; }
.mega__list a:hover::after { opacity: .5; transform: translateX(0); }

.nav-item--feature .nav-item__link { color: var(--c-turnout); font-weight: 600; }
.nav-item--feature .nav-item__link::after { background: var(--c-turnout); }

.nav-item[data-accent="pessimist"] .mega { border-top-color: var(--c-pessimist); }
.nav-item[data-accent="optimist"]  .mega { border-top-color: var(--c-optimist); }
.nav-item[data-accent="action"]    .mega { border-top-color: var(--c-action); }
.nav-item[data-accent="ideas"]     .mega { border-top-color: var(--c-ideas); }
.nav-item[data-accent="turnout"]   .mega { border-top-color: var(--c-turnout); }
.nav-item[data-accent="justice"]   .mega { border-top-color: var(--c-justice); }
.nav-item[data-accent="survival"]  .mega { border-top-color: var(--c-survival); }
.nav-item[data-accent="signals"]   .mega { border-top-color: var(--c-signals); }
.nav-item[data-accent="future"]    .mega { border-top-color: var(--c-future); }

/* -----------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */
.nav-toggle { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-sans); font-size: var(--fs-300); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); background: none; border: 0; cursor: pointer; }
.nav-toggle svg { height: 2rem; width: 2rem; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav { position: fixed; inset: 0; z-index: 200; background: var(--paper); transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; visibility: hidden; }
.mobile-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--gutter); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; background: var(--paper); }
.mobile-nav__body { padding: var(--s-3) var(--gutter) var(--s-9); }
.m-section { border-bottom: 1px solid var(--hairline); }
.m-section__summary { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--s-4) 0; text-align: left; background: none; border: 0; cursor: pointer; }
.m-section__title { font-family: var(--font-display); font-size: var(--fs-700); font-weight: 470; color: var(--ink); }
.m-section__desc { font-family: var(--font-serif); font-style: italic; color: var(--ink-mute); font-size: var(--fs-400); display: block; margin-top: 0.2em; }
.m-section__chev { transition: transform var(--dur) var(--ease); flex: none; color: var(--ink-mute); }
.m-section[data-open="true"] .m-section__chev { transform: rotate(45deg); }
.m-section__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.m-section[data-open="true"] .m-section__panel { grid-template-rows: 1fr; }
.m-section__panel-inner { overflow: hidden; }
.m-section__links { padding-bottom: var(--s-4); columns: 2; column-gap: var(--s-5); list-style: none; margin: 0; }
.m-section__links a { font-family: var(--font-sans); font-size: var(--fs-400); color: var(--ink-soft); padding: 0.5em 0; display: block; break-inside: avoid; }
.m-section__links a:hover { color: var(--accent); }
body.nav-locked { overflow: hidden; }

/* -----------------------------------------------------------------------------
   Story card (overrides Ghost .gh-card)
   -------------------------------------------------------------------------- */
.gh-card { display: flex; flex-direction: column; }
.gh-card .gh-card-link { display: flex; flex-direction: column; gap: var(--s-3); }
.gh-card-picture { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.gh-card-image { width: 100%; height: 100%; object-fit: cover; margin-bottom: 0; aspect-ratio: 16 / 10; transition: transform .5s var(--ease); }
.gh-card-image:first-of-type { aspect-ratio: 16 / 10; }
.gh-card:hover .gh-card-image { transform: scale(1.04); }
.gh-card-content { max-width: none; margin: 0; text-align: left; font-size: inherit; display: flex; flex-direction: column; gap: var(--s-2); }
.gh-card-content p { margin: 0; padding: 0; color: var(--ink-soft); font-size: var(--fs-500); line-height: 1.5; }
.gh-card-kicker { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.gh-card-title { font-family: var(--font-display); font-weight: 470; font-size: var(--fs-700); line-height: var(--lh-head); letter-spacing: -0.01em; color: var(--ink); }
.gh-card:hover .gh-card-title { color: var(--accent); }
.gh-card-content > strong { display: none; } /* hide Starter's "Read more" pill */
.gh-card-byline { font-family: var(--font-sans); font-size: var(--fs-300); color: var(--ink-mute); }

/* Lead card spans the feed and goes large */
.gh-postfeed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--s-8) var(--s-6); padding: var(--s-8) 0; }
.gh-postfeed > *:first-child { grid-column: 1 / -1; }
@media (min-width: 901px) {
    .gh-postfeed > *:first-child .gh-card-link { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6); align-items: center; }
    .gh-postfeed > *:first-child .gh-card-title { font-size: clamp(3rem, 4vw, 5rem); }
    .gh-postfeed > *:first-child .gh-card-content p { font-size: var(--fs-600); }
}

/* -----------------------------------------------------------------------------
   Article (post.hbs)
   -------------------------------------------------------------------------- */
.gh-article { padding: var(--s-8) 0; }
.gh-canvas { max-width: var(--maxw-text); margin-inline: auto; padding-inline: var(--gutter); }
.gh-header { padding: 0 0 var(--s-7); text-align: center; }
.gh-post-meta { display: inline-flex; gap: var(--s-2); align-items: center; font-family: var(--font-sans); font-size: var(--fs-200); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.gh-title { font-family: var(--font-display); font-weight: 480; font-size: clamp(3.2rem, 5vw, 5.6rem); line-height: var(--lh-snug); letter-spacing: -0.02em; }
.gh-excerpt { margin: var(--s-5) auto 0; max-width: 60ch; font-family: var(--font-serif); font-size: clamp(1.8rem, 1.8vw, 2.2rem); line-height: 1.5; color: var(--ink-soft); }
.gh-feature-image { max-width: var(--maxw); margin: var(--s-8) auto 0; padding-inline: var(--gutter); }
.gh-feature-image img { width: 100%; border-radius: var(--radius); }
.gh-feature-image figcaption { font-family: var(--font-sans); font-size: var(--fs-300); color: var(--ink-mute); text-align: center; margin-top: var(--s-3); }
.gh-content { font-size: var(--fs-600); line-height: var(--lh-body); padding-top: var(--s-7); }
.gh-content > * + * { margin-top: 1.4rem; }
.gh-content p { margin-bottom: 0; }
.gh-content h2 { font-size: var(--fs-800); margin-top: var(--s-6); }
.gh-content h3 { font-size: var(--fs-700); margin-top: var(--s-5); }
.gh-content a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.gh-content a:hover { color: var(--accent); }
.gh-content blockquote { border-left: 3px solid var(--accent); padding-left: var(--s-5); font-style: italic; color: var(--ink-soft); font-size: 2.1rem; }
.gh-content img { border-radius: var(--radius); }
.gh-post-footer, .gh-footer { max-width: var(--maxw-text); margin: var(--s-7) auto 0; padding-inline: var(--gutter); }
.gh-post-authors { font-family: var(--font-sans); font-size: var(--fs-400); color: var(--ink-mute); }
.gh-post-authors a { color: var(--ink); font-weight: 600; }

/* Drop cap option */
.gh-content--drop > p:first-of-type::first-letter {
    font-family: var(--font-display); font-weight: 500; float: left;
    font-size: 3.6em; line-height: 0.82; padding: 0.05em 0.12em 0 0; color: var(--accent);
}

/* -----------------------------------------------------------------------------
   Archive heads (tag.hbs / author.hbs)
   -------------------------------------------------------------------------- */
.gh-page-head { margin: 0 auto; padding: var(--s-8) 0 var(--s-6); text-align: center; max-width: 64ch; }
.gh-page-head h1 { font-family: var(--font-display); font-size: clamp(3.2rem, 5vw, 5.4rem); letter-spacing: -0.02em; }
.gh-page-head > p { max-width: 60ch; margin: var(--s-4) auto 0; font-family: var(--font-serif); font-size: 2rem; line-height: 1.5; color: var(--ink-soft); opacity: 1; padding: 0; }
.gh-author-image { height: 12rem; width: 12rem; margin: 0 auto var(--s-4); border-radius: 100%; object-fit: cover; }

/* -----------------------------------------------------------------------------
   Editorial bands — Signals + Podcast (homepage furniture)
   -------------------------------------------------------------------------- */
.brief-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
@media (max-width: 900px) { .brief-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .brief-row { grid-template-columns: 1fr; } }
.brief { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.brief__num { font-family: var(--font-display); font-size: var(--fs-700); color: var(--ink-faint); font-weight: 460; line-height: 1; }
.brief__title { font-family: var(--font-display); font-size: var(--fs-600); font-weight: 470; line-height: 1.25; color: var(--ink); }
.brief:hover .brief__title { color: var(--accent); }

.band {
    background: var(--ink-surface); color: var(--on-dark);
    border-radius: var(--radius-lg); padding: clamp(2.4rem, 4vw, 4rem);
}
.band .eyebrow { color: var(--on-dark-mute); }
.band h3 { color: var(--on-dark); font-size: var(--fs-800); margin-top: var(--s-2); }
.band p { color: var(--on-dark-mute); margin-top: var(--s-2); max-width: 60ch; }

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.gh-foot { display: block; background: var(--ink-surface); color: var(--on-dark); padding: var(--s-9) 0 var(--s-7); margin-top: var(--s-9); }
.gh-foot .gh-container { width: 100%; max-width: var(--maxw); padding-inline: var(--gutter); }
.gh-foot a { color: var(--on-dark-mute); }
.gh-foot a:hover { color: var(--on-dark); }

.signup { background: var(--ink-surface-2); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.2rem); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); margin-bottom: var(--s-8); }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }
.signup .eyebrow { color: var(--accent); }
.signup h3 { color: var(--on-dark); font-size: var(--fs-800); margin-top: 0.4rem; }
.signup p { color: var(--on-dark-mute); margin-top: var(--s-2); }
.signup__form { display: flex; gap: var(--s-2); }
.signup__input { background: rgba(255,255,255,.06); border: 1px solid var(--on-dark-line); color: var(--on-dark); padding: 0.8em 1.1em; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: var(--fs-400); min-width: 22rem; }
.signup__input::placeholder { color: var(--on-dark-mute); }

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-sans); font-size: var(--fs-200); text-transform: uppercase; letter-spacing: 0.16em; color: var(--on-dark-mute); margin-bottom: var(--s-4); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); font-family: var(--font-sans); font-size: var(--fs-400); list-style: none; margin: 0; padding: 0; }
.footer-brand .wordmark__name { color: var(--on-dark); align-items: flex-start; }
.footer-brand p { color: var(--on-dark-mute); font-size: var(--fs-500); max-width: 38ch; margin-top: var(--s-4); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); border-top: 1px solid var(--on-dark-line); margin-top: var(--s-8); padding-top: var(--s-5); font-family: var(--font-sans); font-size: var(--fs-200); letter-spacing: 0.04em; color: var(--on-dark-mute); text-transform: uppercase; }
.gh-foot-meta { margin: 0; font-size: var(--fs-200); opacity: 1; text-align: left; }

/* Accessibility helpers */
.visually-hidden { position: absolute; 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: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); z-index: 999; border-radius: 0 0 var(--radius) 0; font-family: var(--font-sans); font-size: var(--fs-300); }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---- Minimal pager (Newer / dots / More posts) ---- */
.gh-pagination { padding: var(--s-2) 0 var(--s-8); }
.ha-pager { display:flex; align-items:center; justify-content:space-between; gap:var(--s-4);
    border-top:1px solid var(--hairline); padding-top:var(--s-6); }
.ha-pager__link { display:inline-flex; align-items:center; gap:0.5em; font-family:var(--font-sans);
    font-size:var(--fs-400); font-weight:600; color:var(--ink); padding:0.6em 1.15em;
    border:1px solid var(--hairline-2); border-radius:var(--radius-pill);
    transition:background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ha-pager__link:hover { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.ha-pager__link.is-disabled { opacity:0; pointer-events:none; } /* hold layout, hide when no target */
.ha-pager__dots { display:inline-flex; align-items:center; gap:9px; }
.ha-pager__dot { width:8px; height:8px; border-radius:var(--radius-pill); background:var(--hairline-2);
    transition:background var(--dur) var(--ease), width var(--dur) var(--ease); }
a.ha-pager__dot { display:inline-block; }
a.ha-pager__dot:hover { background:var(--ink-mute); }
.ha-pager__dot.is-active { width:24px; background:var(--accent); }
.ha-pager__dot--gap { width:auto; height:auto; background:none; color:var(--ink-faint);
    font-family:var(--font-sans); font-size:var(--fs-300); line-height:1; }
@media (max-width:560px){ .ha-pager__link span, .ha-pager__dots { } }

/* ---- Newsletter signup page extras ---- */
.signup--page { grid-template-columns:1fr; text-align:left; }
.signup__msg { font-family:var(--font-sans); font-size:var(--fs-400); margin-top:var(--s-3); }
.signup__msg--success { color:#7ED0A8; }
.signup__msg--error { color:#F3A38B; }

/* ---- Button contrast fix: a[class]{color:inherit} (0,1,1) was beating
   .ha-btn (0,1,0). Re-assert with element-qualified selectors (0,1,1, later in cascade). ---- */
a.ha-btn { color: var(--paper); }
a.ha-btn--ghost { color: var(--ink); }
a.ha-btn--accent { color: var(--white); }
a.ha-btn:hover, a.ha-btn--accent:hover { color: var(--white); }
a.ha-btn--ghost:hover { color: var(--paper); }

/* ---- Featured hero + slider ---- */
.hero { padding: var(--s-6) 0 var(--s-7); border-bottom: 1px solid var(--hairline); }
.hero-viewport { overflow: hidden; }
.hero-track { display: flex; transition: transform .55s var(--ease); will-change: transform; }
.hero-slide { flex: 0 0 100%; min-width: 100%; }
.hero-slide__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4vw, var(--s-8)); align-items: center; }
@media (max-width: 900px) { .hero-slide__inner { grid-template-columns: 1fr; gap: var(--s-5); } }
.hero-body { min-width: 0; }
.hero-kicker { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); display: inline-block; margin-bottom: var(--s-3); }
.hero-title { font-family: var(--font-display); font-weight: 480; font-size: clamp(3rem, 4.5vw, 5.4rem); line-height: 1.04; letter-spacing: -0.022em; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { font-family: var(--font-serif); font-size: clamp(1.7rem, 1.6vw, 2rem); line-height: 1.5; color: var(--ink-soft); margin-top: var(--s-4); max-width: 46ch; }
.hero .byline { margin-top: var(--s-4); }
.hero-media { display: block; aspect-ratio: 16/11; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hero-media:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .hero-media { order: -1; aspect-ratio: 16/9; } }
.hero-controls { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.hero-controls[hidden] { display: none; }
.hero-arrow { width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1px solid var(--hairline-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.hero-arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero-dots { display: inline-flex; align-items: center; gap: 9px; }
.hero-dot { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--hairline-2); border: 0; padding: 0; cursor: pointer; transition: width var(--dur) var(--ease), background var(--dur) var(--ease); }
.hero-dot:hover { background: var(--ink-mute); }
.hero-dot.is-active { width: 26px; background: var(--accent); }

/* ---- Homepage feed: uniform cards (hero carries the lead) ---- */
.home-feed .section-head { margin-bottom: var(--s-5); }
.gh-postfeed--uniform > *:first-child { grid-column: auto; }
@media (min-width: 901px) {
    .gh-postfeed--uniform > *:first-child .gh-card-link { display: flex; }
    .gh-postfeed--uniform > *:first-child .gh-card-title { font-size: var(--fs-700); }
    .gh-postfeed--uniform > *:first-child .gh-card-content p { font-size: var(--fs-500); }
}

/* ============================================================
   Hero v2 — editorial lead + rail (matches original design).
   Overrides the earlier hero rules (later in cascade wins).
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2.4rem, 4vw, var(--s-8)); align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

/* Lead (left) — image on top, text below */
.hero-lead { min-width: 0; }
.hero-slide { flex: 0 0 100%; min-width: 100%; }
.hero-slide__inner { display: block; }            /* neutralize old side-by-side layout */
.hero-media { display: block; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); margin: 0 0 var(--s-4); order: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hero-media:hover img { transform: scale(1.03); }
.hero-kicker { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.hero-title { font-family: var(--font-display); font-weight: 480; font-size: clamp(2.8rem, 4vw, 4.6rem); line-height: 1.06; letter-spacing: -0.02em; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { font-family: var(--font-serif); font-size: clamp(1.7rem, 1.5vw, 2rem); line-height: 1.5; color: var(--ink-soft); margin-top: var(--s-4); max-width: 54ch; }
.hero .byline { margin-top: var(--s-4); }
.hero-controls { margin-top: var(--s-5); }

/* Rail (right) — stacked briefs with hairline dividers */
.hero-rail { display: flex; flex-direction: column; }
.rail-item { padding: var(--s-5) 0; border-top: 1px solid var(--hairline); }
.rail-item:first-child { border-top: 0; padding-top: 0; }
.rail-kicker { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); display: block; margin-bottom: var(--s-2); }
.rail-title { font-family: var(--font-display); font-weight: 470; font-size: var(--fs-700); line-height: var(--lh-head); letter-spacing: -0.01em; }
.rail-title a:hover { color: var(--accent); }
.rail-item .byline { margin-top: var(--s-3); }

/* Section-colored kickers (matched by primary tag slug) */
.rail-kicker[data-section="the-pessimist"]            { color: var(--c-pessimist); }
.rail-kicker[data-section="the-optimist"]             { color: var(--c-optimist); }
.rail-kicker[data-section="agency-in-action"]         { color: var(--c-action); }
.rail-kicker[data-section="big-ideas"]                { color: var(--c-ideas); }
.rail-kicker[data-section="how-does-this-turn-out-well"] { color: var(--c-turnout); }
.rail-kicker[data-section="social-justice"]           { color: var(--c-justice); }
.rail-kicker[data-section="survival-guide"]           { color: var(--c-survival); }
.rail-kicker[data-section="signals"]                  { color: var(--c-signals); }
.rail-kicker[data-section="future-humans"]            { color: var(--c-future); }

/* ---- Remove hyperlink underlines ---- */
.gh-content a { text-decoration: none; }
.gh-content a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; } /* keep affordance in prose on hover only */
.gh-foot-menu .nav a { box-shadow: none; }       /* footer menu underline */
a, a:not([class]) { text-decoration: none; }       /* default link underline anywhere */

/* ============================================================
   Single post — desktop editorial layout (meta rail + article)
   ============================================================ */
.gh-article.post { padding: var(--s-8) 0; }
.post-grid {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 720px);
    gap: clamp(2.4rem, 5vw, 7rem);
    justify-content: center;
    align-items: start;
}
@media (max-width: 980px) {
    .post-grid { grid-template-columns: 1fr; max-width: 740px; gap: var(--s-5); }
}

/* Meta rail */
.post-rail { position: sticky; top: 130px; display: flex; flex-direction: column; gap: var(--s-5); }
@media (max-width: 980px) {
    .post-rail { position: static; top: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--s-3) var(--s-6); border-bottom: 1px solid var(--hairline); padding-bottom: var(--s-4); }
}
.post-section { font-family: var(--font-sans); font-size: var(--fs-200); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); display: inline-flex; align-items: center; gap: var(--s-2); }
.post-section::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.post-section[data-section="the-pessimist"]            { color: var(--c-pessimist); }
.post-section[data-section="the-optimist"]             { color: var(--c-optimist); }
.post-section[data-section="agency-in-action"]         { color: var(--c-action); }
.post-section[data-section="big-ideas"]                { color: var(--c-ideas); }
.post-section[data-section="how-does-this-turn-out-well"] { color: var(--c-turnout); }
.post-section[data-section="social-justice"]           { color: var(--c-justice); }
.post-section[data-section="survival-guide"]           { color: var(--c-survival); }
.post-section[data-section="signals"]                  { color: var(--c-signals); }
.post-section[data-section="future-humans"]            { color: var(--c-future); }

.post-facts { display: flex; flex-direction: column; gap: var(--s-4); margin: 0; }
@media (max-width: 980px) { .post-facts { flex-direction: row; flex-wrap: wrap; gap: var(--s-3) var(--s-6); } }
.post-fact dt { font-family: var(--font-sans); font-size: var(--fs-100); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 3px; }
.post-fact dd { font-family: var(--font-sans); font-size: var(--fs-400); color: var(--ink-soft); margin: 0; }
.post-fact dd a { color: var(--ink); font-weight: 600; }
.post-fact dd a:hover { color: var(--accent); }

/* Article column */
.post-main { min-width: 0; }
.post-header { margin-bottom: var(--s-6); }
.post-title { font-family: var(--font-display); font-weight: 480; font-size: clamp(3.2rem, 4vw, 5.2rem); line-height: 1.04; letter-spacing: -0.022em; }
.post-lede { font-family: var(--font-serif); font-size: clamp(1.9rem, 1.7vw, 2.4rem); line-height: 1.42; color: var(--ink-soft); margin-top: var(--s-5); max-width: 40ch; }
.post-feature { margin: var(--s-6) 0 var(--s-7); }
.post-feature img { width: 100%; border-radius: var(--radius); }
.post-feature figcaption { font-family: var(--font-sans); font-size: var(--fs-300); color: var(--ink-mute); margin-top: var(--s-3); }

/* Body — a touch larger / airier for desktop reading */
.post-content { font-size: 1.9rem; line-height: 1.72; padding-top: 0; }
.post-content > * + * { margin-top: 1.6rem; }
.post-content > p:first-of-type::first-letter {
    font-family: var(--font-display); font-weight: 500; float: left;
    font-size: 5.6rem; line-height: 0.8; padding: 0.04em 0.12em 0 0; color: var(--accent);
}
.post-content blockquote { font-size: 2.3rem; }

/* Author card + footer */
.post-footer { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--hairline); }
.author-card { display: flex; gap: var(--s-4); align-items: flex-start; }
.author-card__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card__label { font-family: var(--font-sans); font-size: var(--fs-200); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mute); display: block; }
.author-card__name { font-family: var(--font-display); font-size: var(--fs-700); font-weight: 470; color: var(--ink); display: inline-block; margin-top: 2px; }
.author-card__name:hover { color: var(--accent); }
.author-card__bio { font-family: var(--font-serif); color: var(--ink-soft); margin-top: var(--s-2); max-width: 60ch; }

/* ============================================================
   Error / 404 page
   ============================================================ */
.gh-error { padding: clamp(4rem, 10vh, 12rem) 0; }
.error-inner { max-width: 640px; }
.error-code { font-family: var(--font-display); font-weight: 480; font-size: clamp(7rem, 16vw, 14rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--accent); display: block; }
.error-title { font-family: var(--font-display); font-weight: 480; font-size: clamp(2.6rem, 4vw, 4rem); letter-spacing: -0.02em; margin-top: var(--s-3); }
.error-message { font-family: var(--font-serif); font-size: var(--fs-600); line-height: 1.5; color: var(--ink-soft); margin-top: var(--s-4); max-width: 52ch; }
.error-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.error-explore { margin-top: var(--s-8); border-top: 1px solid var(--hairline); padding-top: var(--s-5); }
.error-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-4); }
.error-links a { font-family: var(--font-display); font-size: var(--fs-600); color: var(--ink); }
.error-links a:hover { color: var(--accent); }
.error-stack { margin-top: var(--s-7); padding: var(--s-5); background: var(--paper-2); border-radius: var(--radius); font-family: var(--font-mono); font-size: var(--fs-300); }
.error-stack ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.error-stack-file { display: block; color: var(--ink-mute); }
