/* ==========================================================================
   ShitOps 2026 — Enterprise Daylight
   Loaded after site.css and motion.css. One light-first system, one signal
   colour, flat grounds, editorial type. Dark mode is the night shift.
   ========================================================================== */

/* ---------- faces ---------- */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("/static/fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/static/fonts/plex-mono-400.woff2") format("woff2");
}

@font-face {
    font-family: "Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/static/fonts/plex-mono-500.woff2") format("woff2");
}

@font-face {
    font-family: "Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/static/fonts/plex-mono-600.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
    color-scheme: light;

    --bg: #f3f1ea;
    --bg-elevated: #ffffff;
    --bg-inset: #e9e6db;
    --bg-code: #11110f;

    --border: #d8d5ca;
    --border-strong: #a9a69a;

    --text: #101010;
    --text-muted: #4f4f48;
    --text-faint: #6b6b62;

    --accent: #cc3208;
    --accent-ink: #ffffff;
    --accent-soft: rgba(204, 50, 8, 0.09);
    --accent-line: rgba(204, 50, 8, 0.35);
    --accent-2: #1c4e80;
    --warn: #7a5410;
    --grug: #7d5d22;
    --danger: #b3261e;

    --radius-xs: 0px;
    --radius-sm: 0px;
    --radius: 0px;
    --radius-lg: 0px;
    --pill: 999px;

    --shadow-sm: none;
    --shadow: none;
    --shadow-lg: 0 30px 80px rgba(16, 16, 16, 0.18);

    --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

    --max-width: 1240px;
    --prose-width: 44rem;
    --header-height: 72px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-gap: clamp(4rem, 8vw, 7rem);

    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

    /* console surface */
    --panel-bg: #ffffff;
    --panel-ink: #101010;
    --panel-muted: #5f5f57;
    --panel-line: rgba(16, 16, 16, 0.16);
    --panel-inset: #ebe8de;
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0c0c0b;
    --bg-elevated: #151513;
    --bg-inset: #1d1d1a;
    --bg-code: #000000;

    --border: #2a2926;
    --border-strong: #4a4842;

    --text: #f1efe7;
    --text-muted: #b0ada2;
    --text-faint: #8f8c82;

    --accent: #ff6236;
    --accent-ink: #16100c;
    --accent-soft: rgba(255, 98, 54, 0.13);
    --accent-line: rgba(255, 98, 54, 0.42);
    --accent-2: #8ab4dd;
    --warn: #e0b978;
    --grug: #d7b06b;
    --danger: #ff8b8b;

    --panel-bg: #151513;
    --panel-ink: #f1efe7;
    --panel-muted: #b0ada2;
    --panel-line: rgba(241, 239, 231, 0.16);
    --panel-inset: #1d1d1a;
}

/* ---------- base ---------- */
html {
    scroll-padding-top: calc(var(--header-height) + 1.5rem);
    background: var(--bg);
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: none;
    font-feature-settings: "ss01" 1;
}

h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.035em;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--accent-soft);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

main {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: var(--section-gap);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    gap: 0.65rem;
}

.eyebrow::before {
    width: 1.6rem;
    height: 2px;
    background: var(--accent);
    border-radius: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    background: var(--text);
    color: var(--bg);
    border-radius: 0;
}

/* ---------- chrome ---------- */
.site-header {
    background: var(--bg);
    backdrop-filter: none;
    border-bottom: 2px solid var(--text);
}

.navbar {
    min-height: var(--header-height);
    gap: 1.75rem;
}

.brand {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.045em;
    gap: 0.65rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: var(--accent);
    color: var(--accent-ink);
    transform: none;
    box-shadow: none;
    font-size: 1rem;
}

.brand:hover .brand-mark {
    transform: translateY(-2px);
    box-shadow: none;
}

.brand-tag {
    border-radius: 0;
    border-color: var(--border-strong);
    color: var(--text-muted);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    transform: none;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-radius: 0;
    padding: 0.5rem 0.55rem;
}

.nav-link:hover {
    background: transparent;
    color: var(--text);
}

.nav-link.active {
    color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--accent);
    border-radius: 0;
    transform: scaleX(1);
}

.nav-link::after {
    transform: scaleX(0);
}

.theme-toggle {
    border-radius: 0;
    color: var(--text-muted);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--border-strong);
    transform: none;
}

.site-search {
    border-radius: 0;
    background: transparent;
    border-color: var(--border-strong);
    padding-left: 0.7rem;
}

.site-search:focus-within {
    border-color: var(--text);
    box-shadow: none;
}

.site-search input {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    width: 140px;
    padding-left: 0.55rem;
}

.site-search button {
    border-radius: 0;
    background: var(--text);
    color: var(--bg);
    width: 30px;
    height: 30px;
}

.site-search button:hover {
    background: var(--accent);
    color: var(--accent-ink);
    transform: none;
    filter: none;
}

.hamburger,
.hamburger:hover {
    border-radius: 0;
}

/* ---------- buttons ---------- */
.button,
.button-ghost {
    border-radius: 0;
    padding: 0.8rem 1.15rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 48px;
}

.button {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-2px);
    box-shadow: none;
    filter: none;
}

.button:active {
    transform: translateY(0);
}

.button-ghost {
    border-color: var(--border-strong);
    color: var(--text);
}

.button-ghost:hover {
    background: transparent;
    border-color: var(--text);
    color: var(--text);
    transform: translateY(-2px);
}

/* ---------- hero ---------- */
.hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2rem, 6vh, 4.5rem) 0 clamp(2.5rem, 6vh, 4rem);
    min-height: calc(100svh - var(--header-height) - 1.5rem);
    align-items: center;
}

.hero-copy {
    max-width: 54rem;
}

.hero-title {
    font-size: clamp(2.9rem, 5.4vw, 5.1rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 800;
    margin: 0 0 1.5rem;
    text-wrap: balance;
}

.hero-accent {
    color: var(--accent);
    white-space: normal;
}

.hero-accent::after {
    display: none;
}

.hero-lede {
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 48ch;
    margin: 0 0 2.1rem;
}

.hero-actions {
    gap: 0.6rem;
}

.hero-eyebrow {
    margin-bottom: 1.35rem;
}

/* console */
.hero .hero-panel {
    background: var(--panel-bg);
    color: var(--panel-ink);
    border: 1px solid var(--border-strong);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    animation: rise 0.6s 0.18s var(--ease) both;
}

.hero .hero-panel::before {
    display: none;
}

.hero .hero-panel::after {
    display: none;
}

.hero .panel-bar {
    border-bottom: 1px solid var(--panel-line);
    padding: 0.85rem 1.1rem;
    color: var(--panel-muted);
    letter-spacing: 0.12em;
}

.hero .panel-host {
    color: var(--panel-ink);
}

.hero .live-dot {
    background: var(--accent);
    box-shadow: none;
    animation: pulse 2.8s ease-in-out infinite;
}

.hero .panel-badge {
    color: var(--panel-ink);
    border-color: var(--panel-line);
    border-radius: 0;
}

.hero .hero-stats {
    padding: 0 1.1rem;
    margin: 0;
}

.hero .hero-stat {
    border-bottom: 1px solid var(--panel-line);
    padding: 0.78rem 0;
}

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

.hero .hero-stat dd {
    color: var(--panel-ink);
}

.hero .hero-stat:first-child dd {
    color: var(--accent);
    font-size: 1.05rem;
}

.hero .hero-bars {
    height: 46px;
    margin: 1.1rem 1.1rem 0.9rem;
    gap: 4px;
}

.hero .hero-bars span {
    background: var(--panel-ink);
    opacity: 0.32;
    border-radius: 0;
}

.hero .hero-bars span:nth-child(3n) {
    background: var(--accent);
    opacity: 1;
}

.hero .panel-log {
    background: var(--panel-inset);
    border: 0;
    border-radius: 0;
    margin: 0 1.1rem 0.9rem;
    color: var(--panel-ink);
    letter-spacing: 0;
    font-size: 0.68rem;
    text-transform: none;
}

.hero .panel-log-prompt {
    color: var(--accent);
}

.hero .panel-foot {
    color: var(--panel-muted);
    padding: 0 1.1rem 1.1rem;
}

.hero .panel-foot b {
    color: var(--panel-ink);
}

/* ---------- status strip ---------- */
.status-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 1.5rem;
    padding: 0.7rem 0;
    margin: 0 0 clamp(3rem, 6vw, 5rem);
    border-block: 1px solid var(--border-strong);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.status-line-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    font-weight: 600;
}

.status-line-label::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.status-line span + span::before {
    content: "/";
    margin-right: 1.5rem;
    color: var(--border-strong);
}

.status-line .status-line-end {
    margin-left: auto;
    color: var(--accent);
}

/* old marquee stays out of the way if a template still uses it */
.buzz-strip {
    border-block: 1px solid var(--border-strong);
    background: transparent;
    border-radius: 0;
}

.buzz-track span {
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* ---------- section heads ---------- */
.section-heading {
    align-items: baseline;
    border-bottom: 0;
    border-top: 2px solid var(--text);
    padding-top: 0.9rem;
    padding-bottom: 0;
    margin-bottom: 1.9rem;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.15rem);
    letter-spacing: -0.045em;
    gap: 0.9rem;
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent);
    transform: translateY(-0.15em);
}

.section-note,
.section-link {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-link:hover {
    color: var(--accent);
}

/* ---------- page headings ---------- */
.page-heading {
    max-width: 72ch;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--text);
}

.page-heading h1 {
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
    margin: 0 0 1rem;
}

.lead-text {
    font-size: clamp(1.02rem, 1.2vw, 1.16rem);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 64ch;
}

.lead-text--muted {
    color: var(--text-faint);
}

.heading-meta {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 1rem;
}

/* ---------- cards ---------- */
.post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.25rem);
}

.post-card {
    background: transparent;
    border: 0;
    border-top: 2px solid var(--text);
    border-radius: 0;
    transition: transform 0.18s var(--ease);
}

.post-card::before {
    display: none !important;
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: none;
}

.post-card:focus-within {
    border-color: var(--accent);
}

.post-card-content {
    padding: 1.1rem 0 0;
    gap: 0.65rem;
}

.post-card-title {
    font-size: clamp(1.25rem, 1.5vw, 1.6rem);
    line-height: 1.14;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
    -webkit-line-clamp: 3;
    max-height: calc(3 * 1.55em);
}

.post-card-meta,
.post-card-footnote,
.post-card-reading {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.post-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.35rem;
}

.read-more {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
}

.chip {
    border-radius: 0;
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.16rem 0.45rem;
}

.chip:hover {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

.chip-category {
    color: var(--accent);
    border-color: var(--accent-line);
    background: transparent;
}

.chip-category:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.post-grid--home .post-card {
    animation: rise 0.5s var(--ease) both;
}

.post-grid--home .post-card:nth-child(2) { animation-delay: 0.07s; }
.post-grid--home .post-card:nth-child(3) { animation-delay: 0.14s; }

/* ---------- empty states ---------- */
.empty-state {
    background: transparent;
    border: 1px dashed var(--border-strong);
    border-radius: 0;
}

.empty-kicker {
    color: var(--accent);
}

/* ---------- filters ---------- */
.post-filters {
    background: transparent;
    border: 0;
    border-block: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 0.75rem 0;
    gap: 0.5rem;
}

.filter-label,
.filter-button,
.filter-count,
.filter-badge {
    font-family: var(--font-mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.filter-label {
    border-right-color: var(--border);
}

.filter-button {
    border-radius: 0;
    background: transparent;
    border-color: var(--border-strong);
    min-height: 38px;
}

.filter-button:hover {
    border-color: var(--text);
}

.filter-dropdown[open] .filter-button {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.dropdown-content {
    border-radius: 0;
    border-color: var(--text);
    box-shadow: 0 20px 50px rgba(16, 16, 16, 0.16);
}

.dropdown-content a {
    border-radius: 0;
}

.filter-badge {
    border-radius: 0;
    background: transparent;
    border-color: var(--accent-line);
}

.filter-clear {
    border-radius: 0;
}

/* ---------- pagination ---------- */
.page-link {
    border-radius: 0;
    background: transparent;
    border-color: var(--border-strong);
    min-width: 38px;
    height: 38px;
}

.page-link.current {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.pagination-meta {
    font-family: var(--font-mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* ---------- the raised band ---------- */
.ground-inverse {
    --bg: #e9e6db;
    --bg-elevated: #ffffff;
    --bg-inset: #dedbd0;
    --border: #cfcbbf;
    --border-strong: #a9a69a;
    --text: #101010;
    --text-muted: #4f4f48;
    --text-faint: #6b6b62;
    --accent: #cc3208;
    --accent-ink: #ffffff;
    --accent-soft: rgba(204, 50, 8, 0.09);
    --accent-line: rgba(204, 50, 8, 0.35);
    --shadow: none;
    --shadow-sm: none;

    margin-inline: calc(-1 * var(--gutter));
    padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
    background: var(--bg);
    color: var(--text);
    border-block: 1px solid var(--border);
}

[data-theme="dark"] .ground-inverse {
    --bg: #151513;
    --bg-elevated: #1c1c19;
    --bg-inset: #22221f;
    --border: #33322e;
    --border-strong: #4c4a43;
    --text: #f1efe7;
    --text-muted: #b3b0a5;
    --text-faint: #8f8c82;
    --accent: #ff6236;
    --accent-ink: #16100c;
    --accent-soft: rgba(255, 98, 54, 0.14);
    --accent-line: rgba(255, 98, 54, 0.42);
}

.ground-inverse .section-heading {
    border-top-color: var(--text);
}

/* ---------- complexity lab ---------- */
.complexity-lab .lab {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
}

.complexity-lab .lab-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
}

.complexity-lab .lab-svg {
    width: 100%;
    height: auto;
}

.complexity-lab .lab-node {
    fill: var(--bg-inset);
    stroke: var(--border-strong);
}

.complexity-lab .lab-label {
    fill: var(--text);
    font-family: var(--font-mono);
    font-size: 12px;
}

.complexity-lab .lab-node--muted {
    fill: transparent;
    stroke-dasharray: 3 3;
}

.complexity-lab .lab-label--muted {
    fill: var(--text-muted);
}

.complexity-lab .lab-edge {
    stroke: var(--text-faint);
}

.complexity-lab .lab-verdict {
    align-self: flex-start;
    margin-top: 1rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--accent);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.complexity-lab .lab-panel {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.4rem;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
}

.complexity-lab .lab-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--border);
}

.complexity-lab .lab-metrics > div {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.complexity-lab .lab-metrics > div:nth-child(odd) {
    padding-right: 1rem;
}

.complexity-lab .lab-metrics dt {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.complexity-lab .lab-metrics dd {
    margin: 0.2rem 0 0;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text);
}

.complexity-lab .lab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.complexity-lab .lab-button {
    border-radius: 0;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.65rem;
    min-height: 40px;
    cursor: pointer;
}

.complexity-lab .lab-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.complexity-lab .lab-button--reset {
    margin-left: auto;
    color: var(--text-faint);
}

.complexity-lab .lab-log {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    line-height: 1.5;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

.complexity-lab .lab-noscript {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- hot takes (shared with the home teaser) ---------- */
.hot-take-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.hot-take-card {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    box-shadow: none;
}

.hot-take-card::before {
    display: none;
}

.hot-take-card:hover {
    border-color: var(--accent);
    box-shadow: none;
    transform: translateY(-2px);
}

.hot-take-tech,
.hot-take-verdict,
.hot-take-date {
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hot-take-tech {
    color: var(--text-muted);
    font-size: 0.64rem;
}

.hot-take-verdict {
    border-radius: 0;
    color: var(--danger);
    border-color: var(--danger);
}

.hot-take-card-title {
    font-size: clamp(1.3rem, 1.8vw, 1.75rem);
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.hot-take-card-take {
    color: var(--text-muted);
}

.hot-take-heat {
    display: inline-flex;
    gap: 3px;
}

.hot-take-flame {
    width: 14px;
    height: 4px;
    background: var(--border-strong);
}

.hot-take-flame.is-lit {
    background: var(--accent);
}

.hot-take-detail {
    max-width: min(100%, 54rem);
}

.hot-take-header {
    border-bottom: 2px solid var(--text);
    padding-bottom: 1.5rem;
}

.hot-take-title {
    font-size: clamp(2.3rem, 4.5vw, 3.7rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hot-take-take {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.hot-take-counterpoint {
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    background: transparent;
}

.hot-take-counterpoint-label {
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hot-take-more {
    border-top: 2px solid var(--text);
}

/* ---------- closing ---------- */
.featured-posts,
.hot-takes-home {
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.hot-takes-home {
    margin-top: clamp(3.5rem, 7vw, 6rem);
}

.closing {
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: 1.5rem;
    border-top: 2px solid var(--text);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 2rem;
    align-items: end;
}

.closing h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.055em;
    margin: 0.5rem 0 0;
}

.closing p {
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0.9rem 0 0;
}

.closing .hero-actions {
    justify-content: flex-end;
}

/* ---------- post detail ---------- */
.post-detail {
    max-width: min(100%, 52rem);
}

.post-header {
    border-bottom: 2px solid var(--text);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.post-title {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.post-title--long {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.1;
}

.avatar {
    border-radius: 0;
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.post-author-name {
    font-weight: 600;
}

.byline-meta {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.post-joke {
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    background: transparent;
}

.post-joke::before {
    display: none;
}

.joke-label {
    color: var(--accent);
}

.joke-answer-wrap summary {
    border-radius: 0;
}

.table-of-contents {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
}

.toc-item a.is-active::before {
    content: "→";
}

.post-content {
    font-size: 1.19rem;
    line-height: 1.75;
}

.post-content > p:first-of-type {
    font-size: 1.06em;
}

.post-content h2 {
    border-bottom: 1px solid var(--border-strong);
    letter-spacing: -0.04em;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    border-radius: 0;
    background: transparent;
    padding-left: 1.25rem;
}

.post-content code {
    border-radius: 0;
}

.post-content pre {
    border-radius: 0;
}

.post-content img {
    border-radius: 0;
}

.post-content .viz {
    border-radius: 0;
}

.comment {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 1rem 0;
}

.subcomment {
    background: var(--bg-inset);
    border-radius: 0;
}

.comment-avatar,
.comment-avatar--sm {
    border-radius: 0;
}

.comment-avatar--initials {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.badge,
.count-pill {
    border-radius: 0;
}

.grug-reaction {
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 0;
}

.grug-reaction::before {
    border-radius: 0;
}

.grug-reaction-text,
.grug-solution {
    border-radius: 0;
}

.grug-source a {
    border-radius: 0;
}

/* ---------- team ---------- */
.team-grid {
    gap: 0;
    border-top: 2px solid var(--text);
}

.team-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem 1.25rem 1.4rem 0;
}

.team-card:hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.team-card:hover .team-name a {
    color: var(--accent);
}

.team-posts,
.team-title {
    border-radius: 0;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.team-name {
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.team-bio {
    color: var(--text-muted);
}

/* ---------- about / responsibility / career ---------- */
.about-grid {
    gap: 0;
    border-top: 2px solid var(--text);
}

.about-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1.3rem 1.25rem 1.3rem 0;
}

.about-index {
    color: var(--accent);
}

.about-quote blockquote {
    border-left: 4px solid var(--accent);
    border-radius: 0;
    background: transparent;
}

.about-rules-list {
    gap: 0;
}

.about-rules-list li {
    background: transparent;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    padding-inline: 1rem;
}

.career-grid {
    gap: 0;
    border-top: 2px solid var(--text);
}

.career-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1.4rem 1.25rem 1.4rem 0;
}

.career-card:hover {
    box-shadow: none;
    transform: none;
}

.career-index {
    color: var(--accent);
}

.career-tag,
.job-badge {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.career-lede {
    color: var(--text-muted);
    max-width: 62ch;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

.job-badge {
    border-radius: 0;
}

.resp-grid {
    gap: 0;
    border-top: 2px solid var(--text);
}

.resp-card {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1.4rem 1.25rem 1.4rem 0;
}

.resp-card .card-glyph {
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent-line);
    border-radius: 0;
}

.resp-commitment {
    border-left: 3px solid var(--accent);
    border-radius: 0;
}

/* ---------- error ---------- */
.error-page {
    background: transparent;
    border: 2px solid var(--text);
    border-radius: 0;
}

.error-code {
    text-shadow: none;
    letter-spacing: -0.07em;
}

.error-lines {
    border-radius: 0;
    border-style: solid;
    border-color: var(--border-strong);
}

/* ---------- footer ---------- */
.site-footer {
    --bg: #f3f1ea;
    --bg-elevated: #ffffff;
    --bg-inset: #e9e6db;
    --border: #d8d5ca;
    --border-strong: #a9a69a;
    --text: #101010;
    --text-muted: #4f4f48;
    --text-faint: #6b6b62;
    --accent: #cc3208;
    --accent-ink: #ffffff;
    background: var(--bg);
    color: var(--text-muted);
    border-top: 1px solid var(--border-strong);
    padding-top: 2.25rem;
}

[data-theme="dark"] .site-footer {
    --bg: #0c0c0b;
    --bg-elevated: #151513;
    --bg-inset: #1d1d1a;
    --border: #2a2926;
    --border-strong: #4a4842;
    --text: #f1efe7;
    --text-muted: #b0ada2;
    --text-faint: #8f8c82;
    --accent: #ff6236;
    --accent-ink: #16100c;
}

.site-footer .status-strip {
    border-top-color: var(--border);
    color: var(--text-faint);
}

.site-footer .footer-fineprint {
    border-top-color: var(--border);
}

.footer-mark {
    border-radius: 0;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.footer-control {
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
}

.footer-fineprint {
    border-top-color: var(--border-strong);
    letter-spacing: 0.12em;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- palette / overlays ---------- */
.palette-box {
    border-radius: 0;
    border-color: var(--text);
    box-shadow: var(--shadow-lg);
}

.palette-input-row {
    border-bottom-color: var(--border-strong);
}

.palette-item,
.palette-item:hover,
.palette-item.is-selected {
    border-radius: 0;
}

.palette-hint kbd,
.palette-input-row kbd {
    border-radius: 0;
}

.deploy-card {
    border-radius: 0;
    border-color: var(--text);
}

.deploy-actions .button,
.deploy-actions .button-ghost {
    border-radius: 0;
}

.toast {
    border-radius: 0;
}

/* ---------- diagrams ---------- */
.viz {
    border-radius: 0;
}

.viz-node rect {
    stroke-width: 1.2;
}

.viz-zoom,
.viz-close {
    border-radius: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
        gap: 2.5rem;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: calc(100svh - var(--header-height) - 1.5rem);
        padding-top: 2rem;
    }

    .hero-copy {
        max-width: 44rem;
    }

    .hero .hero-panel {
        max-width: 100%;
    }

    .complexity-lab .lab {
        grid-template-columns: 1fr;
    }

    .closing {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .closing .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 960px) {
    .site-header {
        border-bottom-width: 1px;
    }

    .js .nav-menu {
        border-radius: 0;
        border-color: var(--border-strong);
        box-shadow: none;
    }

    .nav-link {
        border-bottom-color: var(--border);
    }

    .nav-link.active {
        background: transparent;
        color: var(--accent);
    }

    .nav-link.active::after {
        display: none;
    }

    .theme-toggle {
        border-radius: 0;
    }
}

@media (max-width: 720px) {
    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
    }

    .hero-actions {
        max-width: none;
    }

    .hero-actions .button,
    .hero-actions .button-ghost {
        width: 100%;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .hot-take-grid {
        grid-template-columns: 1fr;
    }

    .post-card-excerpt {
        -webkit-line-clamp: 4;
        max-height: calc(4 * 1.55em);
    }

    .page-heading h1 {
        font-size: clamp(2.1rem, 8vw, 2.8rem);
    }

    .section-heading {
        align-items: baseline;
    }

    .status-line {
        gap: 0.4rem 0.9rem;
        font-size: 0.58rem;
    }

    .status-line span:nth-child(3),
    .status-line span:nth-child(4) {
        display: none;
    }

    .status-line span + span::before {
        margin-right: 0.9rem;
    }

    .status-line .status-line-end {
        margin-left: 0;
    }

    .ground-inverse {
        padding-inline: var(--gutter);
    }

    .complexity-lab .lab-stage {
        min-height: 240px;
        padding: 0.75rem;
    }

    .complexity-lab .lab-metrics {
        grid-template-columns: 1fr;
    }

    .complexity-lab .lab-metrics > div:nth-child(odd) {
        padding-right: 0;
    }

    .closing h2 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }
}

@media (max-width: 520px) {
    .brand-tag {
        display: none;
    }

    .status-line .status-line-end {
        display: none;
    }

    .post-title {
        font-size: clamp(1.9rem, 8.5vw, 2.4rem);
    }

    .team-card,
    .about-card,
    .career-card,
    .resp-card {
        padding-right: 0;
    }
}

/* ---------- motion ---------- */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
    50% { box-shadow: 0 0 0 6px var(--accent-soft); }
}

@media (prefers-reduced-motion: reduce) {
    .hero .live-dot {
        animation: none;
    }

    .post-card:hover,
    .hot-take-card:hover,
    .button:hover,
    .button-ghost:hover {
        transform: none;
    }
}

@media print {
    .status-line,
    .closing {
        display: none !important;
    }
}

/* ---------- pass 2: reveal removal, first screen, touch targets ---------- */
/* The rebrand does not fade sections in on scroll; everything is readable at once. */
.reveal,
.reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* status line now belongs to the hero, so the hero owns the first screen */
.hero .status-line {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
}

.hero .status-line span:nth-child(3),
.hero .status-line span:nth-child(4) {
    display: inline;
}

/* nav fits at 896-1120 without wrapping */
.nav-link {
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-links {
    flex-wrap: nowrap;
}

@media (max-width: 1120px) {
    .navbar {
        gap: 1rem;
    }

    .nav-link {
        padding-inline: 0.34rem;
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    .site-search input {
        width: 110px;
    }

    .brand-tag {
        display: none;
    }
}

/* skip link stays inside the screen while hidden */
.skip-link {
    left: 0;
    transform: translateY(-110%);
    transition: transform 0.15s var(--ease);
}

.skip-link:focus {
    transform: none;
}

/* visible focus on the search field */
/* card titles are h3 now: keep the same look */
.post-card-title,
.hot-take-card-title,
.team-name {
    font-weight: 700;
}

.read-more {
    min-height: 30px;
}

.lab-button {
    min-height: 44px;
}

@media (max-width: 720px) {
    .status-line {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        padding: 0.6rem 0;
    }

    .hero .status-line span:nth-child(3),
    .hero .status-line span:nth-child(4) {
        display: none;
    }

    .hero .status-line .status-line-end {
        margin-left: 0;
    }

    .read-more {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-block: 0.2rem;
    }

    .post-card-title a,
    .hot-take-card-title a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .section-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .chip {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-inline: 0.6rem;
    }

    .post-card-tags {
        gap: 0.45rem;
    }

    .footer-links {
        gap: 0 1rem;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 520px) {
    .post-card-excerpt {
        -webkit-line-clamp: 3;
        max-height: calc(3 * 1.55em);
    }
}

/* visible label in the search field */
.site-search-label {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding-right: 0.5rem;
    border-right: 1px solid var(--border);
    cursor: text;
}

/* ---------- pass 3: focus, closing screen, footer edges ---------- */
.site-search input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (min-width: 961px) {
    .site-search input:focus {
        width: 140px;
    }
}

/* the closing is its own statement screen */
.closing {
    min-height: 0;
    margin-top: clamp(4rem, 7vw, 6rem);
    padding-bottom: 0;
    align-items: end;
}

.closing h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    max-width: 18ch;
}

/* footer content sits on the same edges as the page content */
.footer-content,
.footer-fineprint,
.site-footer .status-strip,
.site-footer .footer-controls {
    max-width: calc(var(--max-width) - 2 * var(--gutter));
    margin-left: auto;
    margin-right: auto;
}



/* ---------- pass 4: full excerpts, compact phone console ---------- */
.post-card-excerpt {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

@media (max-width: 520px) {
    .hero .hero-stats,
    .hero .hero-bars,
    .hero .panel-log,
    .hero .panel-foot {
        display: none;
    }

    .hero .panel-bar {
        border-bottom: 0;
        padding-bottom: 0.85rem;
    }

    .hero .hero-panel {
        padding-bottom: 0.35rem;
    }
}

@media (max-width: 720px) {
    .read-more {
        min-width: 44px;
    }

    .footer-links a {
        min-width: 44px;
    }
}

/* ---------- pass 5: control sizes ---------- */
.complexity-lab .lab-button {
    min-height: 44px;
}

@media (max-width: 720px) {
    .brand {
        min-height: 44px;
    }

    .post-author a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* square palette field */
#palette-input,
.palette-input-row,
.command-palette,
.palette-item kbd,
.palette-hint kbd {
    border-radius: 0;
}

/* lab metric cards: room to breathe inside each box */
.complexity-lab .lab-metrics {
    gap: 0.5rem;
    border-top: 0;
}

.complexity-lab .lab-metrics > div {
    padding: 0.85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
}

.complexity-lab .lab-metrics > div:nth-child(odd) {
    padding-right: 1rem;
}

/* lab surfaces use paper, not plain white */
.ground-inverse {
    --lab-surface: #f3f1ea;
}

[data-theme="dark"] .ground-inverse {
    --lab-surface: #1c1c19;
}

.complexity-lab .lab-stage,
.complexity-lab .lab-metrics > div {
    background: var(--lab-surface);
}
