@font-face {
  font-family: Fredoka;
  src: url("./assets/fredoka-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffaf0;
  --cream: #fff5e2;
  --ink: #203d36;
  --muted: #4b5f55;
  --green: #125a49;
  --sand: #eddbbb;
  --chili: #a8222e;
  --gold: #ffd13e;
  --section-space: clamp(2.8rem, 5.8vw, 5rem);
  --display-font: Fredoka, ui-rounded, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 system-ui, -apple-system, sans-serif;
}

h1, h2, h3 {
  margin: 0;
  font: 600 1em/1.02 var(--display-font);
}

p, figure { margin: 0; }

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

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--chili); outline-offset: 5px; }

.skip-link {
  position: absolute;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  border-radius: .6rem;
  background: var(--paper);
}

.skip-link:focus { transform: none; }

.wrap {
  width: min(100% - 2.75rem, 75rem);
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.5rem;
}

.header-inner { min-height: 5rem; padding-block: .6rem; }
.brand { display: block; flex: 0 1 11rem; }
.brand img { width: 11rem; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.55rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 650;
  text-underline-offset: .24em;
}

.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.hero {
  padding-block: clamp(1.7rem, 4.1vw, 3.75rem) var(--section-space);
  background:
    radial-gradient(ellipse at 78% 40%, #ffddb0 0%, transparent 61%),
    var(--cream);
}

.hero-inner, .tour-inner {
  display: grid;
  align-items: center;
  gap: clamp(1.9rem, 4vw, 3.8rem);
}

.hero-inner { grid-template-columns: .94fr 1.06fr; }

.hero h1 {
  font-size: clamp(2.7rem, 5.05vw, 4.95rem);
  letter-spacing: -.035em;
  color: var(--green);
}

.hero h1 em { color: var(--chili); font-style: normal; }

.hero-copy > p:not(.store-note) {
  max-width: 32rem;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  color: var(--muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.65rem;
}

.store {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .58rem;
  min-height: 4.15rem;
  padding: .52rem .88rem;
  border: 2px solid var(--green);
  border-radius: 1rem;
  box-shadow: 0 4px 0 var(--green);
  text-decoration: none;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

a.store:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green); }
a.store:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green); }
.store strong { display: block; font: 600 1.24rem/1.08 var(--display-font); }
.store small { display: block; margin-top: .2rem; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.store-google { background: var(--gold); }
.store-google:hover { background: #ffdc68; }
.store-apple { background: var(--paper); border-color: var(--muted); box-shadow: none; }

.play-icon {
  width: .92rem;
  height: 1.05rem;
  background: var(--green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.out { align-self: flex-start; margin-left: .08rem; font-size: .88rem; line-height: 1.2; }
.store-note { margin-top: .9rem; font-size: .84rem; color: var(--muted); }

.hero-art, .tour-art {
  overflow: hidden;
  border: 6px solid #fffaf0;
  border-radius: clamp(1.2rem, 3vw, 2.1rem);
}

.hero-art { box-shadow: 0 9px 0 var(--green), 0 24px 44px #6b402a2b; }
.hero-art img, .tour-art img { width: 100%; }

.gameplay {
  position: relative;
  padding-block: calc(var(--section-space) + .4rem) var(--section-space);
}

.gameplay::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: .65rem;
  background: repeating-linear-gradient(90deg, #e85d47 0 1.65rem, #f6dec0 1.65rem 3.3rem);
}

h2 { font-size: clamp(2.05rem, 4.25vw, 3.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.55rem; color: var(--green); }

.gameplay-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  padding: 0;
  margin: 1.55rem 0 0;
  list-style: none;
}

.gameplay-steps li {
  display: grid;
  grid-template-columns: clamp(3.5rem, 7vw, 6.2rem) 1fr;
  align-items: center;
  gap: .65rem;
  padding: clamp(.85rem, 1.8vw, 1.35rem);
  border: 1px solid var(--sand);
  border-radius: 1.3rem;
  background: #fff6e8;
  box-shadow: 0 4px 0 #ebd8b7;
}

.gameplay-steps img { object-fit: contain; aspect-ratio: 1; border-radius: .78rem; }
.gameplay-steps p { margin-top: .3rem; color: var(--muted); font-size: .94rem; }

.tour {
  padding-block: var(--section-space);
  border-block: 1px solid #caddcd;
  background: #eaf5e7;
}

.tour-inner {
  grid-template-areas: "art copy";
  grid-template-columns: 1.16fr .84fr;
}

.tour-copy { grid-area: copy; }
.tour-copy p { margin-block: .9rem 1.1rem; color: var(--muted); }
.tour-copy ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .44rem .8rem;
  padding-inline-start: 1.4rem;
  margin: 0;
  font-weight: 650;
  font-size: .93rem;
}
.tour-copy li::marker { color: var(--green); font-variant-numeric: tabular-nums; }
.tour-art { grid-area: art; box-shadow: 0 7px 0 #478369, 0 16px 30px #2c584022; }

.site-footer { background: var(--green); color: var(--paper); }
.footer-inner { min-height: 5.2rem; padding-block: 1rem; }
.footer-inner a:focus-visible { outline-color: var(--gold); }

@media (max-width: 800px) {
  .hero-inner, .tour-inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.5rem, 8.7vw, 4.15rem); }
  .hero-copy > p:not(.store-note) { margin-top: .9rem; }
  .stores { margin-top: 1.2rem; }
  .hero-art { max-width: 39rem; }
  .gameplay-steps { grid-template-columns: minmax(0, 1fr); }
  .gameplay-steps li { grid-template-columns: 4.4rem 1fr; }
  .tour-inner { grid-template-areas: "copy" "art"; }
}

@media (max-width: 480px) {
  .header-inner { min-height: 4.15rem; }
  .brand { flex-basis: 8rem; }
  .brand img { width: 8rem; }
  nav { gap: .25rem .85rem; }
  nav a { font-size: .84rem; }
  .stores { gap: .65rem; }
  .store { padding-inline: .67rem; }
  .store strong { font-size: 1.08rem; }
  .play-icon { width: .72rem; height: .8rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
}
