:root {
  --paper: #F7F4EF;
  --paper-deep: #EBE6DE;
  --ink: #1C1917;
  --ink-soft: #292524;
  --muted: #44403C;
  --line: #E4DDD4;
  --white: #FFFCF8;
  --brand: #1B3A4B;
  --brand-deep: #122833;
  --brand-mist: #E6EEF1;
  --accent: #B5473A;
  --gold-mist: #F8F1DE;
  --space: 22px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--brand); }
a.back { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 18px; }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; height: auto; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--brand);
  color: white;
  padding: 10px 14px;
  z-index: 5;
}
.skip:focus { top: 12px; }
.wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.wide { width: min(1080px, calc(100% - 32px)); }
header.site, main, footer.site { padding: 28px 0; }
header.site { padding-top: 36px; }
.kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; margin: 0 0 10px; }
.deck, .lede { color: var(--ink-soft); font-size: 18px; line-height: 1.55; margin: 0 0 8px; }
nav.primary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
nav.primary a, .chip, .btn, .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
nav.primary a {
  background: var(--white);
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
nav.primary a[aria-current="page"] { background: var(--brand); color: white; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.badge {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 48px;
}
.verse, .card, .sponsor, .panel, .note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.verse { border-left: 4px solid var(--brand); margin: 22px 0; }
.verse p { margin: 12px 0; font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--ink); }
.cite { color: var(--muted); font-family: var(--sans); font-size: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  border: 0;
  cursor: pointer;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 700;
}
.btn.quiet {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:disabled { background: var(--paper-deep); color: var(--muted); cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.chip {
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  gap: 8px;
}
.chip[aria-pressed="true"] { background: var(--brand); color: white; border-color: var(--brand); }
.chip[aria-pressed="true"] .dot { background: white !important; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.place { margin: 8px 0 18px; }
.place button.place-open { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 700; min-height: 48px; padding: 0; cursor: pointer; }
#place-panel { margin-top: 8px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}
textarea { min-height: 140px; }
.results { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.results button {
  text-align: left;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  font: inherit;
  cursor: pointer;
  padding: 8px 2px;
}
.feed { display: flex; flex-direction: column; gap: 20px; margin: 18px 0 28px; }
.card { padding: 0; overflow: hidden; }
.card a.block { display: block; padding: 22px; color: inherit; text-decoration: none; }
.card h2 { font-size: 28px; }
.mark { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.excerpt { margin: 10px 0; }
.meta { color: var(--muted); font-size: 16px; margin: 0; }
.sponsor { margin: 8px 0 22px; }
.sponsor .kicker { color: var(--accent); }
.sponsor p { margin: 8px 0; }
.empty { display: none; }
.empty.show { display: block; }
.status { min-height: 24px; color: var(--ink-soft); }
footer.site { color: var(--muted); border-top: 1px solid var(--line); }
footer.site a { font-weight: 700; }
.story-photo { border-radius: 16px; margin-bottom: 16px; }
@media (min-width: 900px) {
  .feed.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  header.site { padding-top: 56px; }
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
