:root {
  --bg: #f4ede3;
  --bg-deep: #e8dfd2;
  --card: #fffbf6;
  --ink: #2c241c;
  --muted: #5e5146;
  --line: #e3d5c4;
  --accent: #9a4030;
  --accent-dark: #6e3426;
  --badge-bg: #f6e3da;
  --badge-ink: #6e3426;
  --shadow: 0 16px 40px rgba(74, 42, 24, 0.08);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max: 68rem;
  --measure: 42rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 42% at 0% -8%, rgba(232, 196, 176, 0.55), transparent 60%),
    radial-gradient(ellipse 46% 36% at 100% 0%, rgba(214, 224, 206, 0.65), transparent 58%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p,
ul,
ol,
dl,
address {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: #e7c3b6;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-150%);
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  z-index: 20;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus,
.skip:focus-visible {
  transform: none;
  top: 0.75rem;
  color: #fff;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(var(--measure), calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:visited,
.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  flex: none;
}

.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.hero {
  text-align: center;
  padding: 2.75rem 0 1.75rem;
}

.hero-mark {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 1rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.tagline {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.35;
}

.games {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1rem;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.35rem;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.icon {
  width: 80px;
  height: 80px;
  max-width: none;
  border-radius: 22%;
  flex: none;
}

.game h2,
.kicker {
  margin: 0;
}

.game h2 {
  font-size: 1.7rem;
}

.kicker {
  color: var(--muted);
  font-size: 0.98rem;
}

.shot {
  width: min(100%, 240px);
  display: block;
  margin-inline: auto;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(74, 42, 24, 0.1);
}

.blurb {
  margin: 0;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  border-radius: 999px;
}

.more {
  margin: 0;
}

.page-head {
  padding: 2rem 0 0.25rem;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.back {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
}

.example {
  color: var(--muted);
}

.contact-mail {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
}

.policy h2,
.prose h2 {
  margin: 2.15rem 0 0.7rem;
  font-size: 1.4rem;
}

.policy h3,
.prose h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.12rem;
}

.policy ul,
.prose ul,
.toc ol {
  padding-left: 1.25rem;
}

.policy li,
.prose li,
.toc li {
  margin: 0.35rem 0;
}

.policy li::marker,
.prose li::marker,
.toc li::marker {
  color: var(--accent);
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1rem 0.95rem 0.4rem;
}

.toc ol {
  margin: 0;
}

.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem 0.35rem;
  margin: 0 0 0.85rem;
}

.fact h3 {
  margin: 0 0 0.35rem;
}

.fact p {
  margin-bottom: 0.35rem;
}

.fact dl {
  margin: 0.35rem 0 0.7rem;
}

.fact dt {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
}

.fact dd {
  margin: 0 0 0.55rem;
}

address {
  font-style: normal;
}

.site-footer {
  margin-top: 1rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 1.25rem 0 1.5rem;
  min-height: 0;
}

.site-footer p {
  margin: 0.35rem 0;
  white-space: nowrap;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
}

h2,
h3,
.fact,
.game {
  scroll-margin-top: 5rem;
}

@media (min-width: 800px) {
  .wrap {
    width: min(var(--max), calc(100% - 4rem));
  }

  .wrap.narrow {
    width: min(var(--measure), calc(100% - 4rem));
  }

  .hero {
    padding: 4.5rem 0 2.75rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .games {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .game,
  .fact,
  .toc,
  .badge {
    border: 1px solid CanvasText;
  }
}

@media print {
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header {
    position: static;
  }

  .game,
  .fact,
  .toc,
  .site-footer {
    box-shadow: none;
  }

  a {
    color: #000;
  }
}
