:root {
  --bg: #0e1116;
  --bg-elevated: #171b22;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --line: #2a313c;
  --accent: #7eb6ff;
  --accent-strong: #c8e0ff;
  --felt: #2e7a27;
  --max: 52rem;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

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

.site-header,
.site-footer {
  border-color: var(--line);
}

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

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.wordmark:hover {
  color: var(--accent-strong);
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding: 3.5rem 0 4.5rem;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
}

section {
  margin-top: 3.25rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--accent);
}

.card img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1rem;
  background: var(--felt);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.meta {
  margin-top: 0.65rem;
  color: var(--accent);
  font-size: 0.92rem;
}

.contact a {
  font-size: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
}

.updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.rules {
  columns: 1;
}

@media (max-width: 640px) {
  .site-header .wrap,
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    grid-template-columns: 4.25rem 1fr;
  }

  .card img {
    width: 4.25rem;
    height: 4.25rem;
  }
}
