/* Odd Passengers. One stylesheet, system fonts, no external resources. */

:root {
  color-scheme: light dark;
  --paper: #f4efe6;
  --card: #fffdf8;
  --ink: #1c1b19;
  --muted: #5f5a52;
  --rule: #d9d1c2;
  --accent: #b23a0b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161b;
    --card: #1b1e25;
    --ink: #ece7dc;
    --muted: #a8a295;
    --rule: #30343d;
    --accent: #ff9a62;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem) 3rem;
}

h1,
h2,
.game-name {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 0.9rem;
}

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

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

/* The header is drawn as a ticket: a main part and a stub under a perforation. */

.ticket {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}

.ticket-main {
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1.5rem, 5vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticket-stub {
  margin: 0;
  padding: 1rem clamp(1.5rem, 5vw, 2.5rem) 1.15rem;
  border-top: 2px dashed var(--rule);
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.45;
}

section {
  margin-top: 2.75rem;
}

.games {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.games li {
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
}

.game-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.game-note {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}

/* The holding page is the ticket alone, centred on the screen. */

.holding main {
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
}
