@import url('fonts/fonts.css'); /* self-hosted: no third-party font requests */

/* Open Loop News: article and site chrome. Paper for reading, ink for the frame, lime as a marker, never as body text. */
:root {
  --ink: #0B0B0C;
  --ink-2: #151518;
  --ink-3: #1d1f24;
  --paper: #F2EFE8;
  --paper-2: #E9E5DC;
  --card: #FBFAF6;
  --text: #16171A;
  --text-2: #4A4E55;
  --text-3: #6E727A;
  --rule: rgba(11, 11, 12, 0.12);
  --lime: #CFFF3E;
  --lime-deep: #5E7A00;
  --amber: #FFB224;
  --head: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --logo: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); }
body { background: var(--paper); color: var(--text); font-family: var(--head); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(242, 239, 232, 0.08); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.lockup svg { width: 30px; height: 30px; }
.lockup .word { font-family: var(--logo); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; font-variation-settings: 'opsz' 96; }
.lockup .news { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; padding: 4px 6px 4px 8px; border-radius: 6px; background: var(--lime); color: var(--ink); }
.topics { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.topics a { text-decoration: none; color: rgba(242, 239, 232, 0.66); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.topics a:hover, .topics a[aria-current] { color: var(--paper); border-color: var(--lime); }
.follow { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; text-decoration: none; background: var(--lime); color: var(--ink); padding: 9px 14px; border-radius: 999px; transition: transform .25s var(--ease); }
.follow:hover { transform: translateY(-1px); }
.follow svg { width: 16px; height: 16px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- layout ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 48px; padding-bottom: 80px; }
article { max-width: 720px; }

/* ---------- article head ---------- */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); background: var(--lime); padding: 6px 11px; border-radius: 999px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.status.reported { background: var(--amber); }
.topic { font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 1.5px solid var(--rule); }
.topic:hover { border-color: var(--text); }
.meta-row .when::before { content: '·'; margin-right: 14px; }

h1.headline { font-weight: 800; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.028em; word-spacing: -0.04em; margin-top: 22px; text-wrap: balance; }
.dek { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--text-2); margin-top: 18px; text-wrap: pretty; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline .av { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.byline .av svg { width: 26px; height: 26px; }
.byline b { font-size: 15px; display: block; }
.byline small { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.byline small a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }

.hero { margin-top: 30px; }
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--ink); }
figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; }

/* ---------- the short version ---------- */
.short { margin-top: 34px; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 26px 28px 28px; position: relative; overflow: hidden; }
.short h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); font-weight: 700; }
.short ul { list-style: none; margin-top: 16px; display: grid; gap: 14px; position: relative; z-index: 1; }
.short li { display: grid; grid-template-columns: 30px 1fr; font-size: 18px; line-height: 1.45; color: rgba(242, 239, 232, 0.92); }
.short li span { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--lime); padding-top: 4px; }
.short .ring { position: absolute; right: -60px; bottom: -70px; width: 240px; height: 240px; opacity: 0.9; }
.short .ring path { fill: none; stroke: rgba(242, 239, 232, 0.06); stroke-width: 3.2; stroke-linecap: round; }
.short .ring circle { fill: var(--lime); }

/* ---------- body ---------- */
.body { margin-top: 38px; font-size: 19px; line-height: 1.68; color: var(--text); }
.body p + p { margin-top: 1.05em; }
.body h2 { font-size: 27px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 44px 0 14px; }
.body a { text-decoration-color: var(--lime-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.body mark { background: linear-gradient(transparent 58%, var(--lime) 58%); color: inherit; padding: 0 2px; }

.body figure { margin: 34px 0; }
.body figure img { width: 100%; height: auto; border-radius: 14px; background: var(--ink); }

.callout { margin: 36px 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 22px 26px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; }
.callout strong { font-size: 64px; line-height: 0.9; letter-spacing: -0.05em; font-weight: 800; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.callout span { font-size: 17px; line-height: 1.45; color: var(--text-2); }

/* ---------- sources, label note, corrections ---------- */
.sources { margin-top: 48px; border-top: 2px solid var(--ink); padding-top: 18px; }
.sources h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.sources ol { list-style: none; margin-top: 12px; }
.sources li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.sources li a { font-weight: 700; text-decoration: none; }
.sources li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sources .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--ink); color: var(--lime); flex: none; }
.sources .tag.cov { background: var(--paper-2); color: var(--text-2); }
.label-note { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.label-note b { color: var(--text); }

.follow-card { margin-top: 40px; display: flex; align-items: center; gap: 22px; padding: 24px 26px; border-radius: 20px; background: var(--ink); color: var(--paper); }
.follow-card svg.mark { width: 64px; height: 64px; flex: none; }
.follow-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.follow-card p { font-size: 15px; color: rgba(242, 239, 232, 0.75); margin-top: 4px; }
.follow-card .follow { margin-left: auto; flex: none; }

/* ---------- rail ---------- */
.rail { position: sticky; top: 96px; align-self: start; display: grid; gap: 28px; }
.rail h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.latest { list-style: none; }
.latest li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.latest a { text-decoration: none; display: block; }
.latest .t { font-weight: 800; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
.latest a:hover .t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.latest .m { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.latest .m i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.latest .m i.rep { background: var(--amber); }
.latest li[aria-current] .t { color: var(--text-3); }
.how { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 20px 22px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.how b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.how p + p { margin-top: 8px; }
.how .status { font-size: 10px; padding: 3px 8px; font-family: var(--mono); letter-spacing: 0.12em; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(242, 239, 232, 0.72); padding: 48px 0 40px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.site-foot p { font-size: 15px; line-height: 1.5; margin-top: 12px; max-width: 42ch; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-foot nav a { text-decoration: none; color: rgba(242, 239, 232, 0.72); }
.site-foot nav a:hover { color: var(--paper); }
.site-foot small { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 239, 232, 0.45); border-top: 1px solid rgba(242, 239, 232, 0.1); padding-top: 18px; }

/* ---------- answer-first article parts ---------- */
.draft-note { margin-bottom: 20px; padding: 10px 14px; border-radius: 12px; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 14px; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.answer { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--text); margin-top: 18px; text-wrap: pretty; }
.updated { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime-deep); }
.glance { margin-top: 30px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.glance h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding: 16px 22px 12px; }
.glance table { width: 100%; border-collapse: collapse; font-size: 16px; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 12px 22px; border-top: 1px solid var(--rule); line-height: 1.45; }
.glance th { width: 34%; font-weight: 700; color: var(--text-2); }
.body blockquote { margin: 34px 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--lime); }
.body blockquote p { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.body blockquote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.faq { margin-top: 48px; }
.faq h2 { font-size: 27px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.faq h3 { font-size: 20px; line-height: 1.3; font-weight: 800; margin-top: 24px; }
.faq p { font-size: 18px; line-height: 1.62; margin-top: 8px; }

/* ---------- story cards (related, home, topics, archive) ---------- */
.section-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 22px; }
.card { text-decoration: none; display: block; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--ink); transition: transform .35s var(--ease); }
.card:hover img { transform: translateY(-3px); }
.card .m { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.card .m i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.card .m i.rep { background: var(--amber); }
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; margin-top: 8px; text-wrap: balance; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card p { font-size: 16px; line-height: 1.5; color: var(--text-2); margin-top: 8px; }
.related { margin-top: 64px; }

/* ---------- home ---------- */
.home { padding-top: 40px; padding-bottom: 80px; }
.lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; }
.lead .card.big img { border-radius: 20px; }
.lead .card.big h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.03; letter-spacing: -0.028em; word-spacing: -0.04em; font-weight: 800; margin-top: 12px; text-wrap: balance; }
.lead .card.big:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lead .card.big p { font-size: 18px; line-height: 1.5; margin-top: 12px; }
.lead-side { display: grid; gap: 26px; align-content: start; }
.lead-side .card h3 { font-size: 19px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; margin-top: 64px; }
.all-news { display: inline-block; margin-top: 22px; font-weight: 800; font-size: 15px; text-underline-offset: 4px; }
.home-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; margin-top: 64px; }
.home-band.solo { grid-template-columns: 1fr; }
.home-band .follow-card { margin-top: 0; }
.stream { list-style: none; }
.stream li { border-bottom: 1px solid var(--rule); }
.stream a { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 22px 0; text-decoration: none; align-items: start; }
.stream img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--ink); }
.stream h3 { font-size: 21px; line-height: 1.22; letter-spacing: -0.015em; font-weight: 800; text-wrap: balance; }
.stream a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.stream p { font-size: 16px; line-height: 1.5; color: var(--text-2); margin-top: 6px; }
.stream .m { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.stream .m i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.stream .m i.rep { background: var(--amber); }
.stream .m .d { white-space: nowrap; }
.stream .m .d::before { content: '·'; margin-right: 8px; }

/* ---------- topic, archive and info pages ---------- */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.page-head p { font-size: 19px; line-height: 1.5; color: var(--text-2); margin-top: 14px; max-width: 60ch; }
.prose { max-width: 720px; padding: 24px 0 80px; font-size: 18px; line-height: 1.68; }
.prose h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 40px 0 12px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration-color: var(--lime-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; gap: 48px; padding-top: 28px; }
  .lead, .home-grid, .home-band { grid-template-columns: 1fr; gap: 36px; }
  .rail { position: static; }
  .topics { display: none; }
}
@media (max-width: 560px) {
  .body { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .stream a { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .stream h3 { font-size: 18px; }
  .stream p { display: none; }
  .stream .m { flex-wrap: wrap; row-gap: 4px; }
  .stream .m .d { flex-basis: 100%; padding-left: 16px; }
  .stream .m .d::before { content: none; }
  .glance th { width: 40%; }
  .glance th, .glance td { padding: 11px 16px; }
  .callout { grid-template-columns: 1fr; gap: 10px; }
  .callout strong { font-size: 56px; }
  .follow-card { flex-wrap: wrap; }
  .follow-card .follow { margin-left: 0; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-foot nav { justify-content: flex-start; }
  .meta-row .when::before { content: none; }
  .site-head .follow span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
