@charset "utf-8";
/* ═══════════════════════════════════════════════════════════
   jsm85.github.io

   Retro-futurist: deep plum ground, a sunset horizon under the intro,
   chrome-gradient display type and pill buttons — the outrun palette
   handled with editorial restraint rather than neon.

   Every colour pair is verified by script/contrast-audit.py.

   Sections: tokens · reset · type · buttons · header · intro
             entries · art · lightbox · prose · about · footer
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #150b26;
  --bg-alt:    #190e2c;
  --surface:   #1e1233;
  --surface-2: #271843;
  --line:      #3d2861;
  --line-soft: #2c1c48;

  --text:      #f3edff;
  --text-2:    #b9a9d9;
  --text-3:    #9c8ac0;
  --prose:     #ded4f2;

  /* Sunset ramp, lifted from the horizon: cream, gold, rose, violet.
     Every stop clears 3:1 on --bg, so the gradient headline stays
     legible along its whole length. */
  --cream:  #ffe0b8;
  --gold:   #ffcd94;
  --accent: #ef8dae;
  --violet: #c8a2f0;
  --cyan:   #7fd6e8;

  --accent-dim:  #6d3f52;
  --accent-wash: rgba(239, 141, 174, .10);

  --sunset: linear-gradient(96deg, var(--cream), var(--gold) 22%, var(--accent) 58%, var(--violet));

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --f-display: "Syne", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap:  1040px;
  --prose: 660px;
  --gap:   clamp(1.25rem, 2.5vw, 2rem);

  --ease: cubic-bezier(.25, .8, .35, 1);

  color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(120% 70% at 50% 0%, #22103c 0%, transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(239, 141, 174, .3); color: var(--text); }

/* ── Layout ─────────────────────────────────────────────── */
.wrap { width: min(100% - 2.5rem, var(--prose)); margin-inline: auto; }
.wrap--wide  { width: min(100% - 2.5rem, var(--wrap)); }
.wrap--prose { width: min(100% - 2.5rem, var(--prose)); }

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}
.section--contact { border-top: 1px solid var(--line-soft); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--bg);
  padding: .6rem 1rem; border-radius: var(--r-pill);
  font-family: var(--f-mono); font-size: .8rem; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* ── Typography ─────────────────────────────────────────── */
.h1 {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, .9rem + 2.1vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.h1--lead { max-width: none; text-wrap: initial; }

.h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -.005em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

/* The signature move from the reference: line one plain, line two
   carrying the sunset ramp. Solid colour is set first so the text is
   never invisible if background-clip is unsupported or forced-colors
   is on. */
.grad {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad {
    background: var(--sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .grad { background: none; color: CanvasText; forced-color-adjust: none; }
}

/* The one real era cue: a monospace label with an index number. */
.label {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 1rem;
}
.label a { color: inherit; text-decoration: none; }
.label a:hover { color: var(--accent); }
.label__index { color: var(--accent); }
.label__sep { color: var(--line); }

.lede {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.175rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 58ch;
  margin: 1.1rem 0 0;
}

.empty, .note {
  font-family: var(--f-mono); font-size: .875rem; line-height: 1.8;
  color: var(--text-2);
}
.note {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 1.2rem 1.35rem;
}
.note p { margin: 0 0 .5rem; }
.note p:last-child { margin-bottom: 0; }
.note code { color: var(--accent); }

.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.plain-list a { text-decoration: none; }
.plain-list a:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .7rem; letter-spacing: .05em;
  color: var(--text-3);
  padding: .15rem .45rem;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .8rem 1.4rem;
  font-family: var(--f-mono);
  font-size: .8125rem;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: border-color .18s var(--ease), background .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover {
  color: var(--text); border-color: var(--violet); background: var(--surface-2);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--sunset);
  background-size: 160% 100%;
  color: var(--bg);
  border-color: transparent;
  font-weight: 500;
  transition: background-position .35s var(--ease), transform .18s var(--ease);
}
.btn--primary:hover {
  background-position: 100% 0;
  color: var(--bg);
  border-color: transparent;
  transform: translateY(-1px);
}

.link-more {
  font-family: var(--f-mono); font-size: .8125rem;
  text-decoration: none; color: var(--text-3);
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.link-more:hover { color: var(--accent); }

.nav-out__mark { font-size: .8em; opacity: .65; }

/* ── Header ─────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 11, 38, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .18em;
  text-decoration: none;
  color: var(--text);
}
.brand:hover {
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--line); border-radius: 5px;
  padding: .45rem .7rem; color: var(--text-2);
  font-family: var(--f-mono); font-size: .78rem;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars i { display: block; width: 14px; height: 1px; background: currentColor; }

.site-nav ul {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: .35rem 0;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--text-2);
  transition: color .18s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--sunset);
}

/* ── Intro ──────────────────────────────────────────────── */
.intro {
  position: relative;
  --floor-h: clamp(110px, 12vw, 160px);
  --sky-gap: clamp(1.75rem, 3vw, 2.75rem);
  padding-block: clamp(3rem, 7vw, 5.5rem)
                 calc(var(--floor-h) + var(--sky-gap));
  overflow: hidden;
  isolation: isolate;
}

/* The horizon: a magenta glow band where the floor meets the sky.
   The mask is load-bearing, not decoration. The intro reserves
   --floor-h + --sky-gap of bottom padding, so the copy never comes closer
   to the page bottom than that; fading the glow out above roughly the same
   distance keeps its bright core off the text no matter how the copy
   reflows. Contrast behind the intro is verified in script/. */
.intro::after {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; bottom: 0;
  width: 150%; height: calc(var(--floor-h) + 200px);
  translate: -50% 0;
  background:
    radial-gradient(52% 62% at 50% calc(100% - var(--floor-h)),
      rgba(232, 106, 178, .5) 0%, rgba(217, 74, 158, .16) 42%, transparent 70%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 46%);
  pointer-events: none;
}

/* The floor: a perspective grid running back to that horizon. */
.intro__floor {
  position: absolute; z-index: -1;
  left: -25%; right: -25%; bottom: 0;
  height: var(--floor-h);
  background-image:
    linear-gradient(rgba(239, 141, 174, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 141, 174, .40) 1px, transparent 1px);
  background-size: 100% 34px, 46px 100%;
  transform: perspective(220px) rotateX(68deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, .35) 100%);
  pointer-events: none;
}

/* A thin bright line right on the horizon, as in the reference. */
.intro__horizon {
  position: absolute; z-index: -1;
  left: 0; right: 0; bottom: var(--floor-h);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 205, 148, .85) 30%, rgba(239, 141, 174, .9) 50%, rgba(200, 162, 240, .7) 70%, transparent);
  pointer-events: none;
}

.intro__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.intro__portrait {
  position: relative;
  width: clamp(150px, 19vw, 210px);
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 12px;
  flex: none;
  /* A gradient hairline, drawn as a masked ring so it survives radius. */
  box-shadow: 0 18px 50px -18px rgba(217, 74, 158, .55);
}
.intro__portrait::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--sunset);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.intro__portrait img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: calc(var(--r-lg) - 10px);
}

/* ── Section heads ──────────────────────────────────────── */
.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .35rem 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--line-soft);
}
.section__head .label { grid-column: 1 / -1; margin-bottom: .35rem; }
.section__head .h2 { grid-column: 1; }
.section__head .link-more { grid-column: 2; }

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.25rem) 0;
}
.page-head .lede { margin-top: 1rem; }
.page-head + .section { padding-top: clamp(2rem, 4vw, 2.75rem); }

/* ── Entry list ─────────────────────────────────────────── */
.entry-list { list-style: none; margin: 0; padding: 0; }

.entry + .entry { border-top: 1px solid var(--line-soft); }

.entry__link {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 1.5rem;
  align-items: start;
  gap: 1.5rem;
  padding: 1.5rem 1.1rem;
  margin-inline: -1.1rem;
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: background .18s var(--ease);
}
.entry__link:hover { background: var(--surface); color: inherit; }
.entry__link::before {
  content: "";
  position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 2px; border-radius: 2px;
  background: var(--sunset);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.entry__link:hover::before { opacity: 1; }
.entry { position: relative; }

.entry__date {
  display: grid; gap: .15rem;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em;
  padding-top: .3rem;
}
.entry__year { color: var(--accent); }
.entry__day  { color: var(--text-3); }

.entry__body { display: grid; gap: .45rem; }
.entry__title {
  font-family: var(--f-display);
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.004em;
  line-height: 1.35; color: var(--text);
  transition: color .18s var(--ease);
}
.entry__link:hover .entry__title { color: var(--accent); }
.entry__blurb { color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.entry__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }

.entry__arrow {
  font-family: var(--f-mono);
  color: var(--line);
  padding-top: .25rem;
  text-align: right;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.entry__link:hover .entry__arrow { color: var(--accent); transform: translateX(3px); }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.pager__count { font-family: var(--f-mono); font-size: .8rem; color: var(--text-3); }

/* ── Art ────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--f-mono); font-size: .8rem;
  padding: .45rem .85rem;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease),
              background .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.is-active {
  color: var(--accent); border-color: var(--accent-dim);
  background: var(--accent-wash);
}

.art-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.art-tile { margin: 0; }
.art-tile[hidden] { display: none; }

.art-tile__btn {
  display: block; width: 100%;
  aspect-ratio: 1;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: zoom-in;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.art-tile__btn img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.art-tile__btn:hover, .art-tile__btn:focus-visible {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(217, 74, 158, .5);
}

.art-tile__cap { display: grid; gap: .2rem; margin-top: .8rem; }
.art-tile__title {
  font-family: var(--f-display); font-size: .98rem; font-weight: 700;
  color: var(--text);
}
.art-tile__meta {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em;
  color: var(--text-3);
}

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  padding: clamp(1rem, 5vw, 3.5rem);
  background: rgba(12, 5, 24, .95);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox__nav[hidden] { display: none; }

.lightbox__figure { margin: 0; display: grid; gap: 1.25rem; justify-items: center; }
.lightbox__img {
  max-height: 74vh; width: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
}
.lightbox__cap { display: grid; gap: .3rem; text-align: center; }
.lightbox__title {
  font-family: var(--f-display); font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
}
.lightbox__meta {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
.lightbox__caption { color: var(--text-2); max-width: 52ch; font-size: .95rem; }

.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 1.4rem; line-height: 1;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { color: var(--accent); border-color: var(--accent-dim); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ── Prose ──────────────────────────────────────────────── */
.prose { padding-block: clamp(2rem, 4.5vw, 3rem); }
.prose > * + * { margin-top: 1.25em; }
.prose p, .prose li { color: var(--prose); }
.prose__lede { font-size: 1.15rem; color: var(--text-2) !important; line-height: 1.6; }

.prose h2 {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem);
  font-weight: 700; letter-spacing: -.005em; line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 2.75em; margin-bottom: .85em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.prose h3 {
  font-size: 1.0625rem; font-weight: 500; color: var(--text);
  margin-top: 2em; margin-bottom: .6em;
}

.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--text-3); }

.prose blockquote {
  margin-inline: 0;
  padding: .2rem 0 .2rem 1.25rem;
  border-left: 2px solid var(--accent-dim);
  color: var(--text-2);
}

.prose img, .post__hero img {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.post__hero { margin: 2rem 0 0; }

.prose code {
  font-family: var(--f-mono); font-size: .875em;
  background: var(--surface-2); color: var(--accent);
  padding: .12em .35em; border-radius: 3px;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: .875rem; line-height: 1.7;
}
.prose pre code { background: none; padding: 0; color: var(--prose); }

.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose :where(table) { display: block; overflow-x: auto; }
.prose th, .prose td {
  border-bottom: 1px solid var(--line-soft);
  padding: .6rem .75rem; text-align: left;
}
.prose th {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3); font-weight: 400;
}

.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: 2.5em; }

/* Rouge — muted, no neon. */
.highlight { background: none; }
.highlight .c, .highlight .cm, .highlight .c1 { color: #6f747f; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr { color: #c99bd6; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb { color: #9cc39a; }
.highlight .nf, .highlight .nc { color: #86b3d1; }
.highlight .m, .highlight .mi, .highlight .mf { color: var(--accent); }
.highlight .nt { color: #c99bd6; }
.highlight .na { color: #86b3d1; }
.highlight .o, .highlight .p { color: #a4a8b3; }

/* ── Post extras ────────────────────────────────────────── */
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .78rem; color: var(--text-3);
  margin: 1.5rem 0 0;
}

.post-nav {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-block: 1rem clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}
.post-nav__link {
  display: grid; gap: .3rem; align-content: start;
  padding: 1rem 1.15rem;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.post-nav__link:hover { border-color: var(--text-3); background: var(--surface); color: inherit; }
.post-nav__link--next { text-align: right; }
.post-nav__dir {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em;
  color: var(--text-3);
}
.post-nav__title { font-size: .95rem; font-weight: 500; line-height: 1.4; }

.notfound { padding-block: clamp(4rem, 12vw, 8rem); }

/* ── About ──────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, var(--prose)) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__main.prose { padding-top: 0; }
.about__side { display: grid; gap: 1.25rem; position: sticky; top: 5.5rem; }
.about__side .label { margin-bottom: .75rem; }

.about__portrait {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 14px;
  max-width: 240px;
}
.about__portrait img { width: 100%; border-radius: var(--r-sm); }

/* ── Footer ─────────────────────────────────────────────── */
/* The reference ends on a sunset dropping below the fold; this is a
   restrained version of it. */
.site-foot {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding-block: 3rem 3.5rem;
  margin-top: auto;
  overflow: hidden;
  isolation: isolate;
}
.site-foot::after {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; bottom: -55%;
  width: min(820px, 108vw); aspect-ratio: 1.35;
  translate: -50% 0;
  background: radial-gradient(closest-side,
    rgba(255, 224, 184, .20) 0%,
    rgba(255, 205, 148, .15) 38%,
    rgba(239, 141, 174, .10) 62%,
    transparent 100%);
  pointer-events: none;
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem;
}
.site-foot__brand {
  font-family: var(--f-mono); font-weight: 500;
  letter-spacing: .18em; font-size: .875rem;
  color: var(--text-2); margin: 0;
}
.site-foot__links {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-foot__links a {
  font-size: .9rem; text-decoration: none; color: var(--text-2);
  transition: color .18s var(--ease);
}
.site-foot__links a:hover { color: var(--accent); }
.site-foot__colophon {
  font-family: var(--f-mono); font-size: .78rem; color: var(--text-3);
  margin: 0;
}
.site-foot__colophon a { color: var(--text-3); }
.site-foot__colophon a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__side { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .about__portrait { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }
  .site-head__inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    border-top: 1px solid var(--line-soft);
    padding-block: .5rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: .7rem 0; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--accent); }

  .intro__inner { grid-template-columns: 1fr; }
  .intro__portrait { order: -1; }

  .section__head { grid-template-columns: 1fr; }
  .section__head .link-more { grid-column: 1; margin-top: .6rem; }

  .entry__link { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .entry__date {
    grid-auto-flow: column; justify-content: start; gap: .6rem;
    padding-top: 0;
  }
  .entry__arrow { display: none; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; }
}

/* ── Motion / print ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-head, .site-foot, .btn-row,
  .intro__floor, .intro__horizon { display: none !important; }
  body { background: #fff; color: #000; }
  .h1, .h2, .prose p, .prose li { color: #000; }
  .grad { background: none !important; color: #000 !important; }
  .intro::after, .site-foot::after { display: none !important; }
  a { color: #000; }
}
