/* ==========================================================================
   Salvia — SamaDesign
   1. Tokens   2. Base   3. Layout   4. Header   5. Buttons & forms
   6. Hero     7. Mosaic 8. Home sections  9. Covers (tag, author)
   10. Article 11. Content (Koenig)  12. Newsletter  13. Footer  14. Misc
   ========================================================================== */

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

:root {
    --sv-bg: #f3f2ec;
    --sv-surface: #ffffff;
    --sv-ink: #1f241b;
    --sv-muted: #5a6550;
    --sv-line: rgb(31 36 27 / 0.13);
    --sv-sage: #aeb8a0;
    --sv-sage-ink: #56633f;
    --sv-blue: #d7efff;
    --sv-blue-ink: #1d3340;
    --sv-btn: #1f241b;
    --sv-btn-ink: #f3f2ec;
    --sv-accent: var(--ghost-accent-color, #56633f);
    --sv-accent-text: var(--sv-accent);
    --sv-tile-bg: #2b2f27;

    --sv-font-heading: var(--gh-font-heading, "Fraunces", Georgia, serif);
    --sv-font-body: var(--gh-font-body, "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif);

    --sv-gutter: 16px;
    --sv-container: 1320px;
    --sv-content: 700px;
    --sv-wide: 1000px;
    --sv-gap: 6px;
    --sv-radius: 18px;
    --sv-radius-lg: 28px;
    --sv-header-h: 76px;
    --sv-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    color-scheme: light;
}

:root[data-scheme="dark"] {
    --sv-bg: #141812;
    --sv-surface: #1e241b;
    --sv-ink: #eceee6;
    --sv-muted: #a7b29a;
    --sv-line: rgb(236 239 230 / 0.13);
    --sv-sage: #7f8b70;
    --sv-sage-ink: #c3cdb6;
    --sv-blue: #1c2c35;
    --sv-blue-ink: #d7efff;
    --sv-btn: #c3cdb6;
    --sv-btn-ink: #141812;
    --sv-accent-text: color-mix(in srgb, var(--sv-accent) 55%, #ffffff);

    color-scheme: dark;
}

@media (min-width: 640px) {
    :root { --sv-gutter: 24px; }
}

@media (min-width: 1024px) {
    :root { --sv-gutter: 32px; --sv-header-h: 88px; }
}

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

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--sv-header-h) + 16px);
}

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

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

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(--sv-sage-ink);
    outline-offset: 3px;
    border-radius: 4px;
}

.sv-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;
}

.sv-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--sv-btn);
    color: var(--sv-btn-ink);
    font-weight: 600;
}

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

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

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

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

.sv-narrow, .sv-wide, .sv-full {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--sv-gutter);
}

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

.sv-section { padding-block: 56px; }

@media (min-width: 1024px) {
    .sv-section { padding-block: 80px; }
}

.sv-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-bottom: 28px;
}

.sv-section-title {
    font-weight: 300;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    letter-spacing: -0.02em;
}

.sv-section-title em { color: var(--sv-sage-ink); }

.sv-rule { flex: 1 1 80px; height: 1px; background: var(--sv-line); }

.sv-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sv-muted);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sv-kicker::before { content: ""; width: 40px; height: 1px; background: currentColor; }

/* The arch: signature shape of Salvia */
.sv-arch {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 999px 999px var(--sv-radius-lg) var(--sv-radius-lg);
    background: var(--sv-sage);
}

.sv-arch img { width: 100%; height: 100%; object-fit: cover; }

/* 4. Header
   ========================================================================== */

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

/* backdrop-filter makes the header the containing block of fixed children:
   desktop only, where the nav is not a fixed panel */
@media (min-width: 960px) {
    .sv-header {
        background: color-mix(in srgb, var(--sv-bg) 88%, transparent);
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
    }
}

.sv-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--sv-header-h);
}

.sv-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sv-arch-mark { flex-shrink: 0; }
.sv-arch-mark-fill { fill: var(--sv-sage); }

.sv-brand-title {
    font-family: var(--sv-font-heading);
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.sv-logo { max-height: 40px; width: auto; }
.sv-logo-dark { display: none; }
[data-scheme="dark"] .sv-logo-light { display: none; }
[data-scheme="dark"] .sv-logo-dark { display: block; }

.sv-nav { flex-grow: 1; }

.sv-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.sv-menu a,
.sv-sub-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.25s ease, background-color 0.2s ease;
}

/* Hovering the menu dims the other items, as in the reference design */
@media (hover: hover) and (min-width: 960px) {
    .sv-menu:hover > li > a,
    .sv-menu:hover > li > .sv-sub-toggle { opacity: 0.5; }
    .sv-menu > li:hover > a,
    .sv-menu > li:hover > .sv-sub-toggle { opacity: 1; }
}

.sv-menu .is-current > a { font-weight: 600; }

.sv-sub-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

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

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

.sv-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.sv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--sv-line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sv-icon-btn:hover { background: var(--sv-surface); border-color: var(--sv-sage); }
.sv-icon-btn .sv-icon { width: 18px; height: 18px; }

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

.sv-burger { display: none; flex-direction: column; gap: 6px; }

.sv-burger span {
    display: block;
    width: 18px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.sv-burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.sv-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

@media (min-width: 960px) {
    .sv-submenu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        min-width: 210px;
        border: 1px solid var(--sv-line);
        border-radius: var(--sv-radius);
        background: var(--sv-surface);
        box-shadow: 0 20px 40px rgb(20 26 16 / 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    }

    .sv-submenu.is-open { opacity: 1; visibility: visible; transform: none; }
    .sv-submenu a { display: flex; width: 100%; border-radius: 12px; }
    .sv-submenu a:hover { background: var(--sv-bg); }
}

@media (max-width: 959px) {
    .sv-burger { display: inline-flex; }
    .sv-actions .sv-hide-sm { display: none; } /* must beat .sv-btn display, declared later */

    .sv-nav {
        position: fixed;
        inset: var(--sv-header-h) 0 0 0;
        z-index: 49;
        padding: 16px var(--sv-gutter) 32px;
        overflow-y: auto;
        background: var(--sv-bg);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease, visibility 0.2s;
    }

    .sv-nav.is-open { visibility: visible; opacity: 1; }
    .sv-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .sv-menu > li { border-bottom: 1px solid var(--sv-line); }

    .sv-menu a,
    .sv-sub-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 14px 4px;
        border-radius: 0;
        font-family: var(--sv-font-heading);
        font-size: 1.5rem;
        font-weight: 300;
    }

    .sv-submenu { display: none; padding: 0 0 12px 14px; }
    .sv-submenu.is-open { display: block; }
    .sv-submenu a { padding: 8px 4px; font-size: 1.15rem; }

    .sv-nav-members { display: flex; gap: 10px; margin-top: 24px; }
    .sv-nav-members .sv-btn { flex: 1; }

    body.sv-nav-open { overflow: hidden; }
}

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

.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--sv-btn);
    color: var(--sv-btn-ink);
    font-family: var(--sv-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.sv-btn:hover { opacity: 0.88; }

.sv-btn-ghost {
    border-color: var(--sv-line);
    background: transparent;
    color: var(--sv-ink);
}

.sv-btn-ghost:hover { background: var(--sv-surface); opacity: 1; }

.sv-form-row {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: var(--sv-surface);
}

.sv-form-row input {
    flex-grow: 1;
    min-width: 0;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: var(--sv-ink);
    font: 0.95rem var(--sv-font-body);
}

.sv-form-row input:focus { outline: none; }
.sv-form-row:focus-within { outline: 2px solid var(--sv-sage-ink); outline-offset: 2px; }
.sv-form-row .sv-btn { min-height: 48px; padding: 0 24px; }

.sv-form-loading,
.sv-form-success,
.sv-form-error { display: none; }

.sv-form .sv-btn { position: relative; }
.sv-form.loading .sv-form-label { visibility: hidden; }

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

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

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

.sv-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    font-size: 0.88rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sv-chip:hover { background: var(--sv-btn); color: var(--sv-btn-ink); border-color: transparent; }

/* 6. Hero
   ========================================================================== */

.sv-hero-inner {
    display: grid;
    gap: 48px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 64px;
}

@media (min-width: 1024px) {
    .sv-hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 64px;
        padding-top: 72px;
        padding-bottom: 96px;
    }
}

.sv-hero-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.sv-hero-title {
    margin: 24px 0 26px;
    font-weight: 300;
    font-size: clamp(2.9rem, 6.2vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.sv-hero-desc {
    max-width: 470px;
    margin-bottom: 32px;
    color: var(--sv-muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.sv-pill-form { width: 100%; max-width: 480px; }

.sv-byline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    color: var(--sv-muted);
    font-size: 0.9rem;
}

.sv-byline strong { color: var(--sv-ink); font-weight: 600; }
.sv-byline:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.sv-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    width: 46px;
    height: 46px;
    border: 3px solid var(--sv-surface);
    border-radius: 50%;
    background: var(--sv-sage);
    color: var(--sv-ink);
}

.sv-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Initial-only placeholder when there is no profile image */
.sv-avatar span { width: 1ch; overflow: hidden; font-weight: 600; white-space: nowrap; }

.sv-hero-figure { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }

.sv-hero-figure .sv-arch { height: clamp(420px, 60vw, 640px); }

.sv-hero-figure .sv-arch img {
    animation: sv-drift 22s ease-in-out infinite;
    transform-origin: 60% 60%;
}

.sv-hero-caption {
    position: absolute;
    left: 12px;
    bottom: 48px;
    max-width: calc(100% - 24px);
    padding: 14px 18px;
    border: 1px solid var(--sv-line);
    border-radius: 16px;
    background: var(--sv-surface);
    box-shadow: 0 20px 40px rgb(20 26 16 / 0.14);
    font-family: var(--sv-font-heading);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.4;
}

@media (min-width: 1200px) {
    .sv-hero-caption { left: -26px; }
}

.sv-seal {
    position: absolute;
    top: 24px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: var(--sv-bg);
    animation: sv-spin 24s linear infinite;
}

@media (min-width: 1200px) {
    .sv-seal { right: -30px; }
}

.sv-seal text {
    fill: var(--sv-ink);
    font-family: var(--sv-font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes sv-drift {
    0%, 100% { transform: scale(1.04); }
    50% { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* 7. Mosaic (rows of 3, then 2, then 3: positions 4 and 5 of each group of 8 are large)
   ========================================================================== */

.sv-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.sv-filter {
    padding: 9px 18px;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    font-size: 0.88rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sv-filter:hover { background: var(--sv-surface); }
.sv-filter.is-current { border-color: transparent; background: var(--sv-btn); color: var(--sv-btn-ink); }

.sv-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sv-gap);
}

@media (min-width: 860px) {
    .sv-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .sv-mosaic > .sv-tile { grid-column: span 2; }
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 4),
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 5) { grid-column: span 3; }
}

.sv-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-width: 0;
    min-height: 420px;
    overflow: hidden;
    background: var(--sv-tile-bg);
    color: #ffffff;
}

@media (min-width: 860px) {
    .sv-mosaic > .sv-tile { min-height: clamp(380px, 32vw, 560px); }
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 4),
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 5) { min-height: clamp(420px, 40vw, 680px); }
}

.sv-tile.no-image {
    background:
        radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--sv-sage) 70%, transparent), transparent 60%),
        #3b4433;
}

.sv-tile-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--sv-ease);
}

.sv-tile:hover .sv-tile-image { transform: scale(1.06); }

.sv-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Darker at the bottom for the caption, slightly darker at the top for the author line */
    background: linear-gradient(180deg, rgb(15 18 13 / 0.3) 0%, rgb(15 18 13 / 0.04) 22%, rgb(15 18 13 / 0.05) 35%, rgb(15 18 13 / 0.66) 100%);
    pointer-events: none;
}

.sv-tile-by {
    position: absolute;
    top: 28px;
    left: 32px;
    z-index: 2;
    display: none;
    font-family: var(--sv-font-heading);
    font-size: 1.15rem;
    font-style: italic;
    text-shadow: 0 1px 12px rgb(15 18 13 / 0.45);
}

.sv-tile-cap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 28px 40px;
    text-align: center;
}

.sv-tile-meta {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.92;
}

.sv-tile-title {
    margin-top: 14px;
    font-weight: 300;
    font-size: clamp(1.7rem, 2.7vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

/* Whole tile clickable through the title link */
.sv-tile-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }

.sv-tile-title span {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.7s var(--sv-ease);
}

.sv-tile:hover .sv-tile-title span,
.sv-tile-title a:focus-visible span { background-size: 100% 1px; }

@media (min-width: 860px) {
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 4) .sv-tile-by,
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 5) .sv-tile-by { display: block; }

    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 4) .sv-tile-cap,
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 5) .sv-tile-cap {
        align-items: flex-start;
        padding: 0 44px 50px;
        text-align: left;
    }

    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 4) .sv-tile-title,
    .sv-mosaic:not(.sv-mosaic-3) > .sv-tile:nth-child(8n + 5) .sv-tile-title {
        max-width: 620px;
        font-size: clamp(2rem, 3.4vw, 3.3rem);
    }
}

.sv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.92);
    color: #1f241b;
    font-size: 0.74rem;
    font-weight: 600;
}

.sv-badge + .sv-badge { margin-top: -8px; }
.sv-badge-lock { background: #1f241b; color: #eceee6; }
.sv-badge .sv-icon { width: 12px; height: 12px; }

.sv-empty { padding: 40px var(--sv-gutter); color: var(--sv-muted); }

.sv-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--sv-ease), transform 0.9s var(--sv-ease); }
.sv-reveal.is-in { opacity: 1; transform: none; }

/* Pagination & load more */
.sv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.sv-pagination[hidden] { display: none; }
.sv-page-number { color: var(--sv-muted); font-size: 0.9rem; }

.sv-load-more-wrap { display: flex; justify-content: center; margin-top: 56px; }

.sv-load-more {
    min-height: 54px;
    padding: 0 30px;
    border: 1px solid var(--sv-ink);
    background: transparent;
    color: var(--sv-ink);
    font-size: 0.95rem;
}

.sv-load-more:hover { background: var(--sv-btn); color: var(--sv-btn-ink); opacity: 1; }
.sv-load-more[hidden] { display: none; }
.sv-load-more.is-loading { opacity: 0.6; pointer-events: none; }

/* 8. Home sections
   ========================================================================== */

/* Quote of the week */
.sv-quote { padding-block: 72px; }

.sv-quote-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.sv-quote-mark { display: none; }

.sv-quote .sv-label {
    margin-bottom: 22px;
    color: var(--sv-muted);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sv-quote-text {
    margin: 0;
    font-family: var(--sv-font-heading);
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.sv-quote-text p::before { content: "\201C"; }
.sv-quote-text p::after { content: "\201D"; }

.sv-quote-cite {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 26px;
    color: var(--sv-muted);
    font-size: 0.9rem;
}

.sv-quote-author { color: var(--sv-ink); font-weight: 600; }
.sv-quote-source a { text-decoration: underline; text-underline-offset: 3px; }

/* Topics as arches */
.sv-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.sv-cat { display: flex; flex-direction: column; gap: 20px; }

.sv-cat-arch { height: clamp(340px, 34vw, 440px); }

.sv-cat-arch img { transition: transform 1.6s var(--sv-ease); }
.sv-cat:hover .sv-cat-arch img { transform: scale(1.06); }

.sv-cat-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255 / 0.85);
    font-family: var(--sv-font-heading);
    font-size: 3rem;
    font-style: italic;
    font-weight: 300;
}

.sv-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 6px;
}

.sv-cat-name { display: block; font-family: var(--sv-font-heading); font-size: 1.9rem; }
.sv-cat-count { display: block; margin-top: 2px; color: var(--sv-muted); font-size: 0.88rem; }

.sv-cat-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 1px solid var(--sv-line);
    border-radius: 50%;
}

.sv-cat-go .sv-icon { transition: transform 0.5s var(--sv-ease); }
.sv-cat:hover .sv-cat-go .sv-icon { transform: translateX(4px) rotate(-45deg); }

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

.sv-cover { padding-top: 24px; }

@media (min-width: 1024px) {
    .sv-cover { padding-top: 40px; }
}

.sv-cover-inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--sv-radius-lg);
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--sv-blue) 35%, transparent) 0%, transparent 55%),
        #56633f;
    color: #ffffff;
    isolation: isolate;
}

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

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

.sv-cover-inner.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgb(15 18 13 / 0.8) 0%, rgb(15 18 13 / 0.3) 45%, rgb(15 18 13 / 0.05) 75%),
        linear-gradient(to right, rgb(15 18 13 / 0.4) 0%, rgb(15 18 13 / 0) 60%);
}

/* No image: the name as a giant outlined watermark */
.sv-cover-watermark {
    position: absolute;
    right: -0.04em;
    bottom: -0.2em;
    z-index: -1;
    font-family: var(--sv-font-heading);
    font-size: clamp(7rem, 22vw, 19rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.22);
    pointer-events: none;
    user-select: none;
}

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

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

.sv-cover-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

.sv-cover-kicker::before { content: ""; width: 40px; height: 1px; background: currentColor; }

.sv-cover-title {
    font-weight: 300;
    font-size: clamp(2.9rem, 8vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.sv-cover-desc { max-width: 560px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.55; opacity: 0.9; }

.sv-cover-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 6px;
    font-size: 0.88rem;
}

.sv-cover-meta > span:not(.sv-cover-pill) { opacity: 0.85; white-space: nowrap; }

.sv-cover-pill {
    padding: 6px 13px;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.14);
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sv-cover-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.sv-cover .sv-cover-avatar {
    width: 92px;
    height: 92px;
    margin-bottom: 6px;
    border: 3px solid rgb(255 255 255 / 0.9);
    background: rgb(255 255 255 / 0.2);
    color: #ffffff;
    font-size: 2rem;
}

.sv-cover-author .sv-cover-title { font-size: clamp(2.5rem, 6.5vw, 4.6rem); }

.sv-cover-social { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-cover-social:empty { display: none; }

.sv-cover-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 50%;
    background: rgb(255 255 255 / 0.14);
}

.sv-cover-social a:hover { background: #ffffff; color: #1f241b; }
.sv-cover-social .sv-icon { width: 16px; height: 16px; }

/* Topic / author switcher under the cover */
.sv-topics {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    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);
}

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

.sv-topic {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    min-height: 40px;
    padding: 6px 8px 6px 16px;
    border: 1px solid var(--sv-line);
    border-radius: 999px;
    background: var(--sv-surface);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: border-color 0.2s ease;
}

.sv-topic:hover { border-color: var(--sv-sage); }

.sv-topic-count {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--sv-bg);
    color: var(--sv-muted);
    font-size: 0.75rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.sv-topic.nav-current { border-color: transparent; background: var(--sv-btn); color: var(--sv-btn-ink); }
.sv-topic.nav-current .sv-topic-count { background: rgb(255 255 255 / 0.16); color: inherit; }
[data-scheme="dark"] .sv-topic.nav-current .sv-topic-count { background: rgb(0 0 0 / 0.14); }

.sv-topic-author { padding-left: 5px; }
.sv-topics .sv-topic-avatar { width: 28px; height: 28px; border: 0; font-size: 0.8rem; }

/* Tag/author pages: the mosaic follows the cover */
.sv-cover + .sv-mosaic-section { padding-top: 40px; }

/* 10. Article
   ========================================================================== */

.sv-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 3px;
    pointer-events: none;
}

.sv-progress-bar {
    display: block;
    height: 100%;
    background: var(--sv-sage-ink);
    transform: scaleX(0);
    transform-origin: left;
}

.sv-article-head { padding-top: 56px; padding-bottom: 36px; text-align: center; }

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

.sv-article-meta {
    margin-bottom: 22px;
    color: var(--sv-muted);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sv-article-meta a:hover { color: var(--sv-ink); }

.sv-article-title {
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.sv-article-excerpt {
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--sv-muted);
    font-size: clamp(1.1rem, 2vw, 1.28rem);
    line-height: 1.55;
}

.sv-article-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 30px;
    font-size: 0.92rem;
}

.sv-avatars { display: flex; }
.sv-avatars .sv-avatar { width: 40px; height: 40px; }
.sv-avatars .sv-avatar + .sv-avatar { margin-left: -12px; }

.sv-article-by em { font-family: var(--sv-font-heading); font-size: 1.08rem; }
.sv-article-by a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sv-meta { display: flex; align-items: center; color: var(--sv-muted); }
.sv-meta > * { white-space: nowrap; }
.sv-meta > * + *::before { content: "·"; margin-inline: 8px; }
.sv-article-byline .sv-meta::before { content: "·"; margin-right: 14px; }

/* The comment count is filled by Ghost JS and stays empty at 0 */
.sv-meta > .sv-meta-comments::before { content: none; }
.sv-count:not(:empty)::before { content: "·"; margin-inline: 8px; }

.sv-article-image { margin: 0 auto; }
.sv-article-image img { width: 100%; border-radius: var(--sv-radius-lg); }
.sv-full.sv-article-image img { border-radius: 0; }

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

.sv-article-image figcaption a,
.sv-content figcaption a { text-decoration: underline; }

.sv-article-body { position: relative; padding-top: 48px; }

/* Table of contents: collapsible box, moved to the left margin on large screens */
.sv-toc {
    width: 100%;
    max-width: calc(var(--sv-content) + 2 * var(--sv-gutter));
    margin: 0 auto 36px;
    padding-inline: var(--sv-gutter);
}

.sv-toc-box { border: 1px solid var(--sv-line); border-radius: var(--sv-radius); background: var(--sv-surface); }

.sv-toc-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sv-toc-summary::-webkit-details-marker { display: none; }

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

.sv-toc-box[open] .sv-toc-summary::after { transform: translateY(2px) rotate(-135deg); }

.sv-toc-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.sv-toc-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sv-bg);
    color: var(--sv-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.sv-toc-box nav { padding: 0 20px 16px; }

.sv-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.sv-toc-list li { counter-increment: toc; }

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

.sv-toc-list a::before {
    content: counter(toc, decimal-leading-zero);
    flex-shrink: 0;
    font-family: var(--sv-font-heading);
    font-style: italic;
    line-height: 1.5;
}

.sv-toc-list a:hover { color: var(--sv-ink); }
.sv-toc-list a.is-read { border-left-color: var(--sv-sage); }
.sv-toc-list a.is-read::before { color: var(--sv-sage-ink); }
.sv-toc-list a.is-active { border-left-color: var(--sv-sage-ink); color: var(--sv-ink); font-weight: 600; }
.sv-toc-list a.is-active::before { color: var(--sv-sage-ink); }

@media (min-width: 1500px) {
    .sv-toc {
        position: absolute;
        top: 48px;
        bottom: 0;
        left: calc(50% - var(--sv-content) / 2 - 100px - 250px);
        width: 220px;
        margin: 0;
        padding: 0;
    }

    .sv-toc-box {
        position: sticky;
        top: calc(var(--sv-header-h) + 32px);
        border: 0;
        background: none;
    }

    .sv-toc-summary { padding: 0 0 14px; cursor: default; pointer-events: none; }
    .sv-toc-summary::after { display: none; }
    .sv-toc-box nav { padding: 0; }
}

.sv-article-foot {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 24px;
}

.sv-article-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.sv-share {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-block: 18px;
    border-block: 1px solid var(--sv-line);
}

.sv-share-label {
    margin-right: 8px;
    color: var(--sv-muted);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sv-share .sv-icon { width: 17px; height: 17px; }
.sv-copy.is-copied { background: var(--sv-btn); color: var(--sv-btn-ink); }

.sv-author-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    border-radius: var(--sv-radius-lg);
    background: var(--sv-surface);
}

.sv-author-card .sv-avatar-lg { width: 68px; height: 68px; }
.sv-author-card-body { display: flex; flex-direction: column; gap: 8px; }
.sv-author-card-name { font-family: var(--sv-font-heading); font-size: 1.3rem; }
.sv-author-card-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sv-author-card-bio { color: var(--sv-muted); font-size: 0.95rem; }

.sv-comments { padding-block: 32px; }
.sv-related { border-top: 1px solid var(--sv-line); margin-top: 40px; }

/* Social links (footer, author card, sidebar-like blocks) */
.sv-social { display: flex; flex-wrap: wrap; gap: 6px; }

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

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

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

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

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

.sv-content > * { grid-column: main; }
.sv-content > .kg-width-wide { grid-column: wide; }
.sv-content > .kg-width-full { grid-column: full; }

.sv-content > * + * { margin-top: 1.5em; margin-bottom: 0; }
.sv-content > :first-child { margin-top: 0; }

/* Drop cap on the first paragraph of posts */
.sv-article:not(.sv-page) .sv-content > p:first-child::first-letter {
    float: left;
    margin: 0.06em 0.12em 0 0;
    color: var(--sv-sage-ink);
    font-family: var(--sv-font-heading);
    font-size: 4.2em;
    font-weight: 300;
    line-height: 0.82;
}

.sv-content > h2 { margin-top: 2em; font-weight: 300; font-size: 2.1rem; }
.sv-content > h3 { margin-top: 1.75em; font-size: 1.55rem; }
.sv-content > h4 { margin-top: 1.5em; font-size: 1.25rem; }
.sv-content > h2 + *, .sv-content > h3 + *, .sv-content > h4 + * { margin-top: 0.75em; }

/* Links keep the sage identity; the Ghost accent color drives buttons and Portal */
.sv-content a {
    color: var(--sv-sage-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.sv-content a:hover { text-decoration-thickness: 2px; }
.sv-content strong { font-weight: 600; }
.sv-content ul, .sv-content ol { padding-left: 1.4em; }
.sv-content li + li { margin-top: 0.4em; }
.sv-content li::marker { color: var(--sv-sage-ink); }

.sv-content blockquote:not([class]) {
    margin-inline: 0;
    padding-left: 26px;
    border-left: 2px solid var(--sv-sage);
    font-family: var(--sv-font-heading);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
}

.sv-content blockquote.kg-blockquote-alt {
    margin-inline: 0;
    padding: 0.5em 1em;
    font-family: var(--sv-font-heading);
    font-size: 1.9rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
}

.sv-content hr {
    width: 100%;
    height: 22px;
    margin-block: 3em;
    border: 0;
    /* A small arch as a separator */
    background: center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 40'%3E%3Cpath d='M2 39V17a15 15 0 0 1 30 0v22' fill='none' stroke='%23aeb8a0' stroke-width='2'/%3E%3C/svg%3E");
}

.sv-content code:not(pre code) {
    padding: 0.15em 0.4em;
    border-radius: 6px;
    background: var(--sv-surface);
    font-size: 0.88em;
}

.sv-content pre {
    overflow-x: auto;
    padding: 20px;
    border-radius: var(--sv-radius);
    background: #1f241b;
    color: #eceee6;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sv-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.sv-content th, .sv-content td { padding: 10px 14px; border-bottom: 1px solid var(--sv-line); text-align: left; }
.sv-content figure { margin-inline: 0; }
.sv-content .kg-image-card img { border-radius: var(--sv-radius); }
.sv-content .kg-width-full img { border-radius: 0; }
.sv-content .kg-gallery-image img { border-radius: 10px; }
.sv-content .kg-callout-card, .sv-content .kg-toggle-card { border-radius: var(--sv-radius); }
.sv-content .kg-bookmark-container { border-radius: var(--sv-radius); color: var(--sv-ink); text-decoration: none; }
.sv-content .gh-post-upgrade-cta-content { border-radius: var(--sv-radius-lg); }

/* Full-width card spacing (see @page docs) */
.sv-content > .kg-width-full + .kg-width-full:not(.kg-card-hascaption + .kg-width-full) { margin-top: 0; }
.sv-page .sv-content { padding-bottom: 72px; }
.sv-page .sv-article-image { margin-bottom: 48px; }
.sv-page:not(:has(.sv-article-head)) .sv-content > .kg-width-full:first-child { margin-top: 0; }
.sv-page .sv-content > .kg-width-full:last-child:not(.kg-card-hascaption) { margin-bottom: -72px; }

/* 12. Newsletter (bottom of every page)
   ========================================================================== */

.sv-news-wrap { margin-top: 80px; }

.sv-news {
    display: grid;
    overflow: hidden;
    border-radius: 32px;
    background: var(--sv-blue);
    color: var(--sv-blue-ink);
}

@media (min-width: 1024px) {
    .sv-news.has-image { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

.sv-news > * { min-width: 0; }
.sv-news-photo { min-height: 280px; }
.sv-news-photo img { width: 100%; height: 100%; object-fit: cover; }

.sv-news-body { padding: 44px 26px; }

@media (min-width: 1024px) {
    .sv-news-body { padding: 64px 56px; }
    .sv-news:not(.has-image) .sv-news-body { max-width: 760px; margin: 0 auto; text-align: center; }
}

.sv-news-kicker { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }

.sv-news-title {
    margin: 16px 0 14px;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.sv-news-text { margin-bottom: 28px; font-size: 1rem; line-height: 1.7; opacity: 0.85; }
.sv-news .sv-form-row { border-color: transparent; }
.sv-news .sv-btn { background: var(--sv-blue-ink); color: var(--sv-blue); }

/* 13. Footer
   ========================================================================== */

.sv-footer { margin-top: 96px; border-top: 1px solid var(--sv-line); }

.sv-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px 48px;
    padding-block: 48px 36px;
}

.sv-footer-about { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.sv-footer-text { color: var(--sv-muted); font-size: 0.95rem; }

.sv-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.sv-footer-menu a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sv-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px 32px;
    border-top: 1px solid var(--sv-line);
    color: var(--sv-muted);
    font-size: 0.85rem;
}

.sv-footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* 14. Misc
   ========================================================================== */

.sv-error { padding-block: 88px 40px; text-align: center; }

.sv-error-code {
    color: var(--sv-sage-ink);
    font-family: var(--sv-font-heading);
    font-size: clamp(5rem, 18vw, 9rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1;
}

.sv-error-title { margin: 16px 0 12px; font-weight: 300; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.sv-error .sv-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;
    }

    .sv-reveal { opacity: 1; transform: none; }
}
