/* ─────────────────────────────────────────────────────────────────
   Youcef Zemmar — shared styles for all pages
   Aesthetic: ryotak-inspired card on soft aurora.
   Multi-page with View Transitions API for cross-doc fades.
   ───────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────
   View transitions (cross-document, modern browsers)
   ───────────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(.22,.61,.36,1);
}

::view-transition-old(avatar),
::view-transition-new(avatar) {
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(.22,.61,.36,1);
}

/* ─────────────────────────────────────────────────────────────────
   Tokens
   ───────────────────────────────────────────────────────────────── */
:root {
  --ink:        #1a1a22;
  --ink-2:      #46464f;
  --ink-3:      #76767e;
  --ink-4:      #b9b9c0;
  --line:       rgba(26, 26, 34, 0.10);
  --line-2:     rgba(26, 26, 34, 0.06);
  --card-bg:    #ffffff;

  --accent:     #e85a4f;
  --accent-2:   #ff7a5c;
  --accent-soft:#fde6e2;

  --serif:      "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:       "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r:          26px;
  --pad:        clamp(28px, 5vw, 56px);
}

/* ─────────────────────────────────────────────────────────────────
   Reset
   ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #f7eee5; color: var(--ink); height: auto; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "calt" 1, "ss01" 1;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 4vw, 56px) clamp(16px, 3vw, 40px);
  position: relative;
}

/* ─────────────────────────────────────────────────────────────────
   Aurora — five radials, slowly drifting via a single transform
   ───────────────────────────────────────────────────────────────── */
.aurora {
  position: fixed; inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(35vw 35vw at 8% 12%,  #ffd2c2 0%, transparent 60%),
    radial-gradient(38vw 38vw at 92% 8%,  #d9c8ff 0%, transparent 60%),
    radial-gradient(40vw 40vw at 95% 95%, #b9e9da 0%, transparent 60%),
    radial-gradient(36vw 36vw at 12% 90%, #fff0b8 0%, transparent 60%),
    radial-gradient(50vw 50vw at 50% 50%, #ffe7d9 0%, transparent 70%),
    #f7eee5;
  filter: blur(2px) saturate(118%);
  animation: drift 30s ease-in-out infinite;
  will-change: transform;
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate3d(-2%, 1%, 0) rotate(4deg)  scale(1.04); }
  66%      { transform: translate3d(2%, -1%, 0) rotate(-3deg) scale(1.02); }
}

/* ─────────────────────────────────────────────────────────────────
   Card
   ───────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--card-bg);
  border-radius: var(--r);
  padding: var(--pad);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0.5px 1.5px rgba(26, 26, 34, 0.04),
    0 24px 60px -20px rgba(26, 26, 34, 0.18),
    0 80px 120px -40px rgba(26, 26, 34, 0.12);
  animation: cardEnter 700ms cubic-bezier(.22,.61,.36,1) both;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.992); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Header — name + (nav above avatar)
   ───────────────────────────────────────────────────────────────── */
.head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 600;
  font-size: clamp(28px, 5.5vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.name a { color: inherit; text-decoration: none; }

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  transition: color 220ms cubic-bezier(.22,.61,.36,1);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--accent);
  transition: right 380ms cubic-bezier(.22,.61,.36,1);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { right: 0; }
.nav .sep { color: var(--ink-4); user-select: none; }

/* Active page state */
body[data-page="overview"] .nav a[data-link="overview"],
body[data-page="about"]    .nav a[data-link="about"],
body[data-page="work"]     .nav a[data-link="work"],
body[data-page="skills"]   .nav a[data-link="skills"],
body[data-page="contact"]  .nav a[data-link="contact"] {
  color: var(--accent);
}
body[data-page="overview"] .nav a[data-link="overview"]::after,
body[data-page="about"]    .nav a[data-link="about"]::after,
body[data-page="work"]     .nav a[data-link="work"]::after,
body[data-page="skills"]   .nav a[data-link="skills"]::after,
body[data-page="contact"]  .nav a[data-link="contact"]::after {
  right: 0;
}

@media (max-width: 540px) {
  .head { grid-template-columns: 1fr; }
  .head-right { align-items: flex-start; gap: 18px; }
  .nav { justify-content: flex-start; }
}

/* ─────────────────────────────────────────────────────────────────
   Avatar — illustrated anime figure, animated.
   Currently: DiceBear "lorelei" (free illustrated SVG, deterministic seed).
   Swap with your own: change <img src=...> in each page.
   ───────────────────────────────────────────────────────────────── */
.avatar-wrap {
  view-transition-name: avatar;
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.avatar-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, #fff5ec 0%, #ffd2b5 35%, #ff9d7d 75%, #e85a4f 100%);
  box-shadow:
    0 0 0 1.5px rgba(232, 90, 79, 0.22),
    0 8px 22px -6px rgba(232, 90, 79, 0.42),
    0 1px 2px rgba(26, 26, 34, 0.08);
  animation: avatarSway 9s ease-in-out infinite;
  will-change: transform;
}
.avatar {
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: #fff5ec;
  overflow: hidden;
  display: block;
  animation: avatarBob 6s ease-in-out infinite;
  will-change: transform;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.avatar img,
.avatar svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;  /* favor the face when image is taller than wide */
  animation: avatarBreath 4.5s ease-in-out infinite;
  will-change: transform;
}
.avatar-wrap:hover .avatar-ring {
  animation-play-state: paused;
  transform: scale(1.04) rotate(-3deg);
  transition: transform 380ms cubic-bezier(.22,.61,.36,1);
}
.avatar-wrap:hover .avatar img,
.avatar-wrap:hover .avatar svg {
  animation-play-state: paused;
  transform: scale(1.06);
  transition: transform 380ms cubic-bezier(.22,.61,.36,1);
}
@keyframes avatarBob    { 0%, 100% { transform: translateY(0); }       50% { transform: translateY(-5px); } }
@keyframes avatarSway   { 0%, 100% { transform: rotate(-1.5deg); }     50% { transform: rotate(1.5deg); } }
@keyframes avatarBreath { 0%, 100% { transform: scale(1); }            50% { transform: scale(1.025); } }

@media (max-width: 540px) {
  .avatar-wrap { width: 76px; height: 76px; }
}

/* ─────────────────────────────────────────────────────────────────
   Sections
   ───────────────────────────────────────────────────────────────── */
section { margin-top: 36px; }
section h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}

/* stagger sections after card lands */
.card section {
  opacity: 0;
  transform: translateY(8px);
  animation: sectionRise 600ms cubic-bezier(.22,.61,.36,1) forwards;
}
.card section:nth-of-type(1) { animation-delay: 280ms; }
.card section:nth-of-type(2) { animation-delay: 400ms; }
.card section:nth-of-type(3) { animation-delay: 520ms; }
.card section:nth-of-type(4) { animation-delay: 640ms; }
.card section:nth-of-type(5) { animation-delay: 760ms; }
@keyframes sectionRise { to { opacity: 1; transform: none; } }

/* ─────────────────────────────────────────────────────────────────
   Page hero (large H1 for sub-pages)
   ───────────────────────────────────────────────────────────────── */
.page-hero {
  margin-top: 36px;
}
.page-hero .kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 600;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 14ch;
}
.page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.page-hero .lede {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 16px;
}

/* ─────────────────────────────────────────────────────────────────
   Social key:value list (used on overview + contact)
   ───────────────────────────────────────────────────────────────── */
.social {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 8px;
  column-gap: 16px;
  font-size: 15px;
}
.social dt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.social dd a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 300ms cubic-bezier(.22,.61,.36,1), color 220ms;
}
.social dd a:hover { background-size: 100% 1px; color: var(--accent-2); }
@media (max-width: 420px) {
  .social { grid-template-columns: 88px 1fr; column-gap: 12px; }
  .social dt { font-size: 12px; }
}

/* ─────────────────────────────────────────────────────────────────
   Prose
   ───────────────────────────────────────────────────────────────── */
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink); }
.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 220ms;
}
.prose a:hover { border-bottom-color: var(--accent); }

/* ─────────────────────────────────────────────────────────────────
   Bulleted "built" list (overview) + detailed work list
   ───────────────────────────────────────────────────────────────── */
.built ul { list-style: none; padding: 0; }
.built li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: var(--ink-2);
}
.built li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  transition: background 220ms, transform 220ms;
}
.built li:hover::before { background: var(--accent); transform: scale(1.3); }
.built li strong { color: var(--ink); font-weight: 600; }
.built li .yr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-inline-start: 8px;
  letter-spacing: -0.01em;
}

/* Detailed work entries on /work */
.work-list { display: flex; flex-direction: column; gap: 28px; }
.work-entry {
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfaf7, #ffffff);
  border: 1px solid var(--line);
  transition: border-color 240ms, transform 380ms cubic-bezier(.22,.61,.36,1), box-shadow 380ms;
}
.work-entry:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(26, 26, 34, 0.16);
}
.work-entry .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}
.work-entry h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.work-entry .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.work-entry p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.work-entry .stack {
  margin-top: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.work-entry .stack span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.01em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 9px;
  border-radius: 99px;
}

/* ─────────────────────────────────────────────────────────────────
   Generic section heading + sub (used on /work)
   ───────────────────────────────────────────────────────────────── */
.section-h {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-top: -8px;
  margin-bottom: 18px;
  max-width: 54ch;
}
.section-sub em { font-style: italic; color: var(--ink); }

/* ─────────────────────────────────────────────────────────────────
   DZ Suite grid (compact mini-cards)
   ───────────────────────────────────────────────────────────────── */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.suite-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfaf7, #ffffff);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 240ms, transform 240ms cubic-bezier(.22,.61,.36,1), box-shadow 240ms, background 240ms;
}
.suite-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(232, 90, 79, 0.30);
  background: linear-gradient(180deg, #fff9f7, #ffffff);
}
.suite-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.suite-meta,
.suite-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.suite-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232, 90, 79, 0.45);
  animation: alive-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes alive-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
.suite-item:hover .suite-status { color: var(--ink-2); }
.suite-item:hover .suite-status .dot { animation-play-state: paused; transform: scale(1.15); }
@media (max-width: 540px) {
  .suite-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .suite-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   Timeline (numbered editorial list)
   ───────────────────────────────────────────────────────────────── */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.timeline .t-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
  padding-top: 2px;
}
.timeline .t-name {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.timeline .t-name strong { color: var(--ink); font-weight: 600; }
.timeline .t-name em { font-style: italic; color: var(--ink-3); }
.timeline .t-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .timeline li {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }
  .timeline .t-year { grid-column: 1; }
  .timeline .t-role { grid-column: 2; grid-row: 1; }
  .timeline .t-name { grid-column: 1 / -1; }
}

/* ─────────────────────────────────────────────────────────────────
   Big contact CTA (contact page)
   ───────────────────────────────────────────────────────────────── */
.contact-rows {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 28px;
}
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 240ms, transform 240ms cubic-bezier(.22,.61,.36,1), background 240ms;
}
.contact-row:hover {
  border-color: var(--accent);
  background: #fff9f7;
  transform: translateX(3px);
}
.contact-row .left { display: flex; flex-direction: column; gap: 2px; }
.contact-row .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-row .value {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-row .arrow {
  color: var(--accent);
  font-size: 20px;
  transition: transform 280ms cubic-bezier(.22,.61,.36,1);
}
.contact-row:hover .arrow { transform: translateX(6px); }

/* ─────────────────────────────────────────────────────────────────
   Footer (inside card)
   ───────────────────────────────────────────────────────────────── */
.footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}
.footer a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 220ms;
}
.footer a:hover { color: var(--accent); }
@media (max-width: 420px) {
  .footer { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ─────────────────────────────────────────────────────────────────
   Selection + focus
   ───────────────────────────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─────────────────────────────────────────────────────────────────
   Facts strip — small pro stats inline (used on overview + about)
   ───────────────────────────────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.facts .fact { display: flex; flex-direction: column; gap: 4px; }
.facts .num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.facts .num em { font-style: italic; color: var(--accent); font-weight: 500; }
.facts .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 540px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 14px; }
  .facts .num { font-size: 22px; }
}

/* ─────────────────────────────────────────────────────────────────
   Team row (used on about + work)
   ───────────────────────────────────────────────────────────────── */
.team-row {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfaf7, #ffffff);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.team-row .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.team-row strong { color: var(--ink); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────
   Stack list — used on skills.html
   Layout: mono label on the left, prose-flow chips on the right
   ───────────────────────────────────────────────────────────────── */
.stack-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 8px;
  border-top: 1px dashed var(--line);
}
.stack-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.stack-row .stack-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.stack-row .stack-body { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.stack-row .stack-body .lead {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.stack-row .stack-body .lead em { font-style: italic; color: var(--accent); font-weight: 500; }
.stack-row .stack-body .tags {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 2px;
}
.stack-row .stack-body .tags span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  background: #f7f3eb;
  border: 1px solid var(--line-2);
  padding: 3px 9px;
  border-radius: 99px;
  transition: border-color 220ms, color 220ms, background 220ms;
}
.stack-row .stack-body .tags span:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
  background: #fff6f3;
}
.stack-row .stack-body .note {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.stack-row .stack-body .note em { font-style: italic; color: var(--ink-2); }
@media (max-width: 600px) {
  .stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
  .stack-row .stack-label { padding-top: 0; }
}

/* ─────────────────────────────────────────────────────────────────
   Pull-quote (single-line emphasis, used on about)
   ───────────────────────────────────────────────────────────────── */
.pull {
  margin: 26px 0 6px;
  padding: 18px 22px 18px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  background: linear-gradient(90deg, #fff6f3, transparent 80%);
  border-radius: 0 12px 12px 0;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────────
   Reduced motion
   ───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .aurora,
  .avatar-ring,
  .avatar,
  .avatar img,
  .avatar svg,
  .card,
  .card section { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
