/* ==========================================================================
   Vesper — SamaDesign
   1. Tokens   2. Base   3. Layout   4. Masthead & header   5. Buttons & forms
   6. Ticker   7. Front page (cover story, ranking)   8. Agenda   9. Cards & grids
   10. Quote   11. Covers (tag, author)   12. Article   13. Content (Koenig)
   14. Newsletter   15. Footer   16. Effects & misc
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */

:root {
    /* Paper (default) */
    --vs-bg: #fbf8f4;
    --vs-bg-2: #f3ece5;
    --vs-ink: #2a1720;
    --vs-muted: rgb(42 23 32 / 0.68);
    --vs-line: rgb(42 23 32 / 0.16);
    --vs-hot: #b8381a;          /* topaze, darkened for text on paper */
    --vs-hot-big: #e2471f;      /* topaze for large numerals */
    --vs-inverse-bg: #351e28;   /* quote band */
    --vs-inverse-ink: #f5ede6;

    /* Fixed brand colors */
    --vs-cassis: #351e28;
    --vs-night: #1a0e14;
    --vs-topaze: #ff5c34;
    --vs-paper: #f5ede6;
    --vs-horizon: linear-gradient(90deg, #ffb45c 0%, #ff5c34 34%, #b8325a 68%, #351e28 100%);

    --vs-font-heading: var(--gh-font-heading, "DM Serif Display", Georgia, serif);
    /* Masthead, numerals, standfirsts and quotes: a finer italic serif */
    --vs-font-display: var(--gh-font-heading, "Instrument Serif", Georgia, serif);
    --vs-font-body: var(--gh-font-body, "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif);

    --vs-gutter: 16px;
    --vs-container: 1280px;
    --vs-content: 700px;
    --vs-wide: 1040px;
    --vs-bar-h: 64px;
    --vs-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    color-scheme: light;
}

/* Cassis variant */
:root[data-scheme="dark"] {
    --vs-bg: #2a1720;
    --vs-bg-2: #351e28;
    --vs-ink: #f5ede6;
    --vs-muted: rgb(245 237 230 / 0.68);
    --vs-line: rgb(245 237 230 / 0.16);
    --vs-hot: #ff6a45;
    --vs-hot-big: #ff5c34;
    --vs-inverse-bg: #f5ede6;
    --vs-inverse-ink: #2a1720;

    color-scheme: dark;
}

@media (min-width: 640px) {
    :root { --vs-gutter: 28px; }
}

/* 2. Base
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--vs-bar-h) + 24px);
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--vs-bg);
    color: var(--vs-ink);
    font-family: var(--vs-font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--vs-font-heading);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

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

.vs-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vs-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--vs-topaze);
    color: var(--vs-night);
    font-weight: 600;
}

.vs-skip:focus { top: 12px; }
.vs-icon { flex-shrink: 0; }
.vs-muted { color: var(--vs-muted); }

/* Small caps label used across the theme */
.vs-kicker,
.vs-head-note,
.vs-more {
    color: var(--vs-hot);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* 3. Layout
   ========================================================================== */

.vs-site { display: flex; flex-direction: column; min-height: 100vh; }
.vs-main { flex-grow: 1; }

.vs-container {
    width: 100%;
    max-width: calc(var(--vs-container) + 2 * var(--vs-gutter));
    margin-inline: auto;
    padding-inline: var(--vs-gutter);
}

.vs-narrow, .vs-wide, .vs-full { width: 100%; margin-inline: auto; padding-inline: var(--vs-gutter); }
.vs-narrow { max-width: calc(var(--vs-content) + 2 * var(--vs-gutter)); }
.vs-wide { max-width: calc(var(--vs-wide) + 200px + 2 * var(--vs-gutter)); }
.vs-full { padding-inline: 0; }
.vs-center { text-align: center; }

.vs-section { padding-top: 72px; }

@media (min-width: 1024px) {
    .vs-section { padding-top: 96px; }
}

/* Section heading: title, a line that draws itself, a note or a link */
.vs-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.vs-head-title { flex: 0 1 auto; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.vs-head-title a:hover { color: var(--vs-hot); }
.vs-head-line { flex: 1 1 40px; height: 1px; background: var(--vs-line); }
.vs-head-note, .vs-more { flex: 0 0 auto; }
.vs-more { display: inline-flex; align-items: center; gap: 6px; }
.vs-more .vs-icon { width: 14px; height: 14px; transition: transform 0.3s var(--vs-ease); }
.vs-more:hover .vs-icon { transform: translateX(4px); }

@media (max-width: 559px) {
    .vs-head-note { display: none; }
}

/* Heading with a thick rule underneath (ranking) */
.vs-rule-head { padding-bottom: 12px; border-bottom: 3px solid var(--vs-ink); }
.vs-rule-title { font-size: 1.85rem; }

/* 4. Masthead & header
   ========================================================================== */

.vs-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 20px;
    padding-block: 14px;
    border-bottom: 1px solid var(--vs-line);
    color: var(--vs-muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vs-topbar-members { display: flex; gap: 20px; }
.vs-topbar-members a:hover { color: var(--vs-ink); }
.vs-topbar-cta { color: var(--vs-hot); font-weight: 600; }

@media (max-width: 699px) {
    .vs-topbar { display: none; }
}

.vs-masthead-brand { padding: 22px 0 18px; text-align: center; }
.vs-masthead.is-home .vs-masthead-brand { padding: 24px 0 20px; }
.vs-brand { display: inline-flex; justify-content: center; max-width: 100%; }

.vs-wordmark {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 0 0.06em 0.12em;
    font-family: var(--vs-font-display);
    font-size: clamp(2.6rem, 8vw, 4.2rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.vs-masthead.is-home .vs-wordmark { font-size: clamp(4.2rem, 16vw, 11.5rem); line-height: 1.05; }
.vs-wordmark-inner { display: inline-block; }

.vs-logo { max-height: 64px; width: auto; }
.vs-masthead.is-home .vs-logo { max-height: 120px; }
.vs-logo-dark { display: none; }
[data-scheme="dark"] .vs-logo-light { display: none; }
[data-scheme="dark"] .vs-logo-dark { display: block; }

.vs-tagline {
    margin-top: 12px;
    color: var(--vs-muted);
    font-family: var(--vs-font-display);
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
    font-style: italic;
}

/* Sticky bar */
.vs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--vs-bg);
    border-bottom: 1px solid var(--vs-line);
}

.vs-horizon { height: 3px; background: var(--vs-horizon); }

.vs-bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: var(--vs-bar-h);
}

.vs-bar-brand {
    justify-self: start;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s var(--vs-ease), visibility 0.3s;
}

.vs-bar-brand .vs-wordmark { font-size: 1.9rem; }
.vs-bar-brand .vs-logo { max-height: 34px; }
.vs-header.is-stuck .vs-bar-brand,
body.vs-nav-open .vs-bar-brand { visibility: visible; opacity: 1; transform: none; }

.vs-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vs-menu > li { position: relative; }

.vs-menu a,
.vs-sub-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    border: 0;
    background: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease;
}

.vs-menu a:hover,
.vs-sub-toggle:hover,
.vs-menu .is-current > a { color: var(--vs-hot); }

.vs-sub-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.vs-sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }

.vs-submenu { margin: 0; padding: 8px 0; list-style: none; }
.vs-nav-members { display: none; }

.vs-tools { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }

.vs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.vs-icon-btn:hover { border-color: var(--vs-line); color: var(--vs-hot); }
.vs-icon-btn .vs-icon { width: 18px; height: 18px; }

.vs-icon-sun { display: none; }
[data-scheme="dark"] .vs-icon-sun { display: block; }
[data-scheme="dark"] .vs-icon-moon { display: none; }

.vs-burger { display: none; flex-direction: column; gap: 6px; }
.vs-burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.2s ease; }
.vs-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.vs-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 1000px) {
    .vs-submenu {
        position: absolute;
        top: calc(100% + 12px);
        left: -18px;
        min-width: 220px;
        border: 1px solid var(--vs-line);
        border-top: 3px solid var(--vs-topaze);
        background: var(--vs-bg);
        box-shadow: 0 24px 50px rgb(26 14 20 / 0.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    }

    .vs-submenu.is-open { opacity: 1; visibility: visible; transform: none; }
    .vs-submenu a { display: flex; width: 100%; padding: 9px 18px; }
}

@media (max-width: 999px) {
    .vs-bar { grid-template-columns: 1fr auto; }
    .vs-bar-brand { grid-column: 1; grid-row: 1; }
    .vs-tools { grid-column: 2; grid-row: 1; }
    .vs-burger { display: inline-flex; }

    .vs-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        padding: calc(var(--vs-bar-h) + 32px) var(--vs-gutter) 32px;
        overflow-y: auto;
        background: var(--vs-bg);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.25s ease, visibility 0.25s;
    }

    /* The fixed menu opens behind the brand and the tools, so the burger stays usable to close it */
    .vs-bar-brand, .vs-tools { position: relative; z-index: 2; }
    .vs-nav.is-open { visibility: visible; opacity: 1; }
    .vs-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .vs-menu > li { border-bottom: 1px solid var(--vs-line); }

    .vs-menu a,
    .vs-sub-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0;
        font-family: var(--vs-font-heading);
        font-size: 1.9rem;
        font-weight: 400;
        letter-spacing: -0.01em;
        text-transform: none;
    }

    .vs-submenu { display: none; padding: 0 0 12px 14px; }
    .vs-submenu.is-open { display: block; }
    .vs-submenu a { padding: 8px 0; font-size: 1.3rem; }
    .vs-nav-members { display: flex; gap: 10px; margin-top: 28px; }
    .vs-nav-members .vs-btn { flex: 1; }
    body.vs-nav-open { overflow: hidden; }
    /* Menu open: the bar moves to the top of the screen, wherever the page was scrolled */
    body.vs-nav-open .vs-header { position: fixed; top: 0; left: 0; right: 0; }
}

/* 5. Buttons & forms
   ========================================================================== */

.vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    background: var(--vs-topaze);
    color: var(--vs-night);
    font-family: var(--vs-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.vs-btn:hover { background: var(--vs-ink); color: var(--vs-bg); }
.vs-btn-ghost { border-color: var(--vs-ink); background: transparent; color: var(--vs-ink); }
.vs-btn-ghost:hover { background: var(--vs-ink); color: var(--vs-bg); }
.vs-btn-lg { min-height: 54px; padding: 0 30px; font-size: 0.92rem; }

.vs-form-row { display: flex; flex-wrap: wrap; gap: 10px; }

.vs-form-row input {
    flex: 1 1 220px;
    min-width: 0;
    height: 54px;
    padding: 0 20px;
    border: 1px solid var(--vs-line);
    border-radius: 0;
    background: var(--vs-bg);
    color: var(--vs-ink);
    font: 0.95rem var(--vs-font-body);
}

.vs-form-row input::placeholder { color: var(--vs-muted); }
.vs-form-row input:focus { outline: 2px solid var(--vs-topaze); outline-offset: 2px; }
.vs-form-row .vs-btn { min-height: 54px; padding: 0 28px; }

.vs-form-loading, .vs-form-success, .vs-form-error { display: none; }
.vs-form .vs-btn { position: relative; }
.vs-form.loading .vs-form-label { visibility: hidden; }

.vs-form.loading .vs-form-loading {
    display: block;
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: vs-spin 0.7s linear infinite;
}

.vs-form.success .vs-form-row { display: none; }
.vs-form.success .vs-form-success { display: block; font-weight: 600; }
.vs-form.error .vs-form-error { display: block; margin-top: 10px; font-size: 0.9rem; }

@keyframes vs-spin { to { transform: rotate(360deg); } }

/* Shared bits: tags, meta, avatar, chips */
.vs-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.vs-tag {
    color: var(--vs-hot);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vs-tag + .vs-tag::before { content: "·"; margin-right: 8px; color: var(--vs-muted); }
.vs-tag:hover { color: var(--vs-ink); }

.vs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    color: var(--vs-muted);
    font-size: 0.8rem;
}

.vs-meta > * { white-space: nowrap; }
/* The comments link is excluded: its count is filled by Ghost JS and may stay empty */
.vs-meta > :not(.vs-avatar) + :not(.vs-avatar):not(.vs-meta-comments)::before { content: "·"; margin-inline: 9px; }
.vs-meta-author { color: var(--vs-ink); font-weight: 600; }
.vs-meta-author:hover { color: var(--vs-hot); }
.vs-meta > .vs-meta-comments::before { content: none; }
.vs-count:not(:empty)::before { content: "·"; margin-inline: 9px; }

.vs-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--vs-cassis);
    color: var(--vs-paper);
    font-size: 0.75rem;
}

.vs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vs-avatar span { width: 1ch; overflow: hidden; font-weight: 600; white-space: nowrap; }

.vs-chip {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--vs-line);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.vs-chip:hover { border-color: var(--vs-hot); color: var(--vs-hot); }

/* Image frame. With "Duotone images" on, the photo is set in cassis & topaze and gets its colors back on hover */
.vs-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--vs-cassis);
    isolation: isolate;
}

.vs-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--vs-ease), filter 0.7s ease;
}

.vs-duotone .vs-media img { filter: saturate(0.55) contrast(1.04); }

.vs-duotone .vs-media::before,
.vs-duotone .vs-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

/* Highlights take the topaze hue, shadows are lifted to cassis */
.vs-duotone .vs-media::before { background: #ff5c34; mix-blend-mode: soft-light; opacity: 0.55; }
.vs-duotone .vs-media::after { background: #351e28; mix-blend-mode: lighten; opacity: 0.6; }

.vs-duotone a.vs-media:hover img,
.vs-duotone :hover > .vs-media img,
.vs-duotone .vs-agenda-link:hover .vs-media img,
.vs-duotone .vs-agenda-link:focus-visible .vs-media img,
.vs-duotone article:focus-within .vs-media img { filter: none; }

.vs-duotone a.vs-media:hover::before,
.vs-duotone a.vs-media:hover::after,
.vs-duotone :hover > .vs-media::before,
.vs-duotone :hover > .vs-media::after,
.vs-duotone .vs-agenda-link:hover .vs-media::before,
.vs-duotone .vs-agenda-link:hover .vs-media::after,
.vs-duotone .vs-agenda-link:focus-visible .vs-media::before,
.vs-duotone .vs-agenda-link:focus-visible .vs-media::after,
.vs-duotone article:focus-within .vs-media::before,
.vs-duotone article:focus-within .vs-media::after { opacity: 0; }

/* Touch screens have no hover: keep the photos in color */
@media (hover: none) {
    .vs-duotone .vs-media img { filter: none; }
    .vs-duotone .vs-media::before, .vs-duotone .vs-media::after { display: none; }
}

/* Title underline that grows on hover */
.vs-lead-title span,
.vs-post-title span {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.6s var(--vs-ease);
}

.vs-lead:hover .vs-lead-title span,
.vs-post:hover .vs-post-title span,
.vs-lead-title a:focus-visible span,
.vs-post-title a:focus-visible span { background-size: 100% 1px; }

/* 6. Ticker
   ========================================================================== */

.vs-ticker {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--vs-topaze);
    color: var(--vs-night);
    font-size: 0.82rem;
    font-weight: 600;
}

.vs-ticker-label {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    background: var(--vs-night);
    color: var(--vs-topaze);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vs-ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: vs-blink 1.4s ease-in-out infinite; }
.vs-ticker-window { flex: 1 1 auto; overflow: hidden; }

.vs-ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    padding: 10px 24px;
    white-space: nowrap;
    animation: vs-tick 60s linear infinite;
}

.vs-ticker-copy { display: contents; }
.vs-ticker-track a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vs-ticker-track b { font-weight: 400; opacity: 0.6; }
.vs-ticker:hover .vs-ticker-track,
.vs-ticker:focus-within .vs-ticker-track { animation-play-state: paused; }

@keyframes vs-tick { to { transform: translateX(-50%); } }
@keyframes vs-blink { 50% { opacity: 0.25; } }

/* 7. Front page: cover story + ranking
   ========================================================================== */

.vs-front { display: grid; gap: 48px; padding-top: 40px; }

@media (min-width: 1000px) {
    .vs-front.has-both { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 48px; }
}

.vs-lead-media { aspect-ratio: 16 / 10; max-height: 600px; }
.vs-front:not(.has-both) .vs-lead-media { aspect-ratio: 21 / 9; }
.vs-lead:hover .vs-lead-media img { transform: scale(1.03); }
.vs-lead-body { padding-top: 24px; }
.vs-kicker { display: flex; flex-wrap: wrap; gap: 10px; }
.vs-kicker > * + *::before { content: "·"; margin-right: 10px; }
.vs-kicker a:hover { color: var(--vs-ink); }

.vs-lead-title {
    margin: 14px 0 16px;
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.vs-lead-excerpt {
    max-width: 640px;
    margin-bottom: 18px;
    color: var(--vs-muted);
    font-family: var(--vs-font-display);
    font-size: clamp(1.3rem, 2.1vw, 1.55rem);
    line-height: 1.4;
}

.vs-ranking { display: flex; flex-direction: column; }
.vs-ranking-list { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.vs-ranking-item { counter-increment: rank; border-bottom: 1px solid var(--vs-line); }

.vs-ranking-item a {
    display: flex;
    gap: 18px;
    padding: 20px 0;
}

.vs-ranking-item a::before {
    content: counter(rank);
    min-width: 40px;
    color: var(--vs-hot-big);
    font-family: var(--vs-font-display);
    font-size: 3.4rem;
    font-style: italic;
    line-height: 0.8;
}

.vs-ranking-body { display: flex; flex-direction: column; gap: 6px; }
.vs-ranking-tag { color: var(--vs-muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-ranking-title { font-family: var(--vs-font-heading); font-size: 1.3rem; font-weight: 400; line-height: 1.25; transition: color 0.25s ease; }
.vs-ranking-time { color: var(--vs-muted); font-size: 0.78rem; }
.vs-ranking-item a:hover .vs-ranking-title { color: var(--vs-hot); }

/* 8. Agenda (a programme on a tinted band)
   ========================================================================== */

/* Cassis band: the tokens are switched to light-on-cassis inside */
.vs-band {
    --vs-ink: #f5ede6;
    --vs-muted: rgb(245 237 230 / 0.7);
    --vs-line: rgb(245 237 230 / 0.18);
    --vs-hot: #ff6a45;
    --vs-hot-big: #ff5c34;
    background: var(--vs-cassis);
    color: var(--vs-ink);
}

[data-scheme="dark"] .vs-band { background: #3b2230; }

.vs-agenda { margin-top: 72px; padding-block: 64px 72px; }

@media (min-width: 1024px) {
    .vs-agenda { margin-top: 96px; padding-block: 80px 88px; }
}

.vs-agenda + .vs-section { padding-top: 72px; }
.vs-agenda-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--vs-line); }
.vs-agenda-item { border-top: 1px solid var(--vs-line); }

.vs-agenda-link {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
}

.vs-agenda-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }

.vs-agenda-day {
    color: var(--vs-hot-big);
    font-family: var(--vs-font-heading);
    font-size: 2.7rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.vs-agenda-month { margin-top: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-agenda-media { display: none; }
.vs-agenda-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vs-agenda-tag { color: var(--vs-hot); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-agenda-title { font-family: var(--vs-font-heading); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 400; line-height: 1.15; }
.vs-agenda-place { color: var(--vs-muted); font-size: 0.9rem; }

.vs-agenda-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--vs-line);
    border-radius: 50%;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--vs-ease);
}

.vs-agenda-go .vs-icon { width: 15px; height: 15px; }
.vs-agenda-link:hover .vs-agenda-title { color: var(--vs-hot); }
.vs-agenda-link:hover .vs-agenda-go { border-color: var(--vs-topaze); background: var(--vs-topaze); color: var(--vs-night); transform: translateX(4px); }

@media (min-width: 760px) {
    .vs-agenda-link { grid-template-columns: 120px 200px minmax(0, 1fr) 48px; gap: 28px; padding: 26px 0; }
    .vs-agenda-day { font-size: 3.6rem; }
    .vs-agenda-media { display: block; aspect-ratio: 3 / 2; }
    .vs-agenda-go { width: 48px; height: 48px; }
}

/* 9. Cards & grids
   ========================================================================== */

.vs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }

@media (min-width: 700px) {
    .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 28px; }
    /* Two columns: first and last story of every page of 8 span the row */
    .vs-journal > .vs-post:nth-child(8n + 1),
    .vs-journal > .vs-post:nth-child(8n + 8) { grid-column: span 2; }
}

@media (min-width: 1100px) {
    .vs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 32px; }
    /* Three columns: only the first story of every page of 8 spans two columns (8 posts = 3 full rows) */
    .vs-journal > .vs-post:nth-child(8n + 8) { grid-column: auto; }
}

.vs-post { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vs-post[hidden] { display: none; }
.vs-post-media { aspect-ratio: 4 / 3; }
.vs-post:hover .vs-post-media img { transform: scale(1.05); }
.vs-post-body { display: flex; flex-direction: column; gap: 12px; }
.vs-post-title { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.15; }
.vs-post-excerpt { color: var(--vs-muted); font-size: 0.95rem; line-height: 1.65; }

/* Wide story: image and text side by side */
@media (min-width: 700px) {
    .vs-journal > .vs-post:nth-child(8n + 1),
    .vs-journal > .vs-post:nth-child(8n + 8) {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: center;
        gap: 32px;
    }

    .vs-journal > .vs-post:nth-child(8n + 1) .vs-post-media,
    .vs-journal > .vs-post:nth-child(8n + 8) .vs-post-media { aspect-ratio: 4 / 3; }

    .vs-journal > .vs-post:nth-child(8n + 1) .vs-post-title,
    .vs-journal > .vs-post:nth-child(8n + 8) .vs-post-title { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.06; }
}

@media (min-width: 1100px) {
    .vs-journal > .vs-post:nth-child(8n + 8) { display: flex; }
    .vs-journal > .vs-post:nth-child(8n + 8) .vs-post-title { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.15; }
}

/* Last story widened by main.js to complete the last row */
@media (min-width: 700px) {
    .vs-journal > .vs-post.vs-fill-2,
    .vs-journal > .vs-post.vs-fill-3 {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        align-items: center;
        gap: 32px;
    }

    .vs-journal > .vs-post.vs-fill-2 { grid-column: span 2; }
    .vs-journal > .vs-post.vs-fill-3 { grid-column: span 3; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .vs-journal > .vs-post.vs-fill-2 .vs-post-title,
    .vs-journal > .vs-post.vs-fill-3 .vs-post-title { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.06; }
}

.vs-lock {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: var(--vs-night);
    color: var(--vs-paper);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vs-lock .vs-icon { width: 12px; height: 12px; color: var(--vs-topaze); }

.vs-empty { color: var(--vs-muted); }

/* Pagination & load more */
.vs-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 56px; }
.vs-pagination[hidden] { display: none; }
.vs-page-number { color: var(--vs-muted); font-size: 0.85rem; }
.vs-load-more-wrap { display: flex; justify-content: center; margin-top: 64px; }
.vs-load-more[hidden] { display: none; }
.vs-load-more.is-loading { opacity: 0.6; pointer-events: none; }

/* 10. Quote (inverse band)
   ========================================================================== */

.vs-quote {
    margin-top: 96px;
    padding-block: 80px;
    background: var(--vs-inverse-bg);
    color: var(--vs-inverse-ink);
    text-align: center;
}

.vs-quote-inner { position: relative; max-width: 1040px; margin-block: 0; }

.vs-quote-mark { display: block; width: 72px; height: 3px; margin: 0 auto; background: var(--vs-horizon); }

.vs-quote-text { margin: 32px 0 0; }

.vs-quote-text p {
    font-family: var(--vs-font-display);
    font-size: clamp(2.2rem, 5vw, 3.9rem);
    font-style: italic;
    line-height: 1.1;
    text-wrap: balance;
}

.vs-quote-cite { margin-top: 26px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-quote-cite a { color: var(--vs-topaze); }
[data-scheme="dark"] .vs-quote-cite a { color: #b8381a; }
.vs-quote-cite a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vs-quote + .vs-section { padding-top: 80px; }

/* 11. Covers (tag and author pages)
   ========================================================================== */

.vs-cover { padding-top: 40px; }

.vs-cover-inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    overflow: hidden;
    background: linear-gradient(20deg, #351e28 30%, #b8325a 68%, #ff5c34 90%, #ffb45c 112%);
    color: var(--vs-paper);
    isolation: isolate;
}

@media (min-width: 1024px) {
    .vs-cover-inner { min-height: 480px; }
    .vs-cover-inner:not(.has-image) { min-height: 380px; }
}

.vs-cover-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }

.vs-cover-inner.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgb(26 14 20 / 0.88) 0%, rgb(26 14 20 / 0.4) 45%, rgb(26 14 20 / 0.08) 75%),
        linear-gradient(to right, rgb(26 14 20 / 0.45) 0%, rgb(26 14 20 / 0) 60%);
}

/* The sunset line closes every cover */
.vs-cover-inner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--vs-horizon); }

/* No image: the name as a giant outline over the sunset */
.vs-cover-watermark {
    position: absolute;
    right: -0.04em;
    top: -0.12em;
    z-index: -1;
    font-family: var(--vs-font-display);
    font-size: clamp(8rem, 24vw, 21rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgb(245 237 230 / 0.35);
    pointer-events: none;
    user-select: none;
}

.vs-cover-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 760px; padding: 28px 22px 34px; }

@media (min-width: 1024px) {
    .vs-cover-body { padding: 56px; }
}

.vs-cover-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--vs-topaze);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vs-cover-kicker::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.vs-cover-title { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.03em; }
.vs-cover-desc { max-width: 560px; font-family: var(--vs-font-display); font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-style: italic; line-height: 1.55; opacity: 0.9; }
.vs-cover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; font-size: 0.85rem; }
.vs-cover-meta > span:not(.vs-cover-pill) { opacity: 0.85; white-space: nowrap; }
.vs-cover-pill { padding: 6px 12px; background: var(--vs-topaze); color: var(--vs-night); font-weight: 600; }
.vs-cover-link { color: var(--vs-topaze); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.vs-cover .vs-cover-avatar {
    width: 96px;
    height: 96px;
    margin: 0 0 6px;
    border: 3px solid var(--vs-topaze);
    font-size: 2rem;
}

.vs-cover-author .vs-cover-title { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
.vs-cover-social { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-cover-social:empty { display: none; }

.vs-cover-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgb(245 237 230 / 0.35);
    border-radius: 50%;
}

.vs-cover-social a:hover { border-color: var(--vs-topaze); color: var(--vs-topaze); }
.vs-cover-social .vs-icon { width: 16px; height: 16px; }

.vs-topics {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.vs-topics::-webkit-scrollbar { display: none; }

.vs-topic {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    min-height: 42px;
    padding: 6px 8px 6px 14px;
    border: 1px solid var(--vs-line);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.vs-topic:hover { border-color: var(--vs-hot); color: var(--vs-hot); }

.vs-topic-count {
    min-width: 24px;
    padding: 2px 7px;
    background: var(--vs-line);
    font-size: 0.7rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.vs-topic.nav-current { border-color: var(--vs-ink); background: var(--vs-ink); color: var(--vs-bg); }
.vs-topic.nav-current .vs-topic-count { background: rgb(128 128 128 / 0.3); }
.vs-topic-author { padding-left: 5px; }
.vs-topics .vs-topic-avatar { width: 30px; height: 30px; margin: 0; }

.vs-cover + .vs-journal-section { padding-top: 56px; }

/* 12. Article
   ========================================================================== */

.vs-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; pointer-events: none; }
.vs-progress-bar { display: block; height: 100%; background: var(--vs-horizon); transform: scaleX(0); transform-origin: left; }

.vs-article-head { padding-top: 64px; padding-bottom: 40px; text-align: center; }

@media (min-width: 1024px) {
    .vs-article-head { padding-top: 90px; }
}

.vs-article-head .vs-tags { justify-content: center; margin-bottom: 22px; }

.vs-article-title {
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.vs-article-excerpt {
    max-width: 640px;
    margin: 22px auto 0;
    color: var(--vs-muted);
    font-family: var(--vs-font-display);
    font-size: clamp(1.35rem, 2.3vw, 1.65rem);
    font-style: italic;
    line-height: 1.4;
}

.vs-article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--vs-line);
    font-size: 0.88rem;
}

.vs-avatars { display: flex; }
.vs-avatars .vs-avatar { width: 40px; height: 40px; margin-right: 0; border: 2px solid var(--vs-bg); }
.vs-avatars .vs-avatar + .vs-avatar { margin-left: -12px; }
.vs-article-by em { font-style: normal; font-weight: 600; }
.vs-article-by a:hover { color: var(--vs-hot); }
.vs-article-byline .vs-meta::before { content: "·"; margin-right: 14px; }

.vs-article-image { margin: 0 auto; }
.vs-article-image img { width: 100%; }

.vs-article-image figcaption,
.vs-content figcaption { margin-top: 12px; padding-inline: var(--vs-gutter); color: var(--vs-muted); font-size: 0.8rem; text-align: center; }
.vs-article-image figcaption a, .vs-content figcaption a { text-decoration: underline; }

.vs-article-body { position: relative; padding-top: 56px; }

/* Table of contents */
.vs-toc { width: 100%; max-width: calc(var(--vs-content) + 2 * var(--vs-gutter)); margin: 0 auto 40px; padding-inline: var(--vs-gutter); }
.vs-toc-box { border-top: 3px solid var(--vs-ink); border-bottom: 1px solid var(--vs-line); }
.vs-toc-summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; user-select: none; }
.vs-toc-summary::-webkit-details-marker { display: none; }

.vs-toc-summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 1.5px solid var(--vs-muted);
    border-bottom: 1.5px solid var(--vs-muted);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.vs-toc-box[open] .vs-toc-summary::after { transform: translateY(2px) rotate(-135deg); }
.vs-toc-title { color: var(--vs-hot); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-toc-count { padding: 2px 8px; background: var(--vs-line); color: var(--vs-muted); font-size: 0.72rem; }
.vs-toc-box nav { padding: 0 0 16px; }
.vs-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.vs-toc-list li { counter-increment: toc; }

.vs-toc-list a {
    display: flex;
    gap: 12px;
    padding: 7px 0 7px 14px;
    border-left: 1px solid var(--vs-line);
    color: var(--vs-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.vs-toc-list a::before { content: counter(toc); flex-shrink: 0; min-width: 1.2em; font-family: var(--vs-font-display); font-size: 1.25rem; font-style: italic; line-height: 1.3; }
.vs-toc-list a:hover { color: var(--vs-ink); }
.vs-toc-list a.is-read { border-left-color: var(--vs-topaze); }
.vs-toc-list a.is-active { border-left: 3px solid var(--vs-topaze); color: var(--vs-ink); }
.vs-toc-list a.is-read::before, .vs-toc-list a.is-active::before { color: var(--vs-hot); }

@media (min-width: 1500px) {
    .vs-toc { position: absolute; top: 56px; bottom: 0; left: calc(50% - var(--vs-content) / 2 - 100px - 250px); width: 220px; margin: 0; padding: 0; }
    .vs-toc-box { position: sticky; top: calc(var(--vs-bar-h) + 40px); border-bottom: 0; }
    .vs-toc-summary { cursor: default; pointer-events: none; }
    .vs-toc-summary::after { display: none; }
}

.vs-article-foot { display: flex; flex-direction: column; gap: 28px; padding-top: 56px; padding-bottom: 24px; }
.vs-article-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.vs-share { display: flex; align-items: center; gap: 4px; padding-block: 16px; border-block: 1px solid var(--vs-line); }
.vs-share-label { margin-right: 10px; color: var(--vs-hot); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-share .vs-icon-btn { border-color: var(--vs-line); }
.vs-share .vs-icon { width: 16px; height: 16px; }
.vs-copy.is-copied { border-color: var(--vs-topaze); color: var(--vs-hot); }

.vs-author-card { display: flex; gap: 18px; padding-top: 24px; border-top: 3px solid var(--vs-ink); }
.vs-author-card .vs-avatar-lg { width: 68px; height: 68px; margin: 0; }
.vs-author-card-body { display: flex; flex-direction: column; gap: 8px; }
.vs-author-card-name { font-family: var(--vs-font-heading); font-size: 1.45rem; font-weight: 400; }
.vs-author-card-name a:hover { color: var(--vs-hot); }
.vs-author-card-bio { color: var(--vs-muted); font-size: 0.95rem; }

.vs-comments { padding-block: 32px; }
.vs-related { margin-top: 24px; }

/* Social links */
.vs-social { display: flex; flex-wrap: wrap; gap: 6px; }

.vs-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--vs-line);
    border-radius: 50%;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.vs-social a:hover { border-color: var(--vs-hot); color: var(--vs-hot); }
.vs-social .vs-icon { width: 16px; height: 16px; }
.vs-social-sm a { width: 32px; height: 32px; }
.vs-social-sm .vs-icon { width: 14px; height: 14px; }
.vs-social-fallback { font-size: 0.65rem; font-weight: 600; }

/* 13. Content (Koenig editor)
   ========================================================================== */

.vs-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--vs-gutter), 1fr)
        [wide-start] minmax(0, 170px)
        [main-start] min(var(--vs-content), calc(100% - 2 * var(--vs-gutter)))
        [main-end] minmax(0, 170px)
        [wide-end] minmax(var(--vs-gutter), 1fr)
        [full-end];
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.vs-content-wide {
    grid-template-columns:
        [full-start] minmax(var(--vs-gutter), 1fr)
        [wide-start main-start] min(calc(var(--vs-wide) + 200px), calc(100% - 2 * var(--vs-gutter)))
        [main-end wide-end] minmax(var(--vs-gutter), 1fr)
        [full-end];
}

.vs-content > * { grid-column: main; }
.vs-content > .kg-width-wide { grid-column: wide; }
.vs-content > .kg-width-full { grid-column: full; }
.vs-content > * + * { margin-top: 1.5em; margin-bottom: 0; }
.vs-content > :first-child { margin-top: 0; }

/* Topaze drop cap on posts */
.vs-article:not(.vs-page) .vs-content > p:first-child::first-letter {
    float: left;
    margin: 0.06em 0.1em 0 0;
    color: var(--vs-hot-big);
    font-family: var(--vs-font-heading);
    font-size: 4.4em;
    font-weight: 400;
    line-height: 0.8;
}

.vs-content > h2 { margin-top: 2em; font-size: 2.2rem; }
.vs-content > h3 { margin-top: 1.75em; font-size: 1.65rem; }
.vs-content > h4 { margin-top: 1.5em; font-size: 1.3rem; }
.vs-content > h2 + *, .vs-content > h3 + *, .vs-content > h4 + * { margin-top: 0.75em; }
.vs-content strong { font-weight: 600; }

.vs-content a { color: var(--vs-hot); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vs-content a:hover { color: var(--vs-ink); }
.vs-content ul, .vs-content ol { padding-left: 1.4em; }
.vs-content li + li { margin-top: 0.4em; }
.vs-content li::marker { color: var(--vs-hot); }

.vs-content blockquote:not([class]) {
    margin-inline: 0;
    padding-left: 26px;
    border-left: 3px solid var(--vs-topaze);
    font-family: var(--vs-font-display);
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1.45;
}

.vs-content blockquote.kg-blockquote-alt {
    margin-inline: 0;
    padding: 0.5em 1em;
    font-family: var(--vs-font-display);
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1.25;
    text-align: center;
}

.vs-content blockquote.kg-blockquote-alt::before { content: "\201C"; display: block; height: 0.5em; color: var(--vs-topaze); font-size: 2.2em; line-height: 0.9; }

/* Separator: a short sunset line */
.vs-content hr {
    width: 120px;
    height: 3px;
    margin: 3em auto;
    border: 0;
    background: var(--vs-horizon);
}

.vs-content code:not(pre code) { padding: 0.15em 0.4em; background: var(--vs-line); font-size: 0.88em; }
.vs-content pre { overflow-x: auto; padding: 20px; background: var(--vs-night); color: var(--vs-paper); font-size: 0.9rem; line-height: 1.6; }
.vs-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.vs-content th, .vs-content td { padding: 10px 14px; border-bottom: 1px solid var(--vs-line); text-align: left; }
.vs-content th { border-bottom: 2px solid var(--vs-ink); }
.vs-content figure { margin-inline: 0; }
.vs-content .kg-bookmark-container { color: var(--vs-ink); text-decoration: none; }
.vs-content .kg-btn-accent { color: #fff; text-decoration: none; }

.vs-content > .kg-width-full + .kg-width-full:not(.kg-card-hascaption + .kg-width-full) { margin-top: 0; }
.vs-page .vs-content { padding-bottom: 72px; }
.vs-page .vs-article-image { margin-bottom: 56px; }
.vs-page:not(:has(.vs-article-head)) .vs-content > .kg-width-full:first-child { margin-top: 0; }
.vs-page .vs-content > .kg-width-full:last-child:not(.kg-card-hascaption) { margin-bottom: -72px; }

/* 14. Newsletter (cassis block with a setting sun)
   ========================================================================== */

.vs-news { margin-top: 110px; overflow: hidden; }

.vs-news-inner {
    position: relative;
    display: grid;
    gap: 32px;
    padding: 64px 0;
    isolation: isolate;
}

/* Copy and form stay on the left, the sun sets on the right */
.vs-news-copy, .vs-news .vs-form { max-width: 620px; }

@media (min-width: 900px) {
    .vs-news-inner { gap: 36px; padding: 88px 0; }
}

/* The sun: a gradient disc cut by horizontal stripes, half set behind the bottom edge */
.vs-news-sun {
    position: absolute;
    right: -60px;
    bottom: -190px;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffb45c 10%, #ff5c34 45%, #b8325a 85%);
    -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
    mask-image: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 34px);
    opacity: 0.9;
}

@media (max-width: 899px) {
    .vs-news-inner { padding-bottom: 150px; }
    .vs-news-sun { width: 260px; height: 260px; right: -40px; bottom: -140px; }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .vs-news-sun { width: 340px; height: 340px; right: -90px; bottom: -170px; }
}

.vs-news-label { color: var(--vs-topaze); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-news-title { margin: 14px 0 12px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.vs-news-text { max-width: 520px; color: rgb(245 237 230 / 0.78); line-height: 1.7; }
.vs-news .vs-form-row input { border-color: rgb(245 237 230 / 0.3); background: rgb(26 14 20 / 0.55); color: var(--vs-paper); }
.vs-news .vs-form-row input::placeholder { color: rgb(245 237 230 / 0.62); }
.vs-news .vs-btn { background: var(--vs-topaze); color: var(--vs-night); }
.vs-news .vs-btn:hover { background: var(--vs-paper); color: var(--vs-night); }
.vs-news .vs-form-success, .vs-news .vs-form-error { color: var(--vs-paper); }

/* 15. Footer
   ========================================================================== */

.vs-footer { margin-top: 110px; }
.vs-news + .vs-footer { margin-top: 0; }
.vs-footer::before { content: ""; display: block; height: 3px; background: var(--vs-horizon); }
.vs-footer > .vs-container { padding-top: 64px; }

.vs-footer-cols { display: grid; grid-template-columns: 1fr; gap: 40px; }

@media (min-width: 700px) {
    .vs-footer-cols { grid-template-columns: 1.6fr 1fr 1fr; }
}

.vs-footer-brand { font-family: var(--vs-font-display); font-size: 2.6rem; font-style: italic; line-height: 1; }
.vs-footer-desc { max-width: 380px; margin: 12px 0 22px; color: var(--vs-muted); font-family: var(--vs-font-display); font-style: italic; font-size: 1.3rem; line-height: 1.4; }

.vs-footer-heading {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--vs-ink);
    font-family: var(--vs-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vs-footer-menu { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vs-footer-menu a { font-family: var(--vs-font-heading); font-size: 1.15rem; }
.vs-footer-menu a:hover { color: var(--vs-hot); }

/* The site title filled with the sunset (sized to fit by main.js) */
.vs-footer-wordmark {
    margin-top: 80px;
    overflow: hidden;
    padding: 0 0.08em 0.06em;
    background: var(--vs-horizon);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--vs-font-display);
    font-size: 22vw;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

@media (min-width: 1340px) {
    .vs-footer-wordmark { font-size: 18rem; }
}

.vs-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--vs-line);
    color: var(--vs-muted);
    font-size: 0.8rem;
}

.vs-footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* 16. Effects & misc
   ========================================================================== */

/* Masthead reveal and lines that draw themselves (armed by main.js) */
.vs-masthead.is-home .vs-wordmark-inner { animation: vs-reveal 1.1s var(--vs-ease) both; }
.vs-draw { transform-origin: left; animation: vs-draw 1.4s var(--vs-ease) both; }

@keyframes vs-reveal {
    from { clip-path: inset(0 0 100% 0); transform: translateY(30px); }
    to { clip-path: inset(0 0 0 0); transform: none; }
}

@keyframes vs-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.vs-error { padding-block: 96px 24px; text-align: center; }
.vs-error-code { color: var(--vs-hot-big); font-family: var(--vs-font-display); font-size: clamp(7rem, 22vw, 13rem); font-style: italic; font-weight: 400; line-height: 1; }
.vs-error-title { margin: 16px 0 12px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.vs-error .vs-btn { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* No scrolling band: the headlines can be scrolled by hand */
    .vs-ticker-track { animation: none; }
    .vs-ticker-window { overflow-x: auto; }
    .vs-ticker-copy { display: none; }
    .vs-masthead.is-home .vs-wordmark-inner, .vs-draw { animation: none; }
}
