@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #000000; /* Background */
    --ink: #ffffff; /* Text */
    --ink-2: #888888; /* outer text/bottom text */
    --line: #b8b8b8; /* that line at the bottom */
    --accent: #999999; /* Accents  */

    --pad: clamp(1.25rem, 3.5vw, 4rem);
    --maxw: 1500px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100svh;
    background-color: var(--bg);
    /* faint graph-paper texture — reads as paper, not decoration */
    background-image: radial-gradient(
        circle,
        rgba(27, 26, 23, 0.045) 1px,
        transparent 1.4px
    );
    background-size: 26px 26px;
    background-position: center;
    color: var(--ink);
    font-family:
        "Space Grotesk",
        system-ui,
        -apple-system,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.stage {
    position: relative;
    min-height: 100svh;
    padding: var(--pad);
}

/* ---- Signature: corner registration ticks framing the page ---- */
.frame {
    position: absolute;
    inset: var(--pad);
    pointer-events: none;
}
.tick {
    position: absolute;
    width: clamp(12px, 1.4vw, 22px);
    height: clamp(12px, 1.4vw, 22px);
}
.tick--tl {
    top: 0;
    left: 0;
    border-top: 1.5px solid var(--accent);
    border-left: 1.5px solid var(--accent);
}
.tick--tr {
    top: 0;
    right: 0;
    border-top: 1.5px solid var(--accent);
    border-right: 1.5px solid var(--accent);
}
.tick--bl {
    bottom: 0;
    left: 0;
    border-bottom: 1.5px solid var(--accent);
    border-left: 1.5px solid var(--accent);
}
.tick--br {
    bottom: 0;
    right: 0;
    border-bottom: 1.5px solid var(--accent);
    border-right: 1.5px solid var(--accent);
}

/* ---- Centered editorial column ---- */
.content {
    position: relative;
    max-width: var(--maxw);
    margin-inline: auto;
    min-height: calc(100svh - 2 * var(--pad));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(2rem, 6vh, 4rem);
}

/* ---- Masthead ---- */
.masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-left: 0.2em;
    padding-right: 0.2em;
    padding-top: 0.05em;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: clamp(0.95rem, 1.05vw, 1.15rem);
}
.dot {
    width: 0.42em;
    height: 0.42em;
    border-radius: 50%;
    background: var(--accent);
}
.index {
    font-family:
        "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.68rem, 0.9vw, 0.82rem);
    color: var(--ink-2);
    text-align: right;
}

/* ---- Hero ---- */
.hero {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.25rem, 3vh, 2rem);
}
.eyebrow {
    font-family:
        "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(0.66rem, 0.9vw, 0.82rem);
    color: var(--ink-2);
}
.title {
    font-weight: 500;
    font-size: clamp(2.8rem, 9vw, 8.5rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    max-width: 16ch;
    text-wrap: balance;
}
.lede {
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1.5;
    max-width: 46ch;
    color: var(--ink);
}

/* ---- Long-form article section ---- */
.article {
    max-width: 68ch;
    font-size: clamp(0.95rem, 1.25vw, 1.1rem);
    line-height: 1.7;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

/* ---- Baseline data line ---- */
.baseline {
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 1.5vh, 1.2rem);
}
.baseline__rule {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--line);
}
.baseline__row {
    padding-left: 0.2em;
    padding-right: 0.2em;
    padding-bottom: 0.05em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    font-family:
        "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(0.66rem, 0.85vw, 0.8rem);
    color: var(--ink-2);
}

/* ---- Narrow screens ---- */
@media (max-width: 560px) {
    .index {
        font-size: 0.66rem;
    }
    .title {
        letter-spacing: -0.02em;
    }
    .baseline__row {
        gap: 0.4rem 1rem;
    }
}

/* ---- One-time load reveal; off entirely under reduced motion ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(14px);
        animation: rise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
    }
    .d1 {
        animation-delay: 0.05s;
    }
    .d2 {
        animation-delay: 0.14s;
    }
    .d3 {
        animation-delay: 0.23s;
    }
    .d4 {
        animation-delay: 0.32s;
    }
}
@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}