@font-face {
  font-family: "Luckiest Guy";
  src: url("/fonts/LuckiestGuy-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("/fonts/Andika-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("/fonts/Andika-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fff4d9;
  --parchment: #f4e4bc;
  --ink: #3b2414;
  --ink-soft: #6b4a32;
  --ocean: #6aaec4;
  --shallows: #a8dbe3;
  --deep: #2f6f8a;
  --deep-sea: #1b4a5e;
  --coral: #d4513a;
  --coral-dark: #b23c27;
  --teal: #2b8c9e;
  --teal-dark: #1d6877;
  --gold: #f9b21b;
  --plum: #7d5ba6;
  --white: #fffdf6;

  --display: "Luckiest Guy", "Arial Black", system-ui, sans-serif;
  --body: "Andika", "Trebuchet MS", system-ui, sans-serif;

  --radius: 18px;
  --outline: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--coral-dark);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
}
h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}
h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}
p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: var(--outline);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  --icon: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: var(--icon);
  height: var(--icon);
  border-radius: 12px;
  border: 2px solid var(--ink);
}
.brand-name {
  font-size: calc(var(--icon) / 0.905);
  line-height: 1;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}
@media (max-width: 980px) {
  .brand {
    --icon: 64px;
  }
  .brand img {
    border-radius: 16px;
  }
  /* Two lines take 1.655em (0.95em line-height plus a 0.705em cap height); this gives them
     the same share of the icon's height as the one-line title's capitals. */
  .brand-name {
    font-size: calc(var(--icon) / 2.125);
    line-height: 0.95;
  }
  .brand-name span {
    display: block;
  }
}
.brand:hover {
  color: var(--coral);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--parchment);
  color: var(--ink);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
  background: var(--coral);
  border: var(--outline);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover {
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}
.badge.soon {
  background: var(--shallows);
}

/* Sea sections */

.sea {
  position: relative;
  background-color: var(--ocean);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Cg fill='none' stroke='%232f6f8a' stroke-opacity='.45' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 30c8-8 16-8 24 0s16 8 24 0'/%3E%3Cpath d='M130 90c8-8 16-8 24 0s16 8 24 0'/%3E%3C/g%3E%3C/svg%3E");
}
.wave-edge {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -1px;
  color: var(--paper);
}
.wave-edge path {
  fill: currentColor;
  stroke: var(--ink);
  stroke-width: 3;
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 24px 40px;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: 0;
}
.hero {
  overflow: hidden;
}
.hero .wave-edge {
  position: relative;
  z-index: 1;
  margin-top: -48px;
}
.hero-copy {
  background: var(--paper);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  margin-bottom: 64px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  color: var(--coral);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
.hero-copy .lead {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.hero-art {
  align-self: end;
  margin-bottom: -24px;
}
.hero-art img {
  width: min(100%, 470px);
  margin: 0 auto;
  transform-origin: 50% 100%;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

/* Sections */

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-head p {
  font-size: 1.2rem;
}
.eyebrow {
  display: block;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.card {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Games */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
}
.game-card {
  display: flex;
  flex-direction: column;
}
.game-card .art {
  aspect-ratio: 1024 / 500;
  background: var(--shallows);
  border-bottom: var(--outline);
}
.game-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card .art.placeholder {
  display: grid;
  place-items: end center;
  background: var(--plum);
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 12%, transparent 13%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0 18%, transparent 19%);
}
.game-card .art.placeholder img {
  width: auto;
  height: 90%;
  object-fit: contain;
}
.game-card .body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.game-card .body .badge {
  align-self: flex-start;
  margin-bottom: 8px;
}
.game-card .body .button {
  align-self: flex-start;
  margin-top: auto;
}

/* Promises */

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.promise {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 22px;
}
.promise .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--gold);
}
.promise:nth-child(2) .icon {
  background: var(--shallows);
}
.promise:nth-child(3) .icon {
  background: #f2a99b;
}
.promise:nth-child(4) .icon {
  background: #c9e3a6;
}
.promise .icon svg {
  width: 28px;
  height: 28px;
}
.promise h3 {
  margin-bottom: 0.35em;
}
.promise p {
  margin: 0;
}

.parchment {
  background: var(--parchment);
  border-top: var(--outline);
  border-bottom: var(--outline);
}

/* Meet Emmy */

.meet {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
}
.portrait {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 220px;
  aspect-ratio: 1;
  padding: 0 14px;
  border: var(--outline);
  border-radius: 50%;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portrait img {
  width: 100%;
}
.speech {
  position: relative;
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.speech::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 40%;
  width: 26px;
  height: 26px;
  background: var(--white);
  border-left: var(--outline);
  border-bottom: var(--outline);
  transform: rotate(45deg);
}
.speech p:last-child {
  margin-bottom: 0;
}

/* Game page */

.game-hero {
  padding-bottom: 0;
}
.game-hero .wrap {
  padding-top: clamp(28px, 5vw, 56px);
}
.game-hero-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.game-hero-head img {
  width: 96px;
  height: 96px;
  border: var(--outline);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--ink);
}
.game-hero-head h1 {
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  margin: 0;
}
.game-hero-head p {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--ink);
}
.feature-graphic {
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--shallows);
}
.feature-graphic img {
  width: 100%;
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.split aside {
  position: sticky;
  top: 96px;
}

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mode {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: var(--outline);
  border-radius: 14px;
  padding: 16px;
}
.mode .num {
  flex: none;
  min-width: 56px;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  padding: 10px 6px 6px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--gold);
}
.mode h3 {
  font-size: 1.25rem;
  margin: 2px 0 4px;
}
.mode p {
  margin: 0;
  font-size: 1rem;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--gold)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233b2414' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.info-box {
  padding: 24px;
}
.info-box h2 {
  font-size: 1.6rem;
}
.info-box dl {
  margin: 0;
}
.info-box dt {
  font-weight: 700;
}
.info-box dd {
  margin: 0 0 12px;
}

/* Prose (policies, support) */

.prose {
  max-width: var(--measure);
}
.prose h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-top: 1.6em;
}
.prose h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.4em;
}
.prose ul {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 1rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 2px solid var(--ink);
}
.prose th {
  background: var(--parchment);
}
.table-scroll {
  overflow-x: auto;
}
.page-head {
  padding: clamp(36px, 6vw, 64px) 0 8px;
}
.page-head .meta {
  color: var(--ink-soft);
}
.summary {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 8px 0 28px;
}
.summary h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.summary ul {
  margin: 0;
}
.policy-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.policy-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: var(--outline);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.policy-list a:hover {
  background: var(--parchment);
}
.policy-list img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--ink);
}

details {
  background: var(--white);
  border: var(--outline);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details[open] summary {
  margin-bottom: 8px;
}
details p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  position: relative;
  background: var(--deep-sea);
  color: var(--shallows);
  padding: 64px 0 36px;
  font-size: 1rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26'%3E%3Cpath d='M0 13C30 1 90 1 120 13S210 25 240 13V0H0Z' fill='%23fff4d9'/%3E%3Cpath d='M0 13C30 1 90 1 120 13S210 25 240 13' fill='none' stroke='%233b2414' stroke-width='3'/%3E%3C/svg%3E")
    repeat-x;
}
.site-footer a {
  color: var(--paper);
}
.site-footer a:hover {
  color: var(--gold);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer .brand-line {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 4px;
}
.site-footer p {
  margin: 0;
}

/* 404 */

.lost {
  text-align: center;
  padding: clamp(48px, 10vw, 120px) 0;
}
.lost .portrait {
  margin: 0 auto 28px;
}

@media (max-width: 860px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-art img {
    width: min(78%, 360px);
  }
  .split aside {
    position: static;
  }
  .meet {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .meet .portrait {
    width: 180px;
  }
  .speech::before {
    left: 50%;
    top: -16px;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.0625rem;
  }
  .site-header {
    position: static;
  }
  .site-header .wrap {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-art img {
    animation: none;
  }
  .button {
    transition: none;
  }
}
