/* AI gossip, the archive (v5). Nothing is ever deleted: every take keeps its date, its tags and its own
   link, so the page doubles as a record of how the AI conversation moved. The "night edition" of the homepage's
   dark gossip column: ink ground, paper type, the same red. The trend strip at the top is the only chart, and it
   is also the filter. Entries come from content/site/gossip.md, which is append-only. */
/* Georgia, resized to Newsreader's measurements, stands in while Newsreader loads, so the text doesn't jump when it
   arrives (measured from the Latin files with fontTools: width, ascent and descent) */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 92.2%; ascent-override: 79.72%; descent-override: 28.74%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 84.61%; ascent-override: 86.87%; descent-override: 31.32%; line-gap-override: 0%; }
:root {
  --night: #121418; --night-2: #1C1F25; --paper: #EDEDEA; --paper-2: #B9BCC3; --hair: rgba(237, 237, 234, .14);
  --red: #F0412E;                     /* the homepage red, a touch lighter for dark ground (4.8:1 on --night) */
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif; --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace; --pen: "Caveat", cursive;
  --g: clamp(16px, 3.4vw, 48px); --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; }
.meta { font: 400 13px/1.4 var(--mono); color: var(--paper-2); }

.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--g); background: color-mix(in srgb, var(--night) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mark { font: italic 500 26px/1 var(--serif); text-decoration: none; padding: 6px 0; }
.mark span { color: var(--red); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a[aria-current] { box-shadow: inset 0 -1.5px 0 currentColor; }
.nav .email { color: var(--red); }

.head { margin: clamp(24px, 4vw, 48px) var(--g) 0; padding-bottom: 18px; border-bottom: 3px solid var(--paper); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 40px; align-items: end; }
.head h1 { font: italic 600 clamp(64px, 10vw, 150px)/.85 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.04em; }
.head p { color: var(--paper-2); max-width: 32em; }
.head .count { margin-top: 10px; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }

/* trend strip: one row per tag, a dot for every take on that day. Click a row to filter. */
.trends { margin: 26px var(--g) 0; }
.trends h2 { font: 500 13px/1.4 var(--mono); color: var(--paper-2); margin-bottom: 10px; }
.strip { display: grid; grid-template-columns: minmax(150px, 15em) minmax(0, 1fr) 3em; }
.row { display: contents; }
.row > * { padding: 9px 0; border-top: 1px solid var(--hair); }
.row button.lab { text-align: left; background: none; border: 0; border-top: 1px solid var(--hair); cursor: pointer; font: 500 15px/1.3 var(--sans); color: var(--paper); padding: 9px 12px 9px 0; }
.row .lane { position: relative; }
.row .n { text-align: right; font: 500 13px/1.6 var(--mono); color: var(--paper-2); }
.dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper); transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .2s; transition-delay: var(--d, 0s); }
.strip.in .dot { transform: scale(var(--s, 1)); }
.axis { grid-column: 2; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--hair); }
.row.on button.lab { color: var(--red); }
.row.on .dot { background: var(--red); }
.strip.filtering .row:not(.on) .dot { background: #4A4E57; }
.row button.lab:hover { color: var(--red); }
.reset { margin-top: 12px; background: none; border: 0; padding: 0; cursor: pointer; font: 500 14px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 4px; color: var(--paper-2); }
.reset[hidden] { display: none; }

/* the record */
.record { margin: clamp(40px, 5vw, 64px) var(--g) 0; }
.month { font: italic 600 clamp(36px, 4vw, 56px)/1 var(--serif); padding-bottom: 12px; border-bottom: 1px solid var(--paper); }
.day { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0 28px; padding: 22px 0 6px; border-bottom: 1px solid var(--hair); }
.day > time { font: 700 clamp(28px, 2.8vw, 40px)/1 var(--serif); font-variation-settings: "opsz" 72; font-feature-settings: "lnum"; position: sticky; top: 84px; align-self: start; white-space: nowrap; }
.day > time small { display: block; margin-top: 6px; font: 400 13px/1.3 var(--mono); color: var(--paper-2); }
.entry { padding: 0 0 22px; scroll-margin-top: 90px; }
.entry + .entry { padding-top: 20px; border-top: 1px dashed var(--hair); }
.entry[hidden], .day[hidden], .month[hidden] { display: none; }
.entry h3 { font: 600 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); letter-spacing: -.01em; }
.entry h3 a { text-decoration: underline; text-decoration-color: rgba(237, 237, 234, .35); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.entry h3 a:hover { text-decoration-color: var(--red); }
.take { margin-top: 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; align-items: baseline; }
.take .pen { font: 600 22px/1 var(--pen); color: var(--red); rotate: -4deg; }
.take p { font: 400 clamp(18px, 1.4vw, 20px)/1.55 var(--serif); max-width: 40em; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; align-items: baseline; }
.foot .tags { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot .tags button { background: none; border: 0; padding: 0; cursor: pointer; font: 400 13px/1.4 var(--mono); color: var(--paper-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.foot .tags button:hover { color: var(--paper); text-decoration-color: currentColor; }
.foot .tags button::before { content: "#"; color: var(--red); }
.foot .copy { margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer; font: 500 13.5px/1.4 var(--sans); color: var(--paper-2); text-decoration: underline; text-underline-offset: 3px; }
.foot .copy:hover { color: var(--paper); }
.again { margin-top: 8px; font: 13px/1.4 var(--mono); color: var(--paper-2); }
.again a { color: var(--red); }
.entry:target h3 { background: linear-gradient(transparent 62%, rgba(240, 65, 46, .35) 0); }
@media (max-width: 700px) {
  .strip { grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 2em; }
  .day { grid-template-columns: 1fr; }
  .day > time { position: static; margin-bottom: 14px; }
  .take { grid-template-columns: 1fr; }
  .take .pen { justify-self: start; margin-bottom: 8px; }
  .foot .copy { margin-left: 0; }
}
.how { margin: 56px var(--g) 0; padding: 22px 24px; background: var(--night-2); border-radius: 12px; max-width: 760px; color: var(--paper-2); font-size: 15px; }
.how b { color: var(--paper); font-weight: 500; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 64px var(--g) 40px; color: var(--paper-2); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; background: var(--paper); color: var(--night); padding: 8px 14px; border-radius: 8px; font-size: 14px; transition: opacity .25s, translate .3s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; translate: -50% 0; }
@media (prefers-reduced-motion: reduce) { .dot { transition: none; } .toast { transition: none; } }

/* footer links (the site's other pages) */
footer .foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
footer a:hover { color: var(--red-ink, var(--red)); }

/* shared with Home: skip link, hidden text, the short nav */
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: #EDEDEA; color: #121418; z-index: 100; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .nav .hide-s { display: none; } }
/* the four links left from 380 px down: tighter, and under 340 px Writing waits in the page (Home shows it a scroll away) */
@media (max-width: 380px) { .nav { gap: 12px; font-size: 14px; } }
@media (max-width: 340px) { .nav .hide-xs { display: none; } }

html:not(.js) .dot { transform: scale(var(--s, 1)); }
.entry .takeaway { margin-top: 10px; font-size: 15.5px; color: var(--paper-2); }
.entry .takeaway b { color: var(--paper); font-weight: 500; }
.entry .more { margin-top: 10px; max-width: 40em; color: var(--paper-2); }
.entry .more p + p { margin-top: 10px; }

/* touch: every small link and button gets at least a 24px-tall target (WCAG 2.5.8) without changing how it looks */
footer a { display: inline-block; padding-block: 6px; }
/* very wide screens: the page stops growing at 1760px and sits in the middle */
main, footer { max-width: 1760px; margin-inline: auto; }
.foot .tags button, .foot .copy { min-height: 32px; }
.row button.lab { min-height: 40px; }
.top { padding-inline: max(var(--g), calc((100% - 1760px) / 2 + var(--g))); }   /* lines up with the capped page */
