:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #202d2a;
  --muted: #56645f;
  --teal: #176754;
  --line: #d8ded6;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: var(--teal);
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid #a84420;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.6rem);
  letter-spacing: -0.055em;
  font-weight: 650;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  font-weight: 600;
}
h3 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.wrap {
  width: min(1152px, calc(100% - 80px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
}
nav {
  display: flex;
  gap: 30px;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
}
nav a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  font-size: 0.72rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 20px;
}
.intro {
  padding: 58px 0 40px;
}
.intro h1 span {
  color: var(--teal);
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 22px;
}
.section-heading h2 {
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-heading .eyebrow {
  margin: 0;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px #20352c0d;
}
.card-art {
  min-height: 224px;
  display: grid;
  place-items: center;
  position: relative;
  background: #e9eee5;
  border-bottom: 1px solid var(--line);
}
.rep-tiles .card-art,
.game-art.rep-tiles {
  background: #e8eee0;
}
.knotly .card-art,
.game-art.knotly {
  background: #f0e6e2;
}
.numbercracker .card-art {
  background: #e8ecec;
}
.card-art img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 8px 20px #25352c10;
}
.card-number {
  position: absolute;
  left: 20px;
  top: 15px;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.card-copy {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-copy h3 {
  margin-bottom: 12px;
}
.card-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.card-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--teal);
}
.card-link span {
  font-size: 1.25rem;
}
.number-art {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, monospace;
  font-size: 3.2rem;
  letter-spacing: -0.13em;
  font-weight: 550;
  color: #2d5253;
  padding-right: 0.13em;
}
.number-art span {
  transform: translateY(-12px);
  display: inline-block;
  color: #557679;
}
.support {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  padding: 44px 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.support .eyebrow {
  margin-bottom: 12px;
}
.support p {
  max-width: 540px;
  color: var(--muted);
}
.text-link {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  font-size: 0.85rem;
  text-decoration: none;
}
.game-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0 64px;
}
.game-hero-text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}
.release-status {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  background: #edf2e9;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 16px;
}
.release-info {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 24px;
}
.release-info .release-status {
  margin: 0 0 10px;
}
.game-hero h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
}
.game-hero .eyebrow {
  color: var(--teal);
}
.game-art {
  padding: 40px;
  border-radius: 24px;
  display: grid;
  place-items: center;
}
.game-art img {
  border-radius: 24px;
  max-width: 260px;
  width: 100%;
}
.former-name,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.button {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 6px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}
.button:hover {
  background: #115341;
}
.reading {
  max-width: 640px;
}
.section-block {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.gameplay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.gameplay figure {
  margin: 0;
}
.gameplay img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}
figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 12px;
}
.policy-links h2,
.game-support h2 {
  font-size: 1.4rem;
}
.policy-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 28px;
}
.game-support a {
  overflow-wrap: anywhere;
}
.notice {
  padding: 16px 20px;
  border-left: 3px solid #8e6c33;
  background: #eee8d9;
  max-width: 700px;
}
.legal {
  max-width: 720px;
  padding: 36px 0 60px;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 32px;
}
.legal a {
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .game-grid {
    gap: 14px;
  }
  .card-copy {
    padding: 18px;
  }
  .card-art {
    min-height: 180px;
  }
  .card-art img {
    width: 120px;
    height: 120px;
  }
  .game-hero,
  .gameplay {
    gap: 28px;
  }
  .game-art {
    padding: 24px;
  }
}
@media (max-width: 620px) {
  .site-header {
    min-height: 82px;
    gap: 12px;
  }
  .brand {
    font-size: 1.05rem;
    gap: 8px;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  nav {
    gap: 16px;
  }
  nav a {
    font-size: 0.85rem;
  }
  .intro {
    padding: 38px 0 28px;
  }
  .section-heading > .eyebrow {
    display: none;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-art {
    min-height: 216px;
  }
  .card-art img {
    width: 148px;
    height: 148px;
  }
  .card-copy {
    padding: 24px;
  }
  .support,
  .game-hero,
  .gameplay {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .support {
    margin-top: 40px;
    padding-block: 32px;
  }
  .support h2 {
    margin-bottom: 0;
  }
  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
  .game-hero {
    padding-block: 28px 36px;
  }
  .game-art {
    margin-top: 16px;
  }
  .game-art img {
    max-width: 200px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .game-card {
    transition: none;
  }
  .game-card:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .site-header {
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 4px 12px;
  }
  .game-hero h1 {
    font-size: 2.2rem;
  }
}
