/* ==========================================================================
   prλtam — main stylesheet
   bg #101014 · surface #19191F · text #E6E1D6 / #92909A / #85818D
   lavender #B4A3E6 · phosphor #A3BE8C · border #34313D
   ========================================================================== */

/* ---- tokens ---- */
:root {
  --void: #101014;
  --surface: #19191F;
  --elevated: #222129;
  --primary: #E6E1D6;
  --secondary: #92909A;
  --muted: #85818D;
  --lavender: #B4A3E6;
  --phosphor: #A3BE8C;
  --border: #34313D;
  --border-faint: #26242E;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 72rem;                 /* 1152px — slightly tighter than before */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --rule: 1px solid var(--border);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- fonts ---- */
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.9375rem;                     /* 15px */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}

/* restrained selection — translucent tint, no color inversion */
::selection { background: rgba(180, 163, 230, 0.28); }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

/* animated underline for inline text links (content areas only) */
p a, .prose li a, dd a, .page-sub a, .lost-links a {
  color: var(--primary);
  background-image: linear-gradient(var(--lavender), var(--lavender));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 200ms var(--ease), color 160ms var(--ease);
}
p a:hover, .prose li a:hover, dd a:hover, .page-sub a:hover, .lost-links a:hover {
  color: var(--lavender);
  background-size: 100% 2px;
}

:focus-visible {
  outline: 1px dashed var(--lavender);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lavender);
  color: var(--void);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
.skip-link:focus { left: 0; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.dim { color: var(--muted); }

/* CRT — barely-there horizontal line texture over everything: the page is
   a screen on an old network. Static by design (no flicker), so it needs
   no reduced-motion exception; at this opacity it is felt, not seen. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(230, 225, 214, 0.012) 0 1px,
    transparent 1px 3px
  );
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 20, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--rule);
}

.header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem 0.85rem;
}

.brand {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  min-width: 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--primary);
  white-space: nowrap;
  background-image: none;
}
.wordmark:hover { color: var(--lavender); }
.wordmark-l {
  font-family: var(--code);
  font-weight: 500;
  font-size: 0.86em;
  color: var(--lavender);
  position: relative;
  top: -0.04em;
  padding-inline: 0.015em;
}

.brand-name {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2rem);
}
.site-nav a {
  font-size: 0.875rem;
  color: var(--secondary);
  position: relative;
  padding-block: 0.25rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--lavender);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.site-nav a:hover { color: var(--primary); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--primary); }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "intro art"
    "intro spotify";
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: 0.9rem;
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.25rem, 5vw, 3.5rem);
}

.hero-intro {
  grid-area: intro;
  align-self: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* level 1 — the greeting: the strongest text element on the page */
.hero-hello {
  order: 1;
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.0625rem, 1rem + 0.55vw, 1.1875rem);   /* 17→19px over the 15px body */
  line-height: 1.7;
  font-weight: 400;
}
.hero-hello::before { content: "> "; color: var(--lavender); }
.hero-hello strong { font-weight: 600; }

/* level 2 — supporting paragraphs: receded so the bold phrases carry the eye.
   Base grey lifted a touch above --secondary for screen comfort (the token
   stays untouched everywhere else); strong phrases keep full --primary. */
.hero-copy {
  order: 2;
  margin: 1.625rem 0 0;
  max-width: 32rem;
  color: var(--secondary);
  color: color-mix(in srgb, var(--secondary) 80%, var(--primary));
  font-size: 1rem;        /* 16px supporting text, under the 19px greeting */
  line-height: 1.8;
}
.hero-copy + .hero-copy { margin-top: 1.625rem; }
.hero-copy strong { color: var(--primary); font-weight: 600; }

/* level 3 — social links */
.social-links {
  order: 3;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}
.social-links a {
  font-size: 0.8125rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.social-links a:hover { color: var(--lavender); border-color: var(--lavender); }

/* tiny metadata under the artwork — one quiet terminal artifact, no more */
.art-meta {
  margin-top: 0.7rem;
  font-family: var(--code);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.spotify {
  grid-area: spotify;
  justify-self: center;
  margin-top: 0;
  width: min(100%, 25rem);
}

/* hero artwork — genuine ASCII rendered into the page at build time
   (tools/generate_shanks_ascii.py → templates/partials/shanks-ascii*.html).
   Two compositions, one figure: the desktop portrait swaps to a tighter,
   recomposed face crop below 900px — the mobile art is not a squeeze.
   Deliberately unframed: no border, no padding, no corner ticks, no card —
   the art sits directly on the page like terminal output, and the source's
   dark hair fades into the background instead of stopping at an edge. */
.hero-art {
  grid-area: art;
  margin: 0;
  min-width: 0;
  justify-self: center;
  width: fit-content;
  display: grid;
  justify-items: center;
}
.ascii-art {
  margin: 0;
  font-family: var(--code);
  /* desktop grid: 72 cols × 0.6em advance = 43.2em wide, 69 rows tall.
     8.5px caps the art at ~367×587 — the same on-page footprint the 56-col
     grid had, at ~65% more logical resolution (the eye and scars get real
     cells); 0.81vw scales it down through 900–1050px. */
  font-size: min(8.5px, 0.81vw);
  line-height: 1;
  letter-spacing: 0;
  color: var(--primary);
}
.ascii-art-mobile { display: none; }
.aa-hi  { color: var(--lavender); }
.aa-lo  { color: var(--secondary); }
.aa-dim { color: var(--muted); }
.aa-ph  { color: var(--phosphor); }

/* ---- sections ---- */
.section { padding-block: clamp(2.25rem, 5vw, 3.5rem); }

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}

.view-all {
  font-size: 0.8125rem;
  color: var(--secondary);
  transition: color 160ms var(--ease);
}
.view-all:hover { color: var(--lavender); }

/* ---- entry lists ---- */
.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-faint);
}
.entry-list > li { border-bottom: 1px solid var(--border-faint); }

.entry-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title year"
    "desc  year";
  column-gap: 2rem;
  row-gap: 0.3rem;
  padding-block: 1.05rem;
}
.entry-link:hover .entry-title { color: var(--lavender); }

.entry-title {
  grid-area: title;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  transition: color 160ms var(--ease);
}
.entry-ext { color: var(--muted); font-family: var(--mono); font-size: 0.8em; }
.entry-desc {
  grid-area: desc;
  color: var(--secondary);
  max-width: 42rem;
}
.entry-year {
  grid-area: year;
  align-self: center;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- spotify now playing (ported from saarthak314/site — design preserved,
   colours mapped to this theme: lavender marks/meter, phosphor equalizer) ---- */

.now {
  max-width: none;
  width: 100%;
  background: rgb(180 163 230 / 0.05);
  border: 1px solid rgb(180 163 230 / 0.16);
  margin-top: 0;
  min-height: 118px;
  padding: 11px 12px 12px;
}

/* the card keeps its place while the worker answers, so nothing below it shifts
   (needs !important to out-rank the global [hidden] reset above) */
.now[hidden] {
  display: block !important;
  visibility: hidden;
}

.now.now--off {
  display: none !important;
}

.now__label {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: var(--mono);
  font-size: 12.5px;
  gap: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 8px;
}

.now__label::after {
  border-top: 1px solid rgb(180 163 230 / 0.18);
  content: "";
  flex: 1;
}

.now--playing .now__state {
  color: var(--lavender);
}

.now__pre {
  color: var(--secondary);
  font-family: var(--code);
  font-size: 12.5px;
  font-variant-ligatures: none;
  letter-spacing: 0;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

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

.now__mark {
  color: var(--lavender);
}

.now__title {
  color: var(--primary);
  text-decoration: none;
}

.now__title:hover {
  text-decoration: underline;
}

.now__meta {
  color: var(--muted);
}

.now__meter {
  color: var(--lavender);
  vertical-align: middle;
}

.now__eq {
  color: var(--phosphor);
  display: inline-block;
  vertical-align: middle;
}

.now__eq span {
  animation: now-eq calc(0.9s + var(--i, 0) * 0.17s) ease-in-out calc(var(--i, 0) * -0.3s) infinite alternate;
  display: inline-block;
  transform-origin: bottom;
}

@keyframes now-eq {
  from {
    transform: scaleY(0.3);
  }

  to {
    transform: scaleY(1);
  }
}

/* ---- page heads ---- */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
}
.crumb {
  margin: 0 0 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--lavender); }
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.05;
}
.page-sub {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--secondary);
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 3rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-faint);
}
.spec-row > div { margin: 0; }
.spec-row dt {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.spec-row dd { margin: 0; font-size: 0.875rem; }

/* ---- archive ---- */
.archive { padding-bottom: clamp(3rem, 7vw, 5rem); }
.archive-year {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.archive-year + .archive-year { margin-top: 2.5rem; }
.archive-year-label {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--secondary);
}

/* ---- article ---- */
.article-shell { padding-bottom: clamp(2rem, 5vw, 3rem); }
.article-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2.25rem;
  border-bottom: var(--rule);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.article-tags { display: inline-flex; gap: 0.6rem; margin-left: 0.5rem; }
.tag { color: var(--lavender); }
.article-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  line-height: 1.1;
  max-width: 54rem;
}
.article-summary {
  margin: 1.4rem 0 0;
  max-width: 42rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--secondary);
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding-top: 2.25rem;
}

.toc { display: none; }

/* reading progress */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lavender);
}

/* ---- prose ---- */
.prose {
  max-width: 41rem;
  font-size: 0.9375rem;
}
.prose > * + * { margin-top: 1.15em; }

.prose h2, .prose h3, .prose h4 {
  font-weight: 400;
  line-height: 1.25;
  margin-top: 2.2em;
  scroll-margin-top: 6rem;
}
.prose h2 { font-family: var(--serif); font-size: 1.65rem; }
.prose h3 { font-family: var(--serif); font-size: 1.3rem; }
.prose h4 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

.prose a { color: var(--lavender); }
.prose a:hover { color: var(--primary); }

.prose strong { font-weight: 600; }
.prose em { color: var(--secondary); }

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.5em;
  border-left: 2px solid var(--lavender);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--secondary);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border-faint);
  margin: 2.5em auto;
  width: 8rem;
}

.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--lavender); font-family: var(--code); font-size: 0.85em; }

.prose code, .prose kbd, .prose samp {
  font-family: var(--code);
  font-size: 0.86em;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  padding: 0.12em 0.4em;
}

/* code blocks (pygments) */
.codehilite {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  margin: 1.6em 0;
}
.codehilite pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--code);
  font-size: 0.8125rem;
  line-height: 1.65;
  background: transparent;
}
.codehilite code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-family: var(--code);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms var(--ease), color 150ms var(--ease);
}
.codehilite:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--lavender); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.prose th, .prose td {
  border: 1px solid var(--border-faint);
  padding: 0.5rem 0.8rem;
  text-align: left;
}
.prose th {
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--surface);
}

/* toc (wide screens) */
@media (min-width: 66.25rem) {
  .article-body { grid-template-columns: minmax(0, 1fr) 15rem; }
  .toc {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 99;
    align-self: start;
    position: sticky;
    top: 7rem;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    font-size: 0.75rem;
    line-height: 1.5;
    border-left: 1px solid var(--border-faint);
    padding-left: 1.25rem;
  }
  .toc-label {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    color: var(--muted);
  }
  .toc ul { margin: 0; padding: 0; list-style: none; }
  .toc ul ul { padding-left: 0.9rem; }
  .toc li { margin-bottom: 0.45rem; }
  .toc a { color: var(--muted); transition: color 150ms var(--ease); }
  .toc a:hover { color: var(--primary); }
  .toc a.active { color: var(--lavender); }
}

/* ---- pager ---- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 4rem;
  border-top: var(--rule);
  font-size: 0.875rem;
}
.pager a { color: var(--secondary); max-width: 45%; }
.pager a:hover { color: var(--lavender); }
.pager-next { text-align: right; }

/* ---- 404 ---- */
.lost { padding-block: clamp(4rem, 12vw, 8rem); }
.lost-links { margin-top: 1.75rem; display: flex; gap: 0.75rem; }

/* ---- footer ---- */
.site-footer {
  border-top: var(--rule);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: 1.75rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.footer-links a { color: var(--secondary); }
.footer-links a:hover { color: var(--lavender); }
.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- responsive ---- */
@media (max-width: 56.25rem) {          /* 900px */
  .ascii-art { display: none; }
  .ascii-art-mobile {
    display: block;
    /* 56 columns × 0.6em per cell; size to 80% of the hero's content width. */
    font-size: min(8px, calc((100vw - 2 * var(--gutter)) / 42));
    white-space: pre;
  }

  .header-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 0.65rem 0.55rem;
  }
  .brand { gap: 0.7rem; }
  .brand-name { font-size: 0.78rem; }
  .site-nav {
    position: static;
    display: block;
    width: 100%;
    background: none;
    border: 0;
  }
  .site-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(0.65rem, 3vw, 1.1rem);
    padding: 0;
  }
  .site-nav li + li { border: 0; }
  .site-nav a {
    display: inline-block;
    padding-block: 0.1rem;
    font-size: 0.875rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 1.25rem 3rem;
  }
  .hero-intro { display: contents; }
  .hero-art {
    order: 1;
    margin: 0 auto;
    min-width: 0;
  }
  .social-links {
    order: 2;
    justify-content: center;
    gap: 0.4rem clamp(1rem, 4vw, 1.5rem);
    margin: 0.9rem 0 1.25rem;
  }
  .hero-hello { order: 3; }
  .hero-copy {
    order: 4;
    margin-top: 1rem;
  }
  .hero-copy + .hero-copy { margin-top: 1.625rem; }
  .spotify {
    order: 5;
    align-self: center;
    width: 100%;
    margin-top: 1.75rem;
  }
}

@media (max-width: 40rem) {             /* 640px */
  .entry-link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "desc";
  }
  .entry-year {
    grid-area: auto;
    justify-self: start;
    order: 3;
    margin-top: 0.1rem;
  }
  .archive-year { grid-template-columns: 1fr; }
  .archive-year-label {
    margin-top: 0;
    border-bottom: 1px solid var(--border-faint);
    padding-bottom: 0.5rem;
  }
  .spec-row { gap: 0.6rem 2rem; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pulse-dot { animation: none; }
  .now__eq span { animation: none; }
}
