:root {
  color-scheme: dark;
  --background: #14140F;
  --text: #F7F4EE;
  --gold: #E8B23A;
  --surface: #1E1E17;
  --muted: #C6C2B8;
  --line: #393830;
  --radius: 2px;
  --serif: Georgia, "Times New Roman", serif;
  font: 100%/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
}

[hidden] { display: none; }

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--gold); }

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - clamp(2rem, 8vw, 8rem), 70rem);
  margin-inline: auto;
}

main { flex: 1; }

h1,
h2,
.tagline {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.75rem;
}

p { margin: 0 0 1rem; }

.home {
  display: grid;
  align-items: center;
}

.hero {
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.intro h1,
.wordmark {
  color: var(--gold);
  letter-spacing: 0.04em;
}

.intro h1 { font-size: clamp(2.15rem, 5.3vw, 4.25rem); }

.tagline {
  max-width: 22ch;
  margin: 0.85rem 0 1.75rem;
  font-size: clamp(1.65rem, 4vw, 3.25rem);
  text-wrap: balance;
}

.intro-copy {
  max-width: 47ch;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--background);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--background);
  text-decoration: underline;
}

.game-preview {
  position: relative;
  width: min(100%, 17.5rem);
  margin: 0;
  justify-self: center;
}

.game-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.game-preview figcaption {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  padding-inline: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-header {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font: 400 1.25rem var(--serif);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.page-heading { margin-block: clamp(2.5rem, 6vw, 5rem) 2rem; }

.page-heading p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.prose {
  max-width: 66ch;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.notice,
.standings {
  border-radius: var(--radius);
  background: var(--surface);
}

.notice { padding: 0.85rem 1rem; }

.standings {
  max-width: 52rem;
  margin-bottom: 3rem;
}

.status {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

.status:empty { display: none; }

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.65rem clamp(0.35rem, 2vw, 1.25rem);
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

th:first-child { width: 15%; }

td:nth-child(2) { overflow-wrap: anywhere; }

th:nth-child(3),
td:nth-child(3) {
  width: 17%;
  text-align: center;
}

th:last-child,
td:last-child {
  width: 25%;
  text-align: right;
  white-space: nowrap;
}

td { border-top: 1px solid var(--line); }

td:first-child { color: var(--muted); }

@media (max-width: 28rem) {
  table { font-size: 0.875rem; }

  th,
  td { padding-inline: 0.45rem; }

  th:first-child { width: 3.3rem; }

  th:nth-child(3) { width: 3.1rem; }

  th:last-child { width: 5.6rem; }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer [aria-current="page"] { color: var(--text); }

@media (min-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .game-preview { justify-self: end; }
}
