/* ============================================================
   srvr.in — base stylesheet (shared layout)
   Structure only. Every colour, typeface and ornament comes
   from tokens set by one file in assets/css/styles/:
     bauhaus.css · swiss.css · penguin.css · riso.css
   ============================================================ */

/* ── Token defaults (styles override all of these) ────────── */
:root {
  --bg: #fff;  --bg-alt: #eee;  --ink: #111;  --ink-mid: #333;  --ink-muted: #777;
  --c1: #c00;  --c2: #00c;  --c3: #fc0;  --on-c1: #fff;  --on-c3: #111;
  --border: rgba(0,0,0,.15);  --rule: #111;
  --bar: 4px;  --hair: 1px;
  --link: var(--c1);  --hover-bg: transparent;  --hover-ink: var(--c1);
  --tag-bg: var(--ink);  --tag-ink: var(--bg);
  --code-bg: var(--bg-alt);

  --font-display: sans-serif;
  --font-body: serif;
  --font-mono: monospace;
  --font-meta: var(--font-mono);
  --display-weight: 800;
  --display-case: none;
  --display-tracking: -0.03em;
  --display-style: normal;
  --label-case: none;
  --label-tracking: 0;
  --hero-align: left;
  --body-size: clamp(17px, 1.9vw, 20px);
  --body-leading: 1.65;

  --img-tint: var(--c3);
  --img-blend: normal;

  --gutter: clamp(16px, 5vw, 72px);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--c3); color: var(--on-c3); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, select { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.grain { display: none; position: fixed; inset: 0; pointer-events: none; z-index: 900; }

/* ── Layout shell ─────────────────────────────────────────── */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  border-bottom: var(--bar) solid var(--rule);
  padding: 0 var(--gutter);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.site-wordmark {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.site-wordmark .accent { color: var(--c1); }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  color: var(--ink);
  padding: 6px 10px;
}
.nav-link:hover  { background: var(--hover-bg); color: var(--hover-ink); }
.nav-link.active { background: var(--c1); color: var(--on-c1); font-weight: 700; }
.nav-divider { width: 2px; height: 22px; background: var(--rule); margin: 0 8px; flex-shrink: 0; }

.site-controls { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c2);
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--c1); }

/* ── Style bar ────────────────────────────────────────────── */
/* Grows from the brush button (clip-path circle at --ox/--oy) into a
   bar over the header. Uses the active style's paper and ink, so it
   restyles itself as you pick. Chips keep their own colours. */
.style-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--bar-h, 56px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px 0 var(--gutter);
  background: var(--bg);
  color: var(--ink);
  border-bottom: var(--hair) solid var(--rule);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  clip-path: circle(0 at var(--ox, 95%) var(--oy, 28px));
  visibility: hidden;
  transition: clip-path .5s cubic-bezier(.65,0,.35,1), visibility 0s linear .5s;
}
.style-bar.is-open {
  clip-path: circle(150vmax at var(--ox, 95%) var(--oy, 28px));
  visibility: visible;
  transition: clip-path .5s cubic-bezier(.65,0,.35,1), visibility 0s;
}
.style-bar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  flex-shrink: 0;
}
.style-bar__chips {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.style-bar__chips::-webkit-scrollbar { display: none; }
.style-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 34px;
  padding: 0 10px 0 12px;
  background: var(--p-bg);
  color: var(--p-ink);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
}
.style-bar.is-open .style-chip { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * 30ms); }
.style-chip__name { font-family: var(--p-font); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; }
.style-chip__dots { display: flex; gap: 3px; }
.style-chip__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--p-a); }
.style-chip__dots i + i { background: var(--p-b); }
.style-chip:hover { box-shadow: inset 0 0 0 2px var(--p-ink); }
.style-chip[aria-checked="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.style-chip:focus-visible { outline: 2px dashed var(--c1); outline-offset: 2px; }
.style-bar__close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  font-size: 22px; line-height: 1;
  color: var(--ink);
}
.style-bar__close:hover { color: var(--c1); }
@media (max-width: 560px) {
  .style-bar__title { display: none; }
  .style-bar { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .style-bar, .style-bar.is-open { transition: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 100px) var(--gutter) clamp(28px, 4vw, 56px);
  border-bottom: var(--bar) solid var(--rule);
  text-align: var(--hero-align);
}
.hero { min-height: clamp(300px, 42vw, 520px); }
.hero__ghost,
.page-hero__ghost { position: absolute; user-select: none; pointer-events: none; }
.hero__content,
.page-hero__content { position: relative; z-index: 1; }
.hero__content { max-width: 820px; }

.hero__label,
.page-hero__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  margin-bottom: 22px;
}
.hero__wordmark,
.page-hero__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: 0.88;
  color: var(--ink);
}
.hero__wordmark  { font-size: clamp(64px, 13vw, 176px); }
.page-hero__title { font-size: clamp(48px, 9vw, 120px); }
.hero__wordmark .accent,
.page-hero__title .accent { color: var(--c1); }

.hero__quote {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-mid);
  margin-top: 28px;
  max-width: 460px;
  line-height: 1.45;
}
.hero__quote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  color: var(--ink);
}

/* ── Section chrome ───────────────────────────────────────── */
.section-pad { padding: clamp(28px, 5vw, 56px) var(--gutter); }

.section-label,
.content-block__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  color: var(--ink);
  margin-bottom: 12px;
}
.rule { width: 100%; height: var(--hair); background: var(--rule); }
.rule--thick { height: var(--bar); }

/* ── Cover art ────────────────────────────────────────────── */
.cover-art {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-art::after { content: ''; position: absolute; inset: 0; }
.cover-art__label {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.cover-art--large { height: clamp(160px, 22vw, 280px); width: 100%; }
.cover-art--thumb { height: 100%; }
.cover-art--has-image {
  background-size: cover;
  background-position: center;
  background-color: var(--img-tint);
  background-blend-mode: var(--img-blend);
}
.cover-art--has-image::after,
.cover-art--has-image .cover-art__label { display: none; }

/* ── Post list ────────────────────────────────────────────── */
.post-list-section { padding: clamp(28px, 5vw, 56px) var(--gutter); }
.post-list-container { max-width: 900px; }
.post-row {
  display: grid;
  grid-template-columns: 64px 84px 1fr auto;
  gap: 0 16px;
  align-items: center;
  margin: 0 -16px;
  padding: 0 16px;
  border-bottom: var(--hair) solid var(--rule);
}
.post-row:hover { background: var(--hover-bg); }
.post-row:hover .post-row__title { color: var(--hover-ink); }
.post-row__thumb { padding: 10px 0; height: 72px; }
.post-row__date {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.post-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 21px);
  text-transform: var(--display-case);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.post-list-footer { padding: 20px 0 4px; }
.all-posts-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  padding: 8px 14px;
  background: var(--c2);
  color: #fff;
}
.all-posts-link:hover { background: var(--c1); color: var(--on-c1); }

/* ── Tag ──────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag--small { font-size: 11px; padding: 2px 6px; }
a.tag:hover { background: var(--c1); color: var(--on-c1); }
.tag--ghost { background: var(--c1); color: var(--on-c1); }

/* ── Post hero: image above, title on paper below ─────────── */
.post-hero { position: relative; border-bottom: var(--bar) solid var(--rule); }
.post-hero .cover-art--large {
  height: clamp(200px, 30vw, 380px);
  border-bottom: var(--bar) solid var(--rule);
}
.post-hero__gradient { display: none; }
.post-hero__overlay {
  position: relative;
  padding: clamp(22px, 3vw, 38px) var(--gutter) clamp(24px, 3vw, 40px);
  max-width: 1000px;
  text-align: var(--hero-align);
}
.back-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--ink);
}
.back-link:hover { color: var(--c1); }
.post-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  font-size: clamp(36px, 7vw, 92px);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 18px;
}
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta__date { font-family: var(--font-meta); font-size: 13px; color: var(--ink-mid); }

/* ── Long-form text (posts and pages) ─────────────────────── */
.post-body {
  padding: clamp(28px, 5vw, 60px) var(--gutter);
  max-width: calc(var(--gutter) + 680px);
}
.page-content-section { padding: clamp(28px, 5vw, 56px) var(--gutter); }
.page-content { max-width: 660px; }

.post-body p, .post-body li,
.page-content p, .page-content li,
.content-block__body p {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  color: var(--ink);
  margin-bottom: 1.1em;
}
.page-content p, .page-content li { color: var(--ink-mid); }
.page-content li { margin-bottom: 0.4em; }
.post-body strong, .page-content strong { font-weight: 700; color: var(--ink); }

.post-body h2, .page-content h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.05;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.page-content h2:first-child { margin-top: 0; }
.post-body h3, .page-content h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: var(--display-case);
  font-size: clamp(19px, 2.3vw, 24px);
  color: var(--ink);
  margin: 1.5em 0 0.5em;
}
.post-body a,
.page-content a:not(.tag),
.content-block__body a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-body a:hover,
.page-content a:not(.tag):hover { background: var(--hover-bg); color: var(--hover-ink); }
.page-content h2 a, .page-content h3 a { color: inherit; text-decoration: none; }

.post-body blockquote,
.page-content blockquote {
  border-left: var(--bar) solid var(--c1);
  padding: 2px 0 2px 20px;
  margin: 1.5em 0;
  color: var(--ink-mid);
}
.post-body blockquote.pull-quote {
  position: relative;
  border-left: none;
  margin: 2.6em 0;
  padding: 0.8em 0 0.9em;
}
.post-body blockquote.pull-quote p {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
/* drop the post's own --- rules when they sit right against the quote */
.post-body hr:has(+ blockquote.pull-quote),
.post-body blockquote.pull-quote + hr { display: none; }

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--code-bg);
  padding: 2px 6px;
}
.post-body pre {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1.7;
  background: var(--code-bg);
  color: var(--ink);
  padding: 20px 22px;
  overflow-x: auto;
  border-left: var(--bar) solid var(--c2);
  margin-bottom: 1.5em;
}
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body ul, .post-body ol,
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1em; }
.post-body img { max-width: 100%; margin: 1.5em 0; }
.post-body hr, .page-content hr {
  border: none;
  height: var(--hair);
  background: var(--rule);
  margin: 2.4em 0;
  position: relative;
}

/* ── Page sections, projects, archives ────────────────────── */
.page-section { display: flex; flex-direction: column; gap: 44px; }
.content-block { display: flex; flex-direction: column; }
.content-block__body { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; margin-bottom: 1.4em; }

.project-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px 16px;
  margin: 0 -16px;
  border-bottom: var(--hair) solid var(--rule);
  align-items: start;
}
.project-row:hover { background: var(--hover-bg); }
.project-row:hover .project-row__name { color: var(--hover-ink); }
.project-row__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--ink);
  margin-bottom: 6px;
}
.project-row__desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--ink-mid);
  line-height: 1.5;
}
.archive-year {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  color: var(--c2);
  letter-spacing: var(--display-tracking);
  margin-bottom: 10px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: clamp(20px, 3vw, 32px) var(--gutter);
  border-top: var(--bar) solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  font-size: 16px;
  color: var(--ink);
}
.footer-links { display: flex; gap: 4px; align-items: center; }
.footer-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  color: var(--ink);
  padding: 4px 10px;
}
.footer-link:hover { background: var(--hover-bg); color: var(--hover-ink); }
.footer-link--highlight { background: var(--c1); color: var(--on-c1); font-weight: 700; }
.footer-link--highlight:hover { background: var(--c2); color: #fff; }

/* ── Resume ───────────────────────────────────────────────── */
.resume-hero {
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(24px, 3vw, 40px);
  border-bottom: var(--bar) solid var(--rule);
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 56px);
}
.resume-hero__photo {
  width: clamp(84px, 11vw, 140px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.1);
  flex-shrink: 0;
  margin-bottom: 4px;
}
.resume-hero__text { flex: 1; min-width: 0; }
.resume-hero__role {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  margin-bottom: 18px;
}
.resume-hero__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.9;
  color: var(--ink);
}
.resume-hero__name .accent { color: var(--c1); }
.resume-hero__contact { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 20px; }
.resume-hero__contact a,
.resume-hero__contact span {
  font-family: var(--font-meta);
  font-size: 13px;
  color: var(--ink);
  padding: 3px 8px;
  border: var(--hair) solid var(--rule);
}
.resume-hero__contact a:hover { background: var(--hover-bg); color: var(--hover-ink); }
.resume-hero__contact a:last-child { background: var(--c1); border-color: var(--c1); color: var(--on-c1); font-weight: 700; }

.resume-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 0 48px;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  align-items: start;
}
.resume-main { max-width: 760px; }
.resume-main h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  margin-bottom: 6px;
}
.resume-main h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
  margin: 2.2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: var(--bar) solid var(--rule);
}
.resume-main h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--ink);
  margin: 1.6em 0 0.2em;
}
.resume-main h4 {
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-bottom: 0.6em;
}
.resume-main p,
.resume-main li {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--ink-mid);
  margin-bottom: 0.7em;
}
.resume-main ul { padding-left: 1.3em; }
.resume-main a:not(.tag) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.resume-main a:not(.tag):hover { background: var(--hover-bg); color: var(--hover-ink); }
.resume-main .tag a, .resume-main a.tag { color: var(--tag-ink); }
.tag.is-success { background: var(--c3); color: var(--on-c3); }
.resume-main strong { color: var(--ink); font-weight: 700; }
.resume-main hr { border: none; height: var(--hair); background: var(--rule); margin: 1.8em 0; }

.resume-sidebar { border-left: var(--bar) solid var(--rule); padding-left: 28px; }
.resume-sidebar__section { margin-bottom: 32px; }
.resume-sidebar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--label-case);
  letter-spacing: var(--label-tracking);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 14px;
}
.skill-item { margin-bottom: 12px; }
.skill-item__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.skill-bar-bg { background: var(--bg-alt); height: 8px; width: 100%; }
.skill-bar { display: block; height: 8px; background: var(--c2); }
.resume-sidebar__section + .resume-sidebar__section .skill-bar { background: var(--c1); }

@media print {
  .site-header, .site-footer, .grain { display: none !important; }
  body { background: #fff; }
  .resume-hero { padding: 20px 32px 16px; }
  .resume-body { padding: 20px 32px; gap: 0 24px; }
  .resume-main h2 { margin: 1.4em 0 0.5em; }
  a { color: inherit !important; text-decoration: none !important; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: clamp(72px, 16vw, 120px); }
  .page-hero__ghost { display: none; }
}

@media (max-width: 640px) {
  .nav-link { padding: 5px 6px; font-size: 13px; }

  /* thumb | title over date | tag */
  .post-row { grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; gap: 2px 14px; padding: 10px 16px; }
  .post-row__thumb { grid-column: 1; grid-row: 1 / span 2; height: 56px; padding: 0; }
  .post-row__title { grid-column: 2; grid-row: 1; align-self: end; }
  .post-row__date  { grid-column: 2; grid-row: 2; align-self: start; }
  .post-row .tag   { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

  .resume-body { grid-template-columns: 1fr; }
  .resume-sidebar { border-left: none; border-top: var(--bar) solid var(--rule); padding-left: 0; padding-top: 24px; margin-top: 8px; }
  .resume-hero { flex-direction: column; align-items: flex-start; }
}

/* header goes to two rows: wordmark + controls, then nav */
@media (max-width: 560px) {
  .site-header__inner { flex-wrap: wrap; padding: 8px 0; row-gap: 6px; }
  .site-nav { order: 3; width: 100%; margin-left: -6px; }
  .nav-divider { display: none; }
}

@media (max-width: 480px) {
  .site-wordmark { font-size: 20px; }
  .post-row { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .post-row__thumb { display: none; }
  .post-row__title { grid-column: 1; grid-row: 1; }
  .post-row__date  { grid-column: 1; grid-row: 2; }
  .post-row .tag   { grid-column: 2; grid-row: 1; align-self: start; }
}

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