/* ===================================================
   Aliza Hayat — Portfolio
   "Notebook" design system: paper, ink, red pen, gold
   star, chalkboard — the materials of a real classroom.
   =================================================== */

:root {
  /* ---- source palette ---- */
  --paper: #fbf0ee;
  --paper-deep: #f6e0dc;
  --paper-card: #fffaf9;
  --ink: #232a44;
  --ink-soft: #5b5a72;
  --pen-red: #b0473a;
  --pen-red-deep: #8f3529;
  --gold-star: #c9971f;
  --gold-star-deep: #7a5a12;
  --gold-star-soft: #f3e7c7;
  --red-soft: #f3dcd6;
  --chalkboard: #233b33;
  --chalkboard-soft: #2f4c42;
  --white: #ffffff;

  /* ---- legacy aliases (referenced by inline gradients in the HTML) ---- */
  --plum-900: var(--ink);
  --plum-700: #3e3d52;
  --plum-500: var(--ink-soft);
  --purple-600: var(--pen-red-deep);
  --purple-500: var(--chalkboard-soft);
  --purple-100: var(--gold-star-soft);
  --coral-500: var(--pen-red);
  --coral-600: var(--pen-red-deep);
  --coral-100: var(--red-soft);
  --gold-400: var(--gold-star);
  --gold-100: var(--gold-star-soft);
  --cream-50: var(--paper);

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", -apple-system, sans-serif;
  --font-script: "Caveat", "Segoe UI", cursive;

  /* Theme-aware tokens (light defaults) */
  --bg-page: var(--paper);
  --bg-surface: var(--paper-card);
  --bg-surface-alt: var(--paper-deep);
  --nav-bg: rgba(251, 240, 238, 0.92);
  --text-heading: var(--ink);
  --text-body: #3e3d52;
  --text-muted: var(--ink-soft);
  --shadow: 0 1px 2px rgba(35, 42, 68, 0.08), 0 4px 12px rgba(35, 42, 68, 0.06);
  --shadow-lg: 0 8px 22px rgba(35, 42, 68, 0.14);
  --border-soft: rgba(35, 42, 68, 0.14);
  --border-dashed: rgba(35, 42, 68, 0.24);
  --dot-bg: rgba(35, 42, 68, 0.22);
  --rule: var(--pen-red);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #1a1e2e;
    --bg-surface: #242a3d;
    --bg-surface-alt: #2c3349;
    --nav-bg: rgba(26, 30, 46, 0.88);
    --text-heading: #f3eedd;
    --text-body: #dad6e6;
    --text-muted: #a7a2bc;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.45);
    --border-soft: rgba(255, 255, 255, 0.14);
    --border-dashed: rgba(255, 255, 255, 0.22);
    --dot-bg: rgba(255, 255, 255, 0.28);
    --rule: #e0917a;
  }
}

:root[data-theme="dark"] {
  --bg-page: #1a1e2e;
  --bg-surface: #242a3d;
  --bg-surface-alt: #2c3349;
  --nav-bg: rgba(26, 30, 46, 0.88);
  --text-heading: #f3eedd;
  --text-body: #dad6e6;
  --text-muted: #a7a2bc;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.45);
  --border-soft: rgba(255, 255, 255, 0.14);
  --border-dashed: rgba(255, 255, 255, 0.22);
  --dot-bg: rgba(255, 255, 255, 0.28);
  --rule: #e0917a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Margin rule: the notebook spine ---------- */
@media (min-width: 900px) {
  main .container {
    position: relative;
    padding-left: 54px;
  }
  main .container::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 24px;
    width: 2px;
    border-radius: 2px;
    background: var(--rule);
    opacity: 0.45;
    transform-origin: top;
  }
  .hero .container::before {
    opacity: 0.6;
    animation: rule-draw 0.9s ease-out 0.2s both;
  }
}

@keyframes rule-draw {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .container::before { animation: none; }
}

/* ---------- Eyebrow: a margin annotation, not a pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--pen-red-deep);
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--pen-red);
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pen-red);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(176, 71, 58, 0.3);
}
.btn-primary:hover { background: var(--pen-red-deep); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--pen-red-deep);
  border-color: var(--border-soft);
}
.btn-secondary:hover { border-color: var(--pen-red); }

.btn-ghost {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border-soft);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 18px 40px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .star { color: var(--gold-star); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-body);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: var(--bg-surface-alt); color: var(--pen-red-deep); }
.nav-links a.active { background: var(--ink); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-heading);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-tag {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--pen-red);
  margin-top: 22px;
  transform: rotate(-2deg);
}

/* ---------- Sections ---------- */
section { padding: 56px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); }

.alt-bg { background: var(--bg-surface-alt); }

/* ---------- Stats / chalkboard tiles ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .icon {
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  color: var(--pen-red);
}
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.stat-card span { font-size: 0.85rem; color: var(--text-muted); }

.stat-card.vivid {
  color: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px 12px 9px 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.stat-card.vivid .icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  padding: 7px;
  width: 42px; height: 42px;
  box-sizing: border-box;
}
.stat-card.vivid strong { color: var(--white); }
.stat-card.vivid span { color: rgba(255, 255, 255, 0.85); }

/* ---------- Card grid (generic) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:nth-child(odd) { transform: rotate(-0.4deg); }
.card:nth-child(even) { transform: rotate(0.4deg); }
.card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--shadow-lg); }

.card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--bg-surface-alt);
  color: var(--pen-red-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon-badge svg { width: 24px; height: 24px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pen-red-deep);
  margin-top: auto;
  padding-top: 14px;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Tag chip ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  background: var(--gold-star-soft);
  color: var(--gold-star-deep);
  margin-bottom: 12px;
}

/* ---------- Story / Article list (paper cards) ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card, .article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.story-card:nth-child(3n+1), .article-card:nth-child(2n+1) { transform: rotate(-0.5deg); }
.story-card:nth-child(3n+2), .article-card:nth-child(2n) { transform: rotate(0.5deg); }
.story-card:nth-child(3n) { transform: rotate(-0.3deg); }
.story-card:hover, .article-card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--shadow-lg); }

.story-card h3, .article-card h3 { margin-bottom: 10px; }
.story-card p.excerpt, .article-card p.excerpt { color: var(--text-muted); flex-grow: 1; }

/* ---------- Long-form story / article detail page ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--pen-red-deep);
  margin-bottom: 20px;
}
.back-link svg { width: 16px; height: 16px; }
.detail-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.prose { max-width: 720px; }
.prose h2 {
  margin-top: 1.8em;
  font-size: 1.25rem;
  color: var(--pen-red-deep);
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-body); line-height: 1.8; margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; color: var(--text-body); line-height: 1.7; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text-heading); }
.prose .moral {
  background: var(--bg-surface-alt);
  border-left: 3px solid var(--pen-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-top: 2em;
  font-style: italic;
  color: var(--text-heading);
}
.prose .subhead { color: var(--text-muted); font-style: italic; margin-bottom: 1.6em; }

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) { .more-grid { grid-template-columns: 1fr; } }

/* ---------- Badges (certifications / skills) — flat stickers ---------- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.badge-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: none;
  transition: transform 0.15s ease;
}
.badge-card:hover { transform: rotate(-1deg); }
.badge-card .icon-badge {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--pen-red-deep);
  display: flex; align-items: center; justify-content: center;
}
.badge-card .icon-badge svg { width: 22px; height: 22px; }
.badge-card h4 { margin: 0 0 4px; font-size: 1rem; color: var(--text-heading); }
.badge-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Certificate gallery (paper) ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cert-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-card:hover,
.cert-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.cert-card .card-link svg { transition: transform 0.15s ease; }
.cert-card:hover .card-link svg,
.cert-card:focus-visible .card-link svg {
  transform: translateX(3px);
}
.cert-thumb {
  width: 100%;
  background: var(--bg-surface-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-out;
}
.cert-card:hover .cert-thumb img,
.cert-card:focus-visible .cert-thumb img {
  transform: scale(1.08);
}
.cert-thumb.screenshot {
  height: 300px;
}
.cert-thumb.screenshot img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.cert-info { padding: 16px 18px 20px; }
.cert-info h4 { margin: 0 0 4px; font-size: 1rem; color: var(--text-heading); }
.cert-info p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ---------- Certificate carousel (one certificate at a time) ---------- */
.cert-carousel {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}
.cert-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.cert-carousel-track {
  display: flex;
  will-change: transform;
}
.cert-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.cert-carousel-track .cert-card {
  width: 100%;
}

.cert-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--text-heading);
  transition: background 0.15s ease, color 0.15s ease;
}
.cert-nav:hover { background: var(--bg-surface-alt); color: var(--pen-red-deep); }
.cert-nav svg { width: 18px; height: 18px; }
.cert-nav.prev { left: -14px; }
.cert-nav.next { right: -14px; }

.cert-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.cert-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-bg);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cert-dot.active { background: var(--pen-red); transform: scale(1.2); }

.cert-carousel.teaser { max-width: 380px; }

@media (max-width: 560px) {
  .cert-nav.prev { left: 0; }
  .cert-nav.next { right: 0; }
}

/* ---------- Bookshelf ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
.book-card {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.book-cover {
  aspect-ratio: 2 / 3;
  background: var(--bg-surface-alt);
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-out;
}
.book-card:hover .book-cover img,
.book-card:focus-visible .book-cover img {
  transform: scale(1.08);
}
.book-cover.illustrated {
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover.illustrated svg { width: 38%; height: 38%; transition: transform 0.3s ease-out; }
.book-card:hover .book-cover.illustrated svg,
.book-card:focus-visible .book-cover.illustrated svg {
  transform: scale(1.08);
}
.book-info { padding: 12px 14px 14px; }
.book-info h4 { margin: 0 0 2px; font-size: 0.92rem; color: var(--text-heading); line-height: 1.3; }
.book-info p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.book-info .reading-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--pen-red-deep);
  letter-spacing: 0.02em;
}

/* ---------- Tool thumbnail grid (stickers) ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-surface);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.15s ease;
}
.tool-card:hover { transform: rotate(-1.5deg); }
.tool-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-thumb svg { width: 52%; height: 52%; }
.tool-info { padding: 12px 14px 14px; text-align: center; }
.tool-info h4 { margin: 0 0 2px; font-size: 0.92rem; color: var(--text-heading); }
.tool-info p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Skill grid (stickers) ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.skill-card {
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: none;
  text-align: center;
  transition: transform 0.15s ease;
}
.skill-card:hover { transform: rotate(-1deg); }
.skill-card .icon-badge {
  margin: 0 auto 16px;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--pen-red-deep);
}
.skill-card .icon-badge svg { width: 28px; height: 28px; }
.skill-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- About hero split ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.about-portrait {
  background: linear-gradient(155deg, var(--gold-star-soft), var(--bg-surface-alt));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

/* ---------- Volunteer: status badges & placeholder slots ---------- */
.status-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.status-badge.live { background: var(--red-soft); color: var(--pen-red-deep); }
.status-badge.soon { background: var(--gold-star-soft); color: var(--gold-star-deep); }

.placeholder-card {
  border: 2px dashed var(--border-dashed);
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  min-height: 200px;
}
.placeholder-card .icon-badge {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 14px;
}
.placeholder-card .icon-badge svg { width: 24px; height: 24px; }
.placeholder-card h4 { color: var(--text-body); margin-bottom: 4px; }
.placeholder-card p { margin: 0; font-size: 0.88rem; }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .journey-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .journey-grid { grid-template-columns: 1fr; } }

/* ---------- Callout ---------- */
.callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(120deg, var(--ink), var(--chalkboard));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
}
.callout .icon-badge {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-star);
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.callout .icon-badge svg { width: 28px; height: 28px; }
.callout h4 { color: var(--white); margin-bottom: 2px; }
.callout p { color: rgba(255, 255, 255, 0.8); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-top h3 { color: var(--white); margin-bottom: 6px; }
.footer-top p { margin: 0; color: rgba(255, 255, 255, 0.65); }

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gold-star); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .story-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 2px;
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid, .story-grid, .skill-grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; text-align: center; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .card, .story-card, .article-card { transform: none !important; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal (neutralized: the hero rule-draw is the one signature moment) ---------- */
.reveal, .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Dark mode: animated space background ---------- */
#space-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background: #03060d; }
  :root:not([data-theme="light"]) #space-bg { opacity: 1; }
  :root:not([data-theme="light"]) .alt-bg { background: rgba(20, 28, 48, 0.45); }
  :root:not([data-theme="light"]) .site-footer { background: rgba(8, 12, 26, 0.75); }
}
:root[data-theme="dark"] body { background: #03060d; }
:root[data-theme="dark"] #space-bg { opacity: 1; }
:root[data-theme="dark"] .alt-bg { background: rgba(20, 28, 48, 0.45); }
:root[data-theme="dark"] .site-footer { background: rgba(8, 12, 26, 0.75); }
