:root {
  --cream: #fbf6eb;
  --cream-deep: #f3ead4;
  --ink: #3b2f27;
  --ink-soft: #6b5848;
  --cheese: #f0c43a;
  --cheese-deep: #e0a81c;
  --ear: #f3b6a5;
  --dot: rgba(224, 168, 28, 0.22);
  --dot-alt: rgba(243, 182, 165, 0.28);
  --paper: rgba(255, 252, 246, 0.86);
  --line: rgba(59, 47, 39, 0.12);
  --shadow: 0 18px 40px rgba(59, 47, 39, 0.08);
  --radius: 22px;
  --max: 1080px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Polka-dot canvas */
.dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, var(--dot) 2.2px, transparent 2.4px),
    radial-gradient(circle, var(--dot-alt) 1.6px, transparent 1.8px);
  background-size: 36px 36px, 22px 22px;
  background-position: 0 0, 18px 11px;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Flying cheese */
.sky {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.sky img {
  position: absolute;
  opacity: 0.85;
  filter: drop-shadow(0 6px 8px rgba(59, 47, 39, 0.12));
  will-change: transform;
}

.sky .c1 { width: 64px; top: 12%; left: -8%; animation: drift-a 22s linear infinite; }
.sky .c2 { width: 42px; top: 38%; left: -10%; animation: drift-b 28s linear infinite 3s; }
.sky .c3 { width: 36px; top: 68%; left: -6%; animation: drift-c 19s linear infinite 6s; }
.sky .c4 { width: 52px; top: 82%; left: -12%; animation: drift-a 26s linear infinite 9s; }
.sky .c5 { width: 30px; top: 22%; left: -4%; animation: drift-b 17s linear infinite 1s; }
.sky .c6 { width: 48px; top: 54%; left: -9%; animation: drift-c 24s linear infinite 12s; }

@keyframes drift-a {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(60vw, -40px, 0) rotate(180deg); }
  100% { transform: translate3d(120vw, 20px, 0) rotate(360deg); }
}

@keyframes drift-b {
  0%   { transform: translate3d(0, 0, 0) rotate(12deg); }
  50%  { transform: translate3d(55vw, 50px, 0) rotate(-20deg); }
  100% { transform: translate3d(120vw, -30px, 0) rotate(24deg); }
}

@keyframes drift-c {
  0%   { transform: translate3d(0, 10px, 0) rotate(-8deg); }
  50%  { transform: translate3d(58vw, -60px, 0) rotate(40deg); }
  100% { transform: translate3d(120vw, 16px, 0) rotate(-16deg); }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(251, 246, 235, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff6c8, var(--cheese) 55%, var(--cheese-deep));
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, 0.06);
  position: relative;
}

.brand-mark::after,
.brand-mark::before {
  content: "";
  position: absolute;
  background: var(--cream);
  border-radius: 50%;
}

.brand-mark::before { width: 8px; height: 8px; top: 10px; left: 8px; }
.brand-mark::after { width: 6px; height: 6px; bottom: 8px; right: 9px; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #fff;
  color: var(--ink);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Layout */
main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  flex: 1;
  padding: 40px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0 56px;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cheese-deep);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #fff8e8;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  background: #fff;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 64px;
}

.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.fact strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.fact span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-copy {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 28px;
}

.bio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}

.panel h3 {
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.panel p + p { margin-top: 12px; }

blockquote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

blockquote cite {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Gallery */
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.tile img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.tile figcaption,
.video-card figcaption {
  padding: 14px 16px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.video-wrap {
  margin-top: 28px;
}

.video-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  display: block;
  background: #2b221c;
  max-height: 520px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(40, 30, 22, 0.72);
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.open { display: grid; }

.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.7);
}

.foot {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .hero,
  .bio,
  .grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .tile img { height: 280px; }

  .menu-btn { display: inline-block; }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .gallery-head,
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky img { animation: none; opacity: 0.35; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
