/* ================================================
   LaCuriosity — screen.css v2.0
   Editorial-grade. Quanta meets The Atlantic.
   ================================================ */

/* ---- TOKENS ---- */
:root {
    /* Core palette — deep ink, warm parchment accents */
    --ink:          #0d0d0d;
    --ink-2:        #141414;
    --ink-3:        #1c1c1c;
    --border:       rgba(255,255,255,0.07);
    --border-2:     rgba(255,255,255,0.12);

    /* Text hierarchy */
    --text-primary:   #f0ece4;
    --text-secondary: #a09890;
    --text-tertiary:  #5a5550;

    /* Accent system */
    --gold:         #c9a96e;
    --gold-dim:     rgba(201,169,110,0.15);
    --gold-glow:    rgba(201,169,110,0.08);
    --blue-slate:   #7a9bb5;
    --slate-dim:    rgba(122,155,181,0.12);
    --ash:          #4a4a4a;
    --ash-dim:      rgba(74,74,74,0.15);

    /* Status colors */
    --live-red:     #e05555;
    --live-glow:    rgba(224,85,85,0.2);

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Outfit', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-max: 1140px;
    --container-narrow: 740px;
    --radius-sm: 3px;
    --radius:    6px;
    --radius-lg: 12px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 180ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--ink);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- GRAIN TEXTURE ---- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ---- READING PROGRESS ---- */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
    width: 0%;
    z-index: 1000;
    transition: width 100ms linear;
    box-shadow: 0 0 8px var(--gold);
}

/* ---- LAYOUT ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}
.container--narrow { max-width: var(--container-narrow); }

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,13,13,0.88);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
}
.site-header__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
}
.logo-la { color: var(--gold); }
.logo-curiosity { color: var(--text-primary); }
.site-header__center {
    text-align: center;
}
.header-tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-header__nav {
    display: flex;
    justify-content: flex-end;
}
.header-nav-cta {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gold);
    border: 1px solid rgba(201,169,110,0.35);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}
.header-nav-cta:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
}

/* ---- BRAND STATEMENT ---- */
.brand-statement {
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, rgba(201,169,110,0.03) 0%, transparent 100%);
}
.brand-statement__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}
.brand-statement__text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.5;
}
.brand-statement__text em {
    color: var(--gold);
    font-style: normal;
}
.brand-statement__pillars {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex-shrink: 0;
}
.brand-statement__pillars span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--duration-fast);
}
.brand-statement__pillars span:hover {
    color: var(--text-secondary);
}

/* ---- POSTS SECTION ---- */
.posts-section {
    padding: var(--space-2xl) 0;
}

/* ---- POST CARD SHARED ---- */
.post-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}
.post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.post-card__slot-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}
.slot-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.slot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.slot-name {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}
.slot-badge {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 500;
}
.slot-timer {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}
.timer-value {
    color: var(--live-red);
    font-weight: 500;
}
.slot-timer-text,
.slot-expires {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* Slot colors */
.slot-indicator--live .slot-dot {
    background: var(--live-red);
    box-shadow: 0 0 0 3px var(--live-glow);
    animation: pulse-dot 2s ease infinite;
}
.slot-indicator--live .slot-name { color: var(--gold); }
.slot-indicator--live .slot-badge {
    background: var(--live-glow);
    color: var(--live-red);
    border: 1px solid rgba(224,85,85,0.3);
}
.slot-indicator--yesterday .slot-dot { background: var(--blue-slate); }
.slot-indicator--yesterday .slot-name { color: var(--blue-slate); }
.slot-indicator--lastchance .slot-dot { background: var(--ash); }
.slot-indicator--lastchance .slot-name { color: var(--ash); }

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px var(--live-glow); }
    50% { box-shadow: 0 0 0 5px transparent; }
}

/* Post meta */
.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}
.post-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    padding: 2px 8px;
    background: var(--gold-dim);
    border-radius: var(--radius-sm);
}
.post-tag--muted { color: var(--blue-slate); background: var(--slate-dim); }
.post-tag--faint { color: var(--ash); background: var(--ash-dim); }
.post-read-time {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
}
.post-read-time--muted { color: var(--text-tertiary); }

/* Titles */
.post-card__title a {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    transition: color var(--duration-fast) var(--ease-out);
}
.post-card__title a:hover { color: var(--gold); }
.post-card__title--hero a {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    display: block;
}
.post-card__title--medium a {
    font-size: clamp(1.4rem, 3vw, 2rem);
    display: block;
}
.post-card__title--small a {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    display: block;
    color: var(--text-secondary);
}
.post-card__title--small a:hover { color: var(--text-primary); }

/* Excerpts */
.post-card__excerpt {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 640px;
}
.post-card__excerpt--short {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    max-width: 480px;
}

/* CTAs */
.post-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all var(--duration-fast) var(--ease-out);
}
.post-card__cta svg { transition: transform var(--duration-fast) var(--ease-out); }
.post-card__cta:hover svg { transform: translateX(3px); }

.post-card__cta--primary {
    color: var(--ink);
    background: var(--gold);
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.post-card__cta--primary:hover {
    background: #d4b47a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201,169,110,0.3);
}
.post-card__cta--secondary {
    color: var(--blue-slate);
    border-bottom: 1px solid rgba(122,155,181,0.3);
    padding-bottom: 1px;
    font-size: 0.85rem;
}
.post-card__cta--secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.post-card__cta--ghost {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}
.post-card__cta--ghost:hover { color: var(--text-secondary); }

/* ---- TODAY CARD ---- */
.post-card--today {}
.post-card__hero-link {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    position: relative;
}
.post-card__hero-image-wrap {
    position: relative;
    height: clamp(300px, 50vw, 560px);
    overflow: hidden;
}
.post-card__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}
.post-card__hero-link:hover .post-card__hero-image { transform: scale(1.03); }
.post-card__hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 40%, rgba(13,13,13,0.5) 100%);
    pointer-events: none;
}
.post-card__body--today {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
    align-items: start;
}
.post-card__body--today .post-card__meta,
.post-card__body--today .post-card__title--hero,
.post-card__body--today .post-card__excerpt { grid-column: 1 / -1; }
.post-card__body--today .post-card__cta--primary { grid-column: 1; align-self: start; }

/* ---- YESTERDAY CARD ---- */
.post-card--yesterday { opacity: 0.9; }
.post-card__row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
    align-items: center;
}
.post-card__thumb-wrap {
    overflow: hidden;
    border-radius: var(--radius);
    height: 190px;
    display: block;
}
.post-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
    filter: saturate(0.85);
}
.post-card__thumb-wrap:hover .post-card__thumb { transform: scale(1.05); filter: saturate(1); }

/* ---- LAST CHANCE CARD ---- */
.post-card--lastchance { opacity: 0.55; transition: opacity var(--duration-base); }
.post-card--lastchance:hover { opacity: 0.75; }
.post-card__row--lastchance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    grid-template-columns: unset;
}
.post-card__thumbnail-tiny {
    width: 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    filter: grayscale(60%);
}
.post-card__thumbnail-tiny-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- NEWSLETTER STRIP ---- */
.newsletter-strip {
    background: var(--ink-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2xl) 0;
}
.newsletter-strip__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.newsletter-strip__headline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}
.newsletter-strip__subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.email-form, .email-form-static {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.email-input {
    flex: 1;
    background: var(--ink-3);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    outline: none;
    transition: border-color var(--duration-fast);
}
.email-input::placeholder { color: var(--text-tertiary); }
.email-input:focus { border-color: var(--gold); }
.email-submit {
    background: var(--gold);
    color: var(--ink);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.email-submit:hover {
    background: #d4b47a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,169,110,0.35);
}
.newsletter-strip__note {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
}
.how-it-works__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.02em;
}
.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.step { display: flex; gap: var(--space-lg); align-items: flex-start; }
.step__number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    padding-top: 2px;
    flex-shrink: 0;
}
.step__text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}
.step__text p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ---- FOOTER ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0;
    background: var(--ink-2);
    margin-top: auto;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-xl);
}
.site-footer__logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: var(--space-sm);
}
.site-footer__tagline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}
.site-footer__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}
.site-footer__pillar-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.site-footer__pillar-list span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: color var(--duration-fast);
}
.site-footer__pillar-list span:hover { color: var(--text-secondary); }
.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
}
.site-footer__copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

/* ---- POST ARTICLE ---- */
.post-main { flex: 1; }

.post-hero {
    position: relative;
    height: clamp(420px, 65vh, 700px);
    overflow: hidden;
}
.post-hero__image-wrap {
    position: absolute;
    inset: 0;
}
.post-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,13,13,0.97) 0%,
        rgba(13,13,13,0.6) 40%,
        rgba(13,13,13,0.2) 80%,
        rgba(13,13,13,0.1) 100%
    );
}
.post-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: var(--space-2xl);
}
.post-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.post-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}
.post-hero__byline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.post-header-simple {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border);
}
.post-hero__title--simple { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* Article content */
.post-content-outer {
    padding: var(--space-2xl) 0;
}
.post-content { font-family: var(--font-body); }

/* Hide duplicate h1 from Writer output */
.post-content h1:first-child { display: none; }

.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.01em;
}
.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}
.post-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-weight: 300;
}
.post-content p:first-of-type {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.post-content strong { font-weight: 500; }
.post-content em { color: var(--text-secondary); font-style: italic; }
.post-content a {
    color: var(--gold);
    border-bottom: 1px solid rgba(201,169,110,0.35);
    transition: border-color var(--duration-fast);
}
.post-content a:hover { border-color: var(--gold); }
.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: var(--space-lg);
}
.post-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}
.post-content blockquote {
    border-left: 3px solid var(--gold);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cocktail fact styling */
.post-content .cocktail-fact,
.post-content div[class*="cocktail"] {
    background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, rgba(201,169,110,0.04) 100%);
    border: 1px solid rgba(201,169,110,0.2);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
}
.post-content .cocktail-fact p,
.post-content div[class*="cocktail"] p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gold);
    line-height: 1.6;
    margin-bottom: 0;
}
.post-content .cocktail-fact h3,
.post-content div[class*="cocktail"] h3 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    font-style: normal;
    margin-top: 0;
}

/* Post footer */
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.post-footer__share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.post-footer__share-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.share-btn {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-2);
    transition: all var(--duration-fast);
    color: var(--text-secondary);
}
.share-btn:hover {
    background: var(--ink-3);
    color: var(--text-primary);
    border-color: var(--border-2);
}
.post-footer__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: color var(--duration-fast);
}
.post-footer__back svg { transition: transform var(--duration-fast); }
.post-footer__back:hover { color: var(--gold); }
.post-footer__back:hover svg { transform: translateX(-3px); }

/* Post newsletter */
.post-newsletter {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}
.post-newsletter__inner { text-align: center; }
.post-newsletter__icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}
.post-newsletter__headline {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.post-newsletter__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.email-form--inline {
    max-width: 420px;
    margin: 0 auto var(--space-sm);
}

/* ---- ENTRANCE ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.post-card {
    animation: fadeUp var(--duration-slow) var(--ease-out) both;
}
.post-card[data-slot="today"]      { animation-delay: 0ms; }
.post-card[data-slot="yesterday"]  { animation-delay: 120ms; }
.post-card[data-slot="lastchance"] { animation-delay: 240ms; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .container { padding: 0 var(--space-lg); }
    .site-header__center { display: none; }
    .brand-statement__inner { flex-direction: column; gap: var(--space-lg); }
    .brand-statement__pillars { flex-direction: row; flex-wrap: wrap; gap: var(--space-sm); }
    .post-card__row { grid-template-columns: 1fr; }
    .post-card__thumb-wrap { height: 220px; }
    .post-card__body--today { grid-template-columns: 1fr; }
    .newsletter-strip__inner { grid-template-columns: 1fr; }
    .how-it-works__steps { grid-template-columns: 1fr; gap: var(--space-lg); }
    .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .container { padding: 0 var(--space-md); }
    .post-hero { height: 55vh; }
    .post-card__thumbnail-tiny { display: none; }
    .post-card__row--lastchance { flex-direction: column; }
    .email-form, .email-form-static { flex-direction: column; }
    .post-footer { flex-direction: column; align-items: flex-start; }
}

/* ================================================
   GHOST REQUIRED CLASSES (kg-width-wide, kg-width-full)
   ================================================ */

.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: var(--space-xl) auto;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-image { max-width: 100%; }

.kg-image-card {
    margin: var(--space-xl) 0;
}

.kg-image-card img {
    border-radius: var(--radius);
    width: 100%;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}

.kg-gallery-row {
    display: flex;
    gap: var(--space-sm);
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.kg-bookmark-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: var(--space-xl) 0;
    transition: border-color var(--duration-fast);
}

.kg-bookmark-card:hover {
    border-color: var(--border-2);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: var(--space-lg);
    gap: var(--space-lg);
    align-items: center;
}

.kg-bookmark-content { flex: 1; }
.kg-bookmark-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}
.kg-bookmark-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.kg-bookmark-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.kg-callout-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--ink-2);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    margin: var(--space-xl) 0;
}
.kg-callout-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.kg-toggle-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.kg-video-card {
    margin: var(--space-xl) 0;
}

.kg-video-card video {
    width: 100%;
    border-radius: var(--radius);
}

/* ================================================
   ONBOARDING / ABOUT SECTION
   ================================================ */

.onboarding-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(201,169,110,0.02) 50%, transparent 100%);
}

.onboarding__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.onboarding__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
    display: block;
}

.onboarding__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.onboarding__headline em {
    color: var(--gold);
    font-style: italic;
}

.onboarding__subtext {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

.onboarding__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.onboarding__card {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--duration-base), transform var(--duration-base);
    position: relative;
    overflow: hidden;
}

.onboarding__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    opacity: 0;
    transition: opacity var(--duration-base);
}

.onboarding__card:hover {
    border-color: var(--border-2);
    transform: translateY(-2px);
}

.onboarding__card:hover::before {
    opacity: 1;
}

.onboarding__card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.onboarding__card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.onboarding__card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.onboarding__manifesto {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-2xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--ink-2);
    position: relative;
}

.onboarding__manifesto::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.onboarding__quote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.onboarding__quote strong {
    font-weight: 600;
    color: var(--gold);
    font-style: normal;
}

.onboarding__cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.onboarding__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    letter-spacing: 0.02em;
}

.onboarding__cta-primary:hover {
    background: #d4b47a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201,169,110,0.3);
}

.onboarding__cta-secondary {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-2);
    padding-bottom: 1px;
    transition: all var(--duration-fast);
}

.onboarding__cta-secondary:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* ================================================
   IMPROVED MOBILE STYLES
   ================================================ */

@media (max-width: 900px) {
    .onboarding__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .onboarding__card {
        padding: var(--space-lg);
    }

    .how-it-works__steps {
        grid-template-columns: 1fr;
    }

    .post-card__body--today {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .site-header__center {
        display: none;
    }

    .brand-statement {
        padding: var(--space-lg) 0;
    }

    .brand-statement__inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .brand-statement__pillars {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .posts-section {
        padding: var(--space-xl) 0;
    }

    .post-card {
        padding-bottom: var(--space-xl);
        margin-bottom: var(--space-xl);
    }

    .post-card__hero-image-wrap {
        height: 240px;
        border-radius: var(--radius);
    }

    .post-card__row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .post-card__thumb-wrap {
        height: 180px;
    }

    .post-card__row--lastchance {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-card__thumbnail-tiny {
        display: none;
    }

    .newsletter-strip {
        padding: var(--space-xl) 0;
    }

    .newsletter-strip__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .email-form,
    .email-form-static {
        flex-direction: column;
    }

    .email-submit {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .onboarding-section {
        padding: var(--space-2xl) 0;
    }

    .onboarding__manifesto {
        padding: var(--space-lg);
    }

    .onboarding__cta-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .onboarding__cta-primary {
        justify-content: center;
        width: 100%;
    }

    .how-it-works {
        padding: var(--space-2xl) 0;
    }

    .post-hero {
        height: 50vh;
        min-height: 300px;
    }

    .post-hero__title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .post-content-outer {
        padding: var(--space-xl) 0;
    }

    .post-content p {
        font-size: 1rem;
    }

    .post-content p:first-of-type {
        font-size: 1.05rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .post-footer__share {
        flex-wrap: wrap;
    }

    .post-newsletter {
        padding: var(--space-lg);
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .site-footer__pillar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
}

/* ================================================
   BUG FIXES v2.1
   ================================================ */

/* Fix: CTA button not stretching full width */
.post-card__cta--primary {
    display: inline-flex !important;
    width: auto !important;
    align-self: flex-start !important;
}

/* Fix: "min read min read" duplicate — hide the ghost-provided reading time span if double */
.post-card__meta .post-read-time + .post-read-time {
    display: none;
}

/* Fix: Today body layout — prevent grid from stretching button */
.post-card__body--today {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--space-md) !important;
}

/* Fix: Excerpt showing "The Hook" — style it so H2-like text is less prominent */
.post-card__excerpt {
    /* Ghost excerpt strips HTML but "The Hook" comes through as plain text */
    /* We limit and style conservatively */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide "The Hook", "The Deep Dive", "Why It Matters" text if it bleeds into excerpt */
/* These are the h2 section labels from the Writer */
.post-card__excerpt:first-line {
    /* Can't target this in CSS directly - handled via excerpt word limit */
}

/* Ensure read-time never doubles */
.post-card__meta {
    gap: 0.5rem;
}

/* ================================================
   LIGHT THEME
   ================================================ */

[data-theme="light"] {
    --ink:          #fafaf8;
    --ink-2:        #f2f0eb;
    --ink-3:        #e8e4dc;
    --border:       rgba(0,0,0,0.08);
    --border-2:     rgba(0,0,0,0.15);
    --text-primary:   #1a1714;
    --text-secondary: #5a524a;
    --text-tertiary:  #9a9088;
    --gold:         #a07840;
    --gold-dim:     rgba(160,120,64,0.1);
    --gold-glow:    rgba(160,120,64,0.06);
    --blue-slate:   #4a6f8a;
    --slate-dim:    rgba(74,111,138,0.1);
    --ash:          #888880;
    --ash-dim:      rgba(136,136,128,0.12);
    --live-red:     #cc3333;
    --live-glow:    rgba(204,51,51,0.15);
}

[data-theme="light"] .grain-overlay {
    opacity: 0.02;
}

[data-theme="light"] .site-header {
    background: rgba(250,250,248,0.92);
    border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .post-hero__overlay {
    background: linear-gradient(
        to top,
        rgba(250,250,248,0.97) 0%,
        rgba(250,250,248,0.5) 40%,
        rgba(250,250,248,0.1) 80%,
        transparent 100%
    );
}

[data-theme="light"] .post-hero__title,
[data-theme="light"] .post-hero__byline,
[data-theme="light"] .post-hero__meta {
    color: var(--text-primary);
}

[data-theme="light"] .post-card__cta--primary {
    background: var(--gold);
    color: #fff;
}

[data-theme="light"] .post-card__cta--primary:hover {
    background: #8a6430;
}

[data-theme="light"] .email-submit {
    background: var(--gold);
    color: #fff;
}

[data-theme="light"] .email-submit:hover {
    background: #8a6430;
}

[data-theme="light"] .onboarding__cta-primary {
    background: var(--gold);
    color: #fff;
}

/* ================================================
   THEME TOGGLE BUTTON
   ================================================ */

.theme-toggle {
    background: none;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.theme-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Show/hide correct icon based on current theme */
[data-theme="dark"] .theme-toggle__icon--dark { display: inline; }
[data-theme="dark"] .theme-toggle__icon--light { display: none; }
[data-theme="light"] .theme-toggle__icon--dark { display: none; }
[data-theme="light"] .theme-toggle__icon--light { display: inline; }

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* ================================================
   REFERENCES BLOCK
   ================================================ */

.references {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
}
.references h3 {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--gold) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    font-style: normal !important;
    border: none !important;
    padding: 0 !important;
}
.references ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}
.references li {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}
.references li a {
    color: var(--gold) !important;
    border-bottom: 1px solid rgba(201,169,110,0.25) !important;
}
.references li a:hover {
    border-color: var(--gold) !important;
}
.references__note {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    color: var(--text-tertiary) !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

/* ================================================
   REFERENCES BLOCK
   ================================================ */

.references {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
}

.references h3 {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    font-style: normal !important;
    border: none !important;
    padding: 0 !important;
}

.references ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.references li {
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

.references li a {
    color: var(--gold) !important;
    border-bottom: 1px solid rgba(201,169,110,0.25) !important;
    transition: border-color 0.2s;
}

.references li a:hover {
    border-color: var(--gold) !important;
}

.references__note {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    color: var(--text-tertiary) !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

/* ================================================
   FIX v2.2 — Font consistency, references links,
   glossary block
   ================================================ */

/* Fix: Consistent font size across ALL post paragraphs */
.post-content p,
.post-content p:first-of-type,
.post-content p:first-child {
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
}

/* Fix: h2 consistent sizing — no size variation */
.post-content h2 {
    font-size: 1.3rem !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: var(--gold) !important;
    margin-top: var(--space-2xl) !important;
    margin-bottom: var(--space-lg) !important;
    padding-bottom: var(--space-sm) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* Fix: References links — ensure they render as clickable links */
.references a,
.post-content .references a,
.post-content .references li a {
    color: var(--gold) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-color: rgba(201,169,110,0.4) !important;
    border-bottom: none !important;
    transition: color 0.2s, text-decoration-color 0.2s !important;
    cursor: pointer !important;
}

.references a:hover,
.post-content .references a:hover {
    color: #d4b47a !important;
    text-decoration-color: var(--gold) !important;
}

/* Fix: References plain text items (no URL) — style clearly */
.references li {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.7 !important;
    margin-bottom: 0.6rem !important;
}

/* Glossary / Key Terms block */
.glossary {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue-slate);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
}

.glossary h3 {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--blue-slate) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    font-style: normal !important;
    border: none !important;
    padding: 0 !important;
}

.glossary dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.5rem;
    margin: 0;
}

.glossary dt {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue-slate);
    padding-top: 2px;
    white-space: nowrap;
}

.glossary dd {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.glossary dd:last-child {
    border-bottom: none;
}

/* Inline term highlighting — for hyperlinked technical terms */
.post-content a[data-term] {
    color: var(--blue-slate) !important;
    border-bottom: 1px dashed rgba(122,155,181,0.5) !important;
    cursor: help !important;
    text-decoration: none !important;
}

.post-content a[data-term]:hover {
    color: var(--text-primary) !important;
    border-bottom-style: solid !important;
}

/* Light theme glossary adjustments */
[data-theme="light"] .glossary {
    background: var(--ink-2);
    border-color: var(--border);
    border-left-color: var(--blue-slate);
}

/* ================================================
   FOUNDER / ABOUT SECTION
   ================================================ */

.founder-section {
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(201,169,110,0.03) 100%);
}

.founder-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    max-width: 780px;
}

.founder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #a07840 100%);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.founder-content {
    flex: 1;
}

.founder-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.founder-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.founder-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 640px;
    font-style: italic;
    font-family: var(--font-display);
}

/* Light theme */
[data-theme="light"] .founder-avatar {
    color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
    .founder-inner {
        flex-direction: column;
        gap: var(--space-md);
    }
    .founder-avatar {
        width: 48px;
        height: 48px;
        font-size: 0.95rem;
    }
    .founder-bio {
        font-size: 0.9rem;
    }
}

/* ================================================
   SYSTEM PREFERENCE: prefers-color-scheme
   Auto-matches OS dark/light mode as the default.
   Manual toggle overrides and saves to localStorage.
   ================================================ */

/* When no saved preference exists, respect OS setting */
@media (prefers-color-scheme: light) {
    html:not([data-theme-set]) {
        --ink:          #fafaf8;
        --ink-2:        #f2f0eb;
        --ink-3:        #e8e4dc;
        --border:       rgba(0,0,0,0.08);
        --border-2:     rgba(0,0,0,0.15);
        --text-primary:   #1a1714;
        --text-secondary: #5a524a;
        --text-tertiary:  #9a9088;
        --gold:         #a07840;
        --gold-dim:     rgba(160,120,64,0.1);
        --gold-glow:    rgba(160,120,64,0.06);
        --blue-slate:   #4a6f8a;
        --slate-dim:    rgba(74,111,138,0.1);
        --ash:          #888880;
        --ash-dim:      rgba(136,136,128,0.12);
        --live-red:     #cc3333;
        --live-glow:    rgba(204,51,51,0.15);
    }

    html:not([data-theme-set]) .grain-overlay { opacity: 0.02; }
    html:not([data-theme-set]) .site-header { background: rgba(250,250,248,0.92); }
    html:not([data-theme-set]) .post-hero__overlay {
        background: linear-gradient(to top, rgba(250,250,248,0.97) 0%, rgba(250,250,248,0.5) 40%, transparent 100%);
    }
    html:not([data-theme-set]) .post-card__cta--primary { background: var(--gold); color: #fff; }
    html:not([data-theme-set]) .email-submit { background: var(--gold); color: #fff; }
    html:not([data-theme-set]) .onboarding__cta-primary { background: var(--gold); color: #fff; }
    html:not([data-theme-set]) .theme-toggle__icon--dark { display: none; }
    html:not([data-theme-set]) .theme-toggle__icon--light { display: inline; }
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme-set]) .theme-toggle__icon--dark { display: inline; }
    html:not([data-theme-set]) .theme-toggle__icon--light { display: none; }
}

/* About nav link */
.header-nav-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,244,240,0.6);
    text-decoration: none;
    transition: color 0.2s;
    margin-right: 1rem;
}
.header-nav-link:hover { color: #c9a96e; }

/* Pillar links — homepage, footer, about page */
.brand-statement__pillars a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.brand-statement__pillars a:hover { color: #c9a96e; }

.site-footer__pillar-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer__pillar-list a:hover { color: #c9a96e; }

.about-pillar:hover, .about-pillar-wide:hover {
    background: #1a1a1a;
    cursor: pointer;
}
