:root {
  color-scheme: light;
  --paper: #f8f5eb;
  --label: #fffcf5;
  --pine: #173f34;
  --ink: #283e34;
  --muted: #536459;
  --rule: #d7d6c5;
  --page-width: 78rem;
  --page-gutter: clamp(1rem, 4.5vw, 4.5rem);
  --round: Nunito, ui-rounded, "Avenir Next", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.04rem/1.65 "Avenir Next", system-ui, sans-serif;
}
header, main, footer {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-width));
  margin-inline: auto;
}
a { color: var(--pine); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible, select:focus-visible { outline: 3px solid #9c541d; outline-offset: 4px; }
[hidden] { display: none !important; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  padding-block: clamp(.85rem, 2.2vw, 1.65rem);
  border-bottom: 1px solid var(--rule);
}
header > a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 750 clamp(1rem, 2vw, 1.25rem)/1.2 var(--round);
  letter-spacing: -.035em;
  text-decoration: none;
}
header > a::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  background: #184a3b url("pack-send-icon.webp") center / cover;
}
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
header nav { gap: .25rem clamp(.8rem, 2.6vw, 2.3rem); }
header nav a, .languages a { display: inline-block; text-decoration: none; }
header nav a { padding-block: .4rem; font-size: .94rem; font-weight: 650; }
header nav a:hover, header nav a[aria-current="page"] { text-decoration: underline; }
main { padding-block: 1.25rem clamp(2.2rem, 5vw, 4.25rem); }
.languages { gap: .2rem .4rem; line-height: 1.3; font-size: .85rem; }
.languages a { border-radius: .5rem; padding: .45rem .68rem; color: #516257; }
.languages a:hover { color: var(--pine); text-decoration: underline; }
.languages a[aria-current] { background: #e1e9d9; color: var(--pine); font-weight: 750; }
h1, h2, h3 { margin: 0 0 .8em; color: var(--pine); font-family: var(--round); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
.eyebrow { margin: .8rem 0; font-size: .79rem; font-weight: 750; letter-spacing: .09em; }
.muted, footer { color: var(--muted); font-size: .92rem; }

/* Pair each workshop image with the game capture from the same language. */
article:has(> .hero-media) {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.13fr);
  grid-template-rows: auto auto;
  column-gap: clamp(2rem, 4.7vw, 4.6rem);
  margin-block: clamp(1.7rem, 4vw, 3.7rem) .6rem;
  align-content: center;
}
article:has(> .hero-media) > h1 {
  grid-area: 1 / 1;
  align-self: end;
  margin: 0 0 .42em;
  font-size: clamp(3.25rem, 6vw, 5.7rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-media {
  position: relative;
  grid-area: 1 / 2 / 3;
  min-height: clamp(24rem, 39vw, 33rem);
  overflow: hidden;
  isolation: isolate;
  background: #b88b59;
  border-radius: 1.2rem;
}
.hero {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 41% center;
}
.game-screen {
  position: absolute;
  right: clamp(.9rem, 2.5vw, 2.2rem);
  bottom: clamp(.9rem, 2.5vw, 2rem);
  width: clamp(7.3rem, 13.4vw, 12.5rem);
  height: auto;
  border: .27rem solid #233a32;
  border-radius: 1.02rem;
  box-shadow: 0 .7rem 1.8rem #291d1566;
  background: #fff6e7;
}
.hero-media + .card { grid-area: 2 / 1; align-self: start; max-width: 56ch; }
.hero-media + .card h2 { margin-bottom: .55em; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.hero-media + .card p { color: var(--muted); }
.hero-media + .card p:first-of-type { color: var(--ink); font-size: 1.12rem; line-height: 1.55; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.35rem; margin-top: 1.45rem; }
.button {
  display: inline-block;
  max-width: 100%;
  border-radius: .7rem;
  padding: .85rem 1.4rem;
  background: var(--pine);
  color: #fffaf0;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { background: #245844; }
.support-link { padding-block: .5rem; font-weight: 650; font-size: .95rem; }

/* Limit reading width for longer support and policy documents. */
main:has(> article.card) { max-width: 54rem; }
main > .card {
  padding: clamp(1.15rem, 4.3vw, 3rem);
  margin-top: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 1.05rem;
  background: var(--label);
  overflow-wrap: anywhere;
}
main > .card > :last-child, section > :last-child { margin-bottom: 0; }
main > .card .button { margin-bottom: 1rem; }
main > .card h1 { margin-bottom: .55em; }
main > .card h2 { margin-top: .25em; }
section + section { border-top: 1px solid var(--rule); margin-top: 1.45rem; padding-top: 1.45rem; }
footer { border-top: 1px solid var(--rule); padding-block: 1.35rem 2rem; overflow-wrap: anywhere; }
ul { padding-left: 1.4rem; }

@media (max-width: 52rem) {
  article:has(> .hero-media) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  article:has(> .hero-media) > h1, .hero-media, .hero-media + .card { grid-area: auto; }
  article:has(> .hero-media) > h1 { max-width: 18ch; margin-bottom: .42em; font-size: clamp(2.75rem, 8vw, 4.5rem); }
  .hero-media { min-height: 0; aspect-ratio: 1.95; }
  .game-screen { width: auto; height: 86%; right: 4%; bottom: 6%; }
  .hero-media + .card { margin-top: 1.5rem; }
}
@media (max-width: 32rem) {
  header { column-gap: 1rem; }
  header > a::before { width: 2rem; height: 2rem; border-radius: .55rem; }
  header nav { gap: .2rem .85rem; }
  header nav a { font-size: .86rem; }
  main { padding-top: .8rem; }
  .languages { gap: .05rem .1rem; }
  .languages a { padding: .4rem .48rem; }
  article:has(> .hero-media) { margin-top: 1.3rem; }
  .hero-media { aspect-ratio: 1.5; border-radius: .8rem; }
  .game-screen { border-width: .16rem; border-radius: .6rem; }
  .actions { margin-top: 1rem; }
}
