@font-face { font-family:'Roboto'; font-style:normal; font-weight:100 900; font-display:swap; src:url('/fonts/roboto-b7627e3c.woff2') format('woff2'); }
:root {
  --ink:#1c1a17; --muted:#6b675e; --line:#e3ded3; --paper:#faf8f5;
  --side:#101010; --side-ink:#f4f1ea; --side-muted:#9a958a; --accent:#0e5c46; --amber:#c99a5b;
  --sans:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  --serif:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
}
* { box-sizing:border-box; margin:0; padding:0; }
html, body { overflow-x:clip; }
body { font-family:var(--serif); font-size:17px; background:var(--paper); color:var(--ink); line-height:1.7; }

/* fixed sidebar, McLuhan-style */
.sidebar { position:fixed; top:0; left:0; bottom:0; width:300px; background:var(--side); color:var(--side-ink); padding:30px 36px 36px; display:flex; flex-direction:column; }
.sidebar .brand { font-family:var(--serif); font-size:27px; font-weight:600; letter-spacing:5px; text-transform:uppercase; color:var(--side-ink); text-decoration:none; }
.sidebar .brand { display:flex; align-items:center; gap:12px; }
.brand-bot { height:52px; width:auto; image-rendering:pixelated; }
.sidebar .brandline { font-family:var(--sans); font-size:12px; letter-spacing:3px; text-transform:uppercase; color:var(--amber); margin-top:10px; }
.mtoggle { display:none; }
.menu-btn { display:none; }
.menu { margin-top:38px; }
.menu a { display:block; font-family:var(--sans); font-size:14.5px; color:var(--side-ink); text-decoration:none; padding:12px 0; border-top:1px solid rgba(244,241,234,.16); }
.menu a { border-left:2px solid transparent; padding-left:10px; margin-left:-12px; }
.menu a:hover { color:var(--amber); }
.menu a.on { color:var(--amber); border-left-color:var(--amber); }
.menu a.dest { color:var(--amber); }
.menu a.dest::after { content:" \2192"; }
.menu a:not(.dest) + a.dest { margin-top:16px; }

.mainwrap { margin-left:300px; padding:30px 48px 80px; }
.mainwrap > * { width:100%; margin-left:auto; margin-right:auto; }
.page-fact, .mainwrap > h1, .filterbar { max-width:720px; }

.page-fact { font-family:var(--sans); font-size:12.5px; font-weight:600; color:#b45309; text-transform:uppercase; letter-spacing:2px; margin-bottom:10px; }
h1 { font-size:34px; line-height:1.18; margin-bottom:14px; letter-spacing:-.2px; }
.intro { font-size:17.5px; color:var(--muted); margin-bottom:8px; line-height:1.6; max-width:720px; }

figure { margin:26px 0 8px; }
figure img { width:100%; height:auto; border-radius:6px; display:block; }
figcaption, .caption { font-family:var(--sans); font-size:12.5px; color:var(--muted); margin-top:8px; }

/* flat sections */
.sec { margin-top:52px; }
.mainwrap > .sec:first-of-type { margin-top:44px; }
.sec-title { font-size:26px; line-height:1.2; margin-bottom:20px; }
.sec-lede { font-size:18px; }
p { margin-bottom:14px; }
.article, .sec, .mainwrap figure, .pagenav, .callout, .pastband { max-width:720px; }
a { color:var(--accent); }
ul.bullets { margin:0 0 14px 22px; }
ul.bullets li { margin-bottom:7px; }

/* numbered key stories, flat */
ol.keystories { list-style:none; counter-reset:key; margin:0; }
ol.keystories li { counter-increment:key; position:relative; padding:12px 0 12px 40px; border-top:1px solid var(--line); }
ol.keystories li:first-child { border-top:none; }
ol.keystories li::before { content:counter(key); position:absolute; left:0; top:12px; font-family:var(--sans); font-weight:700; font-size:17px; color:#b45309; }

/* archive-style day entries */
.entry { border-top:1px solid var(--line); padding:22px 0 20px; }
.entry--week { display:flex; gap:26px; align-items:stretch; }
.entry-text { flex:1 1 auto; min-width:0; }
.entry-date { font-family:var(--sans); font-size:12.5px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:#b45309; margin-bottom:10px; }
.entry ul.bullets { margin-bottom:10px; }
.entry p { margin-bottom:6px; }
.entry-title { font-size:20px; line-height:1.3; margin:0 0 8px; }
.entry-title a { color:inherit; text-decoration:none; border-bottom:2px solid var(--amber); }
.entry-title a:hover { color:var(--accent); }
.entry-art { flex:0 0 240px; }
.entry-art img { width:100%; height:100%; object-fit:cover; border-radius:6px; display:block; }
.entry .readlink { font-family:var(--sans); font-size:14.5px; font-weight:600; }
.filterbar { display:flex; flex-wrap:wrap; gap:8px 16px; margin:18px auto 8px; font-family:var(--sans); font-size:13px; }
.filterbar a { color:var(--accent); text-decoration:none; border-bottom:2px solid transparent; padding:4px 1px; }
.filterbar a.on { color:var(--accent); border-bottom-color:var(--amber); }
.entry .readlink::after { content:" \2192"; }
.links { display:flex; flex-wrap:wrap; gap:6px 22px; margin-top:10px; }

/* daily story sections */
.story { margin:36px 0 0; padding-top:28px; border-top:1px solid var(--line); }
.story h2 { font-size:23px; margin-bottom:14px; line-height:1.3; }
.story h2 .num { color:#b45309; font-family:var(--sans); font-weight:700; margin-right:10px; }
section.plain { margin:34px 0 0; padding-top:26px; border-top:1px solid var(--line); }
section.plain h2 { font-size:21px; margin-bottom:12px; }

.pastband { background:var(--side); color:var(--side-ink); border-radius:8px; padding:26px 28px 24px; }
.pastband .sec-title { color:var(--side-ink); margin-bottom:12px; }
.pastband a { color:var(--amber); }
.pastband p { color:var(--side-muted); }

.callout { border-left:3px solid #b45309; padding:6px 0 6px 18px; margin:28px 0; }
.mainwrap .article > .callout:first-child, .mainwrap .callout:first-of-type { margin-top:22px; }
.callout .callout-title { font-family:var(--sans); font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:#b45309; margin-bottom:6px; }
.callout p { margin-bottom:0; font-size:15px; }

.closing { margin-top:44px; padding-top:20px; border-top:1px solid var(--line); font-family:var(--sans); font-size:13.5px; color:var(--muted); }

/* prev/next nav */
.pagenav { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin-top:48px; padding-top:22px; border-top:1px solid var(--line); font-family:var(--sans); font-size:14px; }
.pagenav a { color:var(--accent); text-decoration:none; font-weight:600; }
.pagenav > span:first-child { justify-self:start; }
.pagenav > span:last-child { justify-self:end; text-align:right; }
.pagenav .spacer { text-align:center; }
.pagenav .spacer a { color:var(--muted); }
.pagenav .latest { color:#b8b2a6; font-weight:600; cursor:default; }

@media (max-width:960px) {
  .sidebar { position:static; width:auto; padding:18px 18px 16px; }
  .topbar { display:flex; justify-content:space-between; align-items:center; }
  .sidebar .brand { font-size:22px; letter-spacing:4px; }
  .brand-bot { height:34px; }
  .sidebar .brandline { margin-top:8px; }
  .menu-btn { display:inline-block; font-family:var(--sans); font-size:12.5px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--side-ink); border:1px solid rgba(244,241,234,.4); border-radius:4px; padding:8px 14px; cursor:pointer; }
  .menu { display:none; margin-top:16px; }
  .mtoggle:checked ~ .menu { display:block; }
  .menu a { display:block; padding:13px 2px; font-size:15px; border-top:1px solid rgba(244,241,234,.16); border-left:none; margin-left:0; }
  .entry--week { flex-direction:column; gap:14px; }
  .entry-art { flex:none; }
  .entry-art img { height:auto; aspect-ratio:21/9; }
  body { font-size:16px; }
  .mainwrap { margin-left:0; padding:24px 20px 60px; }
  h1 { font-size:28px; overflow-wrap:anywhere; }
  .intro { font-size:16.5px; }
  .entry-title { font-size:18px; overflow-wrap:anywhere; }
  .entry-date { font-size:11.5px; letter-spacing:1px; overflow-wrap:anywhere; }
  .page-fact { overflow-wrap:anywhere; }
  .sec { margin-top:40px; }
  .mainwrap > .sec:first-of-type { margin-top:34px; }
  .sec-title { font-size:22px; }
  .story h2 { font-size:21px; }
  /* clean mobile: full-bleed flat art, no floating boxes (player stays boxed per owner) */
  .mainwrap figure { margin:24px -20px 8px; width:auto; }
  figure img { border-radius:0; }
  .mainwrap .pastband { border-radius:0; margin:36px -20px 0; padding:26px 20px 22px; width:auto; }
  .filterbar { gap:6px 16px; }
}

/* weekly audio player */
.player { max-width:720px; margin:18px auto 6px; padding:14px 18px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.player .player-label { display:block; font-family:var(--sans); font-size:12.5px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:#b45309; margin-bottom:8px; }
.player audio { width:100%; height:40px; display:block; }
