/* Fresh Press's public blogs. Third design, 2026-10-09: Giorgos found the second "very bad". It
   was one 68-character column of up to sixty stories with nothing to steer by, a post named after
   its first headline, and topic pages that were only lists of dates.

   This one reads like a morning briefing: a dated masthead, a top story with the next headlines
   beside it, the day by desk (the topics' own groups) on the home page, and on a day's page a
   sticky contents rail of desks and topics, each topic in its own colour. Headlines are in a
   serif, everything around them in the system sans.

   **Nothing loads from anywhere else.** No web font, no script beyond the photo link and, on
   Subscribe only, the forms' proof of work (`subscribe.js`, served from the blog), and no
   `url` reference of any kind -- `tests/test_blogs.py` reads this file and fails on one -- so
   the serif and the sans are the system's own and every ornament is a border, a radius or a
   shadow. That is the same rule the privacy paragraph promises. */

:root {
  color-scheme: light dark;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #17181c;
  --ink-soft: #3e424c;
  --muted: #6c6f78;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e4e0d6;
  --line-strong: #17181c;
  --accent: #c8401a;
  --accent-soft: #fbece6;
  --why-bg: #f3f0e8;
  --flag-bg: #fff4e5;
  --flag-ink: #7a3410;
  --topic: var(--accent);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(23, 24, 28, .05), 0 14px 30px -20px rgba(23, 24, 28, .28);
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edebe6;
    --ink-soft: #c7c5bf;
    --muted: #9a988f;
    --bg: #111214;
    --card: #191a1d;
    --line: #2b2c30;
    --line-strong: #edebe6;
    --accent: #ff7f57;
    --accent-soft: #2a1a14;
    --why-bg: #1f2023;
    --flag-bg: #2a1d10;
    --flag-ink: #f6c79a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 30px -20px rgba(0, 0, 0, .9);
  }
  /* The topics' colours are picked for a light page; lifted here so they read on a dark one. */
  .story, .toc li, .topic-block, .desk-topic, .glance li, .topic-list li, .top-story, .page-head, .chip {
    --topic-ink: color-mix(in srgb, var(--topic) 55%, white);
  }
}

* { box-sizing: border-box; }

html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1200px; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 14px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--card); padding: 8px 14px; border-radius: 8px; }

/* --- the bar ------------------------------------------------------------- */

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 19px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff; font: 800 13px/1 var(--sans); letter-spacing: .02em;
}
header.site nav { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
header.site nav a { color: var(--ink-soft); text-decoration: none; padding: 7px 11px; border-radius: 999px; }
header.site nav a:hover { color: var(--ink); background: var(--card); }
header.site nav .rss { color: var(--accent); }

.preview {
  margin-top: 14px; background: var(--flag-bg); color: var(--flag-ink);
  border-radius: var(--radius); padding: 10px 16px; font-size: 14px;
}
.draft {
  display: inline-block; font: 600 11px/1.6 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  background: var(--flag-bg); color: var(--flag-ink); border-radius: 999px; padding: 1px 9px; vertical-align: middle;
}

main { display: block; padding: 0 0 72px; }

/* --- type -------------------------------------------------------------------- */

h1, h2, h3, .headline { font-family: var(--serif); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 12px; }
.kicker {
  font: 700 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.lead { font: 400 20px/1.45 var(--serif); color: var(--ink-soft); max-width: 46ch; margin: 0 0 14px; }
.deck { font: 400 19px/1.5 var(--serif); color: var(--ink-soft); max-width: 60ch; margin: 0 0 12px; }
.deck a { color: var(--ink); }
.muted { color: var(--muted); }
.ai-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.ai-pill {
  font: 700 10px/1 var(--sans); letter-spacing: .08em; color: var(--accent);
  border: 1px solid currentColor; border-radius: 4px; padding: 3px 5px;
}
.section-title {
  font: 700 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  border-top: 2px solid var(--line-strong); padding-top: 12px; margin: 56px 0 20px;
}
/* A topic's emoji, where it has one, stands in for its coloured dot. */
.emoji { font-size: 1.25em; line-height: 1; letter-spacing: 0; text-transform: none; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
a:has(> .emoji)::before { display: none !important; }
.glance .topic-name .emoji { margin-right: 6px; }
.kicker .updated { color: var(--ink-soft); font-weight: 700; }
.page-head h1 .emoji { font-size: .8em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--topic-ink, var(--topic)); flex: 0 0 auto; }

/* --- the home page ------------------------------------------------------------ */

.masthead { padding: 22px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tagline { font: italic 400 18px/1.45 var(--serif); color: var(--ink-soft); margin: 0 0 10px; }
.dateline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.dateline .kicker, .dateline .ai-label { margin: 0; }

.front { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.top-story h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 14px; }
.top-story h2 a { text-decoration: none; }
.top-story .summary { font: 400 19px/1.55 var(--serif); color: var(--ink-soft); max-width: var(--measure); }

.chip { margin: 0 0 8px; }
.chip a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font: 700 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--topic-ink, var(--topic));
}
.chip a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--topic-ink, var(--topic)); }

.at-a-glance { border-left: 1px solid var(--line); padding-left: 32px; }
.rail-title, .toc-title {
  font: 700 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.glance { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: glance; }
.glance li { counter-increment: glance; border-top: 1px solid var(--line); }
.glance li:first-child { border-top: 0; }
.glance a { display: grid; grid-template-columns: 28px 1fr; column-gap: 4px; padding: 13px 0; text-decoration: none; font: 600 17px/1.32 var(--serif); }
.glance a::before { content: counter(glance); grid-row: span 2; font: 700 22px/1 var(--serif); color: var(--topic-ink, var(--topic)); }
.glance .topic-name { font: 600 11px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.button {
  display: inline-block; text-decoration: none; font: 600 15px/1 var(--sans);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px;
}
.button:hover { background: var(--accent); color: #fff; }

/* Columns, not a grid: the desks differ in length, and a grid leaves a hole under each short one. */
.desks { columns: 4 260px; column-gap: 20px; }
.desk-card {
  break-inside: avoid; margin: 0 0 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.desk-card h3 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 6px; }
.desk-topic { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.desk-topic .topic-name a, .topic-block .topic-name a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font: 700 11px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--topic-ink, var(--topic));
}
.desk-topic .topic-name a::before, .topic-block .topic-name a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--topic-ink, var(--topic));
}
.desk-topic .topic-name { margin: 0 0 4px; }
.desk-topic ul { list-style: none; margin: 0; padding: 0; }
.desk-topic li a { display: block; padding: 4px 0 8px; text-decoration: none; font: 600 16px/1.35 var(--serif); }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 21px; line-height: 1.22; margin: 0 0 10px; }
.card h3 a { text-decoration: none; }
.card ul { list-style: none; margin: 0 0 14px; padding: 0; }
.card li { color: var(--ink-soft); font-size: 14px; line-height: 1.45; padding: 6px 0; border-top: 1px solid var(--line); }
.read { margin: auto 0 0; font-size: 14px; font-weight: 600; }
.read a { text-decoration: none; color: var(--accent); }
.at-a-glance .read a.button { color: var(--bg); }
.at-a-glance .read a.button:hover { color: #fff; }

/* --- a day's briefing --------------------------------------------------------- */

.edition-head { padding: 44px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.edition { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding: 24px 4px 24px 0; font-size: 14px; }
.toc-desk { font: 600 13px/1.4 var(--serif); color: var(--ink); margin: 16px 0 4px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; line-height: 1.3; }
.toc a:hover { background: var(--card); color: var(--ink); }
.toc .n, .topic-list .n { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.stories { max-width: 720px; padding-top: 12px; }
.desk-name {
  font: 700 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  border-top: 2px solid var(--line-strong); padding-top: 12px; margin: 36px 0 4px;
}
.desk:first-child .desk-name { margin-top: 16px; }
.topic-block { padding: 14px 0 6px; }
.topic-block .topic-name { margin: 8px 0 0; }

.story { padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.topic-block .story:last-child { border-bottom: 0; }
.story .headline { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 10px; }
.story .summary { font: 400 18px/1.6 var(--serif); color: var(--ink-soft); max-width: var(--measure); margin-bottom: 14px; }
.why {
  background: var(--why-bg); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px;
  font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  box-shadow: inset 3px 0 0 var(--topic-ink, var(--topic));
}
.why strong {
  display: block; font: 700 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--topic-ink, var(--topic)); margin-bottom: 3px;
}
.story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.story-foot p { margin: 0; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.links .label { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.links a {
  text-decoration: none; color: var(--ink-soft); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }
.links .nth { font-size: 10px; font-weight: 700; color: var(--muted); vertical-align: 1px; margin-left: 2px; }
.story .ai-label { font-size: 12px; margin: 0; }
/* The front's next two stories, under a top story with no picture, so the column is not empty. */
.also { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.also-story { padding-top: 14px; }
.also-story h3 { font-size: 21px; line-height: 1.22; margin: 0 0 8px; }
.also-story h3 a { text-decoration: none; }
.also-story p:last-child { font: 400 16px/1.5 var(--serif); color: var(--ink-soft); }
.earlier { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 0 0 14px; }
.earlier .label { font: 700 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.earlier a { text-decoration: none; color: var(--ink); font-family: var(--serif); }
.earlier a:hover { color: var(--accent); }
.earlier time { color: var(--muted); font: 12px var(--sans); margin-left: 6px; }
.reviewed { color: var(--ink-soft); font-weight: 600; }
.fixes li { display: grid; grid-template-columns: 220px 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fixes time { color: var(--muted); font-size: 14px; }
.fixes .title { font: 400 17px/1.4 var(--serif); }
@media (max-width: 640px) { .also { grid-template-columns: 1fr; } .fixes li { grid-template-columns: 1fr; } }

.daynav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.daynav a { color: var(--accent); text-decoration: none; }
.daynav a:hover { text-decoration: underline; }
.daynav.bottom { border-top: 2px solid var(--line-strong); padding-top: 14px; margin-top: 32px; }

/* --- pictures and video ------------------------------------------------------- */

figure { margin: 0 0 16px; }
figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); object-fit: cover; object-position: center top; background: var(--why-bg); }
.top-story figure img { aspect-ratio: 16 / 9; }
.card figure { margin: -22px -22px 16px; }
.card figure img { aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; }
.card figcaption { padding: 0 22px; }
figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
figcaption a { color: inherit; }
figcaption .caption { display: block; color: var(--ink-soft); font: 400 14px/1.4 var(--serif); margin-bottom: 2px; }
/* A hotlinked photo's Pixabay copy waits hidden, for a site that refuses the photo. */
figure.hotlinked img[hidden], figcaption [hidden] { display: none; }
.video-card {
  font: 500 14px/1.4 var(--sans); cursor: pointer;
  background: var(--why-bg); color: var(--ink);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 14px 18px; width: 100%;
}
.video-card:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }
.video-card span { color: var(--muted); font-size: 12px; margin-left: 6px; }
iframe.video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* --- topics, archive, about ---------------------------------------------------- */

.page-head { padding: 44px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-head h1 { display: flex; align-items: center; gap: 14px; }
.page-head h1 .dot { width: 14px; height: 14px; }
.day-block { margin-bottom: 20px; }
.day-head { font: 700 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid var(--line-strong); padding-top: 12px; margin: 28px 0 0; }
.day-head a { text-decoration: none; }

.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list a { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font: 600 16px/1.3 var(--serif); }
.topic-list li:first-child a { border-top: 0; }

.month { font: 700 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; border-top: 2px solid var(--line-strong); padding-top: 12px; margin: 32px 0 4px; }
.entries { list-style: none; margin: 0; padding: 0; }
.entries a { display: grid; grid-template-columns: 220px 1fr auto; gap: 4px 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.entries time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.entries .title { font: 600 18px/1.3 var(--serif); }
.entries .n { color: var(--muted); font-size: 13px; white-space: nowrap; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { font: 400 18px/1.65 var(--serif); color: var(--ink-soft); }
.prose a { color: var(--accent); }

/* --- the foot --------------------------------------------------------------------- */

footer.site { border-top: 1px solid var(--line); background: var(--card); }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; padding-top: 32px; padding-bottom: 40px; }
footer.site p { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
footer.site .ai-label { display: block; }
.brand.small { font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.brand.small .mark { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }

/* --- narrow screens ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .front { grid-template-columns: 1fr; gap: 28px; }
  .at-a-glance { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .edition { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* The contents rail becomes a strip of topics under the bar, scrolled sideways. */
  .toc {
    position: sticky; top: 60px; z-index: 5; max-height: none; overflow-x: auto; overflow-y: hidden;
    display: flex; align-items: center; gap: 6px; padding: 10px 20px; margin: 0 -20px;
    background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc-title, .toc-desk { display: none; }
  .toc ul { display: contents; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 5px 11px; }
  html { scroll-padding-top: 120px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .bar { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 6px; }
  header.site nav { margin-left: -11px; overflow-x: auto; max-width: calc(100% + 11px); }
  .toc { top: 92px; }
  html { scroll-padding-top: 150px; }
  .masthead { padding-top: 16px; }
  .story .summary, .top-story .summary { font-size: 17px; }
  .entries a { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}

/* Sign-up (to-do #59): Subscribe, Check your mail, and the function's own pages, which borrow
   this file. Plain form controls in the page's colours; the trap field is off-screen, not
   hidden, so a bot that skips hidden fields still fills it. */
.notice { background: var(--flag-bg); color: var(--flag-ink); border-radius: var(--radius); padding: 14px 18px; }
form.signup, .signup main form { margin: 18px 0 30px; }
.signup h2, form.signup h2 { font-size: 20px; margin: 28px 0 8px; }
fieldset.desk { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0 0 14px; padding: 8px 16px 12px; }
fieldset.desk legend { font-weight: 700; padding: 0 6px; }
.topic-choice { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 8px 0; }
.topic-choice .in-full { color: var(--muted); font-size: 14px; }
form.signup input:not([type=checkbox]), form.signup select, form.signup textarea,
.signup main input:not([type=checkbox]):not([type=hidden]), .signup main select, .signup main textarea {
  width: 100%; max-width: 32rem; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-top: 4px;
}
form.signup button, .signup main button {
  font: 600 15px var(--sans); color: var(--bg); background: var(--ink); border: 0; border-radius: 999px;
  padding: 10px 20px; cursor: pointer;
}
form.signup button:hover, .signup main button:hover { background: var(--accent); color: #fff; }
form.signup button:disabled { opacity: .6; cursor: progress; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
header.site nav a.subscribe { color: var(--accent); font-weight: 700; }
