:root {
  color-scheme: light;
  --ink: #1d1410;
  --muted: #66584c;
  --brown: #1b0d0b;
  --cream: #fff7e3;
  --ivory: #fcecc8;
  --yellow: #ffd24a;
  --gold: #e8a928;
  --coral: #ff7890;
  --mint: #a6dfc8;
  --blue: #8fc5ff;
  --paper: #fffdf7;
  --line: rgba(27, 13, 11, 0.16);
  --shadow: 5px 5px 0 var(--brown);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 120, 144, 0.14) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fff6cf 0%, #fffaf0 44%, #ffffff 100%);
  background-size: 42px 42px, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.site-header::before {
  position: absolute;
  inset: 8px -10px;
  z-index: -1;
  border: 2px solid rgba(27, 13, 11, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(18px);
  content: "";
}

.brand,
.eyebrow,
.status,
.section-kicker {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand,
.eyebrow {
  width: fit-content;
  border: 2px solid var(--brown);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--brown);
}

.brand {
  padding: 7px 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

nav a:hover {
  background: rgba(255, 210, 74, 0.34);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(86vh - 64px);
  align-items: center;
  padding: clamp(46px, 8vw, 96px) 0 clamp(70px, 8vw, 104px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 2%;
  bottom: 42px;
  z-index: 0;
  width: min(34vw, 440px);
  height: min(34vw, 440px);
  border: 2px solid var(--brown);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: var(--shadow);
  content: "";
}

.hero-mascot {
  position: absolute;
  right: 0;
  bottom: 28px;
  z-index: 1;
  width: min(34vw, 440px);
  filter: drop-shadow(12px 14px 0 rgba(27, 13, 11, 0.16));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(620px, 56vw);
}

.eyebrow {
  margin: 0 0 20px;
  padding: 8px 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(3.7rem, 7vw, 6.3rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 7px 7px 0 rgba(255, 120, 144, 0.72);
}

.tagline {
  max-width: 570px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.58rem);
  font-weight: 750;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a,
.text-link {
  min-height: 48px;
  padding: 14px 18px;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--brown);
  font-weight: 950;
}

.hero-actions a:first-child,
.text-link {
  background: var(--yellow);
}

.secondary-link {
  background: var(--paper);
}

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

.section {
  padding: clamp(54px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.intro-strip {
  padding: 24px 0;
}

.intro-strip p {
  max-width: 920px;
  font-size: clamp(1.4rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 1;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-kicker {
  color: #946c00;
}

h2 {
  max-width: 800px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.card-grid,
.ecosystem-grid {
  display: grid;
  gap: 14px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three,
.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

article {
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(27, 13, 11, 0.92);
  padding: 20px;
}

article p,
.feature-copy p,
.footer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

article h3 {
  margin: 10px 0 10px;
}

.status {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(166, 223, 200, 0.9);
}

.card-grid article:nth-child(2) .status {
  background: rgba(143, 197, 255, 0.9);
}

.character-band {
  background:
    linear-gradient(90deg, rgba(255, 210, 74, 0.24), transparent 70%);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.feature-copy {
  display: grid;
  gap: 18px;
}

.feature-row img {
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--brown);
}

.library-hero {
  min-height: calc(72vh - 64px);
}

.character-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.character-card img {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--ivory);
  object-fit: contain;
}

.character-card .text-link {
  margin-top: 18px;
}

.placeholder-card {
  background: #f7fffb;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--brown);
  font-weight: 950;
}

.ecosystem article:nth-child(2) {
  background: #f7fffb;
}

.ecosystem article:nth-child(3) {
  background: #f5faff;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 900px;
  font-weight: 750;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero::after {
    right: -40px;
    bottom: 44px;
    width: 360px;
    height: 360px;
  }

  .hero-mascot {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: end;
    width: min(72vw, 340px);
    max-height: 340px;
    margin-bottom: 14px;
    object-fit: cover;
  }

  .hero-copy {
    max-width: 720px;
  }

  .card-grid.two,
  .card-grid.three,
  .ecosystem-grid,
  .feature-row,
  .character-card {
    grid-template-columns: 1fr;
  }

  .feature-row img {
    order: -1;
  }

  .character-card img {
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    width: min(100% - 20px, 1180px);
    padding: 12px 0;
  }

  nav {
    gap: 2px;
    max-width: calc(100% - 82px);
    font-size: 0.76rem;
  }

  nav a {
    padding: 6px 7px;
  }

  main,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-bottom: 52px;
  }

  .hero::after {
    display: none;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 5.8rem);
  }

  .tagline {
    font-size: 1.06rem;
  }

  .hero-actions {
    display: grid;
  }
}
