:root {
  --bg: #fbf7f2;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #b35900;
  --line: #e8e3dc;
  --serif: ui-serif, 'Iowan Old Style', 'Apple Garamond', Baskerville, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --ink: #f4efe6;
    --muted: #8c8579;
    --accent: #e08a2a;
    --line: #2a2620;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

body { min-height: 100vh; display: flex; flex-direction: column; }

header { text-align: center; padding: 4rem 1.25rem 1rem; }
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.25rem, 9vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  line-height: 1;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.intro {
  margin: 2.5rem 0 3rem;
  text-align: center;
}
.intro p {
  margin: 0.5rem auto;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.intro a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.intro a:hover { text-decoration-color: var(--accent); }
.intro em { color: var(--accent); font-style: italic; }

.games {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.game {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, transform 0.05s;
}
.game:hover { border-color: var(--muted); }

.cover {
  aspect-ratio: 1.4 / 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--line);
}

/* Pollen cover — 5 petals on warm cream */
.cover-pollen {
  background: linear-gradient(135deg, #fbf7f2, #f1e8d7);
}
@media (prefers-color-scheme: dark) {
  .cover-pollen {
    background: linear-gradient(135deg, #2a241c, #1f1b14);
  }
}
.petals {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.petals span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.petals span:nth-child(1) { background: hsl(193, 53%, 56%); }
.petals span:nth-child(2) { background: hsl(287, 78%, 52%); }
.petals span:nth-child(3) { background: hsl(338, 78%, 54%); }
.petals span:nth-child(4) { background: hsl(29,  68%, 54%); }
.petals span:nth-child(5) { background: hsl(125, 91%, 64%); }

/* Drift cover — soft warm dark with a "drifter" and "ring" */
.cover-drift {
  background: radial-gradient(circle at 30% 50%, #26201a, #15110d);
  position: relative;
}
.cover-drift .drifter {
  position: absolute;
  left: 30%; top: 55%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fbf5e8;
  box-shadow: 0 0 22px 4px rgba(244, 239, 230, 0.4);
}
.cover-drift .ring {
  position: absolute;
  right: 22%; top: 32%;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(106, 191, 122, 0.95);
  box-shadow: 0 0 22px 6px rgba(106, 191, 122, 0.15);
}

/* Beam cover — stark black with a horizontal beam crossing a gold band */
.cover-beam {
  background: #000;
  position: relative;
}
.cover-beam .band {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 22px;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, rgba(240, 193, 80, 0.05), rgba(240, 193, 80, 0.18), rgba(240, 193, 80, 0.05));
  border-top: 1px solid rgba(240, 193, 80, 0.35);
  border-bottom: 1px solid rgba(240, 193, 80, 0.35);
}
.cover-beam .line {
  position: absolute;
  left: 0; right: 0;
  top: 38%;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(255,255,255,0.4);
}

/* Confidant cover — dark blue with conversation bubbles */
.cover-confidant {
  background: linear-gradient(135deg, #161c24, #0f1419);
  position: relative;
}
.cover-confidant .bubbles {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  gap: 8px;
}
.cover-confidant .bubble {
  height: 12px;
  border-radius: 6px;
  border-bottom-left-radius: 2px;
}
.cover-confidant .bubble.them {
  width: 70%;
  background: rgba(232, 228, 220, 0.12);
  border: 1px solid rgba(232, 228, 220, 0.18);
  align-self: flex-start;
}
.cover-confidant .bubble.them.short {
  width: 50%;
}
.cover-confidant .bubble.you {
  width: 55%;
  background: rgba(212, 160, 86, 0.18);
  border: 1px solid rgba(212, 160, 86, 0.3);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  border-bottom-left-radius: 6px;
}

.meta .badge {
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: middle;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(179, 89, 0, 0.12);
  border: 1px solid rgba(179, 89, 0, 0.3);
  border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  .meta .badge {
    background: rgba(224, 138, 42, 0.12);
    border-color: rgba(224, 138, 42, 0.3);
  }
}

.meta .lede.subtle {
  margin-top: -0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--serif);
}
.meta .lede.subtle em { color: var(--accent); }

/* Trial cover — warm dark with a scale-of-justice motif */
.cover-trial {
  background: linear-gradient(135deg, #25211c, #1d1a16);
  position: relative;
}
.cover-trial .scale {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-trial .beam {
  position: absolute;
  left: 18%; right: 18%;
  top: 45%;
  height: 2px;
  background: rgba(199, 154, 76, 0.7);
}
.cover-trial .pan {
  position: absolute;
  top: 60%;
  width: 36px;
  height: 4px;
  background: rgba(199, 154, 76, 0.85);
  border-radius: 2px;
  box-shadow: 0 -8px 0 -3px rgba(199, 154, 76, 0.3);
}
.cover-trial .pan.left { left: 18%; transform: translateX(-50%); }
.cover-trial .pan.right { right: 18%; transform: translateX(50%); top: 56%; }

.meta h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}
.meta .lede {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.meta .links { margin: 0; display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; font-size: 0.95rem; }
.meta .links .primary { color: var(--accent); text-decoration: none; font-weight: 500; }
.meta .links .primary:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta .links .ghost { color: var(--muted); text-decoration: none; }
.meta .links .ghost:hover { color: var(--ink); }

.elsewhere {
  margin: 3rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.elsewhere a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.2rem;
}
.elsewhere a:hover { text-decoration: underline; text-underline-offset: 3px; }

footer {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .game {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .cover { aspect-ratio: 1.6 / 1; max-width: 100%; }
  header { padding-top: 3rem; }
}
