:root {
    --paper: #f4f1e8;
    --paper-2: #ebe6d6;
    --ink: #111111;
    --muted: #5c574c;
    --line: #1a1a1a;
    --cyan: #00aeef;
    --cyan-ink: #0077a8;
    --void: #0c0c0c;
    --void-2: #161616;
    --shell: 1180px;
    --gutter: 24px;
    --pixel: 8px;
    --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --font-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(var(--paper), var(--paper)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 7px,
            rgba(17, 17, 17, 0.03) 7px,
            rgba(17, 17, 17, 0.03) 8px
        );
    background-blend-mode: multiply;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--cyan-ink);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.55em;
}

h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 12px;
    z-index: 20;
}

.skip-link:focus {
    top: 12px;
}

.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 12;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(17, 17, 17, 0.025) 2px,
        rgba(17, 17, 17, 0.025) 3px
    );
}

.kicker {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-ink);
    margin: 0 0 12px;
}

.lede {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 40rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 2px solid var(--ink);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    border-radius: 0;
    transition: transform 80ms steps(2, end), background 80ms linear, color 80ms linear;
}

.btn:hover {
    transform: translate(4px, -4px);
    color: var(--ink);
}

.btn-solid {
    background: var(--cyan);
    box-shadow: 4px 4px 0 var(--ink);
}

.btn-solid:hover {
    background: #33c4f5;
}

.btn-ghost {
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.text-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    border-bottom: 2px solid var(--cyan);
}

.text-link:hover {
    color: var(--ink);
    background: var(--cyan);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(244, 241, 232, 0.92);
    border-bottom: 2px solid var(--ink);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand img {
    height: 36px;
    width: auto;
    image-rendering: pixelated;
    mix-blend-mode: multiply;
}

.site-nav .nav-list,
.site-footer .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav-list {
    display: flex;
    gap: 8px 22px;
    align-items: center;
}

.site-nav a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
}

.site-nav .current-menu-item a,
.site-nav .current_page_item a {
    background: var(--ink);
    color: var(--cyan);
    padding: 4px 8px;
}

.site-nav .nav-list li:last-child a {
    border: 2px solid var(--ink);
    padding: 6px 10px;
    background: var(--cyan);
    box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--ink);
    background: var(--paper);
    min-height: 40px;
    padding: 0 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-toggle-marks {
    display: grid;
    gap: 3px;
}

.nav-toggle-marks i {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
}

/* Hero */
.hero {
    padding: 72px 0 48px;
}

.hero-grid,
.split,
.brief-layout,
.method-grid {
    display: grid;
    gap: 40px;
}

.hero-grid,
.split,
.brief-layout {
    grid-template-columns: 1.3fr 0.9fr;
}

.method-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.pixel-frame {
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 8px 8px 0 var(--ink);
    padding: 20px;
}

.pixel-d {
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    background:
        linear-gradient(var(--cyan), var(--cyan)) 18% 72% / 42% 42% no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) 58% 28% / 16% 58% no-repeat,
        repeating-conic-gradient(#d9f4ff 0% 25%, #ffffff 0% 50%) 0 0 / 16px 16px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.pixel-d span {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--ink);
    background: var(--paper);
    padding: 0 8px;
    border: 2px solid var(--ink);
}

.stat-stack {
    margin: 0;
}

.stat-stack > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 2px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.stat-stack dt {
    color: var(--muted);
}

.stat-stack dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

/* Ticker */
.ticker {
    border-block: 2px solid var(--ink);
    background: var(--ink);
    color: var(--cyan);
    overflow: hidden;
    padding: 10px 0;
}

.ticker-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: ticker 28s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ticker .tick {
    color: var(--paper);
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 36px;
}

.section-head.invert,
.section-ink {
    color: #f3f3f3;
}

.section-ink {
    background: var(--void);
}

.section-ink .kicker {
    color: var(--cyan);
}

.section-paper {
    background: var(--paper-2);
    border-block: 2px solid var(--ink);
}

.section-more {
    margin: 28px 0 0;
}

.page-hero {
    padding: 64px 0 12px;
}

.page-main .section:first-of-type {
    padding-top: 36px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.card,
.practice,
.work-entry,
.post-row {
    border: 2px solid var(--ink);
    background: var(--paper);
}

.card {
    padding: 22px;
    box-shadow: 4px 4px 0 var(--ink);
}

.card .idx,
.practice .idx,
.method-list span {
    font-family: var(--font-display);
    color: var(--cyan-ink);
    font-size: 1.1rem;
}

/* Work */
.work-feature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.work-card {
    display: flex;
    flex-direction: column;
    border: 2px solid #f3f3f3;
    text-decoration: none;
    min-height: 220px;
    background: var(--void-2);
}

.work-card:hover {
    outline: 3px solid var(--cyan);
    color: #f3f3f3;
}

.work-art {
    min-height: 160px;
    flex: 1;
    border-bottom: 2px solid #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
}

.work-art img {
    display: block;
    max-width: 78%;
    max-height: 96px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.work-mark {
    display: block;
    width: 100%;
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.15;
}

.work-art--navy {
    background: #10243a;
    color: #f4f1e8;
}

.work-art--ink {
    background: #111111;
    color: #f4f1e8;
}

.work-art--green {
    background: #16351f;
    color: #e8f6e4;
}

.work-art--olive {
    background: #2c3318;
    color: #f3f0d8;
}

.work-art--paper {
    background: #f4f1e8;
    color: #111;
}

.work-art--gold {
    background: #3a2a10;
    color: #f6e7c2;
}

.work-art--purple {
    background: #2a1840;
    color: #efe6fb;
}

.work-art--cyan {
    background: #063445;
    color: #dff4ff;
}

.work-art--white {
    background: #ffffff;
    color: #111;
}

.work-art--sky {
    background: #c5e6f6;
    color: #10243a;
}

.work-art--red {
    background: #8a1c1c;
    color: #fff3f0;
}

.work-meta {
    padding: 16px;
}

.work-meta span,
.work-meta em {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cyan);
}

.work-meta strong {
    display: block;
    margin: 8px 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.work-entry {
    display: flex;
    flex-direction: column;
    box-shadow: 5px 5px 0 var(--ink);
    scroll-margin-top: 96px;
}

.work-entry .work-art {
    min-height: 148px;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
}

.work-entry > div {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-entry h2 {
    font-size: 1.35rem;
    margin-bottom: 0.2em;
}

.work-entry .chip-row {
    margin-top: auto;
    padding-top: 12px;
}

.work-product {
    font-weight: 500;
    color: var(--muted);
    margin-top: -0.4em;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quote-card {
    margin: 0;
    padding: 22px;
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--ink);
    display: flex;
    flex-direction: column;
}

.quote-card p {
    font-size: 1.05rem;
    line-height: 1.55;
    flex: 1;
}

.quote-card footer {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quote-card strong {
    font-size: 0.95rem;
}

.quote-card span {
    font-size: 0.85rem;
    color: var(--muted);
}

.chip-row,
.plain-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-row li {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 2px solid var(--ink);
    padding: 4px 8px;
    background: var(--paper-2);
}

/* Method + practices */
.method-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.method-list li,
.practice {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 22px 0;
    border-top: 2px solid var(--ink);
}

.practice {
    padding: 28px;
    box-shadow: 5px 5px 0 var(--ink);
    margin-bottom: 16px;
}

.practice ul {
    padding-left: 1.1rem;
    color: var(--muted);
}

.stack-line {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan-ink);
}

/* Posts */
.post-list {
    display: grid;
    gap: 12px;
}

.post-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
}

.post-row time {
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.post-row h2,
.post-row h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.post-row h2 a,
.post-row h3 a {
    text-decoration: none;
}

.post-row p {
    margin: 0;
    color: var(--muted);
}

.prose-wrap {
    padding: 64px 0 96px;
    max-width: 760px;
}

.prose p {
    font-size: 1.05rem;
}

.pagination {
    margin-top: 24px;
    font-family: var(--font-mono);
}

/* CTA + footer */
.cta-band {
    background: var(--cyan);
    border-block: 2px solid var(--ink);
}

.cta-inner {
    max-width: 44rem;
}

.site-footer {
    background: var(--void);
    color: #ececec;
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 40px;
}

.footer-brand img {
    background: #fff;
    padding: 6px;
    margin-bottom: 12px;
}

.footer-brand p,
.plain-list {
    color: #bdbdbd;
}

.site-footer a {
    color: #ececec;
}

.site-footer .kicker {
    color: var(--cyan);
}

.site-footer .btn-solid {
    color: var(--ink);
}

.status-bar {
    border-top: 2px solid #2a2a2a;
    padding: 14px 0 22px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--cyan);
}

.status-meta {
    margin-left: auto;
    color: #8d8d8d;
}

.blink {
    animation: blink 1s steps(2, end) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Contact */
.choice-grid {
    display: grid;
    gap: 10px;
}

.choice-grid label,
.field-grid input,
.field-grid textarea {
    border: 2px solid var(--ink);
    background: var(--paper);
    font: inherit;
}

.choice-grid label {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.choice-grid label:has(input:checked) {
    background: var(--cyan);
}

.choice-grid input {
    accent-color: var(--ink);
}

.brief-nav {
    display: flex;
    gap: 10px;
    margin: 20px 0 28px;
}

.recommendation {
    border: 2px solid var(--ink);
    background: var(--ink);
    color: #f3f3f3;
    padding: 20px;
    margin-bottom: 24px;
}

.recommendation .kicker {
    color: var(--cyan);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-grid .wide,
.field-grid .btn,
.form-status {
    grid-column: 1 / -1;
}

.field-grid label span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.field-grid input,
.field-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 0;
}

.form-status {
    min-height: 1.4em;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.step {
    display: none;
}

.step.is-active {
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .split,
    .brief-layout,
    .method-grid,
    .card-grid,
    .card-grid.three,
    .footer-grid,
    .field-grid,
    .post-row {
        grid-template-columns: 1fr;
    }

    .work-feature,
    .work-list,
    .quote-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: var(--paper);
        border-bottom: 2px solid var(--ink);
        padding: 16px 24px 24px;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner {
        position: relative;
    }

    .status-meta {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .work-feature,
    .work-list,
    .quote-grid {
        grid-template-columns: 1fr;
    }
}

body.admin-bar .site-header {
    top: 32px;
}
