:root {
  color-scheme: light;
  --ink: #20234f;
  --muted: #65718d;
  --line: #dbe7ff;
  --shell: #fff8f3;
  --foam: #f5fbff;
  --pearl: #ffffff;
  --aqua: #77dff2;
  --blue: #514dd1;
  --deep: #24308d;
  --gold: #ffc84d;
  --blush: #ffd0c8;
  --shadow: 0 16px 50px rgba(53, 78, 140, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(119, 223, 242, 0.18), transparent 28rem),
    linear-gradient(180deg, #f8fcff 0%, #fffdfb 42%, #f7fbff 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(219, 231, 255, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--aqua);
}

nav {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

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

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(22rem, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  min-height: calc(100svh - 4.1rem);
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3vw, 3.5rem);
}

.hero-copy {
  max-width: 39rem;
}

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

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

h1 {
  margin-bottom: 1rem;
  color: var(--deep);
  font-size: clamp(3.5rem, 12vw, 7.8rem);
  line-height: 0.9;
}

h2 {
  max-width: 52rem;
  margin-bottom: 1rem;
  color: var(--deep);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--deep);
  font-size: 1.05rem;
}

.lede {
  margin-bottom: 1.5rem;
  color: #3c4568;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
}

.hero-art {
  justify-self: center;
  width: min(100%, 980px);
  height: min(70svh, 660px);
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-art a,
.sheet-grid a,
.video-layout a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hero-art picture {
  display: block;
  height: 100%;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.band {
  background:
    linear-gradient(90deg, rgba(119, 223, 242, 0.16), rgba(255, 200, 77, 0.13)),
    rgba(255, 255, 255, 0.5);
}

.character,
.sheets,
.video {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.sheets,
.video {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

.character {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

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

.traits article,
.prompt {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(53, 78, 140, 0.08);
}

.traits article {
  padding: 1rem;
}

.traits p,
.prompt p,
footer p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  margin-bottom: 1.3rem;
}

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

figure {
  margin: 0;
}

.sheet-grid figure,
.video-layout figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: var(--shadow);
}

.sheet-grid img,
.video-layout img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--pearl);
}

figcaption {
  padding: 0.75rem 0.9rem;
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 850;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(17rem, 0.88fr);
  gap: 1rem;
  align-items: stretch;
}

.prompt {
  display: grid;
  align-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.prompt p:last-child,
footer p:last-child {
  margin-bottom: 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--pearl);
}

footer p:first-child {
  color: var(--deep);
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero,
  .character,
  .video-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    order: -1;
    height: auto;
  }

  .hero-art img {
    height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .traits,
  .sheet-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }
}
