/* =========================================================================
   Your Mac Tek — Michael deAgonia
   Editorial personal site. Vanilla CSS, light/dark aware, responsive.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Light theme */
  --bg: #fbfaf7;
  --bg-elevated: #ffffff;
  --bg-subtle: #f3f1ea;
  --ink: #16140f;
  --ink-soft: #4a473f;
  --ink-faint: #807c70;
  --line: rgba(22, 20, 15, 0.10);
  --line-strong: rgba(22, 20, 15, 0.18);
  --accent: #c8431f;        /* warm editorial coral-red */
  --accent-ink: #993c1d;
  --accent-soft: #faece7;
  --focus: #185fa5;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 20, 15, 0.05);
  --shadow-md: 0 14px 40px -18px rgba(22, 20, 15, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0e0d0b;
  --bg-elevated: #1a1814;
  --bg-subtle: #211e18;
  --ink: #f4f1ea;
  --ink-soft: #c4bfb2;
  --ink-faint: #8c887b;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.22);
  --accent: #f0814f;
  --accent-ink: #f0997b;
  --accent-soft: #2a1a12;
  --focus: #85b7eb;
  --shadow-md: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
}

/* Honor OS preference on first load (JS may override + persist) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #0e0d0b; --bg-elevated: #1a1814; --bg-subtle: #211e18;
    --ink: #f4f1ea; --ink-soft: #c4bfb2; --ink-faint: #8c887b;
    --line: rgba(244, 241, 234, 0.12); --line-strong: rgba(244, 241, 234, 0.22);
    --accent: #f0814f; --accent-ink: #f0997b; --accent-soft: #2a1a12; --focus: #85b7eb;
    --shadow-md: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: #fff; }
html[data-theme="dark"] .btn-primary { color: #1a0d08; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-subtle); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: var(--ink); color: var(--bg); border-radius: 11px;
  font-family: var(--font-serif); font-weight: 600; font-size: 19px; letter-spacing: -0.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 18px; }
.brand-sub { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.01em; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color 0.2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent);
  transition: width 0.25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--bg-elevated); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  position: relative; transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-icon { position: absolute; font-size: 18px; transition: opacity 0.25s, transform 0.3s var(--ease); }
.theme-icon--moon { opacity: 0; transform: rotate(-40deg) scale(0.6); }
html[data-theme="dark"] .theme-icon--sun { opacity: 0; transform: rotate(40deg) scale(0.6); }
html[data-theme="dark"] .theme-icon--moon { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--bg-elevated); cursor: pointer; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 28px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 12px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }

/* ============================ HERO ============================ */
.hero { position: relative; padding: clamp(60px, 11vw, 130px) 0 clamp(48px, 7vw, 84px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-title {
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 28px; max-width: 16ch;
}
.hero-lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-credentials {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line);
}
.hero-credentials li { display: flex; flex-direction: column; gap: 4px; }
.cred-num { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 42px); font-weight: 600; color: var(--accent-ink); letter-spacing: -0.02em; line-height: 1; }
.cred-label { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.cred-detail { font-weight: 400; font-size: 13.5px; color: var(--ink-faint); }

.hero-glow {
  position: absolute; z-index: 1; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  filter: blur(20px); pointer-events: none; opacity: 0.9;
}
html[data-theme="dark"] .hero-glow { opacity: 0.5; }

/* ============================ BEATS MARQUEE ============================ */
.beats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--bg-subtle); }
.beats-track {
  display: flex; gap: 26px; white-space: nowrap; width: max-content;
  font-family: var(--font-serif); font-size: 22px; color: var(--ink-soft);
  animation: marquee 38s linear infinite;
}
.beats-track span { letter-spacing: -0.01em; }
.beats:hover .beats-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .beats-track { animation: none; } }

/* ============================ SECTION HEADS ============================ */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.02em; }
.section-note { max-width: 42ch; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* ============================ WRITING ============================ */
.writing { padding: clamp(64px, 9vw, 112px) 0; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: all 0.18s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.article-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm); min-height: 100%;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.article-card:focus-within { border-color: var(--accent); }

.article-card.is-featured { grid-column: span 3; flex-direction: row; align-items: center; gap: 40px; padding: 36px 40px; }
.article-card.is-featured .article-body { flex: 1; }
.article-card.is-featured .article-title { font-size: clamp(26px, 3.4vw, 38px); }
.article-card.is-featured .article-excerpt { font-size: 17px; max-width: 56ch; }
.article-featured-flag {
  flex: none; align-self: flex-start;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}

.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.article-date { font-weight: 500; letter-spacing: 0.01em; }
.article-dot { opacity: 0.5; }
.article-primary-tag { color: var(--accent-ink); font-weight: 600; }
.article-source {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink-faint); background: var(--bg-subtle);
}
.article-source--archive { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }

.article-title {
  font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.18; letter-spacing: -0.01em;
}
.article-title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s var(--ease); padding-bottom: 1px; }
.article-card:hover .article-title a { background-size: 100% 1.5px; }
.article-title a::after { content: ""; position: absolute; inset: 0; }

.article-excerpt { font-size: 15px; color: var(--ink-soft); line-height: 1.55; flex: 1; }

.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.article-tag { font-size: 12px; font-weight: 500; color: var(--ink-faint); background: var(--bg-subtle); padding: 4px 10px; border-radius: 7px; }

.article-readmore { font-size: 14px; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.article-readmore .arr { transition: transform 0.2s var(--ease); }
.article-card:hover .article-readmore .arr { transform: translateX(3px); }

.article-offline { font-size: 14px; font-weight: 500; color: var(--ink-faint); font-style: italic; margin-top: 2px; }
.article-card.is-offline .article-title-text { color: var(--ink); }

.archive-count { margin-top: 36px; text-align: center; font-size: 14px; color: var(--ink-faint); }
.js-fallback { color: var(--ink-soft); }

/* Reveal-on-render entrance for cards */
.article-card { opacity: 0; transform: translateY(14px); }
.article-card.in { opacity: 1; transform: translateY(0); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .article-card { opacity: 1; transform: none; } }

/* ============================ ABOUT ============================ */
.about { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); background: var(--bg-subtle); }
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-lead h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; margin-bottom: 28px; }
.about-pull { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 26px); font-style: italic; line-height: 1.4; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 22px; }
.about-pull-attr { margin-top: 14px; padding-left: 22px; font-size: 14px; color: var(--ink-faint); }

.about-body p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; }
.about-body em { color: var(--ink); font-style: italic; }

.awards { display: flex; flex-direction: column; gap: 18px; margin: 32px 0; }
.awards li { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.award-badge { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 17px; }
.award-title { font-family: var(--font-serif); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.award-meta { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.award-meta a { color: var(--accent-ink); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.award-meta a:hover { border-bottom-color: var(--accent); }

.about-availability { font-size: 16px; color: var(--ink-soft); background: var(--bg-elevated); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 22px; }
.about-availability a { color: var(--accent-ink); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* ============================ CONTACT ============================ */
.contact { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-lead h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.02em; margin: 0 0 18px; }
.contact-lead p { color: var(--ink-soft); font-size: 17px; max-width: 46ch; margin-bottom: 28px; line-height: 1.6; }

.socials-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.social-list { display: flex; flex-direction: column; }
.social-list li { border-top: 1px solid var(--line); }
.social-list li:last-child { border-bottom: 1px solid var(--line); }
.social-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 4px; transition: padding 0.22s var(--ease), color 0.2s; }
.social-list a:hover { padding-left: 14px; color: var(--accent-ink); }
.social-name { font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.social-handle { font-size: 14px; color: var(--ink-faint); }

/* ============================ FOOTER ============================ */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--bg-subtle); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; position: relative; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.footer-meta { font-size: 14px; color: var(--ink-soft); }
.footer-copy { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }
.footer-top { position: absolute; right: 0; top: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.footer-top:hover { color: var(--accent-ink); }

/* ============================ REVEAL ANIMATIONS ============================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(1) { transition-delay: 0.02s; }
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================================
   ============ NEW MULTI-PAGE SECTIONS (appended — same tokens) ===========
   Added when the single-pager became five pages. Every rule below reuses
   the existing token system (--accent, --ink-soft, --radius, --ease,
   --font-serif, etc.) and existing class patterns (.btn, .article-card,
   .eyebrow, .section-head, .wrap). No new fonts or colors.
   ========================================================================= */

/* ---------------- Active nav link (aria-current) ---------------- */
/* Reuses the existing ::after underline; just makes it persistent. */
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { width: 100%; }
.mobile-nav a[aria-current="page"] { color: var(--accent-ink); }

/* ---------------- Page header (Writing / About / Contact masthead) ---- */
/* Same eyebrow + serif title language as .section-head, stacked. */
.page-header { max-width: 760px; margin-bottom: 40px; padding-top: clamp(40px, 7vw, 72px); }
.page-header h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.025em; margin-bottom: 18px; }
.page-header-note { max-width: 56ch; color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }

/* Inner pages drop the home-only hero; give the first section breathing room. */
.writing-archive, .about-page, .contact-page { padding-top: 0; }

/* ---------------- Search box (matches .chip / .theme-toggle) ----------- */
.search-row { margin-bottom: 28px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  max-width: 480px; width: 100%;
  background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 18px; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.search-icon { font-size: 18px; color: var(--ink-faint); flex: none; line-height: 1; }
.search-input {
  flex: 1; border: 0; background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; padding: 11px 0; min-width: 0;
}
.search-input::placeholder { color: var(--ink-faint); }
.search-input:focus { outline: none; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------------- "On Your Mac Tek" badge (new on-site posts) ---------- */
/* Reuses the .article-source--archive accent family for badge consistency. */

/* ---------------- Home extras ---------------- */
.home-featured { padding-bottom: clamp(48px, 7vw, 88px); }
.home-seeall { margin-top: 40px; text-align: center; }
.awards--strip { flex-direction: row; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.awards--strip li { flex: 1 1 240px; padding: 14px 16px; }
.home-about .about-availability { background: transparent; border: 0; border-left: 0; padding: 0; }
.home-about .about-availability a { font-size: 16px; }

/* ---------------- CTA band ---------------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); background: var(--bg-subtle); }
.cta-inner { max-width: 640px; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-inner p { color: var(--ink-soft); font-size: 17px; margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Writing empty state ---------------- */
/* Uses the muted .archive-count / --ink-faint treatment. */
.writing-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.writing-empty-title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.writing-empty-note { color: var(--ink-faint); font-size: 15px; }

/* ---------------- Article reading page ---------------- */
.article-page { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 104px); }
/* One new layout: a centered reading column. Tokens only. */
.article-head, .article-prose, .article-cta, .article-nav, .article-notfound {
  width: 100%; max-width: 66ch; margin-left: auto; margin-right: auto;
  padding-left: 28px; padding-right: 28px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 22px;
}
.article-back .arr { transition: transform 0.2s var(--ease); }
.article-back:hover .arr { transform: translateX(-3px); }
.article-head-tags { margin-bottom: 16px; }
.article-title-main {
  font-family: var(--font-serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 52px); margin-bottom: 18px;
}
.article-byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--ink-faint); margin-bottom: 8px; }
.article-author { font-weight: 600; color: var(--ink-soft); }

.article-prose {
  font-family: var(--font-serif); font-size: clamp(18px, 2.1vw, 21px);
  color: var(--ink); line-height: 1.7; margin-top: 36px;
}
.article-prose > * + * { margin-top: 1.1em; }
.article-prose p { margin: 0; }
.article-prose h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.015em; margin-top: 1.6em; }
.article-prose h3 { font-size: clamp(20px, 2.4vw, 25px); margin-top: 1.4em; }
.article-prose ul, .article-prose ol { padding-left: 1.3em; }
.article-prose ul { list-style: disc; }
.article-prose ol { list-style: decimal; }
.article-prose li + li { margin-top: 0.4em; }
.article-prose a { color: var(--accent-ink); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.article-prose a:hover { border-bottom-color: var(--accent); }
.article-prose blockquote {
  border-left: 3px solid var(--accent); padding-left: 22px; font-style: italic; color: var(--ink-soft); margin: 1.4em 0;
}
.article-prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 1.2em; }
.article-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--bg-subtle); padding: 2px 6px; border-radius: 6px; }
.article-lede { color: var(--ink-soft); }

/* Archived "read on <outlet>" CTA + offline notice */
.article-cta { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-cta-note { margin-top: 12px; font-size: 14px; color: var(--ink-faint); }
.article-offline-notice {
  font-size: 16px; font-style: italic; color: var(--ink-faint);
  background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px;
}

/* Prev/next — reuses the .article-readmore arrow treatment */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.article-nav-link {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  background: var(--bg-elevated); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.article-nav-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.article-nav-link--next { text-align: right; align-items: flex-end; }
.article-nav-link.is-empty { border: 0; background: transparent; padding: 0; pointer-events: none; }
.article-nav-dir { font-size: 13px; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 5px; }
.article-nav-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.article-nav-link .arr { transition: transform 0.2s var(--ease); }
.article-nav-link--prev:hover .arr { transform: translateX(-3px); }
.article-nav-link--next:hover .arr { transform: translateX(3px); }

/* Post-not-found state — muted treatment */
.article-notfound { text-align: center; padding: clamp(40px, 8vw, 96px) 28px; }
.article-notfound .eyebrow { display: block; }
.article-notfound .article-title-main { margin-bottom: 18px; }
.article-notfound-note { color: var(--ink-soft); font-size: 18px; max-width: 46ch; margin: 0 auto 28px; line-height: 1.6; }

/* ---------------- About page extras ---------------- */
.about-page-inner { grid-template-columns: 0.85fr 1.15fr; }
.about-page .about-pull { margin-top: 0; }
.about-headshot-placeholder {
  margin-top: 28px; aspect-ratio: 4 / 5; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-subtle); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-faint); text-align: center;
}
.about-headshot-placeholder span { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.about-headshot-placeholder small { font-size: 12px; letter-spacing: 0.02em; }
.about-headshot { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.about-headshot-fig { margin: 28px auto 0; max-width: 340px; }
.about-headshot-fig figcaption { margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink-faint); text-align: center; }
.about-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------------- Contact page email placeholder ---------------- */
/* Matches the .social-list styling so it slots in cleanly once filled. */
.contact-email { margin-top: 32px; }
.contact-email-placeholder { margin-top: 32px; }
.contact-email-note { font-size: 15px; color: var(--ink-faint); line-height: 1.55; max-width: 44ch; }
.contact-email-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; background: var(--bg-subtle); padding: 1px 6px; border-radius: 5px; color: var(--ink-soft); }
.contact-email-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: padding 0.22s var(--ease), color 0.2s; }
.contact-email-row:hover { padding-left: 14px; color: var(--accent-ink); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 940px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.is-featured { grid-column: span 2; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-page-inner { grid-template-columns: 1fr; }
  .about-headshot-fig { max-width: 200px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-sub { display: none; }
  .hero-credentials { grid-template-columns: 1fr; gap: 24px; }
  .section-head { margin-bottom: 30px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card.is-featured { grid-column: span 1; }
  .beats-track { font-size: 18px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-link--next { text-align: left; align-items: flex-start; }
  .article-nav-link.is-empty { display: none; }
  .cta-actions .btn { flex: 1; }
  .awards--strip li { flex-basis: 100%; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .hero-actions .btn { flex: 1; }
}
