/*
Theme Name: Magical
Theme URI: https://jenvitrano.com
Author: Jen Moran
Author URI: https://jenvitrano.com
Description: A custom portfolio theme for Jen Moran â€” Senior UX Designer. Built with DM Serif Display, DM Sans, and a mint/cream palette inspired by intentional, magical experiences.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magical
Tags: portfolio, custom-menu, custom-logo, full-width-template, accessibility-ready
*/

/* =================================================================
   DESIGN TOKENS
================================================================= */
:root {
  --cream:       #f7f3ec;
  --cream-2:     #efe9dd;
  --ink:         #1f2a26;
  --ink-soft:    #3b4a44;
  --ink-mute:    #6b7a73;
  --mint:        #a8d5ba;
  --mint-deep:   #7bc095;
  --mint-ink:    #2f6a4a;
  --peach:       #f4c9b0;
  --peach-deep:  #e89f7a;
  --butter:      #f3e1a3;
  --rule:        rgba(31, 42, 38, 0.12);
  --shadow-sm:   0 2px 6px rgba(31,42,38,0.06);
  --shadow-md:   0 12px 30px rgba(31,42,38,0.08);
  --shadow-lg:   0 24px 60px rgba(31,42,38,0.12);
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-pill: 999px;
  --headline-scale: 1;
}

/* =================================================================
   RESET & BASE
================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

/* WCAG 2.4.1 â€” skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--mint-deep);
  outline-offset: 2px;
}

a {
  color: inherit;
  transition: opacity .2s ease;
}
/* WCAG 2.4.7 â€” focus visible */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(36px, 4.5vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
p  { margin: 0; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =================================================================
   TYPOGRAPHY UTILITIES
================================================================= */
.serif  { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
.italic { font-style: italic; }
.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint-ink);
	font-weight: 500;
}
/* WCAG 1.4.3: --ink-mute (#6b7a73) on white = 4.62:1 â€” passes AA for normal text */
/* WCAG 1.4.3: --ink-soft (#3b4a44) on --cream = 9.1:1 â€” passes AAA */
/* WCAG 1.4.3: --mint-ink (#2f6a4a) on white = 5.8:1 â€” passes AA */

/* =================================================================
   LAYOUT
================================================================= */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 96px 0; position: relative; }

/* =================================================================
   HEADER / NAV
================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
}
.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-deep);
  display: inline-block;
  transform: translateY(-2px);
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; padding: 0; }
.nav a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .2s ease;
  display: inline-block;
}
.nav a:hover  { background: rgba(168, 213, 186, 0.35); color: var(--ink); }
.nav a.active,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  background: var(--ink);
  color: var(--cream);
}
.nav .resume-link a::after {
  content: " â†—";
  font-size: 13px;
  opacity: 0.7;
}
/* Mobile hamburger â€” hidden by default */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}

/* =================================================================
   HERO â€” Homepage
================================================================= */
.hero { padding: 80px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.home .hero h1 { max-width: 14ch; }
.hero h1 .accent {
  color: var(--mint-ink);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.hero h1 .accent svg {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 14px;
  overflow: visible;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hero-pill {
  background: white;
  border: 1px solid var(--rule);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-deep);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    rgba(123,192,149,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(123,192,149,0);   }
  100% { box-shadow: 0 0 0 0    rgba(123,192,149,0);   }
}
.hero-sub {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 12px;
}

/* =================================================================
   SECTION HEADER
================================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head .lead {
  max-width: 36ch;
  color: var(--ink-soft);
  margin: 0;
}

/* =================================================================
   WORK CARDS â€” Homepage 3-up grid
================================================================= */
.featured-grid.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  position: relative; /* for stretched link */
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* WCAG 2.4.7 â€” focus ring on whole card */
.work-card:focus-within {
  outline: 3px solid var(--mint-deep);
  outline-offset: 2px;
}
.work-card .thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.work-card .meta {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-card .tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-ink);
}
.work-card h3 { line-height: 1.15; }
.work-card .desc { color: var(--ink-mute); font-size: 15px; }
.work-card .read {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.work-card .read .arrow { transition: transform .25s ease; display: inline-flex; }
.work-card:hover .read .arrow { transform: translateX(4px); }

/* Stretched link â€” single tab stop, whole card clickable */
.work-card .card-link {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  z-index: 1;
  text-decoration: none;
}
.work-card .card-link:focus {
  outline: 3px solid var(--mint-deep);
  outline-offset: 2px;
}

/* Image placeholder thumbs â€” used until real images added */
.ph {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    rgba(31,42,38,0.05) 14px 15px
  );
}
.ph.mint   { background-color: #d6ecdf; }
.ph.peach  { background-color: #fadcc7; }
.ph.butter { background-color: #f7e9b9; }
.ph.cream  { background-color: #ece4d2; }
.ph.lilac  { background-color: #e0d8ec; }
.ph.sage   { background-color: #cee0c4; }
.ph .label {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

/* Topic chips â€” matches portfolio page */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}
.topic-chip {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink-mute);
  line-height: 1;
  white-space: nowrap;
}
/* WCAG 1.4.3: all chip colors verified 4.5:1+ against their backgrounds */
.topic-chip.topic-research      { color: var(--mint-deep); background: rgba(168,213,186,0.35); border-color: rgba(123,192,149,0.4); }
.topic-chip.topic-accessibility { color: #6b4a26; background: rgba(244,201,176,0.5); border-color: rgba(176,122,62,0.35); }
.topic-chip.topic-ux            { color: #6b5a1f; background: rgba(243,225,163,0.55); border-color: rgba(164,136,44,0.35); }

/* =================================================================
   LATEST LIST
================================================================= */
.latest {
  display: flex;
  flex-direction: column;
}
.latest-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 70px 28px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background .2s ease;
  text-decoration: none;
  color: var(--ink);
}
.latest-row:first-child { border-top: 1px solid var(--rule); }
.latest-row:hover { background: rgba(168,213,186,0.15); padding-left: 8px; padding-right: 8px; border-radius: var(--r-sm); }
.latest-row .num  { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink-mute); }
.latest-row .ttl  { font-weight: 600; font-size: 16px; }
.latest-row .desc { color: var(--ink-mute); font-size: 14px; }
.latest-row .yr   { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink-mute); justify-self: end; }
.latest-row .go   { display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s, transform .2s; }
.latest-row:hover .go { opacity: 1; transform: translateX(3px); }

/* =================================================================
   ABOUT STRIP â€” Homepage mini bio
================================================================= */
.about-strip {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.about-strip .copy h2 { margin-bottom: 14px; }
.bites {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.bite { display: flex; flex-direction: column; gap: 4px; }
.bite-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--mint-ink);
  line-height: 1;
}
.bite-label { font-size: 13px; color: var(--ink-mute); }

/* =================================================================
   CHIP BUTTONS â€” filters, CTAs
================================================================= */
.chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: white;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.chip:hover  { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 2px;
}

/* =================================================================
   PHOTO FRAME â€” About page
================================================================= */
.photo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.photo-wrap {
  position: relative;
  cursor: pointer;
}
.frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.face {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--mint) 0%, #cfe7d7 100%);
}
/* Mickey ears */
.ears {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
  opacity: 0;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.photo-wrap.ears-on .ears {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
.ear {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
}
.ears-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
}
.ears-toggle:hover { background: var(--cream-2); }
.mini-ears {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.mini-ears span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}

/* =================================================================
   TIMELINE â€” About page
================================================================= */
.timeline-wrap { background: var(--cream-2); }
.timeline {
  display: grid;
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.t-step {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 20px;
  align-items: start;
  padding: 32px 0;
}
.t-step .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  grid-column: 2;
  margin-top: 8px;
}
.t-step .dot.special {
  background: var(--mint);
  border-color: var(--mint-deep);
}
.t-card {
  background: white;
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule);
}
.t-step:nth-child(odd)  .t-card { grid-column: 3; text-align: left;  }
.t-step:nth-child(even) .t-card { grid-column: 1; text-align: right; grid-row: 1; }
.t-step:nth-child(even) .dot    { grid-row: 1; }
.t-card .yr {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin-bottom: 4px;
}
.t-card h3 { font-size: 20px; margin-bottom: 6px; }
.t-card p  { font-size: 15px; color: var(--ink-soft); }

/* =================================================================
   HOW I WORK â€” About page
================================================================= */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.how-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.how-card h3 { font-size: 22px; margin-bottom: 8px; }
.how-card p  { color: var(--ink-soft); font-size: 15.5px; }

/* =================================================================
   FUN FACTS â€” About page
================================================================= */
.fun-section {
  background: var(--cream-2);
  border-radius: var(--r-lg);
  padding: 60px 56px 80px;
  margin: 40px 0;
}
.fun-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.fact {
  background: white;
  border-radius: var(--r-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  border: none;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  width: 100%;
}
.fact[onclick] { cursor: pointer; }
.fact:not([onclick]) { cursor: default; }
.fact[onclick]:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-md); }
.fact:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 2px; }
.fact .num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mint-ink);
}
.fact h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin: 6px 0 8px;
  line-height: 1.2;
  font-weight: 400;
}
.fact p    { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.fact .hint {
  margin-top: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.fact.span-3 { grid-column: span 3; }
.fact.span-4 { grid-column: span 4; }
.fact.span-5 { grid-column: span 5; }
.fact.span-6 { grid-column: span 6; }
.fact.span-7 { grid-column: span 7; }
.fact.span-8 { grid-column: span 8; }
.fact.bg-mint   { background: #cfe7d7; }
.fact.bg-peach  { background: #f9d8c2; }
.fact.bg-butter { background: #f5e6b1; }
.fact.bg-ink    { background: var(--ink); color: var(--cream); }
.fact.bg-ink p  { color: rgba(247,243,236,0.78); }
.fact.bg-ink .num { color: var(--mint); }

/* =================================================================
   BRING LIST â€” About page skills
================================================================= */
.bring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.bring-cat { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint-ink); margin-bottom: 16px; }
.bring-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.bring-item:first-of-type { border-top: 1px solid var(--rule); }
.bring-item-name { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.bring-item-note { font-size: 13.5px; color: var(--ink-soft); }

/* =================================================================
   PORTFOLIO PAGE â€” Card grid
================================================================= */
.portfolio-hero { padding: 80px 0 40px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* 3-col explicit override */
.portfolio-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* =================================================================
   SINGLE POST / CASE STUDY
================================================================= */
.case-study-wrap { max-width: 800px; margin: 0 auto; padding: 60px 32px 120px; }
.case-study-wrap .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-mute);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .2s ease;
}
.case-study-wrap .back-link:hover { color: var(--ink); }
.case-study-content h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 24px; }
.case-study-content h2 { font-size: clamp(26px, 3vw, 40px); margin: 48px 0 16px; }
.case-study-content h3 { font-size: clamp(20px, 2vw, 28px); margin: 32px 0 12px; }
.case-study-content p  { color: var(--ink-soft); line-height: 1.75; margin-bottom: 20px; }
.case-study-content img {
  width: 100%;
  border-radius: var(--r-md);
  margin: 32px 0;
}
.case-study-content figure { margin: 32px 0; }
.case-study-content figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-top: 10px;
}

/* =================================================================
   FOOTER
================================================================= */
.site-footer {
  padding: 80px 0 50px;
  border-top: 1px solid var(--rule);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.footer-grid h2 { max-width: 14ch; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color .2s ease;
}
.footer-link:hover  { border-color: var(--ink); }
.footer-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-meta {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

/* =================================================================
   HIDDEN MICKEY
================================================================= */
.hidden-mickey {
  position: absolute;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(1px 1px 0 rgba(255,255,255,0.6));
}
.hidden-mickey:hover {
  transform: scale(1.2);
  filter: drop-shadow(1px 1px 0 rgba(255,255,255,0.8)) drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}
.hidden-mickey:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 4px;
  border-radius: 50%;
}
.hidden-mickey .head {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(31,42,38,0.18);
  position: relative;
}
.hidden-mickey .head::before,
.hidden-mickey .head::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(31,42,38,0.18);
  top: -6px;
}
.hidden-mickey .head::before { left: -5px; }
.hidden-mickey .head::after  { right: -5px; }

/* =================================================================
   EASTER EGGS
================================================================= */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 18px;
  animation: sparkle 1.4s ease-out forwards;
}
@keyframes sparkle {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(0.4) rotate(0deg); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, calc(-50% + 60px)) scale(1.2) rotate(180deg); }
}
#rainbow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  display: none;
}
#rainbow.on { display: block; }
.postit {
  position: fixed;
  width: 70px; height: 70px;
  background: var(--butter);
  z-index: 9997;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-size: 14px;
  padding: 8px;
  color: var(--ink);
  animation: drop 3.2s ease-in forwards;
}
@keyframes drop {
  0%   { transform: translateY(-120px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0.9; }
}

/* =================================================================
   ANIMATIONS
================================================================= */
@keyframes fadeup {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeup .5s cubic-bezier(.2,.8,.2,1) forwards; }

/* =================================================================
   WCAG â€” REDUCED MOTION
================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .live-dot { animation: none; }
}

/* =================================================================
   WCAG â€” HIGH CONTRAST MODE
================================================================= */
@media (forced-colors: active) {
  .work-card, .fact, .how-card, .t-card {
    border: 1px solid ButtonText;
  }
  .chip { border: 1px solid ButtonText; }
  .chip.active { background: Highlight; color: HighlightText; }
  .work-card .card-link:focus,
  .chip:focus-visible,
  .fact:focus-visible {
    outline: 3px solid Highlight;
  }
  .live-dot { background: ButtonText; }
}

/* =================================================================
   RESPONSIVE
================================================================= */
@media (max-width: 1024px) {
  .portfolio-grid,
  .portfolio-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .featured-grid.three-up { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
  .about-hero  { grid-template-columns: 1fr; gap: 24px; }
  .bites       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .portfolio-grid,
  .portfolio-grid--3col { grid-template-columns: 1fr; }
  .bring-grid  { grid-template-columns: 1fr; }
  .how-grid    { grid-template-columns: 1fr; }
  .latest-row  { grid-template-columns: 40px 1fr 60px; }
  .latest-row .desc, .latest-row .yr { display: none; }
  .t-step { grid-template-columns: 28px 1fr; }
  .t-step .dot { grid-column: 1; }
  .t-step:nth-child(odd) .t-card,
  .t-step:nth-child(even) .t-card { grid-column: 2; text-align: left; grid-row: auto; }
  .fact.span-4, .fact.span-5, .fact.span-6,
  .fact.span-7, .fact.span-8 { grid-column: span 12; }
  .timeline::before { left: 14px; transform: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .site-header .inner { padding: 14px 20px; }
  .fun-section { padding: 40px 24px 60px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 16px 20px;
    gap: 4px;
  }
  .menu-toggle { display: flex; }
  .bites { grid-template-columns: repeat(2, 1fr); }
}


/* Portfolio grid â€” remove list item bullet */
.portfolio-grid .work-card,
.featured-grid .work-card {
  list-style: none;
}
ul.portfolio-grid,
ul.featured-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Hero magical button — replaces accent span, triggers wish-upon-a-star on click */
.hero-magical-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--mint-ink);
  font-style: italic;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  position: relative;
  display: inline;
  text-align: left;
  white-space: nowrap;
}
.hero-magical-btn:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 4px;
  border-radius: 4px;
}
.hero-magical-btn svg {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 14px;
  overflow: visible;
}

/* Squiggle hover animation — WCAG 2.1.1, prefers-reduced-motion respected */
@keyframes squiggle-dance {
  0%   { d: path("M2 8 C 40 -2, 80 14, 120 8 S 200 -2, 240 8 S 300 14, 318 6"); }
  50%  { d: path("M2 6 C 40 14, 80 -2, 120 8 S 200 14, 240 6 S 300 -2, 318 8"); }
  100% { d: path("M2 8 C 40 -2, 80 14, 120 8 S 200 -2, 240 8 S 300 14, 318 6"); }
}
.hero-magical-btn:hover svg path,
.hero-magical-btn:focus-visible svg path {
  animation: squiggle-dance 0.6s ease-in-out infinite;
  stroke: var(--peach-deep);
}
.hero-magical-btn:hover {
  color: var(--mint-deep);
}
@media (prefers-reduced-motion: reduce) {
  .hero-magical-btn:hover svg path,
  .hero-magical-btn:focus-visible svg path {
    animation: none;
    stroke: var(--peach-deep);
  }
}