:root {
  color-scheme: light;
  --ink: #1d1410;
  --muted: #6e5f50;
  --line: rgba(54, 36, 22, 0.14);
  --cream: #fff7e3;
  --ivory: #fcecc8;
  --yellow: #ffd24a;
  --gold: #e8a928;
  --brown: #1b0d0b;
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(78, 49, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 210, 74, 0.48), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(252, 236, 200, 0.9), transparent 32%),
    linear-gradient(180deg, #fff9e8 0%, #f8efe1 48%, #fffaf0 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

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

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

.brand,
.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  font-weight: 900;
  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;
}

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

nav {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

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

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(300px, 1fr);
  gap: clamp(26px, 5vw, 74px);
  min-height: calc(100vh - 80px);
  align-items: center;
  padding: 24px 0 62px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

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

h1 {
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-shadow: 7px 7px 0 rgba(255, 210, 74, 0.8);
}

.tagline {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.5vw, 1.72rem);
  font-weight: 750;
  line-height: 1.35;
}

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

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

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

.hero-art {
  display: grid;
  place-items: center;
  margin: 0;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 210, 74, 0.84), rgba(255, 247, 227, 0.92)),
    #fff7e3;
  box-shadow: 8px 8px 0 var(--brown), var(--shadow);
  overflow: hidden;
}

.hero-art img {
  width: min(100%, 560px);
  aspect-ratio: 1;
  object-fit: cover;
}

.section {
  padding: clamp(52px, 8vw, 96px) 0;
}

.intro-section,
.usage-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 74px);
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 12px;
  color: #946c00;
}

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

h3 {
  font-size: 1.06rem;
  letter-spacing: 0;
}

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

.copy-stack p,
.sheet-copy p,
.usage-list p,
article p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

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

.dna-grid,
.trait-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

article,
.gallery-plan div {
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(27, 13, 11, 0.92);
}

article {
  padding: 18px;
}

article span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--brown);
  background: var(--yellow);
  font-size: 0.84rem;
  font-weight: 950;
}

article h3 {
  margin-bottom: 8px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  border-top: 1px solid var(--line);
}

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

.check-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "*";
  color: #b47d00;
}

.sheet-art {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 8px 8px 0 var(--brown), var(--shadow);
}

.sheet-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 6px;
}

.gallery-grid,
.gallery-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.gallery-grid figure {
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--brown);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 rgba(27, 13, 11, 0.92);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--ivory);
}

.gallery-grid figcaption {
  padding: 12px 14px 14px;
  border-top: 2px solid var(--brown);
  font-size: 0.92rem;
  font-weight: 900;
}

.gallery-plan div {
  min-height: 96px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 210, 74, 0.52), #ffffff);
  font-weight: 900;
}

.usage-list {
  display: grid;
  gap: 12px;
}

.usage-list p {
  padding: 16px 18px;
  border-left: 5px solid var(--yellow);
  background: rgba(255, 255, 255, 0.56);
}

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

.footer p {
  max-width: 880px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .hero,
  .intro-section,
  .usage-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    max-height: 420px;
  }

  .dna-grid,
  .trait-grid,
  .rules-grid,
  .gallery-grid,
  .gallery-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 0;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.82rem;
  }

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

  .hero {
    gap: 18px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(4.5rem, 27vw, 7rem);
  }

  .tagline {
    margin-top: 20px;
    font-size: 1.06rem;
  }

  .hero-actions {
    display: grid;
  }

  .section {
    padding: 42px 0;
  }

  h2 {
    font-size: clamp(1.75rem, 11vw, 3rem);
  }

  .dna-grid,
  .trait-grid,
  .rules-grid,
  .gallery-grid,
  .gallery-plan {
    grid-template-columns: 1fr;
  }
}
