/* =========================================================
   JESSE SCHWARTZ · PORTFOLIO
   Theme: painterly (Wild Robot) + comic halftones (Spider-Verse)
          + storybook ink (Puss in Boots: The Last Wish)
   ========================================================= */

:root {
  /* Paper + ink */
  --paper:       #f2e6ca;
  --paper-warm:  #ecd9ab;
  --paper-dark:  #d8c290;
  --ink:         #1c1410;
  --ink-soft:    #3a2b20;

  /* Wild Robot forest palette */
  --forest:      #2d4a3a;
  --forest-deep: #1e362a;
  --moss:        #6b8b5c;

  /* Sunset / amber */
  --amber:       #d9893d;
  --ember:       #e8a04c;
  --gold:        #f3c36a;

  /* Spider-Verse pops */
  --magenta:     #e63462;
  --magenta-hot: #ff2e6a;
  --cyan:        #14c5c7;
  --cyan-bright: #34e0e2;

  /* Last Wish reds */
  --red:         #c23737;
  --red-deep:    #8a1f1f;

  /* Type */
  --serif:  "Fraunces", "Cormorant Garamond", Georgia, serif;
  --brush:  "Caveat Brush", "Bagel Fat One", cursive;
  --body:   "Lora", "Iowan Old Style", Georgia, serif;

  /* Layout */
  --max:    1100px;
  --radius: 14px;

  /* Backdrop glow colors — overridden per theme */
  --glow-1: rgba(232,160,76,0.35);
  --glow-2: rgba(20,197,199,0.18);
  --glow-3: rgba(45,74,58,0.28);

  /* Section title highlight bar */
  --highlight: var(--gold);

  /* Primary accent — used for squiggle, buttons, underlines */
  --accent: var(--magenta);
}

/* ---------- RESET-ISH ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  background: rgba(28,20,16,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* =========================================================
   BACKDROP — blobs, halftones, grain
   ========================================================= */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 900px at 10% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 800px at 110% 20%, var(--glow-2), transparent 55%),
    radial-gradient(1000px 900px at 50% 110%, var(--glow-3), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 60%, var(--paper-dark) 100%);
}
.blob {
  position: absolute;
  width: 55vw; height: 55vw;
  max-width: 900px; max-height: 900px;
  opacity: 0.35;
  filter: blur(40px);
  animation: float 22s ease-in-out infinite;
}
.blob path { fill: var(--forest); }
.blob--1 { top: -10%; left: -15%; animation-delay: 0s; }
.blob--2 { top: 40%; right: -20%; animation-delay: -7s; }
.blob--2 path { fill: var(--amber); }
.blob--3 { bottom: -20%; left: 30%; animation-delay: -14s; opacity: 0.25; }
.blob--3 path { fill: var(--magenta); }

@keyframes float {
  0%,100% { transform: translate(0,0) rotate(0deg) scale(1); }
  33%    { transform: translate(3%,-2%) rotate(6deg) scale(1.05); }
  66%    { transform: translate(-2%,3%) rotate(-4deg) scale(0.96); }
}

/* Halftone dots — Spider-Verse */
.halftone {
  position: absolute;
  width: 60vmin; height: 60vmin;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: radial-gradient(currentColor 1.6px, transparent 2px);
  background-size: 14px 14px;
  mask-image: radial-gradient(closest-side, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side, black 40%, transparent 80%);
}
.halftone--magenta { color: var(--magenta); top: -10vmin; right: -10vmin; }
.halftone--cyan    { color: var(--cyan);    bottom: -5vmin; left: -10vmin; opacity: 0.18; }

/* Paper grain via SVG noise */
.grain {
  position: absolute; inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(242,230,202,0.82);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 2px 0 rgba(28,20,16,0.08);
}
.nav__mark {
  font-family: var(--brush);
  font-size: 32px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  transform: rotate(-4deg);
  display: inline-block;
  transition: transform 0.2s steps(3);
}
.nav__mark:hover { transform: rotate(4deg) scale(1.08); color: var(--magenta); }
.nav__links {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.nav__links a {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nav__links a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 40px;
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-deep);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
  border: 2px solid var(--ink);
}
.dot--magenta { background: var(--magenta); }
.dot--cyan    { background: var(--cyan); }

/* The name — Fraunces variable with SOFT + WONK for painterly warmth,
   plus a chromatic-aberration shadow for Spider-Verse pop. */
.hero__name {
  position: relative;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1, "wght" 900;
  font-weight: 900;
  font-size: clamp(52px, 11vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
  text-shadow:
    3px 0 0 rgba(230,52,98,0.55),
   -3px 0 0 rgba(20,197,199,0.55);
  animation: jitter 4s steps(2) infinite;
}
@keyframes jitter {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(0.6px, -0.4px); }
}
.hero__name::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: none;
  transform: translate(6px, 6px);
  z-index: -1;
  opacity: 0.35;
}

.hero__tag {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 450;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  max-width: 580px;
  margin: 0 0 8px;
  color: var(--ink-soft);
}
.hero__tag em {
  font-style: italic;
  color: var(--red-deep);
  font-variation-settings: "opsz" 24, "SOFT" 100, "wght" 600;
}

.hero__squiggle {
  width: min(280px, 60%);
  height: 14px;
  margin: 4px 0 18px;
  stroke: var(--accent);
  animation: draw 2s ease-out 0.4s both;
}
.hero__squiggle path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 1.8s ease-out 0.4s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.18s steps(3), box-shadow 0.18s steps(3), background 0.15s;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn--primary {
  background: var(--accent);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  filter: brightness(1.12);
}
.btn--ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--gold);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.hero__links {
  display: flex; gap: 14px; align-items: center;
}
.hero__links a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.18s steps(3), background 0.15s, color 0.15s;
}
.hero__links a:hover {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--cyan);
  color: var(--ink);
}
.hero__links svg { fill: currentColor; }

.ink-splat {
  position: absolute;
  width: 260px; height: 260px;
  fill: var(--ink);
  opacity: 0.08;
  z-index: 0;
}
.ink-splat--hero { top: 40px; right: -40px; transform: rotate(25deg); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px;
}
.section__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  margin: 0 0 18px;
  display: inline-block;
  position: relative;
}
.section__title span {
  position: relative;
  z-index: 1;
  padding: 0 4px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: -6px; right: -6px;
  bottom: 6px;
  height: 14px;
  background: var(--highlight);
  z-index: 0;
  border-radius: 4px;
  transform: rotate(-1deg);
}
.section__hint {
  margin: -18px 0 20px;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 15px;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.card--about { transform: rotate(-0.3deg); }
.card--research { transform: rotate(0.25deg); }

.about__layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
}
.about__photo-wrap {
  position: relative;
}
.about__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  display: block;
  background: var(--paper-warm);
}
.about__photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background-image: radial-gradient(rgba(28,20,16,0.2) 1.2px, transparent 1.6px);
  background-size: 8px 8px;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.about__text > p { margin: 0 0 10px; }
.about__text > p:last-of-type { margin-bottom: 0; }
@media (max-width: 640px) {
  .about__layout { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 1 / 1; max-width: 180px; }
}
.card .big {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 100, "wght" 500;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.5;
}

/* Tags */
.tag-list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.tag--green   { background: var(--moss);    color: var(--paper); }
.tag--amber   { background: var(--ember);   color: var(--paper); }
.tag--magenta { background: var(--magenta); color: var(--paper); }
.tag--cyan    { background: var(--cyan);    color: var(--paper); }
.tag--red     { background: var(--red);     color: var(--paper); }

/* =========================================================
   NEWS TIMELINE
   ========================================================= */
.timeline {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 15px; top: 10px; bottom: 10px;
  width: 3px;
  background: repeating-linear-gradient(to bottom,
    var(--ink) 0, var(--ink) 8px,
    transparent 8px, transparent 14px);
}
.news-item {
  position: relative;
  padding: 0 0 16px 48px;
  animation: fade-up 0.6s steps(6) both;
}
.news-item::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--dot-color, var(--amber));
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.news-item[data-pin="true"]::before {
  background: var(--red);
  box-shadow: 2px 2px 0 var(--ink), 0 0 0 4px rgba(194,55,55,0.18);
}
.news-item__date {
  display: inline-block;
  font-family: var(--brush);
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 2px;
  transform: rotate(-1deg);
  background: var(--gold);
  padding: 1px 10px;
  border-radius: 4px;
  border: 2px solid var(--ink);
}
.news-item__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 60, "wght" 700;
  font-size: 18px;
  margin: 4px 0 2px;
  line-height: 1.25;
}
.news-item__body {
  margin: 0;
  color: var(--ink-soft);
}
.news-item__pin {
  font-family: var(--brush);
  color: var(--red);
  margin-right: 6px;
}
.timeline__loading {
  padding: 0 0 26px 56px;
  color: var(--ink-soft);
  font-style: italic;
}
.timeline {
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline--collapsed {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.news-item--trigger {
  cursor: pointer;
}
.news-expander {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.news-expander::before,
.news-expander::after {
  content: "";
  flex: 1;
  border-top: 2px dashed rgba(28,20,16,0.25);
}
.news-expander:hover { opacity: 1; }
.news-expander__arrow {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1;
  user-select: none;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PUBLICATIONS
   ========================================================= */
.pubs { margin-top: 18px; }
.pubs__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 50, "wght" 700;
  font-size: 22px;
  margin: 10px 0 12px;
}
.pubs__empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--paper-warm);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-style: italic;
}
.pubs__empty svg { stroke: var(--ink-soft); flex-shrink: 0; }
.pubs__empty p { margin: 0; }

.pub {
  padding: 16px 0;
  border-bottom: 1.5px dashed rgba(28,20,16,0.3);
}
.pub:last-child { border-bottom: none; }
.pub__venue {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.pub__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 60, "wght" 700;
  font-size: 20px;
  margin: 4px 0;
}
.pub__authors { margin: 0 0 6px; color: var(--ink-soft); }
.pub__links { display: flex; gap: 14px; }

/* =========================================================
   PROJECTS
   ========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.project {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s steps(4), box-shadow 0.25s steps(4);
}
.project:hover {
  transform: rotate(calc(var(--tilt, 0deg) * -0.5)) translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.project__thumb {
  aspect-ratio: 16/10;
  position: relative;
  display: grid; place-items: center;
  border-bottom: 2.5px solid var(--ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.project__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project__thumb--forest {
  background:
    radial-gradient(circle at 30% 30%, var(--moss), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--amber), transparent 60%),
    var(--forest);
}
.project__thumb--sunset {
  background:
    radial-gradient(circle at 20% 80%, var(--magenta), transparent 55%),
    radial-gradient(circle at 80% 20%, var(--gold), transparent 60%),
    var(--ember);
}
.project__thumb--dusk {
  background:
    radial-gradient(circle at 50% 40%, var(--cyan), transparent 55%),
    radial-gradient(circle at 80% 90%, var(--red-deep), transparent 60%),
    var(--forest-deep);
}
.project__thumb::after {
  /* halftone overlay on thumbnail */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28,20,16,0.35) 1.2px, transparent 1.6px);
  background-size: 10px 10px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.project__badge {
  position: relative;
  z-index: 1;
  font-family: var(--brush);
  font-size: 22px;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 14px;
  border-radius: 999px;
  transform: rotate(-4deg);
}
.project h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 60, "wght" 700;
  font-size: 22px;
  margin: 18px 20px 6px;
}
.project p {
  margin: 0 20px 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.project__tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 20px 18px;
}
.project__tags span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-warm);
}

/* =========================================================
   TEACHING
   ========================================================= */
.teach {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}
.teach__term {
  font-family: var(--brush);
  font-size: 20px;
  color: var(--red-deep);
  margin: 0 0 4px;
  transform: rotate(-1deg);
  display: inline-block;
}
.teach__role {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.teach__body h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 60, "wght" 700;
  font-size: 24px;
  margin: 0 0 8px;
}
.teach__body p { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) {
  .teach { grid-template-columns: 1fr; gap: 8px; }
}

/* =========================================================
   BEYOND
   ========================================================= */
.beyond {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.beyond__card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s steps(4);
}
.beyond__card:hover { transform: rotate(calc(var(--tilt, 0deg) * -0.5)) translateY(-3px); }
.beyond__card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 60, "wght" 700;
  font-size: 20px;
  margin: 8px 0 8px;
}
.beyond__card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.beyond__emoji {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 4px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 40px;
  padding: 48px 28px 28px;
  background: var(--forest-deep);
  color: var(--paper);
  position: relative;
  border-top: 3px solid var(--ink);
  overflow: hidden;
}
.footer::before {
  /* halftone overlay in footer */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(242,230,202,0.14) 1.6px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1, "wght" 900;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.9;
  margin: 0 0 6px;
  color: var(--gold);
  text-shadow:
    3px 0 0 rgba(230,52,98,0.7),
   -3px 0 0 rgba(20,197,199,0.7);
}
.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
  opacity: 0.85;
  margin: 0 0 18px;
}
.footer__email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 24px;
  transition: color 0.15s, border-color 0.15s;
}
.footer__email:hover { color: var(--cyan-bright); border-color: var(--cyan-bright); }
.footer__links {
  display: flex; justify-content: center; gap: 14px;
  margin: 18px 0;
  font-family: var(--serif);
  font-weight: 600;
}
.footer__links a { color: var(--paper); text-decoration: none; border-bottom: 2px solid rgba(242,230,202,0.35); }
.footer__links a:hover { color: var(--gold); border-color: var(--gold); }
.footer__links span { opacity: 0.4; }
.footer__fine {
  margin: 30px 0 0;
  font-size: 13px;
  opacity: 0.55;
}

/* =========================================================
   THEMES — applied via data-theme on <html>
   ========================================================= */

/* Spider-Verse: urban, graphic, neon pops on near-newsprint */
[data-theme="spiderverse"] {
  --paper:       #ece5dc;
  --paper-warm:  #e0d6c8;
  --paper-dark:  #ccc0ae;
  --forest:      #1a1e3a;
  --forest-deep: #0e1228;
  --moss:        #3a5ab0;
  --amber:       #f0a020;
  --ember:       #f8b830;
  --gold:        #f0e020;
  --magenta:     #ff1a5e;
  --magenta-hot: #ff0050;
  --cyan:        #00d4e8;
  --cyan-bright: #20ecf8;
  --glow-1: rgba(255,26,94,0.28);
  --glow-2: rgba(0,212,232,0.22);
  --glow-3: rgba(26,30,58,0.30);
  --highlight: var(--cyan);
  --accent: var(--magenta);
}

/* Wild Robot: warm painterly forest, amber-gold, soft earthy tones */
[data-theme="wildrobot"] {
  --paper:       #f6eac6;
  --paper-warm:  #eedc9c;
  --paper-dark:  #deca7e;
  --forest:      #264038;
  --forest-deep: #162a22;
  --moss:        #5c7a4a;
  --amber:       #d48030;
  --ember:       #e89838;
  --gold:        #f0b438;
  --magenta:     #c84468;
  --magenta-hot: #e05a7c;
  --cyan:        #019c3a;
  --cyan-bright: #30d07d;
  --glow-1: rgba(212,128,48,0.42);
  --glow-2: rgba(24,184,176,0.18);
  --glow-3: rgba(38,64,56,0.35);
  --highlight: #7aaa50;
  --accent: #7aaa50;
}

/* Last Wish: jasmine parchment, raspberry + bright-peony magic, midnight-blue night, coffee-bean depth */
[data-theme="lastwish"] {
  --paper:       #fef4c8;
  --paper-warm:  #fede8a;
  --paper-dark:  #5088e8;
  --forest:      #2f2562;
  --forest-deep: #3a1246;
  --moss:        #9fc82c;
  --amber:       #ec6f44;
  --ember:       #f08858;
  --gold:        #fede8a;
  --red:         #dc1e44;
  --red-deep:    #b93136;
  --magenta:     #ff7dfc;
  --magenta-hot: #ff90fd;
  --cyan:        #743ebb;
  --cyan-bright: #d5a8d4;
  --glow-1: rgb(255, 125, 253);
  --glow-2: rgba(97, 144, 254, 0.682);
  --glow-3: rgb(255, 200, 61);
  --highlight: var(--gold);
  --accent: var(--cyan);
}

/* =========================================================
   THEME SWITCHER
   ========================================================= */
.theme-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  flex-wrap: wrap;
}
.theme-switcher__label {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.45;
  margin-right: 4px;
}
.theme-btn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border: 2px solid rgba(242,230,202,0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.theme-btn:hover { opacity: 0.85; border-color: rgba(242,230,202,0.6); }
.theme-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  opacity: 1;
  box-shadow: 2px 2px 0 rgba(28,20,16,0.35);
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 720px) {
  .nav { padding: 10px 16px; }
  .nav__links { gap: 2px; }
  .nav__links a { padding: 5px 9px; font-size: 13px; }
  .hero { padding: 36px 16px 28px; }
  .section { padding: 28px 16px; }
  .card { padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); }
  .hero__name::before { transform: translate(4px, 4px); }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
