:root {
  color-scheme: light;
  --paper: #fbfaed;
  --ink: #163b35;
  --text: #334c45;
  --rule: #cdd9c6;
  --green: #0b5b43;
  --accent: #dfedaa;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #9c431c; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
p { color: var(--text); line-height: 1.65; }

.shell { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  background: white;
  padding: .75rem;
}
.skip:focus { transform: none; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-header { min-height: 5.5rem; }
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-block: 1.5rem 2rem;
  font-size: .95rem;
}
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.site-header nav a, .site-footer a { font-weight: 650; text-decoration-thickness: 1px; }
.site-header nav a:not(:hover), .site-footer a:not(:hover, [aria-current]) { text-decoration: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
}
.brand img { border-radius: .75rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 33rem;
  background: var(--accent);
  border: 1px solid #ccd995;
  border-radius: 2rem;
  overflow: hidden;
}
.hero-copy { align-self: center; padding: clamp(2rem, 6vw, 5rem) clamp(2rem, 4vw, 3.75rem); }
.hero h1 {
  font-size: clamp(3rem, 6.15vw, 5.7rem);
  font-weight: 880;
  line-height: .96;
  letter-spacing: -.08em;
  max-width: 9em;
}
.hero h1 span { color: var(--green); }
.hero p { max-width: 25rem; margin-block: 1.4rem 1.7rem; font-size: clamp(1rem, 2vw, 1.18rem); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: .65rem 1.2rem;
  border-radius: 999px;
  color: var(--paper);
  background: var(--green);
  text-decoration: none;
  font-weight: 750;
}
.button:hover { background: var(--ink); }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 1.7rem 1.5rem 1.7rem clamp(2rem, 9vw, 8rem);
  background:
    radial-gradient(ellipse at 28% 64%, #b8e6bc 0%, transparent 65%),
    linear-gradient(142deg, #72bc9e, #bcebd0);
}
.phone {
  width: min(100%, 14.2rem);
  height: auto;
  border: .39rem solid var(--ink);
  border-radius: 1.65rem;
  background: var(--ink);
  box-shadow: 0 1.3rem 2.65rem #133e3e55;
}
.mascot {
  position: absolute;
  left: clamp(.5rem, 3vw, 2.1rem);
  bottom: 1.25rem;
  width: clamp(7rem, 37%, 12.5rem);
  height: auto;
  filter: drop-shadow(0 .65rem 1.2rem #214b3940);
}

.instructions { scroll-margin-top: 1.25rem; padding: 3.5rem .5rem .8rem; }
.instructions h2 { font-size: clamp(1.9rem, 4.25vw, 3.1rem); letter-spacing: -.065em; line-height: 1.08; }
.moves { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 0; margin: 1.65rem 0 0; }
.moves li { border-top: 2px solid var(--rule); padding-top: .85rem; }
.moves h3 { font-size: 1.12rem; margin-bottom: .35rem; }

.legal-shell { margin-top: 1.5rem; }
.legal {
  width: min(100%, 48rem);
  margin-inline: auto;
  background: #fffef8;
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  padding: clamp(1.35rem, 5vw, 3.5rem);
}
.legal h1 { font-size: clamp(2.5rem, 7vw, 4rem); letter-spacing: -.07em; line-height: 1.05; }
.legal h2 { margin: 1.65rem 0 .45rem; font-size: 1.24rem; line-height: 1.3; }
.legal p + p { margin-top: .65rem; }
.legal .effective { margin: .7rem 0 1.45rem; font-size: .94rem; }
.legal code { overflow-wrap: anywhere; font-size: .9em; }
.legal a { overflow-wrap: anywhere; }

@media (max-width: 52rem) {
  .hero h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); }
  .hero-art { padding-left: clamp(2rem, 7vw, 5rem); }
  .mascot { width: 34%; left: .5rem; }
}

@media (max-width: 38rem) {
  .shell { width: calc(100% - 1.75rem); }
  .site-header { min-height: 4.6rem; gap: .5rem; }
  .site-header nav { gap: .55rem .85rem; font-size: .9rem; }
  .brand { font-size: 1.15rem; gap: .45rem; }
  .brand img { width: 36px; height: 36px; }
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 1.5rem; }
  .hero-copy { padding: 2.1rem 1.25rem 1.85rem; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero p { margin-block: 1rem 1.25rem; }
  .hero-art { padding: 1.15rem .8rem 1.1rem 3.8rem; }
  .phone { width: min(100%, 11rem); border-width: .3rem; border-radius: 1.3rem; }
  .mascot { width: min(35%, 8.5rem); left: 4.5%; bottom: .75rem; }
  .instructions { padding-top: 2.15rem; }
  .moves { grid-template-columns: 1fr; gap: 1rem; }
}

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