:root {
  --bg: #0c0f14; --panel: #141922; --panel2: #1b212c; --line: #273140;
  --text: #e8edf4; --muted: #6b7780; --accent: #5fd0e0; --accent2: #8fd94a;
  --radius: 14px; --maxw: 1180px;
}
* { box-sizing: border-box; }
/* The `hidden` attribute only hides via the browser's own stylesheet, which ANY
   author rule outranks — `.consent { display: flex }` silently defeated it, so
   the consent bar stayed on screen after a choice and looked like dead buttons.
   Assert it here once, for every element that uses `hidden`. */
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.site-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  background: rgba(12,15,20,.86); backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: "Chakra Petch", sans-serif; font-weight: 700; letter-spacing: .18em; font-size: 20px; }
.site-head nav a { color: var(--muted); margin-left: 20px; font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.site-head nav a:hover { color: var(--text); }
.site-head nav a[aria-current] { color: var(--accent); }
/* The brand is long; on narrow screens let it shrink rather than wrap onto two
   lines and shove the nav out of the bar. */
@media (max-width: 560px) {
  .site-head .wrap { height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .brand { font-size: 15px; letter-spacing: .1em; }
  .site-head nav { display: flex; gap: 16px; flex: 0 0 auto; }
  .site-head nav a { margin-left: 0; }
}

.intro { padding: 34px 0 10px; display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.intro-head { flex: 1 1 460px; min-width: 280px; }
.intro h1 { font-family: "Chakra Petch", sans-serif; font-weight: 600; letter-spacing: .03em; font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; }
.intro p { color: var(--text); max-width: 760px; margin: 0; }
.muted { color: var(--muted); }

/* subscribe form — kept compact so it sits level with the intro text */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.subscribe { flex: 0 0 48%; max-width: 50%; align-self: stretch; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.subscribe .sub-h { font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 16px;
  letter-spacing: .02em; color: var(--text); margin-bottom: 9px; }
.subscribe .sub-row { display: flex; gap: 6px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 120px; min-width: 0; padding: 8px 10px; font-size: 13px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.subscribe input:focus { outline: none; border-color: var(--accent); }
.subscribe button { flex: 0 0 auto; padding: 8px 15px; font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #0a0d10; background: var(--accent);
  border: 1px solid var(--accent); border-radius: 8px; cursor: pointer; }
.subscribe button:hover { filter: brightness(1.08); }
.subscribe button:disabled { opacity: .55; cursor: default; }

/* frequency choice + consent */
.subscribe .sub-freq { display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  border: 0; margin: 9px 0 0; padding: 0; }
.subscribe .sub-freq label { display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
/* padding:0 is load-bearing: the generic `.subscribe input` rule above sets
   8px/10px padding, which with border-box inflates a 15px box to 22px. */
.subscribe .sub-freq input[type=checkbox] { appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; padding: 0; margin: 0; flex: 0 0 auto; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; position: relative; }
.subscribe .sub-freq input[type=checkbox]:hover { border-color: var(--accent); }
.subscribe .sub-freq input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.subscribe .sub-freq input[type=checkbox]:checked::after { content: ""; position: absolute;
  left: 4.5px; top: 1px; width: 3.5px; height: 8px; border: solid #0a0d10;
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
.subscribe .sub-freq input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.subscribe .sub-consent { margin: 8px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--muted); }

.subscribe .sub-msg { min-height: 0; margin-top: 7px; font-size: 11px; font-family: "Share Tech Mono", ui-monospace, monospace; letter-spacing: .03em; }
.subscribe .sub-msg:empty { margin-top: 0; }
.subscribe .sub-msg.ok { color: var(--accent2); }
.subscribe .sub-msg.err { color: #ff6a5f; }
@media (max-width: 760px) { .subscribe { flex-basis: 100%; max-width: 100%; } }

.controls { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
#q { width: 100%; padding: 13px 16px; font-size: 16px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
#q:focus { outline: none; border-color: var(--accent); }
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { color: #06121f; background: var(--accent2); border-color: var(--accent2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card .thumb { aspect-ratio: 80/27; background: var(--panel2) center/cover no-repeat; }
.card .thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--line); font-size: 40px; }
.card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card .src { font-weight: 700; color: var(--accent); }
.card h3 { margin: 0; font-size: 16.5px; line-height: 1.35; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.card .tags span { font-size: 11px; color: var(--muted); background: var(--panel2);
  padding: 2px 8px; border-radius: 6px; }
/* Company entities — blue, to stand apart from the grey theme tags. */
.card .tags span.company { color: var(--accent); background: rgba(78,161,255,.12);
  border: 1px solid rgba(78,161,255,.35); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Monthly digest archive (/digest/). One card per issue: the month, what it
   covered, and the story the industry converged on.
   --------------------------------------------------------------------------- */
.issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px; margin: 10px 0 40px; }
.issue { display: flex; flex-direction: column; gap: 12px; padding: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .12s ease, border-color .12s ease; }
.issue:hover { transform: translateY(-2px); border-color: var(--accent); }
.issue .period { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); }
.issue h2 { font-family: "Chakra Petch", sans-serif; font-weight: 600; letter-spacing: .02em;
  font-size: 24px; margin: 0; }
.issue .figures { display: flex; flex-wrap: wrap; gap: 18px; }
.issue .figures div { display: flex; flex-direction: column; }
.issue .figures b { font-family: "Chakra Petch", sans-serif; font-size: 20px; font-weight: 600; }
.issue .figures span { font-size: 11px; color: var(--muted); font-family: "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: .1em; text-transform: uppercase; }
.issue .lead { padding: 12px 14px; background: var(--panel2); border-radius: 10px;
  border-left: 2px solid var(--accent); }
.issue .lead .label { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.issue .lead .headline { font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.issue .names { display: flex; flex-wrap: wrap; gap: 6px; }
.issue .names span { font-size: 11px; color: var(--accent); background: rgba(95,208,224,.1);
  border: 1px solid rgba(95,208,224,.3); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.issue .names span.theme { color: var(--muted); background: var(--panel2);
  border-color: var(--line); font-weight: 400; }
.issue .go { margin-top: auto; padding-top: 4px; font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.issue:hover .go { color: var(--accent2); }
.issues .empty { color: var(--muted); }

/* ---------------------------------------------------------------------------
   A single digest issue (/digest/<slug>/). Same data as the email, rendered for
   the site instead: dark, one column, comfortable reading measure.
   --------------------------------------------------------------------------- */
.issue-page { padding-bottom: 40px; }
.issue-page .crumbs { padding: 22px 0 6px; font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.issue-page .crumbs a:hover { color: var(--accent); }
.issue-page h1 { font-family: "Chakra Petch", sans-serif; font-weight: 600; letter-spacing: .02em;
  font-size: clamp(28px, 5vw, 42px); margin: 4px 0 6px; }
.issue-page .issue-sub { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.issue-page h2 { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); margin: 0 0 12px; font-weight: 400; }

.lead-para { max-width: 760px; margin: 0 0 30px; }
.lead-para p { font-size: 17.5px; line-height: 1.72; margin: 0; color: var(--text); }

.numbers { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 0 0 34px; max-width: 760px; }
.numbers .vol { margin: 0; font-size: 15px; color: var(--text); }
.numbers .caveat { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.numbers .nblock { margin-top: 18px; }
.numbers .nblock h3 { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 400; }
.numbers .names { display: flex; flex-wrap: wrap; gap: 8px; }
.numbers .names span { font-size: 13px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; }
.numbers .names em { font-style: normal; color: var(--muted); }
.numbers table.movers { width: 100%; border-collapse: collapse; }
.numbers table.movers td { padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.numbers table.movers tr:last-child td { border-bottom: 0; }
.numbers table.movers td.n { text-align: right; white-space: nowrap; width: 1%; padding-left: 14px; }
.numbers table.movers em { font-style: normal; color: var(--muted); }
.d.up { color: var(--accent2); font-weight: 700; }
.d.down { color: #ff6a5f; font-weight: 700; }
.d.flat { color: var(--muted); }

.topics .hint { color: var(--muted); font-size: 13px; margin: -6px 0 16px; }
.topic-list { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.topic { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; }
.topic .rank { font-family: "Chakra Petch", sans-serif; font-size: 22px; font-weight: 600;
  color: var(--line); flex: 0 0 34px; line-height: 1.2; }
.topic .t-body { flex: 1; min-width: 0; }
.topic .t-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted);
  margin-bottom: 5px; }
.topic .t-meta .src { color: var(--accent); font-weight: 700; }
.topic h3 { margin: 0 0 5px; font-size: 18px; line-height: 1.38; font-weight: 600; }
.topic h3 a:hover { color: var(--accent); }
.topic p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.topic .t-co { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.topic .t-co span { font-size: 11px; color: var(--accent); background: rgba(95,208,224,.1);
  border: 1px solid rgba(95,208,224,.3); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.topic .t-also { margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .topic { gap: 10px; }
  .topic .rank { flex-basis: 22px; font-size: 17px; }
}

.status { text-align: center; color: var(--muted); padding: 22px 0; }
.more { display: block; margin: 8px auto 50px; padding: 12px 26px; font-weight: 700;
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; }
.more:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------------------
   Cookie consent bar. Small and out of the way, but pinned above the fold at the
   bottom so it is genuinely seen rather than buried.
   --------------------------------------------------------------------------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: space-between;
  padding: 9px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.consent p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); flex: 1 1 240px; }
.consent .consent-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.consent button { font-family: "Share Tech Mono", ui-monospace, monospace; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 7px;
  cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.consent button:hover { color: var(--text); border-color: var(--muted); }
.consent #consent-yes { background: var(--accent); border-color: var(--accent); color: #0a0d10; }
.consent #consent-yes:hover { filter: brightness(1.08); }
@media (max-width: 460px) {
  .consent { gap: 8px; padding: 8px 10px; }
  .consent p { flex-basis: 100%; font-size: 11.5px; }
  .consent .consent-actions { width: 100%; }
  .consent button { flex: 1 1 0; }
}

/* Unsubscribe confirmation page. */
.unsub { padding: 40px 0 60px; max-width: 640px; }
.unsub h1 { font-family: "Chakra Petch", sans-serif; font-weight: 600; letter-spacing: .02em;
  font-size: clamp(26px, 4vw, 36px); margin: 0 0 18px; }
.unsub .unsub-msg { font-size: 17px; line-height: 1.6; margin: 0 0 10px; }
.unsub .unsub-msg.ok { color: var(--accent2); font-weight: 600; }
.unsub .unsub-msg.err { color: #ff6a5f; }
.unsub .unsub-note { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.unsub .unsub-note a, .unsub .unsub-back a { color: var(--accent); }
.unsub .unsub-back { margin-top: 28px; font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0; }
.site-foot p { color: var(--muted); font-size: 13px; margin: 0; max-width: 760px; }
.site-foot .credit { margin-top: 12px; font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .06em; }
.site-foot .credit a { color: var(--accent); }
.site-foot .credit a:hover { text-decoration: underline; }
