@font-face {
  font-family: Schoolbell;
  src: url("../fonts/Schoolbell-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Studio Marks";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
  unicode-range: U+2122;
}

:root {
  color-scheme: light;
  --paper: #fff9ed;
  --ink: #33251f;
  --muted: #6d6055;
  --purple: #674185;
  --purple-dark: #4c2b67;
  --line: #dfd3bf;
  --hand: "Studio Marks", Schoolbell, "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Studio Marks", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
a:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
::selection { color: var(--ink); background: #f5d477; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--hand); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3rem, 5.8vw, 5.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); letter-spacing: -0.025em; }
h3 { font-size: 1rem; line-height: 1.4; }
.container { width: min(1180px, calc(100% - 6rem)); margin-inline: auto; }
.section-space { padding-block: 6rem; }
.eyebrow { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.handwritten { font-family: var(--hand); font-weight: 400; }
.intro { font-size: 1.1rem; line-height: 1.8; }
.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  color: white;
  background: var(--purple-dark);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px dashed var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand img { width: 62px; height: 62px; }
.brand span { font-family: var(--hand); font-size: 1.65rem; white-space: nowrap; }
nav { display: flex; gap: 2rem; }
nav a { padding-block: 0.6rem; font-size: 0.85rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--purple); text-decoration: underline wavy; }

.hero { position: relative; padding-top: 4.25rem; padding-bottom: 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; }
.hero .eyebrow { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; }
.little-star { color: var(--purple); font-size: 1.5rem; line-height: 1; }
.hand-underline { position: relative; white-space: nowrap; }
.hand-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.1em;
  border-bottom: 5px solid #e8ba4d;
  border-radius: 50%;
  transform: rotate(-2deg);
}
.hero .intro { max-width: 33rem; margin-top: 2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 1.7rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--purple-dark);
  border-radius: 8px 11px 9px 6px;
  background: var(--purple);
  color: white;
  box-shadow: 3px 4px 0 var(--purple-dark);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button span { font-size: 1.4rem; line-height: 1; }
.button:hover { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--purple-dark); }
.button-secondary { color: var(--purple-dark); background: transparent; }
.hero-note { margin-top: 1.5rem; color: var(--muted); font-size: 1.25rem; }
.hero-art { position: relative; padding: 1rem; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 3% -3% 7%;
  z-index: -1;
  background: #f7e9bc;
  border-radius: 44% 56% 41% 59% / 59% 37% 63% 41%;
  transform: rotate(-7deg);
}
.studio-logo { width: 100%; transform: rotate(3deg); }
.studio-logo-lockup { position: relative; }
.logo-trademark { position: absolute; font-family: "Studio Marks"; font-size: 1rem; line-height: 1; }
.studio-trademark { right: 7%; bottom: 8%; }
.logo-note { margin-top: 1.5rem; color: var(--purple); text-align: center; font-size: 1.5rem; transform: rotate(-4deg); }
.art-spark { position: absolute; color: var(--purple); font-size: 3.5rem; }
.spark-one { top: -1.5rem; right: 1rem; transform: rotate(15deg); }
.spark-two { bottom: 3rem; left: -1.5rem; color: #b67a23; }

.game-section { background: #f0eaf4; border-block: 1px solid #e3d8e9; }
.section-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.status { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.9rem; border: 1px solid #d5c6e0; border-radius: 50px; color: var(--purple-dark); font-size: 0.75rem; font-weight: 650; }
.status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4.5rem; }
.game-art-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 1.5rem 1.2rem;
  border: 2px solid #c8b7d6;
  border-radius: 46% 46% 12px 12px / 30% 30% 12px 12px;
  background: radial-gradient(ellipse at 50% 35%, #f9f2df 0%, #e0d1ea 80%);
}
.game-wordmark { position: relative; width: 90%; }
.game-logo { width: 100%; max-height: 180px; object-fit: contain; }
.game-trademark { right: -0.8rem; top: 15%; color: var(--purple-dark); }
.character-cards { display: flex; gap: 1rem; width: 100%; padding-block: 0.75rem 1.5rem; }
.character-card {
  width: calc(50% - 0.5rem);
  padding: 0.6rem 0.45rem 0.8rem;
  border: 1px solid #d1c4ad;
  border-radius: 5px 8px 4px 6px;
  background: var(--paper);
  box-shadow: 4px 7px 0 #49315318;
}
.character-card img { width: 100%; }
.character-card span { display: block; text-align: center; font-size: 1.15rem; }
.card-kobold { transform: rotate(-10deg); }
.card-skeleton { transform: translateY(1rem) rotate(10deg); }
.stage-star { position: absolute; z-index: 1; color: var(--purple); font-size: 2.8rem; }
.star-left { left: 6%; top: 10rem; }
.star-right { right: 5%; bottom: 2rem; color: #8d5c13; }
.stage-caption { text-align: center; color: var(--purple-dark); font-size: 1.4rem; }
.game-art > figcaption { margin-top: 1rem; color: var(--muted); text-align: center; font-size: 0.74rem; }
.game-copy > .eyebrow { margin-bottom: 0.9rem; color: var(--purple); }
.game-description { margin-top: 1.4rem; color: #5e5165; }
.feature-list { display: grid; gap: 1.2rem; margin: 1.8rem 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 1rem; }
.feature-number { flex-shrink: 0; width: 2.1rem; color: var(--purple); font-size: 1.65rem; line-height: 1.2; }
.feature-list p { margin-top: 0.25rem; color: #5e5165; font-size: 0.88rem; line-height: 1.65; }
.coming-soon { padding-top: 1.1rem; border-top: 1px dashed #cbbbd5; }
.coming-soon > span { color: var(--purple-dark); font-size: 1.8rem; }
.coming-soon p { max-width: 29rem; margin-top: 0.25rem; color: #5e5165; font-size: 0.84rem; }

.studio-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6rem; }
.studio-section .eyebrow { margin-bottom: 1.5rem; }
.studio-copy > p + p { margin-top: 1.2rem; }
.studio-copy > p:not(.intro) { color: var(--muted); font-size: 0.95rem; }

.sketchbook-section { padding-top: 1.5rem; }
.sketchbook-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.sketchbook-heading .eyebrow { margin-bottom: 0.9rem; }
.sketchbook-heading h2 { font-size: clamp(2.4rem, 3.6vw, 3.2rem); }
.sketchbook-heading > p { max-width: 19rem; color: var(--muted); font-size: 0.85rem; }
.sketchbook-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; }
.sketch { padding: 1rem 1rem 1.25rem; border: 1px solid var(--line); border-radius: 4px 7px 5px 3px; background: #fffdf6; box-shadow: 2px 4px 0 #33251f0a; }
.sketch:nth-child(odd) { transform: rotate(-2deg); }
.sketch:nth-child(even) { transform: rotate(2deg) translateY(0.6rem); }
.sketch-image { border-radius: 47% 53% 42% 58%; }
.sketch-image img { width: 100%; }
.sketch-green .sketch-image { background: #e8edda; }
.sketch-yellow .sketch-image { background: #fcf0c7; }
.sketch-pink .sketch-image { background: #f4e3df; }
.sketch-purple .sketch-image { background: #eae2f0; }
.sketch figcaption { margin-top: 0.9rem; text-align: center; }
.sketch h3 { font-family: var(--hand); font-size: 1.7rem; font-weight: 400; }
.sketch figcaption p { margin-top: 0.3rem; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.site-footer { padding-block: 2rem; border-top: 1px dashed var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { font-family: var(--hand); font-size: 1.5rem; text-decoration: none; }
.site-footer p, .site-footer small { color: var(--muted); font-size: 0.75rem; }

@media (min-width: 1500px) {
  .hero { padding-block: 6rem; }
}

@media (max-width: 1000px) {
  .container { width: calc(100% - 4rem); }
  .hero-grid { gap: 1.5rem; }
  .brand span { font-size: 1.35rem; }
  nav { gap: 1.3rem; }
  .game-grid { gap: 2.5rem; }
  .game-logo { max-height: 160px; }
  .stage-caption { font-size: 1.15rem; }
  .studio-grid { gap: 3rem; }
  .sketchbook-grid { gap: 0.9rem; }
  .sketch { padding: 0.7rem 0.7rem 1rem; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 3rem); }
  .section-space { padding-block: 4rem; }
  .header-inner { gap: 0.2rem; flex-direction: column; padding-block: 0.8rem; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 1.5rem; }
  nav { gap: 1.6rem; }
  nav a { font-size: 0.78rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero .eyebrow { justify-content: center; font-size: 0.65rem; }
  h1 { font-size: clamp(2.5rem, 11vw, 4.75rem); }
  .hero .intro { margin-inline: auto; }
  .hero-art { width: min(370px, 85%); margin-inline: auto; }
  .logo-note { margin-top: 0.9rem; font-size: 1.3rem; }
  .spark-one { top: -0.5rem; }
  .section-topline { margin-bottom: 2rem; }
  .section-topline .eyebrow { max-width: 9rem; }
  .game-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .game-art { width: min(480px, 100%); margin-inline: auto; }
  .stage-caption { font-size: 1.3rem; }
  .game-copy { max-width: 34rem; margin-inline: auto; }
  .game-copy h2 { max-width: 9em; }
  .studio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio-section .eyebrow { margin-bottom: 1rem; }
  .sketchbook-section { padding-top: 0.5rem; }
  .sketchbook-heading { display: block; margin-bottom: 2rem; }
  .sketchbook-heading > p { max-width: none; margin-top: 1rem; }
  .sketchbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .footer-inner { flex-direction: column; gap: 0.35rem; text-align: center; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 2rem); }
  .hero .eyebrow { letter-spacing: 0.1em; }
  nav { gap: 1.2rem; }
  .status { padding-inline: 0.65rem; font-size: 0.68rem; }
  .game-art-stage { padding-inline: 1rem; }
  .character-card span { font-size: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
