/*
 * The public website: a front door, plus the two documents Discord asks for
 * before it will verify an app.
 *
 * Same box as the game itself: blue felt table, cream cardboard, a yellow edge
 * on everything that matters. No web fonts, no trackers, no frameworks.
 */

:root {
  --table-deep: #0b2038;
  --table: #123c63;
  --card: #fff6e3;
  --card-edge: #d9c4a0;
  --ink: #16233a;
  --ink-soft: #5f7191;
  --yellow: #ffc531;
  --yellow-dk: #c08c00;
  --blue: #2e86ff;
  --blue-dk: #17559f;
  --green: #34c77b;
  --cream: #fff6e3;
  --cream-dim: rgba(255, 246, 227, 0.66);
  --line: rgba(255, 246, 227, 0.16);

  --font-display: ui-rounded, 'SF Pro Rounded', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--table-deep);
  background-image:
    radial-gradient(120% 80% at 50% -10%, #1b5288 0%, rgba(27, 82, 136, 0) 60%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0 2px,
      rgba(0, 0, 0, 0) 2px 4px
    );
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

/* Language switching. Both languages are in the page; one is hidden. */
html[data-lang='nl'] [lang='en'],
html[data-lang='en'] [lang='nl'] {
  display: none;
}

a {
  color: var(--yellow);
  text-underline-offset: 3px;
}

.wrap {
  width: min(960px, 100% - 40px);
  margin: 0 auto;
}

.wrap.narrow {
  width: min(760px, 100% - 40px);
}

/* ------------------------------------------------------------------ header */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--cream);
  text-decoration: none;
}

.brand .pawn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: inset 0 -3px 0 var(--yellow-dk);
}

.langswitch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.langswitch button {
  border: 0;
  cursor: pointer;
  padding: 5px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.langswitch button[aria-pressed='true'] {
  background: var(--cream);
  color: var(--ink);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: 54px 0 40px;
  text-align: center;
}


h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}

.lead {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--cream-dim);
  font-size: clamp(17px, 2.2vw, 20px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

/* Screen printed cardboard: a hard bottom bevel that compresses when pressed. */
.btn.primary {
  background: var(--yellow);
  color: #3a2a00;
  box-shadow: 0 5px 0 var(--yellow-dk);
}

.btn.ghost {
  background: rgba(255, 246, 227, 0.09);
  color: var(--cream);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--yellow-dk);
}

.btn.ghost:active {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

/* On cardboard, cream on cream would disappear, so the ghost turns to ink. */
.card .btn.ghost {
  background: rgba(22, 35, 58, 0.08);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(22, 35, 58, 0.2);
}

.card .btn.ghost:active {
  box-shadow: 0 1px 0 rgba(22, 35, 58, 0.2);
}


/* ---------------------------------------------------------------- sections */

section {
  padding: 34px 0;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.4vw, 30px);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

h2::after {
  content: '';
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--yellow);
}

.section-lead {
  margin: 14px 0 22px;
  color: var(--cream-dim);
  max-width: 46em;
}

/*
 * A section without an intro line has its content sitting straight under the
 * yellow rule. Give it the same air the intro line would have left behind.
 */
h2 + .grid,
h2 + .steps,
h2 + .callout {
  margin-top: 22px;
}

/* Cream cardboard, cut edge along the bottom. */
.card {
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 0 var(--card-edge), 0 12px 26px rgba(0, 0, 0, 0.24);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 6px;
}

.card p {
  color: #33415c;
  font-size: 15.5px;
}

/*
 * Stacking only applies to cards laid out one under the other, never to grid
 * items: a margin inside a grid cell shifts that card down on its own and the
 * row loses its top edge.
 */
section > .card + .card {
  margin-top: 16px;
}

/*
 * Wide enough that four cards land two by two rather than three and a lonely
 * fourth. Below roughly 700px it drops to a single column by itself.
 */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* Numbered steps, each with a board square for a bullet. */
.steps {
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue-dk);
  font-family: var(--font-display);
  font-weight: 800;
}

.steps li:nth-child(even)::before {
  background: var(--yellow);
  color: #3a2a00;
  box-shadow: inset 0 -3px 0 var(--yellow-dk);
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
}

.steps span {
  color: var(--cream-dim);
}

.callout {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--cream-dim);
}

.callout strong {
  color: var(--cream);
}

/* ------------------------------------------------------------ the documents */

.paper {
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(26px, 5vw, 46px);
  margin: 22px 0 40px;
  box-shadow: 0 5px 0 var(--card-edge), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.paper h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0;
}

.paper h2 {
  font-size: 21px;
  margin: 30px 0 8px;
}

.paper h2::after {
  display: none;
}

.paper p,
.paper li {
  color: #2b3853;
  font-size: 16.5px;
}

.paper p {
  margin: 10px 0;
}

.paper ul {
  margin: 10px 0 10px 20px;
}

.paper li {
  margin: 6px 0;
}

.paper a {
  color: var(--blue-dk);
}

.paper .updated {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.paper .rule {
  height: 5px;
  width: 54px;
  border-radius: 3px;
  background: var(--yellow);
  margin: 16px 0 4px;
}

/* ------------------------------------------------------------------ footer */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 26px 0 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  color: var(--cream-dim);
  font-size: 15px;
}

.site-foot a {
  color: var(--cream);
}


@media (max-width: 560px) {
  .hero {
    padding: 34px 0 26px;
  }

  .cta .btn {
    width: 100%;
    text-align: center;
  }
}
