:root {
        --paper: #f3efe6;
        --ink: #191712;
        --accent: #d8450f;
        --muted: #6e6759;
        --hairline: rgba(25, 23, 18, 0.18);
        --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo,
            Consolas, 'Liberation Mono', monospace;
        --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino,
            Georgia, serif;
    }

    @counter-style hex {
        system: numeric;
        symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' 'a' 'b' 'c' 'd' 'e' 'f';
        pad: 2 '0';
    }

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

    body {
        font-family: var(--serif);
        font-size: 1.0625rem;
        line-height: 1.75;
        background: var(--paper);
        color: var(--ink);
        min-height: 100vh;
        padding: 4rem 2rem 6rem;
    }

    /* the signal bar: the site's one loud strip of pixels */
    body::before {
        content: '';
        position: fixed;
        inset: 0 0 auto 0;
        height: 5px;
        background: var(--accent);
        z-index: 10;
    }

    /* ghost wordmark, bleeding off the corner */
    body::after {
        content: '0-f';
        position: fixed;
        right: -1rem;
        bottom: -3rem;
        font: 700 clamp(8rem, 24vw, 18rem)/1 var(--mono);
        letter-spacing: -0.06em;
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(25, 23, 18, 0.1);
        pointer-events: none;
        user-select: none;
    }

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

    .page {
        max-width: 42rem;
        margin: 0 auto;
        counter-reset: section;
    }

    /* masthead: thick-thin editorial rule, first glyph in signal orange */
    .page h1 {
        font: 700 clamp(2.1rem, 6vw, 3.2rem)/1.08 var(--mono);
        letter-spacing: -0.03em;
        border-top: 4px solid var(--ink);
        position: relative;
        padding-top: 1.75rem;
        margin-bottom: 2rem;
    }

    .page h1::after {
        content: '';
        position: absolute;
        top: 6px;
        left: 0;
        right: 0;
        border-top: 1px solid var(--ink);
    }

    .page h1::first-letter {
        color: var(--accent);
    }

    /* sections counted in hex, because the domain insists */
    .page h2 {
        counter-increment: section;
        font: 700 1rem/1.4 var(--mono);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin: 3rem 0 1rem;
    }

    .page h2::before {
        content: '0x' counter(section, hex);
        color: var(--accent);
        margin-right: 0.75em;
    }

    .page h3 {
        font: italic 400 1.2rem/1.4 var(--serif);
        margin: 2rem 0 0.75rem;
    }

    .page p {
        margin-bottom: 1.1rem;
    }

    .page a {
        color: inherit;
        text-decoration: underline;
        text-decoration-color: var(--accent);
        text-decoration-thickness: 2px;
        text-underline-offset: 3px;
    }

    .page a:hover {
        background: var(--accent);
        color: var(--paper);
        text-decoration-color: transparent;
    }

    .page a:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .page strong {
        font-weight: 700;
    }

    /* pull-quotes with a hanging mark */
    .page blockquote {
        position: relative;
        margin: 2.25rem 0;
        padding-left: 3rem;
        font-style: italic;
        font-size: 1.15em;
    }

    .page blockquote::before {
        content: '\201C';
        position: absolute;
        left: 0;
        top: -0.35em;
        font: 700 3.5rem/1 var(--serif);
        color: var(--accent);
    }

    .page blockquote p:last-child {
        margin-bottom: 0;
    }

    .page code {
        font-family: var(--mono);
        font-size: 0.84em;
        background: rgba(25, 23, 18, 0.07);
        padding: 0.15em 0.4em;
        border-radius: 2px;
    }

    .page pre {
        background: var(--ink);
        color: var(--paper);
        border-left: 5px solid var(--accent);
        padding: 1.25rem 1.5rem;
        overflow-x: auto;
        margin-bottom: 1.5rem;
        font-size: 0.875rem;
        line-height: 1.65;
    }

    .page pre code {
        background: none;
        padding: 0;
        font-size: inherit;
        color: inherit;
        border-radius: 0;
    }

    /* ordered lists count in hex too */
    .page ul,
    .page ol {
        margin: 0 0 1.5rem 1.25rem;
    }

    .page li {
        margin-bottom: 0.6rem;
        padding-left: 0.4rem;
    }

    .page ul {
        list-style: square;
    }

    .page ul li::marker {
        color: var(--accent);
    }

    .page ol {
        list-style: hex;
        margin-left: 2.5rem;
    }

    .page ol li::marker {
        font-family: var(--mono);
        font-size: 0.8em;
        color: var(--accent);
    }

    .page table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .page th {
        font: 700 0.75rem/1.4 var(--mono);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        text-align: left;
        border-bottom: 3px solid var(--ink);
        padding: 0.5rem 0.75rem;
    }

    .page td {
        border-bottom: 1px solid var(--hairline);
        padding: 0.6rem 0.75rem;
        vertical-align: top;
    }

    .page tbody tr:nth-child(even) {
        background: rgba(25, 23, 18, 0.035);
    }

    /* horizontal rules become surveying rulers */
    .page hr {
        border: none;
        height: 13px;
        margin: 3rem 0;
        background-image:
            repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px),
            repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 64px);
        background-size: 100% 6px, 100% 13px;
        background-repeat: no-repeat;
        background-position: left bottom;
    }

    .page img {
        max-width: 100%;
        height: auto;
    }

    .page-nav {
        margin-top: 4rem;
        padding-top: 1rem;
        border-top: 1px solid var(--ink);
        font: 400 0.75rem/1.6 var(--mono);
        text-transform: uppercase;
        letter-spacing: 0.14em;
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .page-nav a {
        text-decoration: none;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 1px;
    }

    .page-nav a:hover {
        background: var(--accent);
        color: var(--paper);
    }

    @media (max-width: 480px) {
        body {
            padding: 3rem 1rem 4rem;
        }

        .page blockquote {
            padding-left: 2rem;
        }

        .page blockquote::before {
            font-size: 2.5rem;
        }
    }
