@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/IBMPlexSans-Variable.b2c9031d9fd6.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400 600;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/IBMPlexMono-Regular.79936b18df9f.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/IBMPlexMono-Medium.b1c8a895f5fd.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

:root {
    --ink: #04080d;
    --ink-soft: #080e15;
    --surface: #0c131b;
    --surface-light: #121b25;
    --paper: #eceef0;
    --paper-soft: #d3d7dc;
    --muted: #97a0a9;
    --muted-strong: #c3c9cf;
    --accent: #c9a64e;
    --accent-light: #e3c77e;
    --accent-rgb: 201, 166, 78;
    --on-accent: #04080d;
    --line: rgba(236, 238, 240, 0.12);
    --line-strong: rgba(236, 238, 240, 0.24);
    --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --header-height: 60px;
    --container: 1280px;
    --side-space: 48px;
    --section-space: clamp(40px, 4.5vw, 64px);
    --block-gap: clamp(20px, 2.4vw, 32px);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}

body.menu-open {
    overflow: hidden;
}

main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--paper);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    max-width: 30ch;
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 2.9vw, 2.6rem);
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}

h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

p {
    max-width: 75ch;
    color: var(--muted-strong);
}

dd {
    margin-inline-start: 0;
}

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

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

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

.container {
    width: min(calc(100% - var(--side-space)), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 8px 12px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 720px) {
    :root {
        --side-space: 32px;
        --section-space: 36px;
    }

    body {
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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