:root {
  --cream: #fff7df;
  --cream-deep: #f6e5be;
  --paper: #fffcf2;
  --orange: #c9562b;
  --orange-dark: #8f341c;
  --brown: #63351f;
  --ink: #2b160f;
  --muted: #6c5144;
  --gold: #f0b94a;
  --green: #476b46;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --radius: 14px;
  --shell: min(1120px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(99, 53, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 53, 31, 0.045) 1px, transparent 1px),
    var(--cream);
  background-size: 24px 24px;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a {
  color: var(--orange-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--orange);
}

a:focus-visible,
.button:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: var(--border);
  background: rgba(255, 247, 223, 0.96);
}

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

.header-inner {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img,
.pixel-sprite {
  image-rendering: pixelated;
}

.brand img {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

nav a {
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--orange-dark);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.42em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(290px, 0.94fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
  min-height: 680px;
  padding-block: clamp(70px, 10vw, 118px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.65rem, 6vw, 5.5rem);
  white-space: nowrap;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tagline {
  margin: 0 0 24px;
  color: var(--orange-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}

.hero-description {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: var(--border);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.button-disabled {
  color: var(--paper);
  background: var(--orange-dark);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: not-allowed;
  opacity: 0.88;
}

.hero-art {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
  padding: clamp(14px, 2.5vw, 24px);
  border: var(--border);
  border-radius: 24px;
  background: var(--gold);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2deg);
}

.hero-art::before {
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(43, 22, 15, 0.36);
  border-radius: 15px;
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.section {
  margin-bottom: clamp(80px, 11vw, 132px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.feature-card,
.content-card,
.contact-card {
  position: relative;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 310px;
  padding: 28px;
}

.feature-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 28px;
}

.feature-icon .pixel-sprite {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.feature-card p:last-child,
.mascot-panel p:last-child,
.content-card p,
.page-intro {
  color: var(--muted);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 22px;
  margin: 0;
  color: var(--cream-deep);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.mascot-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  padding: clamp(32px, 6vw, 64px);
  border: var(--border);
  border-radius: 22px;
  background: var(--cream-deep);
  box-shadow: 8px 8px 0 var(--orange-dark);
}

.mascot-panel > div:last-child {
  max-width: 620px;
}

.mascot-panel p:last-child {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.mascot-stage {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: var(--border);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.mascot-frame {
  position: absolute;
  width: 128px;
  height: 128px;
}

.mascot-frame-primary {
  animation: bongo-frame-one 4.8s steps(1, end) infinite;
}

.mascot-frame-secondary {
  opacity: 0;
  visibility: hidden;
  animation: bongo-frame-two 4.8s steps(1, end) infinite;
}

@keyframes bongo-frame-one {
  0%,
  69%,
  90%,
  100% {
    opacity: 1;
    visibility: visible;
  }

  70%,
  89% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes bongo-frame-two {
  0%,
  69%,
  90%,
  100% {
    opacity: 0;
    visibility: hidden;
  }

  70%,
  89% {
    opacity: 1;
    visibility: visible;
  }
}

.privacy-callout {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(280px, 1.25fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(30px, 5vw, 54px);
  color: var(--paper);
  border: var(--border);
  border-radius: 22px;
  background: var(--brown);
  box-shadow: 8px 8px 0 var(--ink);
}

.privacy-callout .eyebrow {
  color: #ffd97f;
}

.privacy-callout h2 {
  margin-bottom: 14px;
}

.privacy-summary {
  margin: 0;
  color: #fbe8bd;
  font-size: 0.94rem;
}

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

.check-list li {
  position: relative;
  padding-left: 27px;
}

.check-list li::before {
  position: absolute;
  top: 0.06em;
  left: 0;
  color: var(--gold);
  content: "✓";
  font-weight: 900;
}

.text-link {
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.text-link:hover {
  color: #ffd97f;
}

.site-footer {
  border-top: var(--border);
  background: var(--ink);
}

.footer-inner {
  min-height: 112px;
  color: var(--cream);
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--cream);
}

.footer-inner a:hover {
  color: #ffd97f;
}

.document-layout {
  max-width: 880px;
  padding-block: clamp(64px, 10vw, 112px);
}

.page-header {
  margin-bottom: 56px;
  padding-bottom: 42px;
  border-bottom: var(--border);
}

.page-header h1 {
  max-width: 800px;
  font-size: clamp(2.55rem, 7vw, 5rem);
}

.page-intro {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.updated {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-sections {
  display: grid;
  gap: 54px;
}

.policy-sections section {
  scroll-margin-top: 30px;
}

.policy-sections h2,
.content-card h2,
.project-support h2 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.policy-sections h2 {
  padding-left: 16px;
  border-left: 7px solid var(--orange);
}

.policy-sections p,
.policy-sections li,
.content-card li,
.project-support li {
  color: #4f3b32;
}

.policy-sections ul,
.content-card ul {
  padding-left: 1.3rem;
}

.policy-sections li + li,
.content-card li + li {
  margin-top: 7px;
}

code {
  padding: 0.1em 0.34em;
  color: var(--ink);
  border: 1px solid #c5a77c;
  border-radius: 4px;
  background: var(--cream-deep);
  font-size: 0.9em;
}

.link-list a {
  overflow-wrap: anywhere;
}

.selectable-email {
  user-select: all;
}

.contact-card {
  max-width: 620px;
  margin-top: 30px;
  padding: 26px;
}

.contact-card p {
  margin-block: 0;
}

.contact-label {
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.email-display {
  margin-block: 6px !important;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.support-layout {
  max-width: 980px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 78px;
}

.content-card {
  padding: clamp(26px, 4vw, 38px);
}

.warning-card {
  background: #fff2d6;
  box-shadow: 6px 6px 0 var(--orange-dark);
}

.project-support {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 7vw, 72px);
  padding: clamp(30px, 5vw, 50px);
  border: var(--border);
  border-radius: 20px;
  background: var(--cream-deep);
  box-shadow: var(--shadow);
}

.project-support p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.project-support .check-list {
  align-content: center;
}

.project-support .check-list li::before {
  color: var(--orange-dark);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    width: min(74vw, 420px);
    justify-self: center;
    grid-row: 1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .privacy-callout,
  .project-support {
    grid-template-columns: 1fr;
  }

  .privacy-callout .text-link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 28px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 18px;
  }

  .header-inner nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header-inner nav a {
    font-size: 0.7rem;
  }

  .hero {
    gap: 46px;
    padding-block: 52px 82px;
  }

  .hero-art {
    width: min(78vw, 330px);
    box-shadow: 7px 7px 0 var(--ink);
  }

  .hero-description {
    font-size: 1rem;
  }

  .feature-card {
    padding: 24px;
  }

  .mascot-panel {
    grid-template-columns: 1fr;
  }

  .mascot-stage {
    width: 154px;
    height: 154px;
  }

  .mascot-frame {
    width: 108px;
    height: 108px;
  }

  .privacy-callout {
    padding: 28px 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-block: 30px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

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

  h1 {
    font-size: 2.45rem;
  }

  .button {
    width: 100%;
    padding-inline: 12px;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mascot-frame-primary {
    animation: none;
  }

  .mascot-frame-secondary {
    display: none;
  }
}
