/* Thrum public site — "Mist" look, same colours as the Thrum app. */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e1e6ee;
  --navy: #1f3a5f;
  --brass: #9a7a3c;
  --text: #18212f;
  --muted: #5d6878;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 16px 80px; }
header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 32px; }
.kicker, nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: bold; color: var(--brass); text-decoration: none; }
.logo { display: block; height: 46px; width: auto; margin-top: 10px; }
h1 { font-size: 34px; line-height: 1.2; color: var(--navy); margin: 0 0 12px; }
h2 { font-size: 22px; color: var(--navy); margin: 36px 0 8px; }
.lede { font-style: italic; color: var(--muted); font-size: 20px; }
a { color: var(--navy); }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 22px; margin-top: 36px; }
.card h2 { margin-top: 0; }
.cta { font-weight: bold; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { body { font-size: 17px; } h1 { font-size: 28px; } .lede { font-size: 18px; } }

/* Story list and story pages (built by Thrum's server/site.js). */
.day { margin-top: 32px; }
.day h2.kicker { margin: 0 0 8px; font-size: 12px; }
.row { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.row:hover strong { color: var(--navy); text-decoration: underline; }
.row .kicker { display: block; font-size: 11px; margin-bottom: 2px; }
.row strong { display: block; font-size: 19px; line-height: 1.35; }
.row .why { display: block; color: var(--muted); font-size: 16px; font-style: italic; margin-top: 4px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-1px); }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: bold; background: #fff; border: 1.5px solid; border-radius: 3px; padding: 2px 8px; }
.story h1 { font-size: 30px; }
.note { font-size: 14px; font-style: italic; color: var(--muted); border-left: 3px solid var(--brass); padding-left: 12px; }
.source { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Wide pages: beat tabs on top, list of titles on the left (like the Thrum app). */
.wrap.wide { max-width: 1140px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -12px 0 24px; }
.tab, .share-btn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: bold; color: #3a5478; background: #fff; border: 1px solid #7d8fa8; border-radius: 3px; padding: 7px 12px; text-decoration: none; cursor: pointer; }
.tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cols { display: flex; gap: 36px; align-items: flex-start; }
.cols > main { flex: 1; min-width: 0; max-width: 720px; }
.side { flex: none; width: 260px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.side .group { margin-bottom: 18px; }
.side h2.kicker { font-size: 12px; margin: 0 0 6px; }
.side-link { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; margin: 0 -8px; border-radius: 4px; font-size: 14px; line-height: 1.35; color: var(--text); text-decoration: none; }
.side-link:hover, .side-link.here { background: #fff; }
.side-link .dot { width: 7px; height: 7px; }
.star { flex: none; color: var(--brass); font-size: 13px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.share .kicker { margin-right: 4px; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .side { display: none; } }

/* Impact gauge on the home page (same as the Thrum app): four colours, flush
   right on the beat-tab row; dimmed colours are filtered out. */
.filters { display: flex; align-items: flex-start; gap: 24px; margin: -12px 0 24px; }
.filters .tabs { flex: 1; min-width: 0; margin: 0; }
.gauge { flex: none; display: flex; align-items: center; gap: 3px; margin-top: 10px; }
.gauge button { width: 30px; height: 12px; padding: 0; border: none; cursor: pointer; }
.gauge button:first-child { border-radius: 6px 0 0 6px; }
.gauge button:last-child { border-radius: 0 6px 6px 0; }
.gauge button.dim { opacity: 0.22; }
