/* ==========================================================================
   Berlokia — public site stylesheet ("operator console" theme)
   Sections: tokens · base · layout · header · status bar · buttons/chips ·
   hero + terminal · stats · feed (post rows) · feature · projects ·
   page heads · article (advisory) · countdown · profile · palette ·
   footer · 404 · motion · responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #08080a;
    --surface: #0e0e11;
    --surface-2: #16161b;
    --line: #212127;
    --line-strong: #35353f;
    --text: #e8e6e3;
    --muted: #a09c98;
    --subtle: #6b6762;
    --accent: #ff6b35;
    --accent-ink: #1a0a02;
    --link: #ff8a5c;
    --cyan: #8fb8ff;
    --warn: #ffd166;
    --danger: #ff3b6b;
    --term-accent: #ff6b35;
    --term-accent-ink: #1a0a02;
    --code-bg: #0b0b0e;
    --grid: rgba(255, 255, 255, 0.022);
    --glow: 0 0 18px rgba(255, 107, 53, 0.32);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.6);

    --font-display: "Chakra Petch", "JetBrains Mono", sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1200px;
    --wrap-narrow: 760px;
    --gutter: 28px;
    --header-h: 60px;
    --status-h: 30px;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f1eee9;
    --surface: #faf8f4;
    --surface-2: #e6e1d9;
    --line: #d6d0c6;
    --line-strong: #a39c90;
    --text: #15120f;
    --muted: #4d4842;
    --subtle: #7a746c;
    --accent: #1f3fd6;
    --accent-ink: #ffffff;
    --link: #1f3fd6;
    --cyan: #0b6e6e;
    --warn: #8a5a00;
    --danger: #c2183a;
    --term-accent: #8fb0ff;
    --term-accent-ink: #060b1f;
    --grid: rgba(0, 0, 0, 0.035);
    --glow: none;
    --shadow: 0 24px 60px rgba(40, 30, 20, 0.18);
    color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 44px 44px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--status-h) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main { flex: 1; min-width: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 300;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 14px; font: 700 13px var(--font-mono);
}
.skip-link:focus { top: 12px; }

@view-transition { navigation: auto; }

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

.section { padding-top: clamp(56px, 8vw, 84px); }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line-strong);
}
.section-head h2 {
    font: 600 clamp(20px, 2.6vw, 30px)/1.1 var(--font-display);
    text-transform: uppercase; letter-spacing: 0.02em;
}
.section-head h2::before { content: "## "; color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
:root[data-theme="light"] .section-head h2::before { color: var(--link); }
.section-head .more { font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.section-head .more:hover { color: var(--link); }

/* "Work with me" call to action */
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.cta h2 { font: 700 clamp(26px, 4vw, 38px)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; margin: 10px 0 12px; }
.cta p { color: var(--muted); max-width: 52ch; }
.cta-action { display: grid; gap: 14px; justify-items: start; }
.cta-cmd { font: 500 13px var(--font-mono); color: var(--subtle); background: none; border: 0; padding: 0; }
@media (max-width: 860px) {
    .cta { grid-template-columns: minmax(0, 1fr); }
    .cta-action .btn { width: 100%; }
}

.eyebrow { display: inline-block; font: 500 12px var(--font-mono); letter-spacing: 0.06em; color: var(--subtle); }
.eyebrow::before { content: "// "; color: var(--accent); }
:root[data-theme="light"] .eyebrow::before { color: var(--link); }

/* HUD corner brackets */
.hud { position: relative; border: 1px solid var(--line); background: var(--surface); }
.hud::before, .hud::after {
    content: ""; position: absolute; width: 12px; height: 12px;
    border: 2px solid var(--accent); pointer-events: none; z-index: 2;
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }

.brand { display: inline-flex; align-items: baseline; font: 700 15px var(--font-mono); color: var(--text); text-transform: lowercase; white-space: nowrap; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-user { color: var(--accent); }
:root[data-theme="light"] .brand-user { color: var(--link); }
.brand-path { color: var(--subtle); font-weight: 400; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.brand-cursor { display: inline-block; flex: none; width: 8px; height: 15px; margin-left: 4px; background: var(--accent); transform: translateY(2px); animation: blink 1.1s steps(1) infinite; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font: 500 13px var(--font-mono); color: var(--muted); padding: 7px 10px; text-transform: lowercase; border: 1px solid transparent; white-space: nowrap; }
.nav a::before { content: "./"; color: var(--subtle); }
.nav a:hover { color: var(--text); text-decoration: none; border-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.nav a[aria-current="page"]::before { color: inherit; opacity: .6; }
.nav .nav-admin { color: var(--warn); border-color: var(--warn); margin-left: 6px; }
.nav .nav-admin::before { content: "sudo "; color: inherit; }

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.tool-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 34px; min-width: 34px; padding: 0 9px;
    border: 1px solid var(--line-strong); color: var(--muted); font: 500 11px var(--font-mono);
}
.tool-btn:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.tool-btn svg { width: 14px; height: 14px; }
.tool-btn kbd { font: inherit; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.lang { display: inline-flex; border: 1px solid var(--line-strong); height: 34px; }
.lang a { display: inline-flex; align-items: center; padding: 0 9px; font: 500 11px var(--font-mono); color: var(--subtle); }
.lang a:hover { color: var(--text); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }

.nav-toggle { display: none; }

/* ---------- Status bar (tmux style) ---------- */
.statusbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    height: calc(var(--status-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex; align-items: stretch; justify-content: space-between; gap: 12px;
    background: var(--surface-2); border-top: 1px solid var(--line-strong);
    font: 500 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap;
}
.statusbar a { color: inherit; }
.statusbar a:hover { color: var(--text); text-decoration: none; }
.sb-left, .sb-right { display: flex; align-items: stretch; min-width: 0; }
.sb-left { overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; }
.sb-left::-webkit-scrollbar { display: none; }
.sb-right { flex: none; }
.sb-session { display: flex; align-items: center; padding: 0 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; flex: none; }
.sb-win { display: flex; align-items: center; padding: 0 11px; border-right: 1px solid var(--line); flex: none; }
.sb-win[aria-current="page"] { color: var(--text); background: var(--bg); }
.sb-win[aria-current="page"]::after { content: "*"; color: var(--link); }
.sb-cell { display: flex; align-items: center; gap: 6px; padding: 0 11px; border-left: 1px solid var(--line); }
.sb-cell b { font-weight: 500; color: var(--subtle); }
.sb-path { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; line-height: var(--status-h); }
.sb-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); animation: pulse 2s ease-in-out infinite; }

/* ---------- Buttons, chips, tags ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 700 13px var(--font-mono); text-transform: lowercase;
    padding: 12px 18px; min-height: 44px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface);
    transition: background .12s ease, color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn::before { content: "["; color: var(--subtle); }
.btn::after { content: "]"; color: var(--subtle); }
.btn:hover { border-color: var(--link); color: var(--link); text-decoration: none; box-shadow: var(--glow); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary::before, .btn-primary::after { color: inherit; opacity: .55; }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: none; }
.btn-sm { padding: 8px 12px; min-height: 36px; font-size: 12px; }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    font: 500 12px var(--font-mono); text-transform: lowercase;
    padding: 7px 11px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface);
}
.chip::before { content: "--"; color: var(--subtle); margin-right: -6px; }
.chip:hover { border-color: var(--link); color: var(--text); text-decoration: none; }
.chip[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip[aria-current="true"]::before, .chip[aria-current="true"] .count { color: inherit; opacity: .6; }
.chip .count { color: var(--cyan); font-size: 11px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.cat {
    display: inline-block; font: 700 10.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--cyan); border: 1px solid currentColor; padding: 2px 7px; white-space: nowrap;
}
a.cat:hover { text-decoration: none; background: var(--cyan); color: var(--bg); }
.tag { font: 400 12px var(--font-mono); color: var(--subtle); }
.tag::before { content: "#"; color: var(--link); opacity: .7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px 12px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font: 700 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 7px; border: 1px solid currentColor; color: var(--warn);
}
.badge.is-info { color: var(--muted); }

/* ---------- Hero + terminal ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero h1 {
    font: 700 clamp(36px, 5.6vw, 76px)/1 var(--font-display);
    text-transform: uppercase; letter-spacing: -0.01em; margin: 18px 0 22px; overflow-wrap: anywhere;
}
.hero h1 em { font-style: normal; color: var(--link); text-shadow: var(--glow); }
.hero .lede { font-size: clamp(15px, 1.4vw, 17px); color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.term { font: 400 13px/1.7 var(--font-mono); box-shadow: var(--shadow); background: var(--code-bg); color: #d6d2cd; min-width: 0; }
.term-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 14px; border-bottom: 1px solid #212127; color: #6b6762; font-size: 11px; letter-spacing: 0.06em;
}
.term-bar span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-dots { display: inline-flex; gap: 6px; flex: none; }
.term-dots i { width: 9px; height: 9px; border: 1px solid #35353f; }
.term-dots i:first-child { background: #ff4d6a; border-color: #ff4d6a; }
/* The page keeps the wheel: the output only scrolls on its own once the visitor is inside the terminal */
.term-body { height: clamp(240px, 38vh, 340px); overflow-y: hidden; padding: 14px 16px 4px; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: #35353f transparent; }
.term:focus-within .term-body { overflow-y: auto; }
.term-row { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-row.is-cmd { color: #fff; }
.term-row.is-cmd::before { content: attr(data-ps1) " "; color: var(--term-accent); }
.term-row.is-dim { color: #6b6762; }
.term-row.is-err { color: #ff4d6a; }
.term-row.is-ok { color: var(--term-accent); }
.term-row a { color: #8fb8ff; }
.term-row .n { color: #ffd166; }
.term-line { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px; }
.term-line label { color: var(--term-accent); white-space: nowrap; }
.term-line input { flex: 1; min-width: 0; background: transparent; border: 0; border-radius: 0; color: #fff; font: inherit; caret-color: var(--term-accent); }
.term-line input:focus { outline: none; }
.term-hints { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-top: 1px solid #212127; }
.term-hints button { font: 500 11px var(--font-mono); color: #a09c98; border: 1px solid #35353f; padding: 5px 9px; }
.term-hints button:hover { color: var(--term-accent); border-color: var(--term-accent); }

/* ---------- Stats ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.stat { padding: 16px 18px; min-width: 0; }
.stat dt { font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.stat dd { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--font-display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat dd small { font: 500 15px var(--font-mono); color: var(--muted); }
.stat-meter { height: 3px; margin-top: 12px; background: var(--line); position: relative; overflow: hidden; }
.stat-meter i { position: absolute; inset: 0 auto 0 0; width: var(--fill, 60%); background: var(--accent); }

/* ---------- Scheduled strip ---------- */
.soon {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px;
    padding: 14px 16px; margin-top: 18px; border: 1px dashed var(--warn); color: var(--text);
    background: color-mix(in srgb, var(--warn) 7%, transparent);
}
.soon:hover { text-decoration: none; background: color-mix(in srgb, var(--warn) 14%, transparent); }
.soon-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; min-width: 0; }
.soon time { font: 400 12px var(--font-mono); color: var(--muted); }
.soon-list { display: grid; gap: 8px; }

/* ---------- Feature (latest post) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); margin-top: 24px; color: var(--text); }
.feature:hover { text-decoration: none; border-color: var(--link); box-shadow: var(--glow); }
.feature-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); position: relative; border-right: 1px solid var(--line); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .5s ease, filter .3s ease; }
.feature:hover .feature-media img { transform: scale(1.03); filter: none; }
.feature-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); }
.feature-media.is-empty { background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--line) 14px 15px); }
.feature-body { padding: clamp(18px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 400 12px var(--font-mono); color: var(--subtle); }
.feature-meta .id { color: var(--link); font-weight: 700; }
.feature h3 { font: 600 clamp(22px, 2.8vw, 36px)/1.12 var(--font-display); margin: 14px 0 12px; text-wrap: balance; overflow-wrap: anywhere; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .read { margin-top: 20px; font: 700 12px var(--font-mono); color: var(--link); }
.feature .read::before { content: "$ "; color: var(--subtle); }

/* ---------- Feed (post rows) ---------- */
.ledger { list-style: none; }
.ledger-row {
    display: grid; grid-template-columns: 78px 100px minmax(0, 1fr) auto 62px; gap: 18px; align-items: baseline;
    padding: 16px 12px; border-bottom: 1px solid var(--line); color: var(--text); position: relative;
}
.ledger-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .15s ease; }
.ledger-row:hover { text-decoration: none; background: var(--surface); }
.ledger-row:hover::before { transform: scaleY(1); }
.ledger-id { font: 700 12px var(--font-mono); color: var(--link); white-space: nowrap; }
.ledger-row time { font: 400 12px var(--font-mono); color: var(--subtle); white-space: nowrap; }
.ledger-title { font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; min-width: 0; }
.ledger-excerpt { display: block; margin-top: 5px; font-size: 14px; font-weight: 400; color: var(--muted); max-width: 76ch; }
.ledger-arrow { font: 500 11px var(--font-mono); color: var(--subtle); text-align: right; opacity: 0; transition: opacity .15s ease; }
.ledger-row:hover .ledger-arrow, .ledger-row:focus-visible .ledger-arrow { opacity: 1; color: var(--link); }

.peek {
    position: fixed; left: 0; top: 0; z-index: 90; width: 280px; aspect-ratio: 16 / 9;
    pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0);
    transition: opacity .15s ease; border: 1px solid var(--accent); background: var(--surface-2); box-shadow: var(--shadow); overflow: hidden;
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

.empty { padding: 72px 0; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); font-family: var(--font-mono); }
.empty p { margin-bottom: 18px; }
.empty p::before { content: "grep: "; color: var(--danger); }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; padding-top: 24px; }
.project { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vw, 24px); color: var(--text); min-width: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.project:hover { text-decoration: none; border-color: var(--link); box-shadow: var(--glow); }
.project-media { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 400 12px var(--font-mono); color: var(--subtle); }
.project h3 { font: 600 clamp(19px, 2vw, 22px)/1.2 var(--font-display); overflow-wrap: anywhere; }
.project p { color: var(--muted); font-size: 15px; }
.project .tag-row { margin-top: auto; padding-top: 8px; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(36px, 5vw, 60px) 0 clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line-strong); }
.page-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.page-head .wrap > div:first-child { min-width: 0; }
.page-head h1 { font: 700 clamp(30px, 5vw, 64px)/1.02 var(--font-display); text-transform: uppercase; margin-top: 14px; text-wrap: balance; overflow-wrap: anywhere; }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.page-body { padding-top: 24px; }

.search { display: flex; align-items: center; border: 1px solid var(--line-strong); background: var(--surface); flex: 1 1 300px; max-width: 420px; min-width: 0; }
.search::before { content: "grep -i"; padding-left: 12px; font: 500 12px var(--font-mono); color: var(--link); white-space: nowrap; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; border-radius: 0; color: var(--text); padding: 12px 10px; font: 400 13px var(--font-mono); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--subtle); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--link); box-shadow: var(--glow); }
.search button { align-self: stretch; padding: 0 12px; border-left: 1px solid var(--line-strong); font: 700 12px var(--font-mono); color: var(--muted); }
.search button:hover { background: var(--accent); color: var(--accent-ink); }

.filters { padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; font: 500 13px var(--font-mono); }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); color: var(--muted); padding: 0 10px; background: var(--surface); }
.pagination a:hover { border-color: var(--link); color: var(--text); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---------- Article (advisory) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200; background: var(--accent); box-shadow: var(--glow); transform-origin: 0 50%; transform: scaleX(0); }

.article-head { padding: clamp(28px, 4vw, 48px) 0 clamp(26px, 3.4vw, 40px); border-bottom: 1px solid var(--line-strong); }
.back { font: 500 12px var(--font-mono); color: var(--subtle); }
.back::before { content: "$ cd "; color: var(--link); }
.back:hover { color: var(--text); text-decoration: none; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 16px; }
.article-head h1 { font: 700 clamp(26px, 4.4vw, 54px)/1.08 var(--font-display); max-width: 24ch; text-wrap: balance; overflow-wrap: anywhere; }
.article-lede { margin-top: 18px; max-width: 68ch; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.advisory dd a { color: inherit; }
.advisory dd a:hover { color: var(--link); }

.advisory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; font-family: var(--font-mono); }
.advisory div { padding: 12px 16px; border-left: 1px solid var(--line); min-width: 0; }
.advisory div:first-child { border-left: 0; }
.advisory dt { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.advisory dd { font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.advisory dd.is-id { color: var(--link); font-weight: 700; }
.article-head .tag-row { margin-top: 18px; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--wrap-narrow)) 250px; gap: 64px; padding-top: clamp(28px, 4vw, 44px); justify-content: space-between; }
.article-layout > * { min-width: 0; }
.article-layout.is-single { grid-template-columns: minmax(0, var(--wrap-narrow)); justify-content: start; }
.article-cover { width: 100%; border: 1px solid var(--line); margin-bottom: 36px; }

.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; max-height: calc(100vh - var(--header-h) - var(--status-h) - 56px); overflow: auto; font-family: var(--font-mono); scrollbar-width: thin; }
.toc-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--subtle); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.toc-title::before { content: "$ "; color: var(--link); }
.toc ol { list-style: none; display: grid; gap: 1px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); font-size: 12px; line-height: 1.45; color: var(--subtle); }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.is-active { color: var(--text); border-left-color: var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.toc .lvl-3 a { padding-left: 26px; }
.toc:empty { display: none; }

.article-content { font-size: clamp(16px, 1.3vw, 17px); line-height: 1.75; overflow-wrap: break-word; }
.article-content > *:first-child { margin-top: 0; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 2em 0 .6em; position: relative; }
.article-content h1, .article-content h2 { font-size: clamp(23px, 2.6vw, 30px); padding-top: .7em; border-top: 1px solid var(--line); }
.article-content h3 { font-size: clamp(19px, 2vw, 22px); }
.article-content h4 { font-size: 18px; }
.article-content .anchor { position: absolute; left: -1.2em; opacity: 0; font: 500 .7em var(--font-mono); color: var(--link); padding-right: .4em; text-decoration: none; }
.article-content :is(h2, h3):hover .anchor { opacity: 1; }
.article-content p { margin-bottom: 1.2em; color: color-mix(in srgb, var(--text) 90%, var(--bg)); }
.article-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 50%, transparent); text-underline-offset: 3px; }
.article-content a:hover { text-decoration-color: var(--link); }
.article-content ul, .article-content ol { margin: 1.1em 0; padding-left: 1.4em; }
.article-content li { margin-bottom: .45em; }
.article-content li::marker { color: var(--link); font-family: var(--font-mono); }
.article-content blockquote { border-left: 2px solid var(--warn); background: color-mix(in srgb, var(--warn) 6%, transparent); padding: 14px 20px; margin: 1.6em 0; }
.article-content blockquote p { margin-bottom: .5em; }
.article-content blockquote p:last-child { margin-bottom: 0; }

.codeblock { margin: 1.6em 0; border: 1px solid #212127; background: var(--code-bg); max-width: 100%; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid #212127; font: 500 11px var(--font-mono); color: #6b6762; letter-spacing: 0.06em; }
.code-head span::before { content: "● "; color: var(--term-accent); }
.copy-btn { padding: 4px 10px; font: 500 11px var(--font-mono); color: #a09c98; border: 1px solid #35353f; }
.copy-btn:hover { color: var(--term-accent); border-color: var(--term-accent); }
.copy-btn.is-done { color: var(--term-accent-ink); background: var(--term-accent); border-color: var(--term-accent); }
.article-content pre { background: var(--code-bg); overflow-x: auto; font-size: 13.5px; line-height: 1.65; margin: 1.6em 0; border: 1px solid #212127; max-width: 100%; -webkit-overflow-scrolling: touch; }
.codeblock pre { margin: 0; border: 0; }
.article-content pre code { display: block; padding: 16px 18px; min-width: max-content; font-family: var(--font-mono); background: transparent !important; color: #e8e6e3; }
.article-content :not(pre) > code { font: 500 .86em var(--font-mono); padding: 2px 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--link); overflow-wrap: anywhere; }
.article-content img { height: auto; border: 1px solid var(--line); margin: 1.6em 0; }
.article-content video, .article-content iframe, .article-content embed, .article-content object { display: block; width: 100% !important; max-width: 100%; border: 1px solid var(--line); background: #08080a; margin: 1.6em auto; }
.article-content video { height: auto !important; max-height: 72vh; object-fit: contain; }
.article-content iframe, .article-content embed, .article-content object { aspect-ratio: 16 / 9; height: auto !important; min-height: 200px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { font: 700 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); background: var(--surface); white-space: nowrap; }
.article-content hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 2.4em 0; }

.notice { padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--surface); margin-bottom: 32px; font-size: 14px; color: var(--muted); }
.notice strong { color: var(--text); }
.notice .eyebrow { margin-bottom: 6px; }

/* ---------- Countdown ---------- */
.countdown { padding: clamp(24px, 5vw, 40px) clamp(12px, 3vw, 28px); text-align: center; margin-bottom: 32px; }
.countdown h2 { font: 500 12px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); margin-bottom: 24px; }
.countdown h2::before { content: "[LOCKED] "; }
.countdown-timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; margin-inline: auto; }
.countdown-unit { padding: 0 6px; border-left: 1px solid var(--line); min-width: 0; }
.countdown-unit:first-child { border-left: 0; }
.countdown-unit .number { display: block; font: 700 clamp(30px, 8vw, 64px)/1 var(--font-display); color: var(--link); text-shadow: var(--glow); font-variant-numeric: tabular-nums; }
.countdown-unit .label-text { display: block; margin-top: 8px; font: 500 10px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); }
.countdown-note { margin-top: 24px; font: 400 12px var(--font-mono); color: var(--subtle); }

/* ---------- Profile ---------- */
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.profile-grid > * { min-width: 0; }
.block + .block { margin-top: 24px; }
.block-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--font-mono); color: var(--muted); }
.block-title span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-title span:first-child::before { content: "$ "; color: var(--link); }
.block-title span:last-child { color: var(--subtle); flex: none; }
.block-body { padding: 14px; }

/* Profiles as SSH identities: randomart on the left, the handle on the right; no frames of their own */
.idents { margin-bottom: clamp(20px, 3vw, 40px); }
.idents .block-body { padding: 10px 0; }
.ident-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ident-list li + li { border-left: 1px dashed var(--line); }
.ident { display: flex; align-items: center; gap: 18px; height: 100%; padding: 8px 20px; color: var(--text); }
.ident:hover { text-decoration: none; }
.ident-art { flex: none; font: 400 11px/1.25 var(--font-mono); color: var(--subtle); white-space: pre; user-select: none; transition: color .2s ease; }
.ident:hover .ident-art, .ident:focus-visible .ident-art { color: var(--text); }
.ident-art i { font-style: normal; }
.ident-art b { font-weight: 700; color: var(--accent); }
.ident-art b.is-bishop { background: var(--accent); color: var(--accent-ink); }
.ident-meta { display: grid; gap: 4px; min-width: 0; }
.ident-name { font: 700 20px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; transition: color .2s ease; }
.ident-name span { font: 400 14px var(--font-mono); color: var(--subtle); transition: color .2s ease; }
.ident:hover .ident-name, .ident:focus-visible .ident-name,
.ident:hover .ident-name span, .ident:focus-visible .ident-name span { color: var(--link); }
.ident-handle { font: 400 12.5px var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .ident-list { grid-template-columns: minmax(0, 1fr); }
    .ident-list li + li { border-left: 0; border-top: 1px dashed var(--line); }
    .ident { padding: 12px 14px; }
}
@media (max-width: 640px) {
    /* Room for the longest handle on one line next to the picture */
    .ident { gap: 14px; }
    .ident-art { font-size: 10px; }
    .ident-handle { font-size: 12px; }
}

.gitlog { list-style: none; font-family: var(--font-mono); }
.gitlog li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 10px; position: relative; padding-bottom: 18px; }
.gitlog li:last-child { padding-bottom: 0; }
.gitlog li::before { content: "*"; color: var(--warn); font-weight: 700; grid-row: 1 / span 3; }
.gitlog li::after { content: ""; position: absolute; left: 4px; top: 22px; bottom: 0; width: 1px; background: var(--line-strong); }
.gitlog li:last-child::after { display: none; }
.gitlog .commit { font-size: 12px; color: var(--subtle); overflow-wrap: anywhere; }
.gitlog .hash { color: var(--warn); }
.gitlog .ref { color: var(--link); }
.gitlog h3 { font: 600 17px/1.3 var(--font-body); grid-column: 2; margin-top: 2px; }
.gitlog h3 span { color: var(--cyan); font-weight: 500; }
.gitlog .where { grid-column: 2; font-size: 12px; color: var(--muted); margin-top: 2px; }

.ls { width: 100%; border-collapse: collapse; font: 400 12.5px/1.5 var(--font-mono); }
.ls td { padding: 7px 10px 7px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.ls td:last-child { padding-right: 0; }
.ls tr:last-child td { border-bottom: 0; }
.ls .perm { color: var(--subtle); white-space: nowrap; }
.ls .when { color: var(--warn); white-space: nowrap; }
.ls .name { color: var(--text); font-family: var(--font-body); font-size: 14.5px; }
.ls .name small { display: block; font: 400 12px var(--font-mono); color: var(--subtle); }

.cve-list { list-style: none; display: grid; gap: 10px; }
.cve { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); color: var(--text); background: var(--bg); }
.cve:hover { border-color: var(--danger); text-decoration: none; }
.cve-id { display: block; font: 700 14px var(--font-mono); }
.cve-src { font: 400 12px var(--font-mono); color: var(--subtle); }
.cvss { font: 700 12px var(--font-mono); padding: 4px 8px; color: #1a1000; background: #ffd166; white-space: nowrap; }
.cvss.is-critical { background: var(--danger); color: #fff; }
.cvss-bar { grid-column: 1 / -1; height: 3px; background: var(--line); position: relative; }
.cvss-bar i { position: absolute; inset: 0 auto 0 0; width: var(--fill); background: #ffd166; }
.cvss-bar.is-critical i { background: var(--danger); }

/* ---------- Command palette ---------- */
.palette { width: min(92vw, 560px); margin: 12vh auto auto; padding: 0; border: 1px solid var(--accent); background: var(--surface); color: var(--text); box-shadow: var(--shadow), var(--glow); max-height: 76dvh; }
.palette::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.palette-field { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding-left: 18px; font: 700 15px var(--font-mono); color: var(--link); }
.palette-input { flex: 1; min-width: 0; padding: 17px 18px 17px 10px; background: transparent; border: 0; border-radius: 0; color: var(--text); font: 400 16px var(--font-mono); }
.palette-input:focus { outline: none; }
.palette-list { list-style: none; max-height: 46vh; overflow: auto; padding: 8px; }
.palette-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font: 400 13px var(--font-mono); color: var(--muted); cursor: pointer; }
.palette-item small { font-size: 11px; color: var(--subtle); white-space: nowrap; }
.palette-item[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.palette-item[aria-selected="true"] small { color: inherit; opacity: .7; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font: 400 11px var(--font-mono); color: var(--subtle); }
/* Opening: the panel drops in under a sweep of the accent line and the rows follow one by one. */
.palette { transform-origin: 50% 0; }
.palette[open] { animation: palette-in .2s cubic-bezier(.2, .9, .25, 1) both; }
.palette[open]::backdrop { animation: palette-veil .2s ease both; }
.palette[open]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: var(--glow); transform-origin: 0 50%; animation: palette-scan .45s cubic-bezier(.3, .8, .3, 1) both; pointer-events: none; }
.palette.is-opening .palette-item { animation: palette-row .22s ease both; animation-delay: calc(60ms + var(--i, 0) * 22ms); }
.palette.is-closing { animation: palette-out .14s ease-in both; }
.palette.is-closing::backdrop { animation: palette-veil .14s ease-in reverse both; }
@keyframes palette-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes palette-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes palette-veil { from { opacity: 0; } to { opacity: 1; } }
@keyframes palette-scan { from { transform: scaleX(0); opacity: 1; } 70% { opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
@keyframes palette-row { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 9vw, 110px); border-top: 1px solid var(--line-strong); padding: 48px 0 36px; background: var(--surface); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-word { font: 700 clamp(44px, 10vw, 104px)/0.9 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); overflow-wrap: anywhere; transition: color .2s ease; }
.footer-word:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); text-shadow: var(--glow); }
.footer-tag { color: var(--muted); margin-top: 16px; max-width: 40ch; font-size: 14px; }
.footer-col h2 { font: 500 12px var(--font-mono); color: var(--subtle); margin-bottom: 12px; }
.footer-col h2::before { content: "$ ls "; color: var(--link); }
.footer-col ul { list-style: none; display: grid; gap: 8px; font: 400 13px var(--font-mono); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--link); }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--link); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 18px; border-top: 1px dashed var(--line-strong); font: 400 12px var(--font-mono); color: var(--subtle); }

/* ---------- 404 ---------- */
.notfound { padding: clamp(48px, 8vw, 90px) 0 30px; }
.notfound h1 { font: 700 clamp(88px, 22vw, 220px)/.9 var(--font-display); letter-spacing: -0.03em; margin: 10px 0 20px; color: var(--danger); position: relative; display: inline-block; }
.notfound h1::after { content: attr(data-text); position: absolute; inset: 0; color: var(--cyan); clip-path: inset(40% 0 35% 0); transform: translateX(6px); animation: glitch 2.4s steps(2) infinite; }
.trace { font: 400 13px/1.9 var(--font-mono); color: var(--muted); padding: 16px 18px; max-width: 640px; margin-bottom: 28px; white-space: pre-wrap; overflow-wrap: anywhere; }
.trace b { color: var(--danger); font-weight: 500; }
.trace i { color: var(--subtle); font-style: normal; }

/* ---------- Motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes glitch {
    0% { clip-path: inset(10% 0 80% 0); transform: translateX(-6px); }
    25% { clip-path: inset(60% 0 20% 0); transform: translateX(6px); }
    50% { clip-path: inset(35% 0 45% 0); transform: translateX(-3px); }
    75% { clip-path: inset(80% 0 5% 0); transform: translateX(4px); }
    100% { clip-path: inset(20% 0 65% 0); transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
/* Large desktop → laptop: drop the article sidebar */
@media (max-width: 1100px) {
    .article-layout { grid-template-columns: minmax(0, var(--wrap-narrow)); justify-content: center; gap: 0; }
    .toc { display: none; }
    .brand-path { max-width: 12ch; }
}
/* Tablet: single-column hero, stacked feature and profile */
@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .feature { grid-template-columns: minmax(0, 1fr); }
    .feature-media { border-right: 0; border-bottom: 1px solid var(--line); }
    .profile-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .advisory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .advisory div:nth-child(3) { border-left: 0; }
    .advisory div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .sb-path-cell, .sb-hide { display: none; }
    .ledger-row { grid-template-columns: 78px 96px minmax(0, 1fr) auto; }
    .ledger-arrow { display: none; }
}
/* Collapsed navigation */
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .palette-open kbd { display: none; }
    .nav {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: calc(100dvh - var(--header-h) - var(--status-h)); overflow-y: auto;
        background: var(--bg); border-bottom: 1px solid var(--line-strong); padding: 8px var(--gutter) 16px;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 14px 10px; border: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
    .nav .nav-admin { margin: 12px 0 0; border: 1px solid var(--warn); }
}
/* Phone */
@media (max-width: 640px) {
    :root { --gutter: 16px; --header-h: 56px; }
    .brand-path { display: none; }
    .term { font-size: 12px; }
    .term-line input { font-size: 16px; }
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 14px; }
    .ledger-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 16px 8px; }
    .ledger-row time { grid-column: 2; grid-row: 1; }
    .ledger-row .ledger-title { grid-column: 1 / -1; grid-row: 2; }
    .ledger-row .cat { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 4px; }
    .hero-actions .btn, .profile-actions .btn { flex: 1 1 auto; }
    .search { flex-basis: 100%; max-width: none; }
    .search input { font-size: 16px; }
    .article-content pre { font-size: 12.5px; }
    .article-content pre code { padding: 14px; }
    .article-content .anchor { display: none; }
    .ls .perm { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .sb-win { padding: 0 9px; }
    .sb-cell { padding: 0 9px; }
}
/* Small phone */
@media (max-width: 400px) {
    .header-tools { gap: 6px; }
    .lang a { padding: 0 7px; }
    .advisory { grid-template-columns: minmax(0, 1fr); }
    .advisory div { border-left: 0; }
    .advisory div:nth-child(n+2) { border-top: 1px solid var(--line); }
    .footer-top { grid-template-columns: 1fr; }
    .sb-clock { display: none; }
}
/* Touch devices: no hover-only affordances */
@media (hover: none) {
    .ledger-row::before { transform: scaleY(0) !important; }
    .feature:hover .feature-media img { transform: none; }
}
