/* alinaderiparizi.com — one stylesheet. Source of truth for the look is design/README.md; the
   clickable reference is design/index.html. Sections follow the order the design grew in. */
@font-face { font-family: Anton; src: url(/assets/fonts/anton-latin.woff2) format("woff2"); font-display: swap; }

@font-face { font-family: Inter; src: url(/assets/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format("woff2"); font-display: swap; }

/* ---- tokens: DeFi palette (violet → cyan → mint), dark first ---- */
:root {
  --bg: #f7f8fc; --surface: #ffffff; --border: #e3e6f3; --glass: rgba(255,255,255,.72);
  --text: #0d1030; --muted: #555d80;
  --accent: #6d28d9; --accent-2: #dc2626; --accent-soft: #f1ebff; --on-accent: #ffffff;
  --grad: linear-gradient(115deg, #6d28d9 0%, #c026d3 50%, #dc2626 100%);
  --glow-a: rgba(139,92,246,.10); --glow-b: rgba(220,38,38,.06);
  --hl-comment: #6b7280; --hl-keyword: #6d28d9; --hl-string: #0f766e; --hl-number: #be123c;
  --hl-func: #a21caf; --hl-class: #86198f; --hl-builtin: #1d4ed8; --hl-deco: #db2777; --hl-punct: #475069;
  --read: 68ch; --wide: 1120px; --r: 0;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' x2='5' y1='98.81' y2='98.81' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='98.81' y2='98.81' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='96.61' y2='96.61' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='96.61' y2='96.61' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='94.42' y2='94.42' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='93.42' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E150%3C/text%3E%3Ctext x='98' y='93.42' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E150%3C/text%3E%3Cline x1='0' x2='5' y1='92.22' y2='92.22' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='92.22' y2='92.22' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='90.03' y2='90.03' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='90.03' y2='90.03' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='87.83' y2='87.83' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='87.83' y2='87.83' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='85.63' y2='85.63' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='85.63' y2='85.63' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='83.44' y2='83.44' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='82.44' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E155%3C/text%3E%3Ctext x='98' y='82.44' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E155%3C/text%3E%3Cline x1='0' x2='5' y1='81.24' y2='81.24' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='81.24' y2='81.24' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='79.05' y2='79.05' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='79.05' y2='79.05' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='76.85' y2='76.85' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='76.85' y2='76.85' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='74.66' y2='74.66' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='74.66' y2='74.66' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='72.46' y2='72.46' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='71.46' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E160%3C/text%3E%3Ctext x='98' y='71.46' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E160%3C/text%3E%3Cline x1='0' x2='5' y1='70.26' y2='70.26' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='70.26' y2='70.26' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='68.07' y2='68.07' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='68.07' y2='68.07' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='65.87' y2='65.87' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='65.87' y2='65.87' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='63.68' y2='63.68' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='63.68' y2='63.68' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='61.48' y2='61.48' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='60.48' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E165%3C/text%3E%3Ctext x='98' y='60.48' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E165%3C/text%3E%3Cline x1='0' x2='5' y1='59.29' y2='59.29' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='59.29' y2='59.29' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='57.09' y2='57.09' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='57.09' y2='57.09' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='54.89' y2='54.89' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='54.89' y2='54.89' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='52.7' y2='52.7' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='52.7' y2='52.7' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='50.5' y2='50.5' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='49.5' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E170%3C/text%3E%3Ctext x='98' y='49.5' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E170%3C/text%3E%3Cline x1='0' x2='5' y1='48.31' y2='48.31' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='48.31' y2='48.31' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='46.11' y2='46.11' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='46.11' y2='46.11' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='43.91' y2='43.91' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='43.91' y2='43.91' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='41.72' y2='41.72' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='41.72' y2='41.72' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='39.52' y2='39.52' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='38.52' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E175%3C/text%3E%3Ctext x='98' y='38.52' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E175%3C/text%3E%3Cline x1='0' x2='5' y1='37.33' y2='37.33' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='37.33' y2='37.33' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='35.13' y2='35.13' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='35.13' y2='35.13' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='32.94' y2='32.94' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='32.94' y2='32.94' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='30.74' y2='30.74' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='30.74' y2='30.74' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='28.54' y2='28.54' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='27.54' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E180%3C/text%3E%3Ctext x='98' y='27.54' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E180%3C/text%3E%3Cline x1='0' x2='5' y1='26.35' y2='26.35' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='26.35' y2='26.35' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='24.15' y2='24.15' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='24.15' y2='24.15' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='21.96' y2='21.96' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='21.96' y2='21.96' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='19.76' y2='19.76' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='19.76' y2='19.76' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='17.57' y2='17.57' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='16.57' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E185%3C/text%3E%3Ctext x='98' y='16.57' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E185%3C/text%3E%3Cline x1='0' x2='5' y1='15.37' y2='15.37' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='15.37' y2='15.37' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='13.17' y2='13.17' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='13.17' y2='13.17' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='10.98' y2='10.98' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='10.98' y2='10.98' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='8.78' y2='8.78' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='8.78' y2='8.78' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='6.59' y2='6.59' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='5.59' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E190%3C/text%3E%3Cline x1='0' x2='5' y1='4.39' y2='4.39' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='4.39' y2='4.39' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='2.2' y2='2.2' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='2.2' y2='2.2' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='0.0' y2='0.0' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='0.0' y2='0.0' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='4.39' y2='4.39' stroke='%23f87171' stroke-width='.8'/%3E%3Ctext x='98' y='8.4' text-anchor='end' font-family='monospace' font-size='4' font-weight='bold' fill='%23f87171'%3E191%3C/text%3E%3C/svg%3E");
  --display: Anton, "Arial Narrow", Impact, sans-serif;
  --steel: linear-gradient(180deg, #ffffff 0%, #b9bdd0 48%, #6b7090 52%, #d8dbea 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #040409; --surface: #0b0c16; --border: rgba(148,163,255,.14); --glass: rgba(22,26,52,.58);
    --text: #f5f6ff; --muted: #a7abc7;
    --accent: #a78bfa; --accent-2: #f87171; --accent-soft: rgba(139,92,246,.16); --on-accent: #05060d;
    --grad: linear-gradient(115deg, #8b5cf6 0%, #e879f9 45%, #ef4444 100%);
    --glow-a: rgba(139,92,246,.26); --glow-b: rgba(239,68,68,.14);
    --hl-comment: #6b7394; --hl-keyword: #a78bfa; --hl-string: #5eead4; --hl-number: #fda4af;
    --hl-func: #e879f9; --hl-class: #f0abfc; --hl-builtin: #93c5fd; --hl-deco: #f472b6; --hl-punct: #b8bdd8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #040409; --surface: #0b0c16; --border: rgba(148,163,255,.14); --glass: rgba(22,26,52,.58);
  --text: #f5f6ff; --muted: #a7abc7;
  --accent: #a78bfa; --accent-2: #f87171; --accent-soft: rgba(139,92,246,.16); --on-accent: #05060d;
  --grad: linear-gradient(115deg, #8b5cf6 0%, #e879f9 45%, #ef4444 100%);
  --glow-a: rgba(139,92,246,.26); --glow-b: rgba(239,68,68,.14);
    --hl-comment: #6b7394; --hl-keyword: #a78bfa; --hl-string: #5eead4; --hl-number: #fda4af;
    --hl-func: #e879f9; --hl-class: #f0abfc; --hl-builtin: #93c5fd; --hl-deco: #f472b6; --hl-punct: #b8bdd8;
  color-scheme: dark;
}

/* ---- base ---- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.7 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); margin: 0 auto; }
.muted { color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
section { margin: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; }
.section-head a { font-size: 15px; }

/* ---- nav ---- */
.nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 5; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 700; color: var(--text); font-size: 17px; margin-right: auto; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 0; }
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current] { color: var(--text); background: var(--surface); }
.icon-btn { border: 1px solid var(--border); background: none; color: var(--text); height: 36px; min-width: 36px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: 14px Inter, sans-serif; padding: 0 10px; }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { color: var(--muted); }
.search-btn kbd { font: 12px "JetBrains Mono", monospace; border: 1px solid var(--border); border-radius: 0; padding: 0 4px; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .nav-links, .search-btn span, .search-btn kbd { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
}

/* ---- buttons, chips ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 0; font-size: 16px; font-weight: 600; border: 1px solid var(--border); color: var(--text); }
.btn:hover { text-decoration: none; background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 500; background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 0; }
.filter .chip { background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer; font: 500 14px Inter, sans-serif; padding: 4px 12px; }
.filter .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---- home ---- */
.hero { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: center; margin-top: 72px; }
.hero img { width: 120px; height: 120px; border-radius: 0; object-fit: cover; }
.hero h1 { font-size: 40px; }
.hero p { font-size: 20px; color: var(--muted); margin: 8px 0 20px; max-width: 58ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats-line { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; } .hero h1 { font-size: 32px; } .hero img { width: 88px; height: 88px; } }

/* ---- post rows ---- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--border); }
.row:last-child { border-bottom: 1px solid var(--border); }
.row time { font-size: 14px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.row h3 { font-size: 19px; font-weight: 600; }
.row h3 a { color: var(--text); }
.row p { margin: 4px 0 8px; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 2px; } }
.year { font-size: 15px; color: var(--muted); font-weight: 600; margin: 40px 0 4px; }

/* ---- cards ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; background: var(--bg); transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--surface); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 18px; }
.card h3 a { color: var(--text); }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }

/* ---- publications ---- */
.pub { padding: 16px 0; border-top: 1px solid var(--border); }
.pub .title { font-weight: 600; }
.pub .authors, .pub .venue { font-size: 15px; color: var(--muted); }
.pub .links { font-size: 14px; display: flex; gap: 14px; margin-top: 4px; }

/* ---- post ---- */
.crumb { font-size: 14px; margin: 48px 0 16px; }
.post-title { font-size: 36px; margin-bottom: 12px; }
.post-hero { border-radius: var(--r); border: 1px solid var(--border); margin: 32px auto; max-width: min(900px, 100%); }
.prose h1, .prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose h1, .prose h2, .prose h3 { scroll-margin-top: 96px; }
@media (max-width: 1100px) { .prose h1, .prose h2, .prose h3 { scroll-margin-top: 124px; } }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose img { border-radius: 0; margin: 0 auto; height: auto; }
/* tables sit centred at their natural width; a table wider than the column scrolls inside itself */
.prose table { border-collapse: collapse; font-size: 16px; display: block; width: max-content; max-width: 100%; margin: 8px auto 28px; overflow-x: auto; border-top: 2px solid; border-image: var(--grad) 1; }
.prose thead th { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.prose tbody tr:hover td { background: var(--accent-soft); }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose li { margin-bottom: 6px; }
.prose p { margin: 0 0 20px; }
.prose code { font: 15px "JetBrains Mono", monospace; background: var(--surface); padding: 2px 5px; border-radius: 0; }
.prose pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; position: relative; }
.prose pre code { background: none; padding: 0; line-height: 1.6; }
.prose pre .lang { position: absolute; top: 8px; right: 12px; font-size: 12px; color: var(--muted); }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0; font-size: 16px; margin: 0 0 20px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--read)) minmax(220px, 1fr); gap: 48px; }
.post-layout > .prose { grid-column: 2; }
/* On this page: a sticky rail on wide screens, a sticky bar under the nav on narrow ones. Both
   highlight the section being read. */
.toc { grid-column: 3; position: sticky; top: 88px; align-self: start; font-size: 14px; width: 240px;
  max-height: calc(100vh - 120px); overflow-y: auto; padding: 16px 0 16px 0; }
.toc p { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc a { display: block; color: var(--muted); padding: 5px 0 5px 14px; border-left: 2px solid var(--border); line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.sub { padding-left: 26px; font-size: 13px; }
.toc a.on { color: var(--text); font-weight: 600; border-left-color: var(--accent-2); background: linear-gradient(90deg, var(--accent-soft), transparent); }
.toc .progress { height: 2px; background: var(--border); margin: 0 0 14px; }
.toc .progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.toc-bar { display: none; }
@media (max-width: 1100px) {
  .post-layout { display: block; } .toc { display: none; }
  .toc-bar { display: block; position: sticky; top: 64px; z-index: 4; margin: 0 -24px 24px; padding: 0 24px;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .toc-bar summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; height: 44px; font-size: 14px; }
  .toc-bar summary::-webkit-details-marker { display: none; }
  .toc-bar summary b { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); flex: none; }
  .toc-bar summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc-bar summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
  .toc-bar[open] summary::after { content: "▴"; }
  .toc-bar .links { padding: 4px 0 14px; max-height: 60vh; overflow-y: auto; }
  .toc-bar .links a { display: block; padding: 6px 0 6px 12px; color: var(--muted); border-left: 2px solid var(--border); font-size: 14px; }
  .toc-bar .links a.on { color: var(--text); font-weight: 600; border-left-color: var(--accent-2); }
  .toc-bar .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
  .toc-bar .progress i { display: block; height: 100%; width: 0; background: var(--grad); }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.pager a { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 18px; color: var(--text); }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager small { display: block; color: var(--muted); font-size: 13px; }
.pager .next { text-align: right; }

/* ---- about ---- */
.about-top { display: grid; grid-template-columns: 180px 1fr; gap: 40px; margin-top: 64px; }
.about-top img { width: 180px; height: 180px; border-radius: var(--r); object-fit: cover; }
@media (max-width: 640px) { .about-top { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 14px 0; border-top: 1px solid var(--border); }
.timeline .when { font-size: 14px; color: var(--muted); padding-top: 3px; }
.timeline .what { font-weight: 600; }
.timeline .where { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }


/* ---- post rows with thumbnails ---- */
.row { grid-template-columns: 200px 1fr; align-items: start; }
.thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: 0; border: 1px solid var(--border); background: var(--surface); }
.row .date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .row { grid-template-columns: 96px 1fr; gap: 14px; } .thumb { aspect-ratio: 1; } .row p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }

/* ---- stats ---- */
/* stacked: the 53-week graph (~690px) never fits in half of the 1120px column. Grid items must
   be allowed to shrink (min-width: 0), or on narrow screens the graph widens the column and the
   whole page scrolls sideways; the graph scrolls inside its panel instead. */
.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.panel, .panels > * { min-width: 0; }
.panel { border: 1px solid var(--border); border-radius: var(--r); padding: 20px; background: var(--surface); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.panel-head h3 { font-size: 17px; }
.panel-head a { font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--bg); border: 1px solid var(--border); border-radius: 0; padding: 12px 14px; }
.tile b { display: block; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--muted); }
.tile small { display: block; font-size: 12px; color: var(--accent); }
.graph { margin-top: 16px; overflow-x: auto; max-width: 100%; }
.graph-grid { display: grid; grid-template-rows: repeat(7, 10px); grid-auto-flow: column; grid-auto-columns: 10px; gap: 3px; }
.graph-grid i { border-radius: 0; background: var(--border); }
.graph-grid i[data-l="1"] { background: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.graph-grid i[data-l="2"] { background: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.graph-grid i[data-l="3"] { background: color-mix(in srgb, var(--accent) 80%, var(--border)); }
.graph-grid i[data-l="4"] { background: var(--accent); }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.panel-foot .latest { color: var(--text); font-size: 14px; }


/* ---- DeFi layer: static glows, glass, gradient accents ---- */
body { background:
    radial-gradient(900px 620px at 92% -8%, var(--glow-a), transparent 62%),
    radial-gradient(760px 540px at -6% 40%, var(--glow-b), transparent 62%),
    var(--bg);
  background-attachment: fixed; }
.nav { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.brand { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.01em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { border-radius: 0; background: var(--glass); backdrop-filter: blur(10px); }
.btn.primary { background: var(--grad); border: 0; color: var(--on-accent); box-shadow: 0 8px 30px -10px var(--glow-a); }
.btn.primary:hover { background: var(--grad); filter: brightness(1.1); }
.chip { border-radius: 0; }
.filter .chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.card, .panel, .pager a { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--r); }
.card:hover, .pager a:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 10px 40px -18px var(--glow-a); }
.panel { position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.tile { background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 0; }
.tile b { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile span, .panel-foot, .row .date, .meta, .year { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.tile small { color: var(--accent-2); font-family: var(--mono); }
.graph-grid i[data-l="1"] { background: color-mix(in srgb, #8b5cf6 35%, var(--border)); }
.graph-grid i[data-l="2"] { background: color-mix(in srgb, #8b5cf6 70%, var(--border)); }
.graph-grid i[data-l="3"] { background: #e879f9; }
.graph-grid i[data-l="4"] { background: #ef4444; }
.thumb { border-radius: 0; }
.row h3 a:hover, .card h3 a:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: none; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 8px; height: 8px; border-radius: 0; background: var(--grad); box-shadow: 0 0 12px var(--accent-2); }
.post-hero { border-radius: var(--r); box-shadow: 0 30px 80px -40px var(--glow-a); }
.prose pre { background: var(--surface); border-radius: 0; }
.callout { background: var(--accent-soft); border-left: 3px solid; border-image: var(--grad) 1; border-radius: 0; }
.timeline .when { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.about-top img { border-radius: var(--r); }


/* ---- intensity: heavier type, harder edges ---- */
h1, h2, .post-title { font-weight: 800; letter-spacing: -0.025em; }
.hero h1 { font-size: 56px; line-height: 1.05; }
@media (max-width: 640px) { .hero h1 { font-size: 40px; } }
.hero .kicker { font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin: 10px 0 8px; }
.section-head h2 { font-size: 15px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.section-head h2::before { border-radius: 0; width: 10px; height: 10px; }
.btn { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: 14px; }
.panel::before { height: 3px; }
.tile b { font-size: 32px; font-weight: 700; }
.card:hover, .pager a:hover { transform: translateY(-2px); }
.card, .pager a { transition: border-color .15s, transform .15s, box-shadow .15s; }


/* ---- rock & metal: poster type, grain, tracklist, steel ---- */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 104px; line-height: .9; letter-spacing: .01em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .hero h1 { font-size: 64px; } }
.page-title, .about-top h1 { font-family: var(--display); font-weight: 400 !important; text-transform: uppercase; letter-spacing: .01em; font-size: 64px !important; line-height: .95; }
.post-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 56px; line-height: 1; letter-spacing: .01em; }
@media (max-width: 640px) { .post-title, .page-title, .about-top h1 { font-size: 40px !important; } }
/* section heads read like a tracklist: 01 — AT A GLANCE */
main { counter-reset: track; }
.section-head h2::before { counter-increment: track; content: counter(track, decimal-leading-zero) " —"; width: auto; height: auto; background: none; box-shadow: none; color: var(--accent-2); }
/* post rows get track numbers too */
.rows { counter-reset: row; }
.row { position: relative; }
.row .date::before { counter-increment: row; content: counter(row, decimal-leading-zero) "  /  "; color: var(--accent-2); }
/* brushed steel on stat numbers in dark mode; gradient stays in light */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile b { background: var(--steel); -webkit-background-clip: text; background-clip: text; } }
:root[data-theme="dark"] .tile b { background: var(--steel); -webkit-background-clip: text; background-clip: text; }
.tile b { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: .02em; }
/* a hard crimson slash under the hero */
.hero + section { position: relative; }
.hero::after { content: ""; grid-column: 1 / -1; height: 3px; background: var(--grad); clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%); margin-top: 8px; }


/* ---- hero epigraph: a quote set as a code comment, not a self-description ---- */
.epigraph { margin: 6px 0 22px; padding: 0; }
.epigraph p { font: 500 22px/1.4 var(--mono); color: var(--text); margin: 0; letter-spacing: -.01em; }
.epigraph .slashes { color: var(--accent-2); margin-right: 6px; }
.epigraph cite { display: block; font: 500 12px var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.epigraph cite::before { content: "— "; }
@media (max-width: 640px) { .epigraph p { font-size: 18px; } }


/* ---- freedom / humanity / truth ---- */
.epigraph { cursor: pointer; }
.epigraph p .q { transition: opacity .2s; }
footer { padding-top: 0; }
.motto { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 28px 16px; margin-bottom: 28px; border-bottom: 1px solid var(--border);
  font: 400 30px var(--display); text-transform: uppercase; letter-spacing: .08em; }
.motto span { background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .motto span { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .motto span { background: var(--grad); -webkit-background-clip: text; background-clip: text; } }
.motto i { width: 8px; height: 8px; background: var(--accent-2); transform: rotate(45deg); }
@media (max-width: 480px) { .motto { font-size: 20px; gap: 12px; } }
footer .free { margin-top: 6px; max-width: 60ch; }
footer .free a { color: var(--accent); }
.big404 { font: 400 180px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 480px) { .big404 { font-size: 120px; } }


/* ---- portrait: album-cover duotone. The photo is multiplied onto a dark violet→crimson
   gradient, so its white studio background turns deep and the face keeps its detail. Hover shows
   the original. ---- */
.portrait { margin: 0; position: relative; overflow: hidden; width: 120px; height: 120px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' x2='5' y1='98.81' y2='98.81' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='98.81' y2='98.81' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='96.61' y2='96.61' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='96.61' y2='96.61' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='94.42' y2='94.42' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='93.42' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E150%3C/text%3E%3Ctext x='98' y='93.42' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E150%3C/text%3E%3Cline x1='0' x2='5' y1='92.22' y2='92.22' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='92.22' y2='92.22' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='90.03' y2='90.03' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='90.03' y2='90.03' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='87.83' y2='87.83' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='87.83' y2='87.83' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='85.63' y2='85.63' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='85.63' y2='85.63' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='83.44' y2='83.44' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='82.44' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E155%3C/text%3E%3Ctext x='98' y='82.44' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E155%3C/text%3E%3Cline x1='0' x2='5' y1='81.24' y2='81.24' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='81.24' y2='81.24' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='79.05' y2='79.05' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='79.05' y2='79.05' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='76.85' y2='76.85' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='76.85' y2='76.85' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='74.66' y2='74.66' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='74.66' y2='74.66' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='72.46' y2='72.46' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='71.46' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E160%3C/text%3E%3Ctext x='98' y='71.46' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E160%3C/text%3E%3Cline x1='0' x2='5' y1='70.26' y2='70.26' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='70.26' y2='70.26' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='68.07' y2='68.07' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='68.07' y2='68.07' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='65.87' y2='65.87' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='65.87' y2='65.87' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='63.68' y2='63.68' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='63.68' y2='63.68' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='61.48' y2='61.48' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='60.48' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E165%3C/text%3E%3Ctext x='98' y='60.48' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E165%3C/text%3E%3Cline x1='0' x2='5' y1='59.29' y2='59.29' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='59.29' y2='59.29' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='57.09' y2='57.09' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='57.09' y2='57.09' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='54.89' y2='54.89' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='54.89' y2='54.89' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='52.7' y2='52.7' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='52.7' y2='52.7' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='50.5' y2='50.5' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='49.5' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E170%3C/text%3E%3Ctext x='98' y='49.5' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E170%3C/text%3E%3Cline x1='0' x2='5' y1='48.31' y2='48.31' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='48.31' y2='48.31' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='46.11' y2='46.11' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='46.11' y2='46.11' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='43.91' y2='43.91' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='43.91' y2='43.91' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='41.72' y2='41.72' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='41.72' y2='41.72' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='39.52' y2='39.52' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='38.52' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E175%3C/text%3E%3Ctext x='98' y='38.52' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E175%3C/text%3E%3Cline x1='0' x2='5' y1='37.33' y2='37.33' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='37.33' y2='37.33' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='35.13' y2='35.13' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='35.13' y2='35.13' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='32.94' y2='32.94' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='32.94' y2='32.94' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='30.74' y2='30.74' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='30.74' y2='30.74' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='28.54' y2='28.54' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='27.54' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E180%3C/text%3E%3Ctext x='98' y='27.54' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E180%3C/text%3E%3Cline x1='0' x2='5' y1='26.35' y2='26.35' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='26.35' y2='26.35' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='24.15' y2='24.15' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='24.15' y2='24.15' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='21.96' y2='21.96' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='21.96' y2='21.96' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='19.76' y2='19.76' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='19.76' y2='19.76' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='17.57' y2='17.57' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='16.57' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E185%3C/text%3E%3Ctext x='98' y='16.57' text-anchor='end' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E185%3C/text%3E%3Cline x1='0' x2='5' y1='15.37' y2='15.37' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='15.37' y2='15.37' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='13.17' y2='13.17' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='13.17' y2='13.17' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='10.98' y2='10.98' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='10.98' y2='10.98' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='8.78' y2='8.78' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='8.78' y2='8.78' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='6.59' y2='6.59' stroke='white' stroke-opacity='.55' stroke-width='.7'/%3E%3Ctext x='2' y='5.59' text-anchor='start' font-family='monospace' font-size='4' fill='white' fill-opacity='.72'%3E190%3C/text%3E%3Cline x1='0' x2='5' y1='4.39' y2='4.39' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='4.39' y2='4.39' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='2.2' y2='2.2' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='2.2' y2='2.2' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='5' y1='0.0' y2='0.0' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='95' x2='100' y1='0.0' y2='0.0' stroke='white' stroke-opacity='.4' stroke-width='.4'/%3E%3Cline x1='0' x2='100' y1='4.39' y2='4.39' stroke='%23f87171' stroke-width='.8'/%3E%3Ctext x='98' y='8.4' text-anchor='end' font-family='monospace' font-size='4' font-weight='bold' fill='%23f87171'%3E191%3C/text%3E%3C/svg%3E") center / 100% 100% no-repeat, linear-gradient(135deg, #4c1d95 0%, #86198f 55%, #991b1b 100%); border: 1px solid var(--border); }
.about-top .portrait { width: 180px; height: 180px; }
.portrait img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 20%; padding: 0 !important; background: none !important;
  filter: grayscale(1) contrast(1.35) brightness(1.08); mix-blend-mode: multiply; transition: filter .3s, mix-blend-mode .3s; }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.portrait::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); z-index: 1; }
.portrait:hover img { filter: none; mix-blend-mode: normal; }
@media (max-width: 640px) { .hero .portrait { width: 96px; height: 96px; } }


.booked { display: flex; flex-direction: column; width: 180px; }
.placard { background: #0b0b10; color: #f5f6ff; border: 1px solid var(--border); border-top: 0; padding: 8px 10px 9px; font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; display: flex; flex-direction: column; }
.placard b { font: 400 18px/1.1 var(--display); letter-spacing: .06em; }
.placard span:last-child { color: #f87171; }


/* ---- closing quote replaces the footer ---- */
.closing { margin: 120px 0 0; padding: 96px 24px 120px; border-top: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; }
.closing::before { content: "\201C"; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font: 400 260px/1 var(--display); color: var(--accent); opacity: .08; pointer-events: none; }
.closing blockquote { margin: 0 auto; max-width: 1000px; position: relative; }
.closing p { font: 400 64px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing cite { display: block; margin-top: 24px; font: 500 13px var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.closing cite::before { content: "— "; color: var(--accent-2); }
.closing cite i { font-style: normal; }
@media (max-width: 640px) { .closing { padding: 64px 16px 80px; } .closing p { font-size: 38px; } .closing::before { font-size: 180px; } }


/* ---- portrait v2: the subject stands IN FRONT of the height chart. me-cutout.png (made by
   design/tools/cutout.py) replaces the multiply trick, so the chart no longer crosses the face.
   Layers, bottom to top: gradient wall → chart lines → vignette (figure background), the cutout
   in black and white with a flash shadow on the wall, grain, the bottom bar. ---- */
.portrait { background:
    radial-gradient(120% 95% at 50% 38%, transparent 45%, rgba(0,0,0,.55) 100%),
    var(--chart) center / 100% 100% no-repeat,
    linear-gradient(135deg, #4c1d95 0%, #86198f 55%, #991b1b 100%); }
.portrait img.cut { position: relative; z-index: 0; mix-blend-mode: normal;
  filter: grayscale(1) contrast(1.25) brightness(1.02) drop-shadow(8px 6px 10px rgba(0,0,0,.55)); }
.portrait:hover img.cut { filter: drop-shadow(8px 6px 10px rgba(0,0,0,.55)); }


/* ---- syntax highlighting: Rouge (Jekyll's built-in highlighter) tokenises at build time, so
   there is no highlighter in the browser; this is only its colour theme, from the site palette.
   Prism.js goes. ---- */
.highlighter-rouge { position: relative; }
.highlighter-rouge .highlight { margin: 0 0 20px; }
.highlighter-rouge pre.highlight { margin: 0; padding: 38px 18px 16px; background: var(--grad) top / 100% 2px no-repeat, var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.highlight code { font: 14.5px/1.65 var(--mono); color: var(--text); }
.highlighter-rouge::before { position: absolute; top: 10px; left: 18px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); z-index: 1; }
.language-python::before { content: "python"; } .language-bash::before, .language-shell::before, .language-console::before { content: "shell"; }
.language-javascript::before, .language-js::before { content: "javascript"; } .language-typescript::before, .language-ts::before { content: "typescript"; }
.language-rust::before { content: "rust"; } .language-go::before { content: "go"; } .language-c::before { content: "c"; } .language-cpp::before { content: "c++"; }
.language-java::before { content: "java"; } .language-yaml::before { content: "yaml"; } .language-json::before { content: "json"; } .language-latex::before, .language-tex::before { content: "latex"; }
.language-text::before, .language-plaintext::before { content: "text"; }
code.language-plaintext::before, code.highlighter-rouge::before { content: none; }
.copy { position: absolute; top: 6px; right: 8px; z-index: 1; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--border); padding: 3px 8px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--accent); }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .ch, .highlight .cd { color: var(--hl-comment); font-style: italic; }
.highlight .cp, .highlight .cpf { color: var(--hl-deco); }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kc, .highlight .kp, .highlight .kv, .highlight .ow { color: var(--hl-keyword); font-weight: 600; }
.highlight .kt, .highlight .nc, .highlight .nn, .highlight .ne { color: var(--hl-class); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .sh, .highlight .sx, .highlight .sr, .highlight .ss, .highlight .dl { color: var(--hl-string); }
.highlight .se, .highlight .si { color: var(--hl-deco); }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo, .highlight .mb, .highlight .il { color: var(--hl-number); }
.highlight .nf, .highlight .fm, .highlight .nx + .p + .nx { color: var(--hl-func); }
.highlight .nb, .highlight .bp, .highlight .vc, .highlight .nv, .highlight .no { color: var(--hl-builtin); }
.highlight .nd, .highlight .na, .highlight .nt { color: var(--hl-deco); }
.highlight .o, .highlight .p { color: var(--hl-punct); }
.highlight .gp { color: var(--hl-keyword); user-select: none; } .highlight .go { color: var(--hl-comment); }
.highlight .gi { color: var(--hl-string); } .highlight .gd { color: var(--hl-number); }
.highlight .err { color: inherit; background: none; }


/* ---- search: a native <dialog> over a build-time index; nothing leaves the page ---- */
dialog.search { width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px)); margin: 72px auto auto; padding: 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  display: none; flex-direction: column; overflow: hidden; }
dialog.search[open] { display: flex; }
dialog.search::backdrop { background: rgba(4,4,9,.6); backdrop-filter: blur(4px); }
dialog.search::before { content: ""; display: block; height: 2px; background: var(--grad); flex: none; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--border); flex: none; }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 17px Inter, system-ui, sans-serif; }
.search-box input::-webkit-search-cancel-button { display: none; }
dialog.search kbd { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--border); padding: 1px 5px; }
.hits { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.hits li a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; color: var(--text); text-decoration: none; border-left: 2px solid transparent; }
.hits li a img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--border); background: var(--bg); }
.hits li a .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits li a .d { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits li a .k { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.hits li[aria-selected="true"] a { background: var(--accent-soft); border-left-color: var(--accent-2); }
.hits mark { background: none; color: var(--accent); font-weight: 700; }
.hits .empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 15px; }
.hits .empty b { display: block; font: 400 26px var(--display); text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.search-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); flex: none; }
.search-foot kbd { margin-right: 3px; }
@media (max-width: 640px) { dialog.search { margin-top: 16px; } .search-foot { display: none; } }


.search-close { background: none; border: 0; padding: 0; margin: 0; color: var(--muted); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.search-close:hover, .search-close:hover kbd { color: var(--text); border-color: var(--accent); }


.origin { margin: 0 0 20px; font-size: 19px; line-height: 1.65; max-width: 52ch; }
.origin b { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 22px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* ---- About as a CV: every entry = when | role, place, what was done, tech ---- */
.cv h2 { font: 400 30px var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.cv .timeline li { padding: 18px 0; }
.cv .bullets { margin: 8px 0 0; padding-left: 18px; font-size: 16px; line-height: 1.6; color: var(--text); }
.cv .bullets li { display: list-item; padding: 0; border: 0; margin: 0 0 4px; grid-template-columns: none; }
.cv .bullets li::marker { color: var(--accent-2); }
.cv .chips { margin-top: 10px; }
.cv .more { display: inline-block; margin-top: 8px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.skills { display: grid; grid-template-columns: 160px 1fr; gap: 10px 24px; margin: 8px 0 0; font-size: 16px; }
.skills dt { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.skills dd { margin: 0; }
@media (max-width: 640px) { .skills { grid-template-columns: 1fr; gap: 2px; } .skills dd { margin-bottom: 12px; } }


.ongoing { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); border: 1px solid currentColor; padding: 1px 6px; }


/* company website, shown as the address itself so it reads as a link at a glance */
.where .site { display: inline-block; margin-left: 8px; font: 600 12px var(--mono); letter-spacing: .04em; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 0 6px; vertical-align: 1px; }
.where .site:hover { color: var(--on-accent); background: var(--grad); border-color: transparent; text-decoration: none; }


/* responsive 16:9 video embed in posts */
.prose .video, .video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 12px; border: 1px solid var(--border); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ---- page scaffolding (the mockup inlined these) ---- */
.page-title { margin: 64px 0 8px; }
.page-lede { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }
.narrow { max-width: 820px; margin: 0 auto; }

/* ---- book posts: rating and notes, above the review ---- */
.book-panel { border: 1px solid var(--border); background: var(--glass); padding: 16px 18px; margin: 0 0 28px; font-size: 16px; }
.book-panel h2 { font: 600 12px var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px !important; }
.book-panel .stars { color: var(--accent-2); letter-spacing: 2px; font-size: 18px; }
.book-panel .stars .dim { color: var(--border); }
.book-panel ul { margin: 6px 0 0; padding-left: 18px; }
.grid.books .card img { aspect-ratio: 2 / 3; }

/* ---- comments: nothing third-party loads until the reader asks for it ---- */
.comments { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.comments .btn { cursor: pointer; }
.comments p { font-size: 14px; color: var(--muted); }

/* ---- notes list ---- */
.notes-list .row { grid-template-columns: 110px 1fr; }

/* ---- portrait: `portrait: plain` in _config.yml drops the height chart ---- */
.portrait.plain { background: radial-gradient(120% 95% at 50% 38%, transparent 45%, rgba(0,0,0,.55) 100%), linear-gradient(135deg, #4c1d95 0%, #86198f 55%, #991b1b 100%); }

/* a post without an image still gets a thumbnail-sized block, so rows line up */
span.thumb { display: block; aspect-ratio: 16/9; background: var(--grad); opacity: .35; border: 1px solid var(--border); }
.origin p { margin: 0; }
.year-group[hidden], .row[hidden] { display: none; }

/* long words and bare URLs in posts wrap instead of widening the page */
.prose { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.section-head { gap: 16px; }
.section-head a { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .section-head h2 { font-size: 13px; letter-spacing: .1em; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
