/* Pocket Bullpen: the colors of the app icon and feature graphic. No web fonts or outside
   requests, so the site itself collects nothing either. */
:root {
  --green-deep: #052814;
  --green: #08371e;
  --green-card: #0c4526;
  --line: #1d5a37;
  --cream: #fdf3e6;
  --muted: #c9d6cc;
  --gold: #efbf5e;
  --red: #e2393d;
  --max: 68rem;
  --text: 42rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-underline-offset: 0.15em; }
a:hover { color: #ffd88a; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--gold); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* header */
.site-header { background: var(--green); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--cream); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; }
.site-header nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--gold); }

/* hero */
.hero { background: var(--green); text-align: center; padding: 1rem 0 3rem; }
.hero img.banner { width: 100%; max-width: 60rem; margin: 0 auto; }
.hero p.lead { max-width: 38rem; margin: 0.5rem auto 1.5rem; font-size: 1.2rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.25rem; border-radius: 0.6rem;
  background: var(--cream); color: var(--green-deep);
  font-weight: 700; text-decoration: none;
}
.badge.soon { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--green); }
.intro { max-width: var(--text); color: var(--muted); margin: 0 0 2rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--green-card); border: 1px solid var(--line); border-radius: 0.9rem; padding: 1.25rem 1.25rem 1rem; }
.card p, .card ul { margin: 0 0 0.5rem; color: var(--muted); }
.card ul { padding-left: 1.1rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.pill-row li { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; color: var(--muted); }

.split { display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); }
.split img { border-radius: 1.5rem; width: 9rem; }
@media (max-width: 40rem) {
  .split { grid-template-columns: 1fr; }
  .split img { width: 7rem; }
}

.editions .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.editions .tag { font-size: 0.8rem; font-weight: 600; color: var(--cream); background: var(--red); border-radius: 999px; padding: 0.1rem 0.6rem; white-space: nowrap; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }

/* policy */
.doc { max-width: var(--text); margin: 0 auto; padding: 2.5rem 1rem 3.5rem; }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); margin: 0 0 0.25rem; }
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--gold); }
.doc h3 { color: var(--cream); margin-top: 1.25rem; }
.doc li { margin-bottom: 0.35rem; }
.doc .summary { background: var(--green-card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0.6rem; padding: 1rem 1.25rem; }
.doc .summary ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.toc { columns: 2 13rem; padding-left: 1.1rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }

@media (max-width: 30rem) {
  .site-header nav { gap: 0.9rem; font-size: 0.9rem; }
  .brand span { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badges.start { justify-content: flex-start; }
.intro.tight { margin-bottom: 0.75rem; }
.grid.four { grid-template-columns: 1fr; }
@media (min-width: 36rem) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
