:root {
  --ink: #231f20;
  --cream: #fff7d6;
  --paper: #fffdf4;
  --sky: #0d7ac7;
  --sky-soft: #89d1f0;
  --bamboo: #7bb347;
  --leaf: #4f7b27;
  --tomato: #f04e3e;
  --sun: #f0c419;
  --olive: #8c8752;
  --mauve: #876778;
  --shadow: rgba(35, 31, 32, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 196, 25, 0.35), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(13, 122, 199, 0.22), transparent 20%),
    linear-gradient(180deg, #fff6cb 0%, #fffdf4 44%, #f4f8ea 100%);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.5), transparent 15%),
    linear-gradient(135deg, rgba(123, 179, 71, 0.92), rgba(13, 122, 199, 0.84) 52%, rgba(135, 103, 120, 0.86));
  box-shadow: 0 26px 80px var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  width: 240px;
  height: 240px;
  right: -50px;
  top: -40px;
  background: rgba(255, 247, 214, 0.26);
}

.hero::after {
  width: 180px;
  height: 180px;
  left: -30px;
  bottom: 48px;
  background: rgba(240, 196, 25, 0.26);
}

.topbar,
.hero-grid,
.series-band,
.spotlight-grid,
.archive-header,
.gallery-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.brand img {
  width: min(420px, 100%);
  filter: drop-shadow(0 10px 18px rgba(35, 31, 32, 0.18));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a,
.filter-chip,
.button {
  border: 3px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 247, 214, 0.84);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible,
.button:hover,
.button:focus-visible,
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(35, 31, 32, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  padding: 18px 22px 28px;
}

.hero-copy,
.hero-panel {
  padding: 22px;
}

.hero-copy {
  border-radius: 28px;
  background: rgba(255, 253, 244, 0.88);
  border: 4px solid var(--ink);
}

.eyebrow,
.section-label,
.story-tag,
.spotlight-chip {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.8rem;
  font-weight: 800;
}

.eyebrow,
.section-label {
  color: var(--tomato);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cooper Black", "Rockwell Extra Bold", Georgia, serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: 1.65rem;
}

.hero-text,
.series-band p,
.spotlight-copy p,
.future-card-copy p,
.mini-card p,
.story-card p,
.lightbox-copy p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.hero-actions,
.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.button {
  padding: 13px 20px;
  font-size: 0.96rem;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--tomato);
}

.button-secondary {
  color: var(--ink);
  background: var(--cream);
}

.button-compact {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--sun);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-card,
.mini-card,
.spotlight-panel,
.gallery-card,
.future-card {
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(35, 31, 32, 0.12);
}

.story-card {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(240, 196, 25, 0.28), transparent 30%),
    var(--paper);
}

.story-tag,
.spotlight-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
}

.mini-highlights {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  padding: 18px;
}

.mini-card-accent {
  background: #f5f1ff;
}

.series-band,
.archive-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.spotlight-panel {
  overflow: hidden;
}

.spotlight-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
}

.spotlight-copy {
  padding: 22px;
}

.spotlight-panel-secondary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background:
    linear-gradient(145deg, rgba(13, 122, 199, 0.16), rgba(123, 179, 71, 0.16)),
    var(--paper);
}

.future-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.future-list span {
  padding: 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: white;
  font-weight: 700;
}

.future-card {
  margin: 18px;
  overflow: hidden;
  align-self: center;
}

.future-card-art {
  position: relative;
  min-height: 260px;
  background: linear-gradient(180deg, #9fdcff 0%, #effce8 100%);
  overflow: hidden;
}

.future-sun {
  position: absolute;
  width: 88px;
  height: 88px;
  top: 28px;
  right: 28px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
}

.future-mountain {
  position: absolute;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
}

.future-mountain-back {
  left: 10px;
  border-bottom: 160px solid #6dc6ef;
}

.future-mountain-front {
  right: -18px;
  border-bottom: 190px solid #7bb347;
}

.future-panda-head {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: white;
  box-shadow:
    -46px -10px 0 -14px var(--ink),
    46px -10px 0 -14px var(--ink),
    inset -20px -8px 0 0 #f7f7f7;
}

.future-panda-head::before,
.future-panda-head::after {
  content: "";
  position: absolute;
  top: 40px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}

.future-panda-head::before {
  left: 28px;
}

.future-panda-head::after {
  right: 28px;
}

.future-card-copy {
  padding: 18px;
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 16px;
  background: white;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--sky);
  color: white;
}

.gallery-shell {
  margin-top: 18px;
}

.site-footer {
  margin-top: 36px;
  padding: 20px 16px 8px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #5f594f;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.gallery-masonry {
  columns: 4 220px;
  column-gap: 18px;
}

.gallery-card {
  break-inside: avoid;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: auto;
  border-bottom: 4px solid var(--ink);
}

.gallery-card-copy {
  padding: 14px 16px 16px;
}

.gallery-card h3 {
  font-size: 1.2rem;
}

.gallery-card p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.card-meta {
  margin-top: 10px;
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: #effce8;
  font-weight: 700;
  font-size: 0.82rem;
}

.lightbox {
  width: min(1100px, calc(100% - 24px));
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 18px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(35, 31, 32, 0.28);
}

.lightbox::backdrop {
  background: rgba(35, 31, 32, 0.72);
}

.lightbox-close {
  margin-left: auto;
  display: block;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 800;
  cursor: pointer;
}

.lightbox-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.lightbox-layout img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: white;
}

.lightbox-copy {
  padding: 12px 6px;
}

.lightbox-copy h2 {
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .hero-grid,
  .spotlight-grid,
  .spotlight-panel-secondary,
  .lightbox-layout {
    grid-template-columns: 1fr;
  }

  .topbar,
  .series-band,
  .archive-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 10px;
  }

  .hero-copy,
  .hero-panel,
  .topbar,
  .hero-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-grid {
    gap: 14px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .gallery-masonry {
    columns: 2 160px;
    column-gap: 14px;
  }

  .lightbox {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .nav-links,
  .hero-actions,
  .lightbox-actions {
    width: 100%;
  }

  .nav-links a,
  .button,
  .filter-chip {
    width: 100%;
    text-align: center;
  }

  .gallery-masonry {
    columns: 1;
  }
}
