/* RunningLoopFinder — small, fast, no framework */
:root {
  --ink: #1c1914;
  --muted: #5b564c;
  --paper: #f6f1e6;
  --card: #fffdf8;
  --line: #ddd4c4;
  --flame: #1e5a45;
  --flame-dark: #163e30;
  --moss: #2b4a3a;
  --moss-soft: #e6efe8;
  --amber: #e4eee6;
  --shadow: 0 1px 0 rgba(28, 25, 20, 0.06), 0 8px 24px rgba(28, 25, 20, 0.06);
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --measure: 42rem;
  --wide: 64rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--flame-dark); }
a:hover { color: var(--flame); }
img { max-width: 100%; }

.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.prose { width: min(100%, var(--measure)); }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--flame); }
.nav a:not(.brand) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:not(.brand):hover,
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.hero {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.hero h1, h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0; }
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

main { padding: 1.75rem 0 3.5rem; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1.5rem 0;
}
.card, .station {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.callout {
  background: var(--amber);
  border: 1px solid #c5d6c9;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.callout p { margin: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
}
.filters button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.station { margin-bottom: 1rem; }
.station-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.35rem;
}
.station h3 { margin: 0; font-size: 1.25rem; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: var(--moss-soft);
  color: var(--moss);
}
.badge.both { background: var(--amber); color: var(--flame-dark); }
.addr { margin: 0 0 0.75rem; color: var(--muted); }
.facts {
  display: grid;
  gap: 0.55rem 1.25rem;
  grid-template-columns: 8.5rem 1fr;
  margin: 0;
}
.facts dt { color: var(--muted); font-size: 0.88rem; margin: 0; }
.facts dd { margin: 0; }
.unknown { color: var(--muted); font-style: italic; }
.station-foot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; margin-top: 0.7rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 0.6rem; }
footer.site a { color: var(--muted); }

.placeholder {
  display: inline-block;
  border: 1px dashed var(--flame);
  background: #e8f1ea;
  color: var(--flame-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin: 0.35rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 0.15rem; }
  .facts dt { margin-top: 0.45rem; }
  h1 { font-size: 1.85rem; }
}

.loop { margin-bottom: 1rem; }
.sources { font-size: 0.88rem; color: var(--muted); }
.sources ul { padding-left: 1.2rem; }
