/* GENERATED by scripts/build_site.py (step: ds) from ds/components/bundle.css
   — sections 1, 2, 8 plus the preamble. Do not edit: re-run the build.
   The rest of the DS stylesheet is deliberately not consumed (DS-LOCAL.md #19). */

/* theme-dependent image (e.g. the purple vs the white wordmark) */
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: inline-block !important; }
[data-theme="dark"] .only-light { display: none !important; }

/* ═══ 1 · BASE TYPE ═════════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
    color: var(--fg); background: var(--bg); margin: 0;
    font-feature-settings: "ss01", "ss02"; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
/* surface-relative roles: each surface (page, card, purple band…) re-declares
   these, so a component reads correctly on whatever it is dropped on */
body { --surface: var(--bg); --on-surface: var(--fg); --on-surface-muted: var(--fg-muted); --on-surface-border: var(--border); --on-surface-link: var(--link); }

.display, h1.display { font-weight: var(--fw-medium); font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); margin: 0; }
h1 { font-weight: var(--fw-medium); font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: -0.01em; margin: 0 0 var(--sp-4); }
h2 { font-weight: var(--fw-medium); font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 var(--sp-3); }
h3 { font-weight: var(--fw-medium); font-size: var(--fs-h3); line-height: var(--lh-heading); margin: 0 0 var(--sp-3); }
h4 { font-weight: var(--fw-medium); font-size: var(--fs-body); line-height: var(--lh-heading); margin: 0 0 var(--sp-2); }
.lead { font-family: var(--font-serif); font-weight: var(--fw-regular); font-size: var(--fs-lead); line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 62ch; }
.eyebrow { display: inline-block; font-weight: var(--fw-bold); font-size: var(--fs-small); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }
.body-serif { font-family: var(--font-serif); font-size: 1.0625rem; line-height: var(--lh-loose); }
.muted { color: var(--on-surface-muted); }
.small { font-size: var(--fs-small); }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-alt); color: var(--fg); padding: 0.1em 0.35em; border-radius: var(--radius-sm); }
a { color: var(--on-surface-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--on-surface-border); margin: var(--sp-6) 0; }

/* ═══ 2 · BUTTONS — the cut family ════════════════════════════════════════
   Fill-only; the cut is real transparency (clip-path). Two layers, like the
   cut card: the element paints the BORDER colour (or the fill when unbordered)
   and ::before paints the fill inset by --bw, both clipped by the same 34.4°
   polygon (the inner one offset by --bw perpendicular to every edge, so the
   border is uniform on the diagonal too). Focus = a 2px accent border layer,
   so the ring follows the cut as well. */
.btn {
    --cut:  calc(var(--btn-h) * var(--tan-avancez));
    --frac: var(--cut-frac) !important;   /* fixed: ⅓ — see the note above */
    --run:  calc(var(--btn-h) * var(--frac) * var(--tan-avancez));
    --bw: 0px;                       /* border width; roles that need one set it */
    --focus: var(--accent);          /* focus ring colour; promo uses the text colour so it shows on purple */
    --btn-bg: var(--btn-primary-bg);
    --clip: none; --clip-in: none;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: var(--btn-h); padding-inline: 1rem; box-sizing: border-box;
    font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: 0.875rem; line-height: 1; white-space: nowrap;
    border: 0; border-radius: 0; cursor: pointer; user-select: none; text-decoration: none;
    background: var(--btn-bg); color: var(--btn-primary-fg);
    clip-path: var(--clip);
    transition: filter var(--motion-quick) var(--ease-brand), transform var(--motion-quick) var(--ease-brand);
}
.btn::before { content: ""; position: absolute; inset: var(--bw); z-index: -1; background: var(--btn-bg); clip-path: var(--clip-in); }
.btn:hover, .btn.is-hover { filter: brightness(0.93); }
.btn:active, .btn.is-active { transform: translateY(0.5px); }
.btn:focus-visible, .btn.is-focus { outline: none; --bw: 2px; background: var(--focus); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn-sm   { --btn-h: 2rem;   padding-inline: 0.75rem; font-size: 0.8125rem; }
.btn-lg   { --btn-h: 2.5rem; padding-inline: 2rem; }
.btn-icon { width: var(--btn-h); padding: 0; }
/* roles — keyed to the card they sit on; hover keeps the label colour on <a> */
.btn-primary   { --btn-bg: var(--btn-primary-bg);   color: var(--btn-primary-fg); }
.btn-promo     { --btn-bg: var(--fill-brand);           color: var(--on-fill-brand); --focus: var(--fg); }
.btn-secondary { --btn-bg: var(--btn-secondary-bg); color: var(--btn-secondary-fg); --bw: 1px; background: currentColor; }
.btn-inverse   { --btn-bg: var(--btn-primary-fg);   color: var(--btn-primary-bg); }
.btn-ghost     { --btn-bg: var(--surface);          color: currentColor; --bw: 1px; background: currentColor; }
.btn-ghost:hover::before { background: color-mix(in srgb, var(--surface) 88%, currentColor); }
.btn-primary:hover { color: var(--btn-primary-fg); } .btn-promo:hover { color: var(--on-fill-brand); } .btn-secondary:hover { color: var(--btn-secondary-fg); } .btn-inverse:hover { color: var(--btn-primary-bg); }
.cut-bordered { --bw: 1px; background: currentColor; }
.btn:focus-visible, .btn.is-focus { background: var(--focus); }   /* after roles: the ring wins */
/* corner depth is fixed at one third (var(--cut-frac)). There is deliberately no
   class for a shallower cut: a cut that is barely visible is not worth adding. */
/* cut shapes: --clip is the silhouette, --clip-in the same offset inward by --bw
   (perpendicular offset on the 34.4° edge: the cut-k-* tokens, derived from
   tan and sec of the angle — the same constants as the cut card) */
.cut-right-edge {
    --clip: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
    --clip-in: polygon(0 0, calc(100% - var(--cut-k-top) * var(--bw)) 0, calc(100% - var(--cut) + var(--cut-k-bottom) * var(--bw)) 100%, 0 100%);
    padding-inline: 1.25rem calc(1.25rem + var(--cut));
}
.cut-left-edge {
    --clip: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
    --clip-in: polygon(calc(var(--cut) - var(--cut-k-bottom) * var(--bw)) 0, 100% 0, 100% 100%, calc(var(--cut-k-top) * var(--bw)) 100%);
    padding-inline: calc(1.25rem + var(--cut)) 1.25rem;
}
.cut-corner-tl {
    --clip: polygon(var(--run) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--frac) * 100%));
    --clip-in: polygon(calc(var(--run) - var(--cut-k-bottom) * var(--bw)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--frac) * 100% + (2 * var(--frac) - var(--cut-k-corner)) * var(--bw)));
}
.cut-corner-br {
    --clip: polygon(0 0, 100% 0, 100% calc((1 - var(--frac)) * 100%), calc(100% - var(--run)) 100%, 0 100%);
    --clip-in: polygon(0 0, 100% 0, 100% calc((1 - var(--frac)) * 100% - (2 * var(--frac) - var(--cut-k-corner)) * var(--bw)), calc(100% - var(--run) + var(--cut-k-bottom) * var(--bw)) 100%, 0 100%);
}
.btn .ic { width: 1.125rem; height: 1.125rem; display: block; flex: none; }

/* ═══ 8 · BADGES, CHIPS, LINKS, ALERTS ══════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.badge-purple { background: var(--fill-brand); color: var(--on-fill-brand); }   /* the brand fill: Dark Purple in light, Light Purple in dark (D10) */
.badge-lilac  { background: var(--c-purple); color: var(--c-white); }        /* Purple (official secondary) */
.badge-cream  { background: var(--bg-alt);  color: var(--fg); }
.badge-ink    { background: var(--btn-primary-bg);  color: var(--btn-primary-fg); }
.badge-outline { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.badge .dot { width: 8px; height: 8px; flex: none; background: currentColor; }   /* status: a square accent dot — accents are never a background (official) */
.badge .dot-success { background: var(--success); } .badge .dot-warning { background: var(--warning); } .badge .dot-danger { background: var(--danger); } .badge .dot-info { background: var(--info); }
.badge-cut    { --run: calc(var(--tan-avancez) * (1.4em + 6px));   /* run = full badge height (line 1.4em + 2 × 3px padding) × tan 34.4° */
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--run)) 100%, 0 100%); padding-right: calc(9px + var(--run)); }
/* outline + cut: the inset outline is clipped away on the diagonal, so the diagonal side is drawn as a 1.2px line just inside the cut */
.badge-outline.badge-cut { background: linear-gradient(to bottom right, transparent calc(50% - 1.2px), currentColor calc(50% - 1.2px) 50%, transparent 50%) right top / var(--run) 100% no-repeat; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 0.8125rem; background: var(--surface-input); color: var(--fg); border: 1px solid var(--border-strong); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
.chip .x { opacity: 0.6; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-bold); text-decoration: none; color: var(--on-surface-link); }
.link-arrow::after { content: ""; width: 0.6em; height: 0.6em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--motion-quick) var(--ease-brand); }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-inline { color: var(--on-surface-link); }
.link-quiet { color: inherit; text-decoration: none; }
.link-quiet:hover { text-decoration: underline; color: var(--accent); }
.alert { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); padding: var(--sp-4); background: var(--bg-alt); color: var(--fg); border-left: 0; }
.alert b { display: block; margin-bottom: 2px; }
.alert .dot { width: 10px; height: 10px; margin-top: 7px; background: var(--accent); }
.alert-success .dot { background: var(--c-green); }
.alert-warning .dot { background: var(--c-yellow); }
.alert-danger .dot { background: var(--c-red); }
.alert-danger { box-shadow: inset 0 0 0 1px var(--c-red); background: var(--surface-card); }

/* ─── fonts: the ds/tokens.css @font-face rules again, with versioned URLs
   (cache busting — the server caches fonts for a year) ─── */
@font-face { font-family: "Matter"; src: url("../ds/fonts/Matter_Regular.woff2?v=3ad514cb") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url("../ds/fonts/Matter_RegularItalic.woff2?v=cc437208") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Matter"; src: url("../ds/fonts/Matter_Medium.woff2?v=87d70078") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url("../ds/fonts/Matter_MediumItalic.woff2?v=b77d2921") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Matter"; src: url("../ds/fonts/Matter_Bold.woff2?v=74f2e754") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Matter"; src: url("../ds/fonts/Matter_BoldItalic.woff2?v=2539a11f") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../ds/fonts/Newsreader-latin-opsz-normal.woff2?v=6e4f2958") format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../ds/fonts/Newsreader-latin-opsz-italic.woff2?v=5dfcd10d") format("woff2-variations"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../ds/fonts/JetBrainsMono-latin-wght-normal.woff2?v=18be4527") format("woff2-variations"); font-weight: 100 800; font-style: normal; font-display: swap; }
