
:root {
    --bg-ground:#eef4f7;
    --bg-surface:#ffffff;
    --bg-surface-alt:#e4edf2;
    --bg-dark:#14222d;

    --text-main:#14222d;
    --text-muted:#4d6475;
    --text-inverse:#eef4f7;
    --text-inverse-muted:#a3bdcc;

    --border-hairline:#cbdce6;
    --border-strong:#14222d;
    --border-light:rgba(203, 220, 230, 0.4);

    --accent-mint:#0a6b54;
    --accent-mint-hover:#085240;
    --accent-mint-subtle:#e2f3ee;
    --accent-alert:#c0392b;
    --accent-alert-subtle:#fbebe9;

    --fowo-2f8:'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fowo-1a7:'Barlow Semi Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fowo-526:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --text-xs:clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --text-sm:clamp(0.8438rem, 0.81rem + 0.2vw, 0.9375rem);
    --text-base:clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
    --text-lg:clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
    --text-xl:clamp(1.25rem, 1.15rem + 0.75vw, 1.625rem);
    --text-2xl:clamp(1.5rem, 1.35rem + 1.2vw, 2.125rem);
    --text-3xl:clamp(1.875rem, 1.6rem + 1.8vw, 2.875rem);
    --text-4xl:clamp(2.25rem, 1.9rem + 2.5vw, 3.75rem);

    --lh-tight:1.1;
    --lh-heading:1.2;
    --lh-snug:1.35;
    --lh-body:1.55;

    --space-2xs:0.25rem;
    --space-xs:0.5rem;
    --space-sm:0.75rem;
    --space-md:1rem;
    --space-lg:1.5rem;
    --space-xl:2rem;
    --space-2xl:3rem;
    --space-3xl:4.5rem;
    --space-4xl:6rem;

    --page-max:1240px;
    --gutter:clamp(1rem, 4vw, 2.5rem);

    --radius-none:0px;
    --radius-sm:2px;
    --radius-md:4px;

    --ease-out:cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:cubic-bezier(0.45, 0, 0.15, 1);
    --dur-fast:140ms;
    --dur-base:220ms;
    --dur-slow:380ms;
}

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

html {
    font-size:16px;
    background-color:var(--bg-ground);
    color:var(--text-main);
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    scroll-behavior:smooth;
    scroll-padding-top:5rem;
}

body {
    font-family:var(--fowo-1a7);
    font-size:var(--text-base);
    font-weight:400;
    line-height:var(--lh-body);

    color:var(--text-main);
    background-color:var(--bg-ground);
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

h1, h2, h3, h4, h5, h6 {
    font-family:var(--fowo-2f8);
    font-weight:800;
    line-height:var(--lh-heading);
    color:var(--text-main);
    letter-spacing:-0.02em;
    text-wrap:balance;
    overflow-wrap:break-word;
    word-break:normal;
    hyphens:auto;
}

h1 { font-size: var(--text-4xl); line-height: var(--lh-tight); }
h2 { font-size: clamp(1.35rem, 1.2rem + 1.2vw, 2.875rem); line-height: var(--lh-tight); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 700; }
h6 { font-size: var(--text-base); font-weight: 700; }

p {
    margin-block-end:1rem;
    max-width:68ch;
    text-wrap:pretty;

}

p:last-child {
    margin-block-end:0;
}

a {
    color:inherit;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:3px;
    transition:color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

a:hover {
    color:var(--accent-mint);
    text-decoration-color:var(--accent-mint);
}

a:focus-visible {
    outline:2px solid var(--accent-mint);
    outline-offset:3px;
}

img, picture, svg {
    display:block;
    max-width:100%;
    height:auto;
}

ul, ol {
    padding-inline-start:1.25rem;
    margin-block-end:1rem;
}

li {
    margin-block-end:0.35rem;
}

button, input, select, textarea {
    font:inherit;
    color:inherit;
}

table {
    border-collapse:collapse;
    width:100%;
}

code, kbd, samp, pre {
    font-family:var(--fowo-526);
    font-size:0.9em;
}

.skip-link {
    position:absolute;
    top:-100px;
    left:1rem;
    z-index:1000;
    background:var(--text-main);
    color:var(--bg-surface);
    padding:0.75rem 1.25rem;
    font-family:var(--fowo-526);
    font-size:var(--text-sm);
    font-weight:600;
    text-decoration:none;
    border:2px solid var(--accent-mint);
    transition:top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
    top:1rem;
    outline:2px solid var(--accent-mint);
}

.container {
    width:100%;
    max-width:var(--page-max);
    margin-inline:auto;
    padding-inline:var(--gutter);
}

.site-main {
    flex:1 0 auto;
    width:100%;
}

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

.icon {
    width:1.125em;
    height:1.125em;
    display:inline-block;
    vertical-align:middle;
    fill:currentColor;
    flex-shrink:0;
}

.prose {
    font-size:var(--text-base);
    line-height:var(--lh-body);
    color:var(--text-main);
}

.prose p {
    margin-block-end:1.15rem;
}

.prose strong {
    font-weight:600;
    color:var(--text-main);
}

.prose ul, .prose ol {
    margin-block-end:1.25rem;
}

.prose li {
    margin-block-end:0.45rem;
}

.mono-tag {
    font-family:var(--fowo-526);
    font-size:var(--text-xs);
    font-weight:600;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--text-muted);
}

.standfirst {
    font-size:var(--text-lg);
    line-height:var(--lh-snug);
    color:var(--text-muted);
    max-width:62ch;
    margin-block-end:1.75rem;
}

@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;
    }

}

/* -------------------------------------------------------------------------- */
/* Specification Ledger Primitives & Layout Grids                            */
/* -------------------------------------------------------------------------- */

.ledger-table {
    width:100%;
    border-top:2px solid var(--border-strong);
    border-bottom:2px solid var(--border-strong);
    margin-block:var(--space-lg);
    font-family:var(--fowo-1a7);
}

.ledger-table tr {
    border-bottom:1px solid var(--border-hairline);
    transition:background-color var(--dur-fast) var(--ease-out);
}

.ledger-table tr:hover {
    background-color:var(--bg-surface-alt);
}

.ledger-table th,
.ledger-table td {
    padding:0.875rem 1rem;
    text-align:left;
    vertical-align:top;
}

.ledger-table th {
    font-family:var(--fowo-526);
    font-size:var(--text-xs);
    text-transform:uppercase;
    letter-spacing:0.06em;
    color:var(--text-muted);
    font-weight:600;
    background-color:var(--bg-surface-alt);
    border-bottom:2px solid var(--border-strong);
}

.ledger-table td.ledger-metric {
    font-family:var(--fowo-526);
    font-weight:700;
    color:var(--text-main);
    white-space:nowrap;
}

.ledger-table td.ledger-accent {
    color:var(--accent-mint);
    font-family:var(--fowo-526);
    font-weight:700;
}

/* Stacked full-width block primitives */
.block-band {
    width:100%;
    padding-block:var(--space-3xl);
    border-bottom:2px solid var(--border-strong);
}

.block-band:last-child {
    border-bottom:none;
}

.block-band-ground {
    background-color:var(--bg-ground);
}

.block-band-surface {
    background-color:var(--bg-surface);
}

.block-band-alt {
    background-color:var(--bg-surface-alt);
}

.block-band-dark {
    background-color:var(--bg-dark);
    color:var(--text-inverse);
}

.block-band-dark h1,
.block-band-dark h2,
.block-band-dark h3,
.block-band-dark h4 {
    color:var(--text-inverse);
}

.block-band-dark .standfirst,
.block-band-dark .mono-tag {
    color:var(--text-inverse-muted);
}

.block-band-dark .ledger-table tr:hover {
    background-color:rgba(255, 255, 255, 0.05);
}

.block-band-dark .ledger-table th {
    background-color:rgba(255, 255, 255, 0.08);
    color:var(--text-inverse-muted);
    border-bottom-color:var(--border-hairline);
}

.block-band-dark .ledger-table td {
    border-bottom-color:rgba(255, 255, 255, 0.12);
    color:var(--text-inverse);
}

.block-band-dark .ledger-table td.ledger-metric {
    color:#ffffff;
}

/* Flex and Grid Helpers */
.cluster {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:var(--space-sm);
}

.stack {
    display:flex;
    flex-direction:column;
}

.stack-xs { gap: var(--space-xs); }
.stack-sm { gap: var(--space-sm); }
.stack-md { gap: var(--space-md); }
.stack-lg { gap: var(--space-lg); }
.stack-xl { gap: var(--space-xl); }

.grid-ledger-split {
    display:grid;
    grid-template-columns:1fr;
    gap:var(--space-xl);
}

@media (min-width: 840px) {
    .grid-ledger-split {
        grid-template-columns:320px 1fr;
        align-items:start;
        gap:var(--space-2xl);
    }
}
