/* The look of the game, in as little CSS as will carry it: the cream of a settings card,
   the dark post-brown of its lettering, and the barn red the game keeps for the one button
   you cannot undo. Two pages share this file so that they read as one place. */

:root {
  --post: #452c1a;
  --rail: #9e6b3d;
  --cream: #fdf2de;
  --clover: #2b6e38;
  --barn: #b34538;
  --paper: #f6ead2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  padding: 0 20px 72px;
  background: var(--paper);
  color: var(--post);
  font: 17px/1.65 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.sheet {
  max-width: 46rem;
  margin: 0 auto;
}

header {
  padding: 56px 0 8px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 9vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

header p {
  margin: 10px 0 0;
  font-size: 1.05rem;
  opacity: 0.75;
}

nav {
  margin: 28px 0 8px;
  text-align: center;
  font-weight: 700;
}

nav a { margin: 0 10px; }

.card {
  background: var(--cream);
  border: 1px solid rgba(69, 44, 26, 0.15);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.card h3 {
  margin: 22px 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
}

.card > :last-child { margin-bottom: 0; }

a {
  color: var(--clover);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

ul { padding-left: 1.25rem; }

li { margin: 6px 0; }

.mail {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--rail);
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #6f4a2a;
}

.mail:hover {
  color: var(--cream);
  filter: brightness(1.06);
}

.stamp {
  margin-top: 4px;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* The front page */

.hero {
  padding: 8px 0 4px;
}

.hero h1 {
  /* The wordmark is set as wide as the screen will take and no wider: at a fixed size the
     tracking pushes six capitals past the edge of a phone, and a line that overflows widens
     the whole document under it rather than only itself. */
  font-size: clamp(2rem, 12vw, 3.2rem);
}

.pitch {
  max-width: 32rem;
  margin: 14px auto 22px;
  font-size: 1.15rem;
}

.chip {
  display: inline-block;
  padding: 10px 22px;
  border: 2px dashed rgba(158, 107, 61, 0.6);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

.shots {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0 12px;
}

.shots img {
  width: 260px;
  max-width: 44%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 30rem) {
  .shots img { max-width: 68%; }
}

.caption {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.grid .card { margin: 0; }

footer {
  max-width: 46rem;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #241708;
    --cream: #33220f;
    --post: #f6ead2;
    --clover: #8fd39b;
    --barn: #ec8f80;
  }

  .card { border-color: rgba(246, 234, 210, 0.14); }
}
