:root {
    --lsb-brand: #ff0000;
    --lsb-action: #a80d18;
    --lsb-action-hover: #7f0710;
    --lsb-ink: #151515;
    --lsb-paper: #ffffff;
    --lsb-surface: #f4f1ed;
    --lsb-surface-strong: #e8e3dc;
    --lsb-muted: #646464;
    --lsb-border: #d8d2ca;
    --lsb-dark-surface: #232323;
    --lsb-success: #17633a;
    --lsb-focus: #0b65d8;
    --lsb-authorial-paper: #f3ecdf;
    --lsb-authorial-surface: #e7dcc9;
    --lsb-authorial-ink: #261e19;
    --lsb-authorial-accent: #8d2d25;
    --lsb-interface: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --lsb-editorial: "Source Serif 4", Georgia, "Times New Roman", serif;
    --lsb-reader-scale: 1;
    --lsb-container: 1240px;
    --lsb-reading: 72ch;
    --lsb-gutter: clamp(1rem, 3vw, 2rem);
    --lsb-section-space: clamp(3.5rem, 7vw, 6.5rem);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --lsb-action: #ff7179;
    --lsb-action-hover: #ff9ca2;
    --lsb-ink: #f7f4ef;
    --lsb-paper: #121212;
    --lsb-surface: #1d1d1d;
    --lsb-surface-strong: #292929;
    --lsb-muted: #b8b1a8;
    --lsb-border: #44413d;
    --lsb-focus: #75b2ff;
    --lsb-authorial-paper: #1b1714;
    --lsb-authorial-surface: #2b241f;
    --lsb-authorial-ink: #f6eee2;
    --lsb-authorial-accent: #ee8b80;
    color-scheme: dark;
}

:root[data-reader-size="small"] { --lsb-reader-scale: 0.94; }
:root[data-reader-size="large"] { --lsb-reader-scale: 1.1; }

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--lsb-paper);
    color: var(--lsb-ink);
    font-family: var(--lsb-interface);
    font-size: calc(1rem * var(--lsb-reader-scale));
    line-height: 1.65;
    overflow-wrap: break-word;
}

body, button, input, select, textarea { font-family: var(--lsb-interface); }

img {
    display: block;
    height: auto;
    max-width: 100%;
}

figure { margin: 0; }

a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

a:hover { color: var(--lsb-action); }

button, input, select, textarea { font: inherit; }

button, select, input[type="submit"] { min-height: 44px; }

button { cursor: pointer; }

:focus-visible {
    border-radius: 2px;
    outline: 3px solid var(--lsb-focus);
    outline-offset: 3px;
}

::selection {
    background: var(--lsb-brand);
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    margin-block: 0 0.5em;
    font-family: var(--lsb-editorial);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.06;
    text-wrap: balance;
}

p { margin-block: 0 1.25em; }

.lsb-container {
    margin-inline: auto;
    max-width: calc(var(--lsb-container) + (2 * var(--lsb-gutter)));
    padding-inline: var(--lsb-gutter);
    width: 100%;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
    background: var(--lsb-paper);
    clip: auto !important;
    clip-path: none;
    color: var(--lsb-ink);
    display: block;
    height: auto;
    left: 1rem;
    padding: 0.75rem 1rem;
    top: 1rem;
    width: auto;
    z-index: 100000;
}

.lsb-kicker,
.lsb-card__eyebrow,
.lsb-story-header__labels {
    color: var(--lsb-action);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.lsb-button {
    align-items: center;
    background: var(--lsb-action);
    border: 1px solid var(--lsb-action);
    border-radius: 2px;
    color: #fff;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1rem;
    text-decoration: none;
}

.lsb-button:hover { background: var(--lsb-action-hover); color: #fff; }
.lsb-button--small { min-height: 40px; padding-block: 0.45rem; }

.lsb-text-link { color: var(--lsb-action); font-weight: 750; text-decoration: none; }

.lsb-prose {
    font-family: var(--lsb-editorial);
    font-size: clamp(1.1rem, 1.6vw, 1.24rem);
    line-height: 1.72;
    max-width: var(--lsb-reading);
}

.lsb-prose > * { max-width: 100%; }
.lsb-prose h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-top: 2em; }
.lsb-prose h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: 1.8em; }
.lsb-prose a { color: var(--lsb-action); }
.lsb-prose blockquote,
.lsb-prose .lsb-quote {
    border-left: 4px solid var(--lsb-brand);
    font-size: 1.2em;
    font-style: italic;
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
}
.lsb-prose .lsb-highlight {
    background: var(--lsb-surface);
    border-top: 4px solid var(--lsb-brand);
    font-family: var(--lsb-interface);
    margin-block: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}
.lsb-prose iframe { max-width: 100%; }
.lsb-prose table { border-collapse: collapse; display: block; overflow-x: auto; width: 100%; }
.lsb-prose th, .lsb-prose td { border-bottom: 1px solid var(--lsb-border); padding: 0.75rem; text-align: left; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
