

:root {
    --ground: #ede6e4;
    --ink: #191717;
    --ink-subtle: #2e2929;
    --ink-muted: #574f4e;
    --surface: #f5f0ee;
    --surface-stone: #dfd6d3;
    --surface-clay: #c8bcb8;
    --accent-clay: #9b564e;
    --accent-rose: #843e38;
    --rule: rgba(25, 23, 23, 0.12);
    --rule-heavy: rgba(25, 23, 23, 0.28);
    --rule-light: rgba(25, 23, 23, 0.06);
    --rule-bright: rgba(245, 240, 238, 0.22);


    --vuja-c41: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vuja-037: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vuja-7de: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;


    --step--2: clamp(0.72rem, 0.69rem + 0.12vw, 0.80rem);
    --step--1: clamp(0.85rem, 0.81rem + 0.18vw, 0.95rem);
    --vuja-58c: clamp(1.00rem, 0.95rem + 0.24vw, 1.125rem);
    --vuja-b04: clamp(1.18rem, 1.10rem + 0.40vw, 1.38rem);
    --vuja-89e: clamp(1.40rem, 1.28rem + 0.62vw, 1.74rem);
    --vuja-28b: clamp(1.68rem, 1.48rem + 1.02vw, 2.22rem);
    --vuja-8dc: clamp(2.02rem, 1.70rem + 1.62vw, 2.84rem);
    --vuja-22b: clamp(2.42rem, 1.94rem + 2.42vw, 3.64rem);


    --space-3xs: clamp(0.25rem, 0.22rem + 0.12vw, 0.31rem);
    --space-2xs: clamp(0.44rem, 0.40rem + 0.18vw, 0.56rem);
    --space-xs: clamp(0.69rem, 0.63rem + 0.30vw, 0.88rem);
    --space-sm: clamp(0.94rem, 0.85rem + 0.42vw, 1.19rem);
    --space-md: clamp(1.38rem, 1.24rem + 0.68vw, 1.75rem);
    --space-lg: clamp(1.88rem, 1.69rem + 0.94vw, 2.44rem);
    --space-xl: clamp(2.75rem, 2.48rem + 1.38vw, 3.56rem);
    --space-2xl: clamp(3.75rem, 3.38rem + 1.88vw, 4.88rem);
    --space-3xl: clamp(5.25rem, 4.72rem + 2.62vw, 6.81rem);
    --space-gutter: clamp(1.00rem, 0.80rem + 1.00vw, 2.50rem);


    --shadow-press: 0 1px 2px rgba(25, 23, 23, 0.14);
    --shadow-lift: 0 4px 14px rgba(25, 23, 23, 0.12);
    --shadow-float: 0 14px 30px rgba(25, 23, 23, 0.20);


    --border-thin: 1px solid var(--rule);
    --border-heavy: 1px solid var(--rule-heavy);
    --border-ink: 1.5px solid var(--ink);


    --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 140ms;
    --dur-base: 200ms;
    --dur-deliberate: 360ms;

}


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


html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}


body {
    background-color: var(--ground);
    color: var(--ink);
    font-family: var(--vuja-037);
    font-size: var(--vuja-58c);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


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


img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}


img {
    height: auto;
    shape-margin: 1rem;
}


svg.icon {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
    stroke: currentColor;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: -0.2em;
}


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


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


a:hover { color: var(--accent-rose); }


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


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--vuja-c41);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: break-word;
}


h1 {
    font-size: var(--vuja-8dc);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
}


h2 {
    font-size: var(--vuja-28b);
    font-weight: 800;
    line-height: 1.14;
}


h3 {
    font-size: var(--vuja-89e);
    font-weight: 700;
    line-height: 1.2;
}


h4 {
    font-size: var(--vuja-b04);
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.015em;
}


h5 {
    font-size: var(--vuja-58c);
    font-weight: 700;
}


h6 {
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


p,
ul,
ol,
dl,
blockquote { overflow-wrap: break-word; }


p { margin-block-end: var(--space-sm); }


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


ul,
ol {
    padding-inline-start: 1.4em;
    margin-block-end: var(--space-sm);
}


li { margin-block-end: var(--space-3xs); }


li::marker {
    color: var(--ink);
    font-weight: 700;
}


dt {
    font-family: var(--vuja-7de);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


dd {
    margin-inline-start: 0;
    margin-block-end: var(--space-xs);
    color: var(--ink-subtle);
}


blockquote {
    border-inline-start: 3px solid var(--accent-clay);
    padding-inline-start: var(--space-sm);
    font-family: var(--vuja-c41);
    font-size: var(--vuja-b04);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    margin-block: var(--space-md);
}


hr {
    border: 0;
    border-top: var(--border-thin);
    margin-block: var(--space-lg);
}


code,
kbd,
samp {
    font-family: var(--vuja-7de);
    font-size: 0.9em;
    color: #fff !important;
    background: #2e2929 !important;
    padding: 0.15em 0.45em;
    border: 1px solid #191717;
    border-radius: 0;
}


.site-footer code,
.duotone-break code,
.estimator-header code,
.legal-standfirst code,
.standfirst code,
[style*='rgb(132, 62, 56)'] code,
[style*='#843E38'] code,
[style*='accent-rose'] code,
pre code {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}


/* On dark backgrounds (like pre, footer, or dark sections) */
.surface-dark code,
[data-clip-stage] code,
[data-35e6bb] code,
.chat-bubble.from-user code {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}


pre {
    font-family: var(--vuja-7de);
    font-size: var(--step--1);
    background: var(--ink);
    color: var(--surface);
    padding: var(--space-sm);
    overflow-x: auto;
    border: 1px solid var(--rule-heavy);
    line-height: 1.45;
}


.mono-figure {
    font-family: var(--vuja-7de);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}


.mono-meta {
    font-family: var(--vuja-7de);
    font-size: var(--step--1);
    letter-spacing: 0.02em;
}


.site-frame {
    width: 100%;
    max-width: 1380px;
    margin-inline: auto;
    padding-inline: var(--space-gutter);
}


.site-frame-wide {
    width: 100%;
    max-width: 1540px;
    margin-inline: auto;
    padding-inline: var(--space-gutter);
}


.site-frame-narrow {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    padding-inline: var(--space-gutter);
}


.site-frame-measure {
    width: 100%;
    max-width: 68ch;
    margin-inline: auto;
}


.swiss-rule { position: relative; }


.swiss-rule::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background-color: var(--rule);
    pointer-events: none;
}


.swiss-grid {
    display: grid;
    gap: 1px;
    background-color: var(--rule);
    border: 1px solid var(--rule);
}


.swiss-grid > * { background-color: var(--ground); }


.swiss-box {
    background-color: var(--ground);
    border: 1px solid var(--rule);
    padding: var(--space-sm);
}


.swiss-dateline {
    font-family: var(--vuja-7de);
    font-size: var(--step--2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-block: var(--space-2xs);
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
}


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


.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    background-color: var(--ink);
    color: var(--surface);
    font-family: var(--vuja-7de);
    font-size: var(--step--1);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--accent-clay);
    text-decoration: none;
    transition: top var(--dur-fast) var(--ease-luxury);
}


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


.prose {
    max-width: 68ch;
    font-size: var(--vuja-58c);
    line-height: 1.62;
    color: var(--ink);
}


.prose > * + * { margin-block-start: var(--space-sm); }


.prose h2 {
    margin-block-start: var(--space-xl);
    margin-block-end: var(--space-xs);
}


.prose h3 {
    margin-block-start: var(--space-lg);
    margin-block-end: var(--space-xs);
}


.prose-heavy {
    font-size: var(--vuja-b04);
    line-height: 1.48;
    color: var(--ink);
}


.standfirst {
    font-family: var(--vuja-c41);
    font-size: var(--vuja-b04);
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-block-end: var(--space-md);
}


.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
}


.repel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
}


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


.stack-xs > * + * { margin-block-start: var(--space-xs); }


.stack-sm > * + * { margin-block-start: var(--space-sm); }


.stack-md > * + * { margin-block-start: var(--space-md); }


.stack-lg > * + * { margin-block-start: var(--space-lg); }


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