@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; z-index:2; pointer-events:none; font-family:var(--sans); font-weight:700; font-size:17px; color:#b45309; }
/* the whole row, number included, is the link (user, Nov 8); z-index keeps the number visible while clicks pass through. Hover = text color only, no box (user, Nov 8) */
ol.keystories li a.keylink { display:block; position:relative; z-index:1; margin:-12px 0 -12px -40px; padding:12px 0 12px 40px; color:inherit; text-decoration:none; transition:color .15s ease; }
ol.keystories li a.keylink:hover { color:#b45309; }
ol.keystories li a.keylink:focus-visible { outline:2px solid #b45309; outline-offset:1px; }
.sumlink { color:inherit; text-decoration:underline; text-decoration-color:rgba(180,83,9,.5); text-underline-offset:2px; }
.sumlink:hover { color:#b45309; }
.sumlink:focus-visible { outline:2px solid #b45309; outline-offset:1px; }
/* theme subheaders group a day's stories (user, Nov 8) */
h3.theme { font-family:var(--sans); font-size:13px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:#b45309; margin:44px 0 0; }
h3.theme + .story { border-top:none; margin-top:14px; padding-top:0; }

/* archive-style day entries */
.entry { border-top:1px solid var(--line); padding:22px 0 20px; }
/* archive list (user, Nov 4): clean text entries, no card images, dotted separators */
.entry--week { display:block; border-top:0; border-bottom:1px dotted var(--line); }
.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 20px; margin:18px auto 8px; font-family:var(--sans); font-size:14.5px; }
.filterbar a { color:var(--accent); text-decoration:none; border-bottom:2px solid transparent; padding:8px 2px; }
.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: number in its own gutter, title/body/sub-headers/sources share the title's left edge (user, Nov 8) */
.story { margin:36px 0 0; padding-top:28px; border-top:1px solid var(--line); padding-left:40px; }
.story h2 { font-size:23px; margin-bottom:14px; line-height:1.3; display:flex; align-items:baseline; margin-left:-40px; }
.story { scroll-margin-top:24px; }
.story h2 .num { color:#b45309; font-family:var(--sans); font-weight:700; flex:0 0 30px; margin-right:10px; white-space:nowrap; }
/* landing marker: a key-story/summary link jump lands on the story's anchor; an arrow in the number gutter marks it (user, Nov 8) */
.story:target { padding-left:60px; }
.story:target h2 { margin-left:-60px; }
.story:target h2 .num { flex-basis:50px; }
.story:target h2 .num::before { content:"→"; margin-right:6px; }
.story h2 .tt { flex:1 1 auto; min-width:0; }
.story h4.story-sub { font-family:var(--sans); font-size:13px; font-weight:700; letter-spacing:1.8px; text-transform:uppercase; color:#b45309; margin:20px 0 8px; }
.story p.sources { font-family:var(--sans); font-size:14.5px; margin:18px 0 0; }
.story .sources-label { display:block; font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin:0 0 4px; }
/* each source on its own line below the label; long labels wrap inside the text column (user, Nov 8) */
.story p.sources .readlink { display:block; padding:3px 0; }
.story .src-sep { display:none; }
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; border-bottom:3px solid var(--amber); }
  .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; }
  .story { padding-left:34px; }
  .story h2 { margin-left:-34px; }
  .story h2 .num { flex-basis:24px; }
  .story:target { padding-left:54px; }
  .story:target h2 { margin-left:-54px; }
  .story:target h2 .num { flex-basis:44px; }
  /* 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:4px 22px; font-size:16px; }
  .filterbar a { padding:12px 2px; }
}

/* automatic text enhancement (owner, Nov 4): dollar figures bold + amber, D1 keywords italic */
.money { font-weight:700; color:#b45309; }
em.kw { font-style:italic; }

/* 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 .player-ui { display:flex; align-items:center; gap:12px; }
.player .player-ui[hidden] { display:none; }
.player.js audio { display:none; }
.player-btn { flex:0 0 40px; width:40px; height:40px; border-radius:50%; border:0; background:var(--accent); color:#faf8f5; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.player-btn:hover { background:#0a4534; }
.player-btn:focus-visible { outline:2px solid var(--amber); outline-offset:2px; }
.player-btn svg { width:18px; height:18px; fill:currentColor; }
.player-btn .ic-pause { display:none; }
.player.playing .ic-pause { display:block; }
.player.playing .ic-play { display:none; }
.player-seek { flex:1 1 auto; min-width:0; -webkit-appearance:none; appearance:none; height:4px; border-radius:2px; background:linear-gradient(to right, var(--accent) var(--p,0%), var(--line) var(--p,0%)); cursor:pointer; }
.player-seek::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:14px; height:14px; border-radius:50%; background:var(--accent); border:2px solid #fff; box-shadow:0 0 0 1px var(--line); }
.player-seek::-moz-range-thumb { width:12px; height:12px; border-radius:50%; background:var(--accent); border:2px solid #fff; }
.player-seek::-moz-range-track { height:4px; border-radius:2px; background:transparent; }
.player-seek:focus-visible { outline:2px solid var(--amber); outline-offset:4px; }
.player-time { font-family:var(--sans); font-size:12.5px; color:var(--muted); min-width:34px; text-align:center; font-variant-numeric:tabular-nums; }
