/*
  Static pages: game guides, the list of games, privacy and 404 (built by tools/build_site.mjs).
  Builds on the tokens and components of app.css.
*/

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 30;
  padding: 8px 14px;
  border: var(--bw) solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus {
  left: 12px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 750;
}
.topnav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}
.topnav a:hover {
  background: var(--paper-2);
}

.page-main {
  max-width: 960px;
  padding-block: 24px 64px;
  display: grid;
  gap: 22px;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}
.crumbs a {
  color: inherit;
  text-underline-offset: 3px;
}

.page-hero {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding-block: 6px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
.page-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-3deg);
}
.page-icon .ic {
  width: 34px;
  height: 34px;
}
.lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
}
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
/* Buttons here carry game names, which get long in German: let them wrap. */
.page-cta .btn,
.ready .btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
}

.page-section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.02em;
}
.page-section p {
  margin: 0;
  max-width: 72ch;
}

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  max-width: 72ch;
}
.steps li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.bullets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
  max-width: 72ch;
}

.extras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.extra {
  padding: 16px 18px;
  box-shadow: 4px 4px 0 var(--shadow);
  scroll-margin-top: 90px;
}
.extra h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.extra p {
  color: var(--ink-2);
}
.extra:target {
  background: color-mix(in srgb, var(--accent) 40%, var(--surface));
}

.ready {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--accent);
  color: var(--accent-ink);
}
.ready h2 {
  margin-bottom: 4px;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.game-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.game-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}
.game-card h2,
.game-card h3 {
  margin: 0;
  font-size: 20px;
}
.game-card a {
  color: inherit;
  text-decoration: none;
}
/* The whole card is the link. */
.game-card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.game-card a:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.game-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.game-card .chip {
  justify-self: start;
}
.game-cards.big .game-card h2 {
  font-size: 22px;
}
.game-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
}
.game-icon .ic {
  width: 24px;
  height: 24px;
}

.pick {
  display: grid;
  gap: 10px;
  margin: 0;
}
.pick div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 12px;
}
.pick dt {
  font-weight: 800;
}
.pick dd {
  margin: 0;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 10px;
}
.prose ul {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding-left: 1.2em;
  max-width: 72ch;
}
.prose a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
}

.not-found {
  padding-block: 24px;
}

@media (max-width: 600px) {
  .pick div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .steps li {
    grid-template-columns: 34px 1fr;
  }
  .topbar .btn-sm {
    padding-inline: 10px;
  }
}
