/* ==========================================================================
   minseoc03.github.io — single site-wide stylesheet
   Aesthetic: engineering ledger. Flat dark, hairline rules, tabular rows.
   No cards, no badges, no glow. Type does the work.
   Fonts: Space Grotesk (prose) · JetBrains Mono (structure/meta/code)
   ========================================================================== */

:root {
  /* light theme (default) — all pairs AA on --bg */
  --bg: #fafbfc;
  --bg-soft: #eef2f6;
  --text: #1a232e;
  --muted: #4d6070;
  --faint: #5e7080;
  --line: #dbe3ea;
  --line-soft: #e8eef3;
  --green: #15803d;
  --green-dim: #237a4b;
  --cyan: #0e7490;
  --amber: #b45309;
  --red: #b91c1c;
  --sel: rgba(21, 128, 61, 0.16);
  --grid: rgba(26, 35, 46, 0.045);
  --glow1: rgba(21, 128, 61, 0.05);
  --glow2: rgba(14, 116, 144, 0.04);
  --dot-glow: rgba(21, 128, 61, 0.4);
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --w: 64rem;       /* 1024px — index/listing pages */
  --w-narrow: 46rem; /* 736px — post reading measure */
}

:root[data-theme="dark"] {
  --bg: #0a0e16;
  --bg-soft: #0e131d;
  --text: #dbe4ec;
  --muted: #8a97a6;
  --faint: #7d8b9c; /* AA: 4.6:1 on --bg for small meta text */
  --line: #1b2634;
  --line-soft: #141d29;
  --green: #4ade80;
  --green-dim: #2f9e5b;
  --cyan: #7dd3fc;
  --amber: #fbbf24;
  --red: #f87171;
  --sel: rgba(74, 222, 128, 0.25);
  --grid: rgba(148, 163, 184, 0.04);
  --glow1: rgba(74, 222, 128, 0.06);
  --glow2: rgba(125, 211, 252, 0.045);
  --dot-glow: rgba(74, 222, 128, 0.7);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sel); }

/* faint GPU-grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 38% at 75% -5%, var(--glow1), transparent),
    radial-gradient(ellipse 45% 32% at 12% 8%, var(--glow2), transparent);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 65%);
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  z-index: 100;
}
.skip:focus { left: 0; }

/* --- nav ------------------------------------------------------------------ */
.nav {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.nav__logo:hover { text-decoration: none; }
.nav__logo .g { color: var(--green); }
.nav__logo .d { color: var(--faint); }
.nav__logo .cur {
  color: var(--green);
  margin-left: 2px;
  font-size: 0.8em;
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav__links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__links a[aria-current] { color: var(--green); }
.nav__links a[aria-current]::before { content: "*"; margin-right: 1px; }
.nav__links .ext { color: var(--muted); }
.nav__links .ext:hover { color: var(--green); }
.nav__theme {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.nav__theme:hover { color: var(--green); }

/* --- shared page scaffolding ---------------------------------------------- */
main {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 60vh;
}

.sect { margin: 3.25rem 0 0; }
.sect__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.sect__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sect__head .c { color: var(--green); }
.sect__head .c2 { color: var(--cyan); }
.sect__head a { color: var(--faint); }
.sect__head a:hover { color: var(--green); }

/* mono utility */
.m { font-family: var(--mono); }
.dim { color: var(--muted); }
.tiny { font-size: 0.8rem; }

/* --- landing: centered hero (terminal is the product) ------------------------ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1rem;
  /* exactly one viewport at any window size; JS refines via --hero-min */
  min-height: calc(100vh - 4.5rem);
  min-height: var(--hero-min, calc(100dvh - 4.5rem));
}
.hero__kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
  /* auto top margin pairs with the cue's — free space splits evenly, content centers */
  margin-top: auto;
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.9rem;
}
.hero__title .g { color: var(--green); }
.hero__sub {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 1.2rem;
}
.hero__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  margin-bottom: 2.6rem;
}
.hero__term {
  width: 100%;
  max-width: 46rem;
  text-align: left;
}
.hero__term .term__hint { text-align: center; margin-left: 0; }

/* content below the fold */
.below { max-width: 58rem; margin: 0 auto; }

.scrollcue {
  margin-top: auto;
  padding: 2.2rem 0.2rem 0.6rem;
  align-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.scrollcue:hover { text-decoration: none; color: var(--text); }
.scrollcue .c { color: var(--green); }
.scrollcue .c2 { color: var(--cyan); }
.scrollcue__txt { color: var(--faint); }
.scrollcue:hover .scrollcue__txt { color: var(--muted); }
.scrollcue__arrow {
  color: var(--green);
  animation: cue-bob 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* scroll reveal (JS-gated so content is never hidden without JS) */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms ease, transform 550ms ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
/* legacy class used on /about/ */
.intro__links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.88rem;
  margin-top: 1.4rem;
}

/* --- interactive terminal (always dark, in both themes — it's the product) ---- */
.term {
  --bg-soft: #0e131d;
  --text: #dbe4ec;
  --muted: #8a97a6;
  --faint: #7d8b9c;
  --line: #1b2634;
  --green: #4ade80;
  --green-dim: #2f9e5b;
  --cyan: #7dd3fc;
  --amber: #fbbf24;
  --red: #f87171;
  background: #0b101b;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(74, 222, 128, 0.04);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  cursor: text;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.term__dot { width: 11px; height: 11px; border-radius: 50%; }
.term__dot--r { background: #ff5f57; }
.term__dot--y { background: #febc2e; }
.term__dot--g { background: #28c840; }
.term__title { margin-left: auto; color: var(--faint); font-size: 0.7rem; }
.term__body {
  padding: 0.9rem 1.1rem 1rem;
  max-height: 24rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.term__body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-p { color: var(--green); }
.t-c { color: var(--text); }
.t-o { color: var(--muted); }
.t-o a { color: var(--green); }
.t-o b, .t-num { color: var(--green); font-weight: 700; }
.t-ok { color: var(--green); }
.t-run { color: var(--amber); }
.t-err { color: var(--red); }
.t-dir { color: var(--cyan); }
.t-smi { color: var(--muted); font-size: 0.7rem; line-height: 1.45; white-space: pre; }
.t-hint { color: var(--faint); font-style: italic; }
.t-cursor { color: var(--green); animation: blink 1.1s steps(1) infinite; }
.term__input { display: flex; align-items: baseline; gap: 0.55rem; margin-top: 0.15rem; }
.term__input label { cursor: text; }
.term__input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: inherit;
  caret-color: var(--green);
  padding: 0;
}
.term__input input::placeholder { color: var(--faint); opacity: 0.7; }
.term__hint {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin: 0.7rem 0 0 0.2rem;
}
.term__try {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: inherit;
  color: var(--green);
  cursor: pointer;
  margin-right: 0.5rem;
}
.term__try::before { content: "["; color: var(--faint); }
.term__try::after { content: "]"; color: var(--faint); }
.term__try:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- disclosure rows (details/summary) ---------------------------------------- */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.rowd > summary.row { position: relative; padding-right: 2.4rem; }
.row__caret, .xp__caret { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); }
.rowd .row__caret { position: absolute; right: 0.5rem; top: 0.68rem; }
.rowd .row__caret::before { content: "[+]"; }
.rowd[open] .row__caret::before { content: "[−]"; }
.rowd[open] > summary.row { background: var(--bg-soft); }
.rowd__body { padding: 0.15rem 0.4rem 0.9rem; }
.rowd__body > p:first-child {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 64ch;
  margin: 0 0 0.5rem;
}
.rowd__links { display: flex; gap: 1.1rem; font-family: var(--mono); font-size: 0.78rem; margin: 0; }
.rowd__links a { color: var(--faint); }
.rowd__links a:hover { color: var(--green); }
@media (min-width: 981px) {
  .rowd__body { padding-left: calc(11.5rem + 1.5rem + 0.4rem); }
}

.xp__d > summary:hover .xp__role { color: var(--green); }
.xp__caret::before { content: " [+]"; }
.xp__d[open] .xp__caret::before { content: " [−]"; }
.xp__brief { font-size: 0.9rem; color: var(--muted); margin: 0; }
.xp__more { padding-top: 0.55rem; }

/* --- experience timeline ----------------------------------------------------- */
.xp__item {
  display: grid;
  grid-template-columns: 8.2rem minmax(0, 1fr);
  gap: 1.4rem;
}
.xp__date {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  padding-top: 0.2rem;
  white-space: nowrap;
}
.xp__body {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 0 0 1.9rem 1.4rem;
}
.xp__item:last-child .xp__body { padding-bottom: 0.3rem; }
.xp__body::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.42rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.xp__item.is-current .xp__body::before {
  background: var(--green);
  box-shadow: 0 0 9px var(--dot-glow);
}
.xp__role {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}
.xp__org { color: var(--muted); font-weight: 500; }
.xp__summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  max-width: 58ch;
}
.xp__stack {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--green-dim);
  margin: 0;
}

.focus.focus--stack { grid-template-columns: minmax(0, 1fr); }
.focus.focus--stack div { grid-template-columns: 8.5rem minmax(0, 1fr); }

/* --- ledger rows ----------------------------------------------------------- */
.ledger { margin: 0; }
.row {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  padding: 0.62rem 0.4rem;
  border-top: 1px solid var(--line-soft);
}
.ledger .row:first-child { border-top: 0; }
.row:hover { background: var(--bg-soft); }

.row__key {
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.row__key a { color: var(--text); }
.row__key a:hover { color: var(--green); text-decoration: none; }
.row__desc { color: var(--muted); font-size: 0.92rem; }
.row__links {
  font-family: var(--mono);
  font-size: 0.78rem;
  display: flex;
  gap: 0.9rem;
  white-space: nowrap;
}
.row__links a { color: var(--faint); }
.row__links a:hover { color: var(--green); }

/* post-list variant: date | title | tag */
.row--post { grid-template-columns: 6.2rem minmax(0, 1fr) auto; }
.row--post .row__key { color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.row--post .row__title { font-size: 0.95rem; font-weight: 500; }
.row--post .row__title a { color: var(--text); }
.row--post .row__title a:hover { color: var(--green); text-decoration: none; }
.row--post .row__tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  white-space: nowrap;
}
.row--post .row__tag a { color: var(--faint); }
.row--post .row__tag a:hover { color: var(--green); }

.sect__more {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.7rem 0.4rem 0;
}
.sect__more a { color: var(--faint); }
.sect__more a:hover { color: var(--green); }

/* --- focus (two-col definition list) --------------------------------------- */
.focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 3rem;
  margin: 0;
}
.focus div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.45rem 0.4rem;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.focus dt {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  margin: 0;
}
.focus dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- contact ---------------------------------------------------------------- */
.contact { margin-bottom: 1rem; }
.contact p { color: var(--muted); max-width: 62ch; margin: 0 0 1rem; }
.contact p strong { color: var(--text); }
.contact__links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.88rem;
}

/* --- notes pages (mlsys / ml / topics) -------------------------------------- */
.notes__head { padding: 3rem 0 0; }
.notes__head h1 {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.notes__head h1 .d { color: var(--faint); font-weight: 400; }
.notes__head p { color: var(--muted); max-width: 62ch; margin: 0 0 1.4rem; }
.notes__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.83rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.notes__tabs a { color: var(--muted); }
.notes__tabs a:hover { color: var(--text); text-decoration: none; }
.notes__tabs a[aria-current] { color: var(--green); }
.notes__tabs .n { color: var(--faint); font-size: 0.9em; }

.notes__list { margin-top: 0.4rem; }

.year {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.12em;
  margin: 2rem 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.year::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* --- post page -------------------------------------------------------------- */
.post { max-width: var(--w-narrow); margin: 0 auto; }
.post__head { padding: 3rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.crumb {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  margin: 0 0 1rem;
}
.crumb a { color: var(--faint); }
.crumb a:hover { color: var(--green); }
.post__head h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin: 0 0 0.8rem;
}
.post__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.post__body { padding: 1.8rem 0 1rem; font-size: 0.95rem; }
.post__body > *:first-child { margin-top: 0; }

.post__body h2, .post__body h3, .post__body h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 2.2em 0 0.7em;
}
.post__body h2 { font-size: 1.32rem; }
.post__body h3 { font-size: 1.12rem; }
.post__body h4 { font-size: 1rem; }
.post__body h2::before { content: "# "; color: var(--green); font-family: var(--mono); font-weight: 400; opacity: 0.75; }
.post__body h3::before { content: "## "; color: var(--green); font-family: var(--mono); font-weight: 400; opacity: 0.45; }

.post__body p { margin: 0 0 1.05em; color: var(--text); }
.post__body strong { font-weight: 600; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post__body ul, .post__body ol { padding-left: 1.4em; margin: 0 0 1.05em; color: var(--text); }
.post__body li { margin-bottom: 0.3em; }
.post__body li::marker { color: var(--faint); }

.post__body blockquote {
  margin: 0 0 1.05em;
  padding: 0.1em 0 0.1em 1em;
  border-left: 2px solid var(--green-dim);
  color: var(--muted);
}

.post__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.4em auto;
  border-radius: 4px;
}

.post__body table {
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.88em;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.post__body th, .post__body td {
  border: 1px solid var(--line);
  padding: 0.45em 0.8em;
  text-align: left;
}
.post__body th {
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-soft);
}

.post__body code {
  font-family: var(--mono);
  font-size: 0.86em;
}
.post__body p code, .post__body li code, .post__body td code, .post__body h2 code, .post__body h3 code {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--cyan);
}
.post__body pre {
  /* code blocks stay dark in both themes — the rouge palette below assumes it */
  background: #0e131d;
  border: 1px solid #1b2634;
  border-radius: 6px;
  padding: 1em 1.2em;
  overflow-x: auto;
  line-height: 1.6;
  margin: 0 0 1.05em;
}
.post__body pre code { background: none; border: 0; padding: 0; font-size: 0.84em; color: #dbe4ec; }

.post__body .MathJax, .post__body mjx-container { color: var(--text); }
mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; max-width: 100%; }

/* prev / next */
.post__nav {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding: 1.1rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.post__nav a { color: var(--muted); max-width: 45%; }
.post__nav a:hover { color: var(--green); text-decoration: none; }
.post__nav .next { text-align: right; margin-left: auto; }

/* --- projects page ------------------------------------------------------------ */
.proj { border-top: 1px solid var(--line); padding: 1.5rem 0.4rem 1.6rem; }
.proj__head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.proj__name {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.proj__name a { color: var(--text); }
.proj__name a:hover { color: var(--green); text-decoration: none; }
.proj__status {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}
.proj__status.is-active { color: var(--green); }
.proj__status::before { content: "● "; font-size: 0.8em; }
.proj__links {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.proj__links a { color: var(--faint); }
.proj__links a:hover { color: var(--green); }
.proj__tagline { margin: 0.35rem 0 0.55rem; color: var(--cyan); font-size: 0.92rem; }
.proj__desc { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.92rem; max-width: 72ch; }
.proj__detail { margin: 0 0 0.9rem; }
.proj__detail div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.3rem 0;
  align-items: baseline;
}
.proj__detail dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  margin: 0;
}
.proj__detail dd { margin: 0; color: var(--muted); font-size: 0.88rem; max-width: 68ch; }
.proj__stack {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--green-dim);
  margin: 0;
}
@media (max-width: 720px) {
  .proj__detail div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

/* --- prose pages (about) ---------------------------------------------------- */
.prose { max-width: var(--w-narrow); margin: 0 auto; padding-top: 3rem; }
.prose h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 1.2rem;
}
.prose p { color: var(--muted); margin: 0 0 1rem; max-width: 62ch; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.3em; color: var(--muted); }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--green-dim); }
.prose object, .prose embed { border: 1px solid var(--line); border-radius: 6px; }

/* --- rouge syntax theme (dark) ---------------------------------------------- */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: #5b6b7c; font-style: italic; } /* comments */
.highlight .cp, .highlight .cpf { color: #7dd3fc; }                    /* preprocessor */
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp,
.highlight .kr, .highlight .kc { color: #c084fc; }                     /* keywords */
.highlight .kt { color: #7dd3fc; }                                     /* types */
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb,
.highlight .sc, .highlight .sd, .highlight .sh, .highlight .si,
.highlight .se, .highlight .sr, .highlight .ss, .highlight .sx { color: #4ade80; } /* strings */
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh,
.highlight .mo, .highlight .il { color: #fbbf24; }                     /* numbers */
.highlight .nf, .highlight .fm, .highlight .nx { color: #93c5fd; }     /* functions */
.highlight .nc, .highlight .nn { color: #7dd3fc; }                     /* classes/namespaces */
.highlight .nb, .highlight .bp { color: #7dd3fc; }                     /* builtins */
.highlight .nd { color: #c084fc; }                                     /* decorators */
.highlight .no, .highlight .na { color: #fbbf24; }                     /* constants/attrs */
.highlight .o, .highlight .ow { color: #94a3b8; }                      /* operators */
.highlight .p { color: #94a3b8; }                                      /* punctuation */
.highlight .n, .highlight .nv, .highlight .vi, .highlight .vc { color: #dbe4ec; }
.highlight .err { color: #f87171; }
.highlight .gp { color: #4ade80; }                                     /* shell prompt */
.highlight .gi { color: #4ade80; }
.highlight .gd { color: #f87171; }
.highlight .gh, .highlight .gu { color: #7dd3fc; font-weight: 700; }

/* --- footer ------------------------------------------------------------------ */
.foot {
  max-width: var(--w);
  margin: 4rem auto 0;
  padding: 1.4rem 1.25rem 2.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
}
.foot__links { display: flex; gap: 1.4rem; }
.foot a { color: var(--faint); }
.foot a:hover { color: var(--green); }

/* --- responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__links { gap: 1.1rem; }
}
@media (max-width: 720px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 0.15rem 1rem; padding: 0.75rem 0.4rem; }
  .xp__item { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .xp__date { padding: 0 0 0.1rem 1.45rem; }
  .row__links { padding-top: 0.15rem; }
  .row--post {
    grid-template-columns: 6.2rem minmax(0, 1fr);
    grid-template-areas: "key title" ". tag";
  }
  .row--post .row__key { grid-area: key; }
  .row--post .row__title { grid-area: title; }
  .row--post .row__tag { grid-area: tag; }
  .focus { grid-template-columns: minmax(0, 1fr); }
  .intro { padding-top: 3rem; }
}
