@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/assets/fonts/ibm-plex-sans-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --ink-950: #07191c;
    --ink-900: #0b2428;
    --ink-800: #15383c;
    --ink-700: #285158;

    --text: #10292e;
    --muted: #5a7074;
    --muted-light: #829397;

    --blue: #0074d9;
    --blue-dark: #005cae;
    --signal: #9bd629;
    --signal-dark: #668f12;

    --paper: #f4f8f6;
    --surface: #ffffff;
    --surface-soft: #eaf1ee;

    --line: #cddbd7;
    --line-strong: #aebfba;
    --dark-line: rgba(255, 255, 255, 0.16);

    --font-sans:
        "IBM Plex Sans",
        "Segoe UI",
        Arial,
        sans-serif;

    --font-mono:
        "IBM Plex Mono",
        Consolas,
        monospace;

    --container: 1240px;
    --reading-width: 760px;

    --radius-small: 4px;
    --radius: 10px;

    --shadow-small:
        0 1px 2px rgba(7, 25, 28, 0.04),
        0 12px 30px rgba(7, 25, 28, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--blue-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--blue);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--signal);
    color: var(--ink-950);
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border: 1px solid var(--signal);
    border-radius: var(--radius-small);
    background: var(--ink-950);
    color: #ffffff;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(155, 214, 41, 0.7);
    outline-offset: 3px;
}

/* Typography */

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--ink-950);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
    margin-top: 0;
}

.eyebrow,
.meta-label {
    color: var(--blue-dark);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mono {
    font-family: var(--font-mono);
}

.muted {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    gap: 10px;
}

/* Shared actions */

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.button-primary {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.button-primary:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
    color: #ffffff;
}

.button-secondary {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--ink-900);
}

.button-secondary:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--dark-line);
    background: rgba(7, 25, 28, 0.97);
    backdrop-filter: blur(14px);
}

.site-header::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background:
        linear-gradient(90deg,
            var(--blue) 0 68%,
            var(--signal) 68% 100%);
    content: "";
}

.site-header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    text-decoration: none;
}

.site-logo {
    width: 178px;
    height: auto;
}

.site-brand-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.28);
}

.site-brand-lab {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.site-nav a {
    position: relative;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:hover {
    color: #ffffff;
}

.site-nav a[aria-current="page"] {
    color: var(--signal);
}

.site-nav a[aria-current="page"]::after {
    position: absolute;
    right: 12px;
    bottom: 2px;
    left: 12px;
    height: 2px;
    background: var(--signal);
    content: "";
}

.site-nav .site-nav-external {
    color: rgba(255, 255, 255, 0.6);
}

/* Shared page structure */

.page-section {
    padding-block: clamp(56px, 8vw, 100px);
}

.page-section+.page-section {
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns:
        minmax(220px, 0.75fr) minmax(280px, 1.25fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 38px;
}

.section-heading> :last-child {
    max-width: 62ch;
    color: var(--muted);
}

.prose {
    width: min(100%, var(--reading-width));
}

.prose p,
.prose li {
    font-size: 1.08rem;
}

.prose h2 {
    margin-top: 2.2em;
}

.prose h3 {
    margin-top: 1.8em;
}

/* Footer */

.site-footer {
    border-top: 3px solid var(--signal);
    background: var(--ink-950);
    color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.75fr 0.9fr;
    gap: clamp(44px, 7vw, 96px);
    padding-block: 62px 48px;
}

.footer-identity {
    max-width: 48ch;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.footer-logo {
    width: 168px;
    height: auto;
}

.footer-brand span {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.28);
}

.footer-brand strong {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    letter-spacing: 0.16em;
}

.footer-column {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
}

.footer-column h2 {
    margin-bottom: 8px;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px 30px;
    border-top: 1px solid var(--dark-line);
    font-family: var(--font-mono);
    font-size: 0.73rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

/* Responsive */

@media (max-width: 820px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-block: 18px 14px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .site-nav a {
        white-space: nowrap;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-identity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .site-logo {
        width: 154px;
    }

    .site-brand-divider {
        height: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-identity {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}