/* ===================================
   vanbuuren.ai — stylesheet

   Palette: "coals & gold", variant 1 — monochrome gold. One accent doing
   every job. Gold at 7.11:1 on the forest ground carries text, marks and
   buttons alike; Coal is never text, only the glow behind things.
   =================================== */

/* ===================================
   1. Tokens
   =================================== */
:root {
    /* Ground */
    --ground:       #15412d;   /* forest floor — the page */
    --ground-deep:  #123324;   /* under the page: footer, wells */
    --surface:      #17402C;   /* cards, raised panels */
    --surface-2:    #1C4A33;   /* hover */

    /* Ink */
    --bone:         #F2E9D0;   /* headings — 11.4:1 */
    --text:         #D6E0D8;   /* body — 10.2:1 */
    --muted:        #8FA898;   /* secondary — 5.4:1 */

    /* Accent — gold leads, coal only ever glows */
    --gold:         #E6B24D;   /* 7.11:1 — text, marks, buttons */
    --gold-dim:     rgba(230, 178, 77, 0.16);
    --coal:         #A8402C;   /* 2.25:1 — background light only */

    /* Structure */
    --line:         rgba(236, 232, 223, 0.12);
    --line-strong:  rgba(236, 232, 223, 0.26);
    --shadow:       0 26px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-sm:    0 10px 30px -14px rgba(0, 0, 0, 0.55);

    /* Type */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    /* Geometry */
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    18px;
    --page-max:     1180px;
    --prose-max:    720px;
    --topbar-h:     66px;

    --transition:   180ms ease;
}

/* ===================================
   2. Base
   =================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

    /* Coal glows top-right and bottom-left, a thin gold wash rising from
       below the fold — the fire has settled rather than being lit. */
    background:
        radial-gradient(900px 620px at 82% -4%,  rgba(168, 64, 44, 0.44), transparent 62%),
        radial-gradient(620px 460px at 4%  62%,  rgba(168, 64, 44, 0.22), transparent 66%),
        radial-gradient(1000px 680px at 50% 108%, rgba(230, 178, 77, 0.07), transparent 70%),
        var(--ground);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--bone);
    margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

::selection { background: var(--gold); color: var(--ground); }

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

/* ===================================
   3. Utilities & primitives
   =================================== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.rule {
    display: block;
    width: 80px;
    height: 2px;
    margin: 26px 0 20px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--coal), var(--gold));
}

.lede {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 48ch;
}

.text-link {
    color: var(--gold);
    text-underline-offset: 3px;
}

.empty-note {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 12px 24px;
    border: 0;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--ground);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--bone);
    font-weight: 400;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-compact { flex-direction: row; white-space: nowrap; }

.btn:hover { transform: translateY(-2px); }

.btn-sub {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.72;
}

/* ===================================
   4. Card imagery (art.js)
   =================================== */

/* Generated line art. Gold does this job like it does every other: two cards
   are told apart by shape, never by colour. */
.art {
    display: grid;
    place-items: center;
    color: var(--gold);
}

.art svg { width: 100%; height: auto; display: block; }

/* An empty image slot. Reads as unfinished on purpose — a dashed frame and a
   label, so it is obvious a picture belongs here. */
.thumb-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(230, 178, 77, 0.3);
    border-radius: var(--radius-md);
    background:
        repeating-linear-gradient(
            45deg,
            rgba(230, 178, 77, 0.05) 0 8px,
            transparent 8px 18px
        ),
        var(--ground-deep);
}

.thumb-placeholder span {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.7;
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.thumb--card  { width: 58%; }
.thumb--more  { width: 100%; }
.thumb--pcard { width: 100%; }

/* A generated drawing is a mark, not a photograph — it should not fill the
   frame the way an image does. */
.art.thumb--card  { width: 58%; }
.art.thumb--more  { width: 38%; }
.art.thumb--pcard { width: 46%; }

/* ===================================
   5. Top banner
   =================================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--topbar-h);
    padding: 0 32px;
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}

.topbar.scrolled,
.topbar--solid {
    background: rgba(18, 51, 36, 0.86);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
}

/* The wordmark is the logo — no icon. "ai" stays small: the focus is the
   work, not the tooling. */
.wordmark {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--bone);
    text-decoration: none;
    white-space: nowrap;
}

.wordmark em {
    font-style: normal;
    font-size: 0.6em;
    letter-spacing: 0.02em;
    color: var(--gold);
}

.topbar-nav {
    display: flex;
    gap: 8px;
}

.topbar-nav a {
    padding: 7px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.topbar-nav a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Language toggle. Two states, both always visible — a single button that
   flips its own label leaves you guessing whether it shows the current
   language or the one you would get. */
.lang-toggle {
    display: flex;
    margin-left: 4px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    overflow: hidden;
}

.lang-btn {
    padding: 7px 12px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover { color: var(--gold); }

.lang-btn.active {
    background: var(--gold-dim);
    color: var(--gold);
}

/* ===================================
   6. Hero — copy left, portfolio carousel right
   =================================== */

/* Hero, newsletter and the scroll cue share one screen: nothing that matters
   sits below the fold. */
.hero-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: calc(100svh - var(--topbar-h));
    padding-bottom: 12px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    max-width: var(--page-max);
    width: 100%;
    margin: 0 auto;
    padding: 16px 32px 12px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.06;
}

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

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

/* ── Portfolio carousel ────────────────────────────── */
.hero-projects {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eyebrow {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Every slide occupies the same grid cell, so the stage is as tall as the
   tallest card and nothing jumps as they cross-fade. */
.pcard-stage {
    display: grid;
    isolation: isolate;
}

.pcard-stage > * { grid-area: 1 / 1; }

.pcard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(12, 31, 22, 0.55);
    box-shadow: var(--shadow);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 420ms ease, transform 420ms ease, visibility 0s linear 420ms, border-color var(--transition);
}

.pcard.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 420ms ease, transform 420ms ease, visibility 0s, border-color var(--transition);
    z-index: 1;
}

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

.pcard-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(12, 31, 22, 0.6);
}

.pcard-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.pcard-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.pcard-year { font-size: 0.72rem; color: var(--muted); }

.pcard-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.15;
    color: var(--bone);
}

.pcard-blurb {
    font-size: 0.87rem;
    line-height: 1.6;
    color: var(--muted);
}

.pcard-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
}

.pcard-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.pcard-controls[hidden] { display: none; }

/* Carousel controls */
.icon-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.dots { display: flex; gap: 8px; }

.dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line-strong);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active { background: var(--gold); transform: scale(1.35); }

/* ── Scroll cue ────────────────────────────────────── */
.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: fit-content;
    margin: 0 auto;
    padding: 6px 18px;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}

.scroll-cue:hover { color: var(--gold); }

.scroll-cue-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scroll-cue-chevron {
    width: 26px;
    height: 26px;
    color: var(--gold);
    animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {
    0%, 100% { transform: translateY(0);   opacity: 0.75; }
    50%      { transform: translateY(5px); opacity: 1;    }
}

/* ===================================
   7. Newsletter
   =================================== */
.newsletter {
    max-width: var(--page-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

/* The card is the page green so Substack's embed (same green, set in the
   publication theme) sits in it seamlessly; only the edge and shadow show. */
.newsletter-box {
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--ground);
    box-shadow: var(--shadow);
}

/* Cross-origin, so it cannot size itself: the height fits the embed's
   content with a little air, and the content centres itself vertically. */
.newsletter-embed {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
    background: var(--ground);
}

/* ===================================
   8. Card list (articles on the home page)
   =================================== */
.articles {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 88px 32px 96px;
}

.section-head { margin-bottom: 34px; }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(12, 31, 22, 0.42);
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.card-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    background: rgba(12, 31, 22, 0.6);
    overflow: hidden;
}

.card-body { align-self: center; min-width: 0; }

.card-category {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    color: var(--bone);
    margin-bottom: 8px;
}

.card-summary {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.card-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.74rem;
    color: var(--muted);
    opacity: 0.8;
}

.card-byline span + span::before {
    content: '·';
    margin-right: 16px;
    opacity: 0.5;
}

/* ===================================
   9. Entry page (articles and projects)
   =================================== */
.entry-page {
    max-width: var(--prose-max);
    margin: 0 auto;
    padding: 28px 32px 88px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 26px;
}

.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

/* Header */
.entry-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.entry-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.06;
    margin-bottom: 14px;
}

.entry-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 18px;
}

.entry-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.79rem;
    color: var(--muted);
}

.entry-byline-author { font-weight: 600; color: var(--text); }

.entry-byline span + span::before {
    content: '·';
    margin-right: 16px;
    opacity: 0.5;
}

.entry-visit {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 20px;
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.entry-visit:hover { background: var(--gold); color: var(--ground); }

/* Body blocks */
.entry-body { display: flex; flex-direction: column; }

.entry-h2 {
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    margin: 40px 0 14px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.entry-h3 {
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    margin: 30px 0 10px;
}

.entry-h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bone);
    margin: 22px 0 8px;
}

.entry-p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 18px;
}

/* Highlights */
.entry-highlight {
    padding: 18px 22px;
    margin: 20px 0;
    border-radius: var(--radius-md);
    font-size: 0.97rem;
    line-height: 1.7;
}

.entry-highlight p { margin: 0; }

.entry-highlight--color {
    background: var(--gold-dim);
    border: 1px solid rgba(230, 178, 77, 0.32);
    border-left: 3px solid var(--gold);
    color: var(--bone);
}

.entry-highlight--normal {
    background: rgba(12, 31, 22, 0.5);
    border: 1px solid var(--line);
    color: var(--muted);
}

.entry-summary { margin: 0 0 28px; font-size: 1rem; }

/* Quote */
.entry-quote {
    margin: 26px 0;
    padding: 4px 0 4px 22px;
    border-left: 2px solid var(--coal);
}

.entry-quote blockquote { margin: 0; }

.entry-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--bone);
}

.entry-quote-attr {
    margin-top: 10px;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Table */
.entry-table-caption {
    font-size: 0.81rem;
    font-style: italic;
    color: var(--muted);
    margin: 20px 0 8px;
}

.entry-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 8px 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(12, 31, 22, 0.42);
}

.entry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.entry-table th {
    padding: 12px 16px;
    background: rgba(230, 178, 77, 0.07);
    border-bottom: 1px solid var(--line-strong);
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bone);
    white-space: nowrap;
}

.entry-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    vertical-align: top;
    line-height: 1.55;
}

.entry-table tr:last-child td { border-bottom: 0; }
.entry-table tr:hover td { background: rgba(230, 178, 77, 0.04); }

.entry-table-link { color: var(--gold); font-weight: 500; text-underline-offset: 2px; }

/* Lists */
.entry-list {
    margin: 4px 0 20px;
    padding-left: 24px;
    font-size: 1.02rem;
    line-height: 1.78;
    color: var(--text);
}

.entry-list li { margin-bottom: 8px; }
.entry-list li::marker { color: var(--gold); }

/* Tags */
.entry-tags-block {
    margin-top: 40px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(12, 31, 22, 0.42);
}

.entry-tags-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.entry-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }

.entry-tag {
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--muted);
}

/* Related links */
.entry-related-links { margin: 18px 0 8px; }

.entry-related-heading {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.entry-related-list { display: flex; flex-direction: column; gap: 10px; }

.entry-related-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(12, 31, 22, 0.42);
    text-decoration: none;
    transition: var(--transition);
}

.entry-related-btn:hover {
    border-color: var(--gold);
    transform: translateX(3px);
}

.entry-related-mark {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1;
    color: var(--gold);
}

.entry-related-label {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--gold);
}

.entry-related-text {
    flex: 1;
    min-width: 0;
    font-size: 0.91rem;
    color: var(--bone);
}

.entry-related-arrow { color: var(--muted); transition: transform var(--transition); }
.entry-related-btn:hover .entry-related-arrow { transform: translateX(3px); }

/* More entries, and a project's articles */
.more-entries { margin-top: 56px; }
.project-articles { margin-top: 40px; }

.more-heading {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.more-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.more-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(12, 31, 22, 0.42);
    text-decoration: none;
    transition: var(--transition);
}

.more-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.more-card-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(12, 31, 22, 0.6);
}

.more-card-category {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.more-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--bone);
}

.more-card-meta { font-size: 0.73rem; color: var(--muted); }

/* ===================================
   10. Footer
   =================================== */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(12, 31, 22, 0.6);
    padding: 44px 32px 32px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    max-width: var(--page-max);
    margin: 0 auto 24px;
}

.footer-mark {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--bone);
    margin-bottom: 6px;
}

.footer-mark em {
    font-style: normal;
    font-size: 0.6em;
    color: var(--gold);
}

.footer-line {
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 40ch;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.85rem;
}

.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    color: var(--muted);
    opacity: 0.75;
}

/* ===================================
   11. Scroll reveal
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ===================================
   12. Responsive
   =================================== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 24px 16px;
    }

    /* Below this width the hero stops trying to hold one screen — the copy
       and a full project card cannot both fit without shrinking one of them
       past readability. */
    .hero-wrap {
        min-height: 0;
        padding-top: 20px;
        gap: 24px;
    }

    .hero-projects { max-width: 520px; width: 100%; }
}

@media (max-width: 620px) {
    .topbar { padding: 0 20px; }

    .topbar-nav a { padding: 6px 12px; font-size: 0.75rem; }

    .topbar-nav { gap: 6px; }

    .lang-btn { padding: 6px 9px; font-size: 0.68rem; }

    .hero .actions { flex-direction: column; align-items: stretch; }

    .newsletter, .articles, .entry-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .newsletter-embed { height: 560px; }

    .card { grid-template-columns: 1fr; gap: 14px; }

    .card-thumb { aspect-ratio: 2 / 1; }

    .entry-related-btn { flex-wrap: wrap; }

    .entry-related-text { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* The stage relies on a transition to hide inactive slides; with
       transitions off they must be hidden outright or they stack. */
    .pcard { display: none; }
    .pcard.active { display: flex; }
}
