
:root {
    --paper: #F2F3F1;
    --paper-deep: #E9ECEC;
    --ink: #121820;
    --ink-soft: #2A3542;
    --slate: #344457;
    --slate-deep: #26323F;
    --steel: #6F7E8F;
    --steel-ink: #56636F;
    --mist: #DDE2E7;
    --rule: #B9C2CC;
    --rule-soft: #D3D9DF;
    --signal: #1FA5A8;
    --signal-text: #137C80;
    --signal-bright: #6FD3D5;
    --signal-wash: rgba(31, 165, 168, 0.1);
    --danger: #A3392E;
    --danger-wash: #F6E7E4;
    --ok: #2F6E52;

    --on-dark: #F2F3F1;
    --on-dark-soft: #C4CDD6;
    --rule-dark: rgba(242, 243, 241, 0.22);

    --tohu-3a3: "Bodoni Moda", "Bodoni 72", Didot, "Hoefler Text", Georgia, serif;
    --tohu-1a4: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --tohu-fae: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --step--2: 0.75rem;
    --step--1: 0.875rem;
    --tohu-be1: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
    --tohu-543: clamp(1.1875rem, 1.1rem + 0.45vw, 1.4rem);
    --tohu-24e: clamp(1.4rem, 1.22rem + 0.9vw, 1.95rem);
    --tohu-d72: clamp(1.65rem, 1.35rem + 1.5vw, 2.6rem);
    --tohu-69d: clamp(1.95rem, 1.45rem + 2.6vw, 3.7rem);
    --tohu-182: clamp(2.1rem, 1.4rem + 3.8vw, 4.9rem);
    --step-hero: clamp(2.1rem, 7.2vw, 6.4rem);

    --leading-tight: 1.04;
    --leading-snug: 1.18;
    --leading-body: 1.6;
    --tracking-display: -0.018em;
    --tracking-meta: 0.12em;
    --measure: 66ch;
    --measure-narrow: 52ch;

    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4.5rem;
    --s-9: 6.5rem;
    --section-pad: clamp(3.5rem, 8vw, 7.5rem);
    --gutter: clamp(1rem, 4vw, 3rem);
    --shell: 1240px;
    --shell-narrow: 860px;

    --frame: 10px;
    --strip-h: 2.75rem;
    --header-h: 5.25rem;

    --radius: 0;
    --radius-input: 2px;
    --hairline: 1px solid var(--rule);
    --hairline-ink: 1px solid var(--ink);

    --shadow-lift: 0 1px 0 var(--rule), 0 14px 28px -18px rgba(18, 24, 32, 0.45);
    --shadow-panel: 0 0 0 1px var(--ink), 0 24px 48px -24px rgba(18, 24, 32, 0.5);
    --shadow-press: inset 0 2px 0 rgba(18, 24, 32, 0.18);

    --dur-instant: 90ms;
    --dur-fast: 140ms;
    --dur-base: 180ms;
    --dur-slow: 420ms;
    --dur-reveal: 900ms;
    --dur-rotate: 700ms;
    --rotate-interval: 2600ms;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
    --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-magnetic: cubic-bezier(0.33, 1, 0.68, 1);
    --reveal-distance: 24px;
    --magnetic-pull: 6px;

    --z-content: 1;
    --z-header: 50;
    --z-sheet: 55;
    --z-frame: 70;
    --z-strip: 75;
    --z-preview: 40;
    --z-chat: 80;
    --z-consent: 90;
    --z-skip: 100;
}

@media (max-width: 767.98px) {
    :root {
        --frame: 6px;
        --header-h: 4.5rem;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--strip-h) + var(--header-h) + 1rem);
    background: var(--slate);
    hanging-punctuation: first last;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-top: var(--strip-h);
    padding-inline: var(--frame);
    padding-bottom: var(--frame);
    background: var(--slate);
    color: var(--ink);
    font-family: var(--tohu-1a4);
    font-size: var(--tohu-be1);
    line-height: var(--leading-body);
    font-weight: 400;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: var(--strip-h) 0 0 0;
    border: var(--frame) solid var(--slate);
    border-top-width: 0;
    pointer-events: none;
    z-index: var(--z-frame);
}

.frame {
    position: relative;
    min-height: calc(100vh - var(--strip-h) - var(--frame));
    background: var(--paper);
    display: flex;
    flex-direction: column;
}

.site-main {

    flex: 1 0 auto;
    min-width: 0;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, address, pre, fieldset {
    margin: 0;
}

ul[class], ol[class] {
    list-style: none;
    padding: 0;
}

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

img {
    height: auto;
    background: var(--mist);
}

iframe, embed, object {
    max-width: 100%;
}

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

button {
    cursor: pointer;
}

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

address {
    font-style: normal;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--slate);
    color: var(--paper);
}

h1, h2, h3, h4 {
    font-family: var(--tohu-3a3);
    font-weight: 500;
    font-optical-sizing: auto;
    letter-spacing: var(--tracking-display);
    line-height: var(--leading-snug);
    color: var(--ink);
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 {
    font-size: var(--tohu-182);
    line-height: var(--leading-tight);
    letter-spacing: -0.024em;
}

h2 {
    font-size: var(--tohu-69d);
    line-height: 1.08;
}

h3 {
    font-size: var(--tohu-24e);
    font-weight: 500;
}

h4 {
    font-size: var(--tohu-543);
    font-weight: 600;
    letter-spacing: -0.005em;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    font-weight: 400;
}

p, li, dd {
    text-wrap: pretty;
    overflow-wrap: break-word;
}

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

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

a:active {
    color: var(--ink);
}

strong, b {
    font-weight: 600;
}

small {
    font-size: var(--step--1);
}

code, kbd, samp {
    font-family: var(--tohu-fae);
    font-size: 0.88em;
    background: var(--mist);
    padding: 0.05em 0.3em;
}

pre {
    font-family: var(--tohu-fae);
    font-size: var(--step--1);
    overflow-x: auto;
    max-width: 100%;
    padding: var(--s-4);
    background: var(--mist);
}

hr {
    border: 0;
    border-top: var(--hairline);
    margin: var(--s-6) 0;
}

:focus {
    outline: none;
}

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

a:focus-visible {
    text-decoration-color: var(--signal);
    text-decoration-thickness: 2px;

    box-shadow: 0 3px 0 -1px var(--signal);
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: var(--z-skip);
    padding: 0.75rem 1.1rem;
    min-height: 44px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--tohu-fae);
    font-size: var(--step--1);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    color: var(--paper);
}

.visually-hidden,
.sr-only {
    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;
}

.wrap {
    width: min(var(--shell), 100% - var(--gutter) * 2);
    margin-inline: auto;
    min-width: 0;
}

.wrap--narrow {
    width: min(var(--shell-narrow), 100% - var(--gutter) * 2);
}

.section {
    padding-block: var(--section-pad);
    border-top: var(--hairline);
}

.section--tight {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section--mist {
    background: var(--mist);
}

.section--slate {
    background: var(--slate);
    color: var(--on-dark);
    border-top-color: var(--slate);
}

.section--slate h2,
.section--slate h3 {
    color: var(--on-dark);
}

.stack > * + * {
    margin-top: var(--stack-gap, var(--s-4));
}

.stack--sm { --stack-gap: var(--s-2); }
.stack--lg { --stack-gap: var(--s-6); }
.stack--xl { --stack-gap: var(--s-7); }

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cluster-gap, var(--s-3));
    align-items: center;
}

.cluster > * {
    min-width: 0;
}

.grid {
    display: grid;
    gap: var(--grid-gap, clamp(1.5rem, 3vw, 2.5rem));
}

.grid > * {
    min-width: 0;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }

.split {
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: 1fr;
}

.split > * {
    min-width: 0;
}

@media (min-width: 900px) {
    .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.measure { max-width: var(--measure); }
.measure-narrow { max-width: var(--measure-narrow); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--tohu-fae);
    font-size: var(--step--2);
    font-weight: 500;
    letter-spacing: var(--tracking-meta);
    text-transform: uppercase;
    color: var(--steel-ink);
    line-height: 1.4;
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    flex: none;
}

.eyebrow--plain::before {
    display: none;
}

.mono,
.meta {
    font-family: var(--tohu-fae);
    font-size: var(--step--1);
    letter-spacing: 0.01em;
}

.meta {
    color: var(--steel-ink);
}

.lede {
    font-size: var(--tohu-543);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 56ch;
}

.display {
    font-family: var(--tohu-3a3);
    font-size: var(--step-hero);
    line-height: 1;
    letter-spacing: -0.028em;
    font-weight: 500;
}

.accent { color: var(--signal-text); }
.steel { color: var(--steel-ink); }

.smallcaps {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.num {
    font-family: var(--tohu-fae);
    font-variant-numeric: tabular-nums;
}

.prose {
    max-width: var(--measure);
    font-size: var(--tohu-be1);
    line-height: 1.68;
}

.prose > * + * {
    margin-top: 1.05em;
}

.prose h2 {
    font-size: var(--tohu-d72);
    margin-top: 2.2em;
    line-height: 1.12;
}

.prose h3 {
    font-size: var(--tohu-24e);
    margin-top: 1.8em;
}

.prose h4 {
    margin-top: 1.5em;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
    margin-top: 0.6em;
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose ul li::marker {
    color: var(--signal);
}

.prose ol li::marker {
    font-family: var(--tohu-fae);
    font-size: 0.85em;
    color: var(--steel-ink);
}

.prose a {
    text-decoration-color: var(--signal);
}

.prose blockquote {
    border-left: 2px solid var(--signal);
    padding-left: var(--s-5);
    font-family: var(--tohu-3a3);
    font-style: italic;
    font-size: var(--tohu-543);
    line-height: 1.45;
}

.prose table {
    font-size: var(--step--1);
}

.prose th,
.prose td {
    text-align: left;
    vertical-align: top;
    padding: 0.7rem 0.8rem;
    border-bottom: var(--hairline);
}

.prose th {
    font-family: var(--tohu-fae);
    font-weight: 500;
    font-size: var(--step--2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel-ink);
    border-bottom-color: var(--ink);
}

.prose img {
    margin-block: var(--s-6);
}

.bose8e6 {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    vertical-align: -0.15em;
}

.ratio {
    position: relative;
    overflow: hidden;
    background: var(--mist);
}

.ratio > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ratio--3x2 { aspect-ratio: 3 / 2; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--16x10 { aspect-ratio: 16 / 10; }
.ratio--4x5 { aspect-ratio: 4 / 5; }

@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-instant: 0ms;
        --dur-fast: 0ms;
        --dur-base: 0ms;
        --dur-slow: 0ms;
        --dur-reveal: 0ms;
        --dur-rotate: 0ms;
        --reveal-distance: 0px;
        --magnetic-pull: 0px;
    }

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media print {
    body {
        background: #FFF;
        padding: 0;
    }

    body::after,
    .strip,
    .consent,
    .chat,
    .nav-toggle {
        display: none !important;
    }

    .frame {
        background: #FFF;
    }
}
