/* Cartoon space — punchy orange sky, electric purple, neon accents */
:root {
  --cream: #fff5ed;
  --cream-dark: #ffc8a8;
  --terracotta: #ff5c1a;
  --terracotta-dark: #e04000;
  --olive: #6c39ff;
  --olive-light: #9b7aff;
  --ink: #1a1228;
  --ink-muted: #4e3d66;
  --honey: #ffd23c;
  --white: #fff;
  --shadow: rgba(26, 18, 40, 0.12);
  --space-cyan: #38e8ff;
  --space-pink: #ff5c8a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1100px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100dvh;
  /* Same base as body so overscroll matches the page */
  background-color: #ffe0c8;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 12%, #fffacd, transparent),
    radial-gradient(1px 1px at 72% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 38% 92%, #b8fff5, transparent),
    radial-gradient(1px 1px at 94% 48%, #fff, transparent),
    radial-gradient(1px 1px at 6% 52%, #ffe566, transparent),
    radial-gradient(1.5px 1.5px at 52% 8%, #fff, transparent),
    radial-gradient(1px 1px at 28% 38%, #ffb8e8, transparent),
    radial-gradient(1px 1px at 48% 52%, #fff, transparent),
    radial-gradient(1200px 680px at 50% -15%, rgba(255, 200, 120, 0.85), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(255, 140, 80, 0.55), transparent 50%),
    radial-gradient(800px 520px at -10% 100%, rgba(140, 100, 255, 0.35), transparent 52%),
    radial-gradient(700px 480px at 100% 95%, rgba(255, 100, 140, 0.25), transparent 48%),
    linear-gradient(175deg, #fff8f0 0%, #ffd4b8 35%, #ffe8f5 100%);
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  overflow-x: clip;
  max-width: 100%;
  background-color: #ffe0c8;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 12%, #fffacd, transparent),
    radial-gradient(1px 1px at 72% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 38% 92%, #b8fff5, transparent),
    radial-gradient(1px 1px at 94% 48%, #fff, transparent),
    radial-gradient(1px 1px at 6% 52%, #ffe566, transparent),
    radial-gradient(1.5px 1.5px at 52% 8%, #fff, transparent),
    radial-gradient(1px 1px at 28% 38%, #ffb8e8, transparent),
    radial-gradient(1px 1px at 48% 52%, #fff, transparent),
    radial-gradient(1200px 680px at 50% -15%, rgba(255, 200, 120, 0.85), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(255, 140, 80, 0.55), transparent 50%),
    radial-gradient(800px 520px at -10% 100%, rgba(140, 100, 255, 0.35), transparent 52%),
    radial-gradient(700px 480px at 100% 95%, rgba(255, 100, 140, 0.25), transparent 48%),
    linear-gradient(175deg, #fff8f0 0%, #ffd4b8 35%, #ffe8f5 100%);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Side rails: twinkling stars + cartoon ships (all breakpoints, scaled on small screens) */
.orbit-decor {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
}

main#main {
  position: relative;
  z-index: 0;
  flex: 1 0 auto;
}

.site-footer {
  position: relative;
  z-index: 35;
  flex-shrink: 0;
}

.orbit-decor__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Only as wide as the empty margin outside centered --max content */
  width: clamp(36px, calc((100vw - var(--max)) / 2), 11rem);
}

.orbit-decor__rail--left {
  left: 0;
}

.orbit-decor__rail--right {
  right: 0;
}

.orbit-star {
  position: absolute;
  border-radius: 50%;
  animation: orbit-twinkle 2.8s ease-in-out infinite;
}

.orbit-star--sm {
  width: 3px;
  height: 3px;
}

.orbit-star--md {
  width: 6px;
  height: 6px;
}

.orbit-star--lg {
  width: 9px;
  height: 9px;
}

.orbit-star--white {
  background: #fff;
  box-shadow:
    0 0 6px 2px rgba(255, 255, 255, 1),
    0 0 16px rgba(127, 240, 255, 0.75);
}

.orbit-star--gold {
  background: #ffe135;
  box-shadow:
    0 0 8px 3px rgba(255, 225, 53, 1),
    0 0 18px rgba(255, 120, 40, 0.85);
}

.orbit-star--cyan {
  background: #5fffd9;
  box-shadow: 0 0 10px 3px rgba(95, 255, 217, 0.95);
}

.orbit-star--magenta {
  background: #ff7adb;
  box-shadow: 0 0 10px 3px rgba(255, 122, 219, 0.9);
}

.orbit-pos-l1 {
  top: 6%;
  left: 44%;
}

.orbit-pos-l2 {
  top: 20%;
  left: 28%;
}

.orbit-pos-l3 {
  top: 34%;
  left: 54%;
}

.orbit-pos-l4 {
  top: 50%;
  left: 36%;
}

.orbit-pos-l5 {
  top: 64%;
  left: 50%;
}

.orbit-pos-l6 {
  top: 80%;
  left: 32%;
}

.orbit-pos-r1 {
  top: 9%;
  left: 38%;
}

.orbit-pos-r2 {
  top: 24%;
  left: 58%;
}

.orbit-pos-r3 {
  top: 38%;
  left: 32%;
}

.orbit-pos-r4 {
  top: 52%;
  left: 52%;
}

.orbit-pos-r5 {
  top: 68%;
  left: 40%;
}

.orbit-pos-r6 {
  top: 84%;
  left: 62%;
}

.orbit-decor__rail--left .orbit-star:nth-child(1) {
  animation-delay: 0s;
}

.orbit-decor__rail--left .orbit-star:nth-child(2) {
  animation-delay: 0.4s;
}

.orbit-decor__rail--left .orbit-star:nth-child(3) {
  animation-delay: 0.9s;
}

.orbit-decor__rail--left .orbit-star:nth-child(4) {
  animation-delay: 0.2s;
}

.orbit-decor__rail--left .orbit-star:nth-child(5) {
  animation-delay: 1.2s;
}

.orbit-decor__rail--left .orbit-star:nth-child(6) {
  animation-delay: 0.65s;
}

.orbit-decor__rail--right .orbit-star:nth-child(1) {
  animation-delay: 0.3s;
}

.orbit-decor__rail--right .orbit-star:nth-child(2) {
  animation-delay: 0.8s;
}

.orbit-decor__rail--right .orbit-star:nth-child(3) {
  animation-delay: 0.1s;
}

.orbit-decor__rail--right .orbit-star:nth-child(4) {
  animation-delay: 1s;
}

.orbit-decor__rail--right .orbit-star:nth-child(5) {
  animation-delay: 0.5s;
}

.orbit-decor__rail--right .orbit-star:nth-child(6) {
  animation-delay: 1.4s;
}

.orbit-ship {
  position: absolute;
  left: 50%;
  display: block;
  filter: drop-shadow(3px 5px 0 rgba(26, 18, 40, 0.15));
}

.orbit-ship--rocket {
  /* Sit in the gutter: centered in rail, sized to stay inside it */
  bottom: clamp(4.5rem, 18vh, 40%);
  width: min(46px, 82%);
  height: auto;
  transform: translateX(-50%) rotate(-18deg);
  transform-origin: center bottom;
  animation: orbit-rocket 5s ease-in-out infinite;
}

.orbit-ship--ufo {
  top: clamp(5.5rem, 14vh, 32%);
  width: min(50px, 82%);
  height: auto;
  transform: translateX(-50%) rotate(11deg);
  transform-origin: center top;
  animation: orbit-ufo 4.6s ease-in-out infinite;
}

@keyframes orbit-twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes orbit-rocket {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-18deg);
  }

  50% {
    transform: translateX(-50%) translateY(-10px) rotate(-14deg);
  }
}

@keyframes orbit-ufo {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(11deg);
  }

  50% {
    transform: translateX(-50%) translateY(10px) rotate(7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-star,
  .orbit-ship {
    animation: none;
  }
}

@media (max-width: 640px) {
  .orbit-ship--rocket {
    bottom: clamp(3.75rem, 14vh, 35%);
    width: min(38px, 88%);
  }

  .orbit-ship--ufo {
    top: clamp(4.75rem, 12vh, 28%);
    width: min(40px, 88%);
  }

  .orbit-star--lg {
    width: 7px;
    height: 7px;
  }

  .orbit-star--md {
    width: 5px;
    height: 5px;
  }

  .orbit-star--sm {
    width: 2px;
    height: 2px;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  color: var(--olive);
}

h3 {
  font-size: 1.25rem;
  color: var(--terracotta-dark);
}

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--terracotta-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--olive);
  box-shadow:
    0 4px 0 rgba(255, 92, 26, 0.35),
    0 8px 24px rgba(108, 57, 255, 0.12);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--terracotta);
}

.logo-accent {
  color: var(--terracotta);
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--terracotta);
}

.nav a[aria-current="page"] {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--terracotta);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-panel {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 1.25rem;
  gap: 0.75rem;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--cream);
}

.nav-panel[hidden] {
  display: none;
}

.nav-panel a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0;
}

.nav-panel a:hover {
  color: var(--terracotta);
}

.nav-panel a[aria-current="page"] {
  font-weight: 600;
  color: var(--terracotta);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-panel {
    display: none !important;
  }
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background:
    radial-gradient(ellipse 90% 60% at 50% -8%, rgba(255, 160, 90, 0.45), transparent 58%),
    radial-gradient(ellipse 75% 55% at 100% 100%, rgba(140, 90, 255, 0.22), transparent 52%),
    radial-gradient(ellipse 55% 45% at 0% 85%, rgba(255, 200, 120, 0.35), transparent 48%),
    linear-gradient(180deg, #ffc9a8 0%, var(--cream) 100%);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Résumé — embedded PDF + download */
.section-header--resume {
  text-align: left;
  max-width: none;
  width: 100%;
  margin-bottom: 1.25rem;
}

.resume-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.resume-header-titles h1 {
  margin-bottom: 0;
}

.resume-download-btn {
  flex-shrink: 0;
  margin-top: 0;
  align-self: center;
}

@media (max-width: 480px) {
  .resume-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .resume-download-btn {
    align-self: flex-start;
  }
}

.resume-pdf-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #1a1228;
  box-shadow:
    5px 6px 0 rgba(255, 92, 26, 0.4),
    0 8px 28px var(--shadow);
  background: var(--white);
}

.resume-pdf-embed {
  width: 100%;
  min-height: 65vh;
  height: 80vh;
  max-height: 56rem;
  border: none;
  display: block;
}

.resume-pdf-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}

.resume-pdf-fallback a {
  font-weight: 500;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
  position: relative;
}

.section-header h1 {
  color: var(--ink);
  text-shadow:
    3px 3px 0 rgba(255, 210, 60, 0.55),
    5px 5px 0 rgba(108, 57, 255, 0.2);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 38ch;
}

.accent {
  color: var(--terracotta);
}

.section-hero {
  position: relative;
  background:
    radial-gradient(ellipse 100% 80% at 50% 130%, rgba(255, 130, 70, 0.45), transparent 62%),
    radial-gradient(ellipse 65% 55% at 10% 18%, rgba(160, 110, 255, 0.28), transparent 52%),
    radial-gradient(ellipse 60% 48% at 92% 8%, rgba(255, 210, 100, 0.4), transparent 48%),
    radial-gradient(ellipse 45% 38% at 72% 68%, rgba(255, 150, 180, 0.2), transparent 50%);
}

/* Hero — cover row (portrait + intro), then cards */
.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-cover {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-portrait {
  width: min(100%, 420px);
}

.hero-copy h1 {
  text-shadow:
    3px 3px 0 rgba(255, 210, 60, 0.6),
    6px 6px 0 rgba(108, 57, 255, 0.18);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 3px var(--olive),
    0 12px 0 rgba(255, 92, 26, 0.35),
    0 20px 48px var(--shadow);
  border: 3px solid #1a1228;
}

.hero-quote {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 5px solid var(--olive);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.55;
}

.hero-quote p {
  margin: 0;
}

.hero-quote footer {
  margin-top: 0.65rem;
  font-size: 0.9em;
  font-style: italic;
  color: var(--ink-muted);
  opacity: 0.92;
}

.hero-cover .hero-copy {
  max-width: 40rem;
}

@media (min-width: 640px) {
  .hero-cover {
    grid-template-columns: minmax(220px, min(460px, 42vw)) 1fr;
    justify-items: stretch;
    text-align: left;
    gap: 2rem;
  }

  .hero-portrait {
    width: 100%;
    max-width: 460px;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
    align-items: start;
  }

  .hero-cover {
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, min(480px, 40vw)) 1fr;
    align-items: center;
  }

  .hero-portrait {
    width: 100%;
    max-width: 480px;
  }

  .card-about {
    grid-column: 1;
  }

  .card-contact {
    grid-column: 2;
  }
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 1.75rem 1.5rem;
  box-shadow:
    0 0 0 3px #1a1228,
    6px 8px 0 rgba(255, 92, 26, 0.45),
    0 12px 36px var(--shadow);
  border: 3px solid var(--olive);
}

.card > h2 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-icon {
  color: var(--olive);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-icon--linkedin {
  transform: scale(0.92);
  transform-origin: top left;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--olive);
}

.contact-value {
  font-size: 1rem;
  word-break: break-word;
}

.contact-sep {
  color: var(--ink-muted);
  margin: 0 0.25rem;
}

/* Resume */
.resume-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .resume-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.resume-block h2,
.resume-block h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cream-dark);
  font-size: 1.25rem;
  color: var(--terracotta-dark);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.timeline li:first-child {
  padding-top: 0;
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.timeline .role {
  font-weight: 600;
  color: var(--ink);
}

.timeline .org {
  color: var(--terracotta);
  font-size: 0.95rem;
}

.timeline .dates {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.timeline p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  padding: 0.35rem 0.75rem;
  background: var(--cream-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
}

.edu-line {
  margin: 0;
  color: var(--ink-muted);
}

.edu-line .muted {
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-outline {
  border: 3px solid var(--terracotta);
  color: var(--terracotta);
  background: transparent;
  margin-top: 0.5rem;
  box-shadow: 3px 4px 0 rgba(108, 57, 255, 0.35);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 4px 5px 0 rgba(255, 210, 60, 0.55);
  transform: translate(-1px, -1px);
}

.btn-spotify {
  background: #1db954;
  color: var(--white);
  border-color: #1aa34a;
  margin-top: 0;
}

.btn-spotify:hover {
  background: #1ed760;
  color: var(--white);
}

.resume-sidebar .resume-block {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 57, 255, 0.15);
  margin-bottom: 1rem;
}

.resume-sidebar .resume-block:last-of-type {
  margin-bottom: 1rem;
}

/* Projects — main wraps content (no .section); flush to footer (no bottom pad gap) */
main.main--projects {
  padding: 4rem 1.5rem 0;
  margin-bottom: 0;
}

main.main--projects .section-inner {
  margin-bottom: 0;
  padding-bottom: 0;
}

main.main--projects .project-grid {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid--hobbies {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hobby-cta {
  margin: 0;
  margin-top: 0.75rem;
}

.hobby-cta:last-child {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Hobbies — photo gallery (below cards) */
.hobby-photo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-width: 100%;
}

@media (min-width: 640px) {
  .hobby-photo-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.hobby-photo-slot {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(108, 57, 255, 0.2);
  box-shadow: 0 4px 20px var(--shadow);
  background: var(--white);
}

.hobby-photo-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hobby-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hobby-photo-slot--empty {
  border-style: dashed;
  border-color: rgba(255, 92, 26, 0.28);
}

.hobby-photo-media--empty {
  background: linear-gradient(145deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.hobby-photo-caption {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-muted);
  border-top: 1px solid rgba(108, 57, 255, 0.12);
  background: var(--white);
}

.hobby-photo-placeholder {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 1.5rem;
  border: 2px solid #1a1228;
  border-left: 5px solid var(--olive);
  box-shadow:
    4px 5px 0 rgba(255, 92, 26, 0.4),
    0 6px 24px var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translate(-2px, -4px);
  box-shadow:
    6px 8px 0 rgba(108, 57, 255, 0.35),
    0 12px 32px var(--shadow);
}

.project-card h2,
.project-card h3 {
  font-size: 1.25rem;
  color: var(--terracotta-dark);
  margin-bottom: 0.5rem;
}

.project-card p {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-links a {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.4rem 1.25rem 0.12rem;
  background: linear-gradient(172deg, #4a1fd4 0%, var(--olive) 42%, #2d0d6e 100%);
  color: #fff8f0;
  border-top: 3px solid var(--terracotta);
  box-shadow: 0 -4px 0 rgba(255, 210, 60, 0.45);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  line-height: 1;
}

.site-footer p {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.15;
}

.footer-copy {
  opacity: 0.9;
  margin: 0;
  padding: 0;
  display: block;
}

.site-footer a {
  color: var(--honey);
  font-weight: 600;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
