:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #58657a;
  --cloud: #f6fbff;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(24, 47, 83, 0.13);
  --blue: #1499ff;
  --deep-blue: #0963c9;
  --pink: #ff82ad;
  --yellow: #ffbd1f;
  --orange: #ff7b16;
  --green: #7ec95b;
  --purple: #8f63d9;
  --brown: #9b6a3b;
  --shadow: 0 22px 60px rgba(23, 32, 51, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 130, 173, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 189, 31, 0.2), transparent 32rem),
    linear-gradient(180deg, #eff9ff 0%, #fff8f0 46%, #f7fbff 100%);
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 8px 20px rgba(9, 99, 201, 0.2);
}

.brand span {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  min-height: 42px;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(20, 153, 255, 0.1);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  align-items: start;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.25rem);
  z-index: -2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 18, 45, 0.56), rgba(3, 18, 45, 0.16) 46%, rgba(3, 18, 45, 0.02)),
    linear-gradient(0deg, rgba(3, 18, 45, 0.22), transparent 52%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  width: min(720px, 100%);
  padding: clamp(1rem, 5vw, 4.5rem);
  margin-top: clamp(1rem, 5vh, 3rem);
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--deep-blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe27a;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 16vw, 9.5rem);
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 58ch;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.14);
}

.button-primary {
  color: #10203a;
  background: linear-gradient(135deg, var(--yellow), #fff38a);
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.button-social {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.instagram-button {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af);
}

.facebook-button {
  background: linear-gradient(135deg, #1877f2, #0b4fb3);
}

.youtube-button {
  background: linear-gradient(135deg, #ff0033, #b9001f);
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 4rem) 0;
  scroll-margin-top: 86px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.social-panel h2,
.merch-panel h2 {
  font-size: clamp(2.1rem, 6vw, 4.7rem);
  font-weight: 950;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.wide-cast-banner {
  width: 100%;
  padding: clamp(0.75rem, 2vw, 1.25rem) 0;
  overflow: hidden;
}

.wide-cast-banner img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.character-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 1rem;
  min-height: 235px;
  padding: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.character-card::before,
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 6px solid var(--accent);
  pointer-events: none;
}

.character-card img {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 6px;
  object-fit: cover;
}

.character-card div {
  align-self: start;
  padding: 1.15rem 0.2rem 0.2rem 0;
}

.character-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.character-card h3,
.story-copy h3,
.video-card h3 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 950;
}

.character-card p:last-child,
.story-copy p,
.video-card p,
.social-panel p,
.merch-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.kitty { --accent: var(--pink); }
.lucas { --accent: var(--blue); }
.milo { --accent: #246dff; }
.rocky { --accent: var(--purple); }
.tiggy { --accent: var(--orange); }
.capy { --accent: var(--green); }

.story-list {
  display: grid;
  gap: 1rem;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.character-card:hover,
.character-card:focus-visible,
.story-card:hover,
.story-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent), white 28%);
  box-shadow: 0 24px 54px rgba(23, 32, 51, 0.16);
  outline: none;
}

.story-card img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  border-radius: 6px;
  object-fit: cover;
}

.story-copy {
  align-self: center;
}

.badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0 0;
}

dl div {
  padding: 0.9rem;
  border-radius: 8px;
  background: var(--cloud);
}

dt {
  color: var(--accent);
  font-weight: 950;
}

dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 540px;
  object-fit: cover;
  background: #101521;
}

.video-copy {
  padding: 1rem;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.video-tags span {
  display: inline-flex;
  width: max-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 950;
}

.video-tags .tag-kitty { background: var(--pink); }
.video-tags .tag-lucas { background: var(--blue); }
.video-tags .tag-milo { background: #246dff; }
.video-tags .tag-rocky { background: var(--purple); }
.video-tags .tag-tiggy { background: var(--orange); }
.video-tags .tag-capy { background: var(--green); }

.social-panel,
.merch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 249, 255, 0.9)),
    radial-gradient(circle at bottom right, rgba(255, 130, 173, 0.2), transparent 18rem);
  box-shadow: var(--shadow);
}

.social-panel > div:first-child {
  max-width: 680px;
}

.social-panel .social-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 0;
}

.social-panel .button {
  width: 100%;
  min-height: 46px;
  padding-inline: 1rem;
}

.merch-panel {
  grid-template-columns: 160px 1fr;
  background:
    linear-gradient(135deg, #fff8ef, #f1fbff),
    radial-gradient(circle at top left, rgba(255, 189, 31, 0.25), transparent 16rem);
}

.merch-panel img {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.15);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.site-footer p {
  margin: 0;
  font-weight: 950;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.character-page {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent), transparent 82%), transparent 34rem),
    linear-gradient(180deg, #f6fbff 0%, #fff8f0 100%);
}

.character-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.character-hero h1 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(3.5rem, 11vw, 8rem);
}

.character-hero .hero-copy {
  color: var(--muted);
  text-shadow: none;
}

.character-portrait {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.character-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.character-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card,
.lore-panel,
.gallery-card,
.coming-soon-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.08);
}

.detail-card {
  position: relative;
  min-height: 170px;
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.92)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent), transparent 78%), transparent 8rem);
}

.detail-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.34;
}

.detail-card h2,
.lore-panel h2,
.gallery-card h3,
.coming-soon-panel h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.05;
}

.detail-card p,
.lore-panel p,
.gallery-card p,
.coming-soon-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lore-panel {
  padding: clamp(1rem, 3vw, 2rem);
}

.lore-panel p + p {
  margin-top: 1rem;
}

.detail-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), white 78%);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.lucas-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.lucas-profile .lore-panel,
.lucas-profile .character-details {
  height: 100%;
}

.character-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-card div {
  padding: 1rem;
}

.coming-soon-panel {
  padding: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 980px) {
  .cast-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-hero,
  .character-details,
  .character-gallery,
  .lucas-profile {
    grid-template-columns: 1fr;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card img {
    max-height: 360px;
  }

  dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: grid;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .character-page .site-header {
    flex-wrap: wrap;
  }

  .character-page .site-nav {
    position: static;
    display: flex;
    flex: 1 1 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: 680px;
  }

  .hero-art::after {
    background:
      linear-gradient(0deg, rgba(3, 18, 45, 0.46), rgba(3, 18, 45, 0.12) 58%),
      linear-gradient(90deg, rgba(3, 18, 45, 0.36), transparent);
  }

  .hero-art img {
    object-position: center top;
  }

  .hero-content {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(3.6rem, 20vw, 5.4rem);
  }

  .cast-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    grid-template-columns: 38% 1fr;
    min-height: 200px;
  }

  .character-card img {
    min-height: 176px;
  }

  .social-panel,
  .merch-panel {
    grid-template-columns: 1fr;
  }

  .merch-panel img {
    width: min(180px, 100%);
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
  }

  .site-nav {
    top: 66px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 620px;
    padding: 0.7rem;
  }

  .hero-art {
    inset: 0.7rem;
  }

  .button,
  .hero-actions a,
  .social-links a {
    width: 100%;
  }

  .character-card {
    grid-template-columns: 1fr;
  }

  .character-card img {
    height: 280px;
  }

  .section {
    width: min(100% - 1.2rem, 1180px);
    padding: 2.4rem 0;
    scroll-margin-top: 78px;
  }

  .site-footer {
    display: grid;
  }
}
