:root {
  --red: #e00000;
  --red-strong: #b80000;
  --text: #1c1b1b;
  --muted: #5c5757;
  --surface: #ffffff;
  --card: #f6f2f2;
  --border: #e3dcdc;
  /* Filled button; white text on it keeps at least 4.5:1 contrast. */
  --button: #d00000;
  --button-hover: #a80000;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red: #ff5a4f;
    --red-strong: #ff7a70;
    --text: #f3eded;
    --muted: #b8aeae;
    --surface: #161212;
    --card: #221c1c;
    --border: #3a3131;
    --button: #c62828;
    --button-hover: #a51f1f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  /* System fonts: nothing is loaded from third parties. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

main {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.logo {
  width: 9rem;
  height: auto;
}

h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
}

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

.stores {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.store {
  display: flex;
  flex-direction: column;
  min-width: 10rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
}

.store-name {
  font-weight: 600;
}

.store-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: var(--red-strong);
  color: var(--red-strong);
}

.button.primary {
  border-color: var(--button);
  background: var(--button);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--button-hover);
  background: var(--button-hover);
  color: #fff;
}

.organizers {
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: var(--card);
}

.organizers h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.organizers p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.link {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
}

footer {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: inherit;
}

/* Legal pages */
.legal {
  text-align: left;
}

.legal h1 {
  font-size: 2rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
}
