/* dashbird.pro/news: the landing's instrument-panel system (graphite, hairline rules, chrome for actions,
   lime only for live signals and warnings) applied to a newsroom. Recall and safety stories carry the lime;
   everything else reads in chrome. */
:root {
  color-scheme: dark;
  --bg: #0A0A0C;
  --surface: #121317;
  --surface-2: #1A1B20;
  --line: #26272C;
  --line-2: #393B42;
  --fg: #F2F1EE;
  --muted: rgba(242, 241, 238, 0.66);
  --faint: rgba(242, 241, 238, 0.40);
  --chrome: #C9CCD2;
  --edge: #5D626B;
  --signal: #B5E853;
  --ink: #0A0A0C;
  --font-display: "Overpass", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --track: -0.032em;
  --wrap: 1200px;
  --narrow: 700px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--chrome); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.label {
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.label .hz { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; color: var(--faint); text-transform: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chrome); box-shadow: 0 0 0 3px rgba(201, 204, 210, 0.14); flex: none; }
.alert .dot, .dot.alert { background: var(--signal); box-shadow: 0 0 0 3px rgba(181, 232, 83, 0.16); }
.alert.label, .alert .label { color: var(--signal); }

/* Buttons: the chrome of the app icon's bezel */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 20px;
  border-radius: 12px; border: 1px solid var(--edge);
  font: 600 15px/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.btn.primary:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn.outline { background: transparent; color: var(--fg); border-color: rgba(242, 241, 238, .32); }
.btn.outline:hover { border-color: rgba(242, 241, 238, .75); }
.btn.slim { min-height: 40px; padding: 6px 16px; font-size: 14px; border-radius: 10px; white-space: nowrap; }

/* Header, as on the landing */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 10, 12, .74);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(242, 241, 238, .07);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; width: auto; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.nav a[aria-current] { position: relative; }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 2px; background: var(--fg); }
@media (max-width: 860px) { .nav a:not(.keep) { display: none; } .nav a[aria-current]::after { display: none; } }
@media (max-width: 480px) { .top .wrap { gap: 16px; } .logo img { height: 26px; } }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--signal); transform-origin: left center; transform: scaleX(0); }

/* Masthead */
.masthead { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.masthead h1 { margin-top: 18px; font-size: clamp(40px, 6.4vw, 88px); line-height: .96; letter-spacing: var(--track); max-width: 13em; }
.masthead .lede { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 36em; }
/* Filters: makes and topics on separate labelled rows */
.filters { margin-top: 30px; display: grid; gap: 12px; }
.filter-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 14px; }
/* Centred on the first line of chips (36px tall), however many lines the row wraps to */
.filter-name { padding-top: 12px; font: 600 11px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 560px) { .filter-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .filter-name { padding-top: 0; } }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.chips a:hover { color: var(--fg); border-color: rgba(242, 241, 238, .5); }
.chips a[aria-current] { color: var(--ink); background: var(--fg); border-color: var(--fg); }
.chips .sep { width: 1px; height: 22px; background: var(--line-2); margin-inline: 6px; }
.chips .n { font-family: var(--font-mono); font-size: 12px; opacity: .6; }

/* Shared story metadata */
.meta { font: 500 12.5px/1.4 var(--font-mono); color: var(--faint); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.meta b { font-weight: 500; color: var(--muted); }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.frame.empty { display: grid; place-items: center; }
.frame.empty::after { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 10px var(--surface-2); }
a:hover .frame img { transform: scale(1.025); }

/* Lead story */
.lead { padding-block: 8px clamp(40px, 6vw, 72px); }
.lead a { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; }
.lead .frame { aspect-ratio: 16 / 10; }
.lead h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: var(--track); }
.lead .dek { margin-top: 16px; font-size: 18px; color: var(--muted); }
.lead .meta { margin-top: 20px; }
.lead .more { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(242, 241, 238, .35); padding-bottom: 3px; }
.lead a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgba(242, 241, 238, .35); }
@media (max-width: 860px) { .lead a { grid-template-columns: minmax(0, 1fr); } }

/* Recall watch: a readout of alert stories */
.watch { padding-bottom: clamp(40px, 6vw, 72px); }
.watch .panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(18, 19, 23, .4)); overflow: hidden; }
.watch .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.watch ol { list-style: none; margin: 0; padding: 0; }
.watch li + li { border-top: 1px solid var(--line); }
.watch li a { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 16px 22px; text-decoration: none; transition: background .15s; }
.watch li a:hover { background: rgba(242, 241, 238, .03); }
.watch .t { font: 600 17px/1.35 var(--font-body); }
.watch li a:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242, 241, 238, .35); }
.watch .go { color: var(--faint); font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 640px) { .watch li a { grid-template-columns: minmax(0, 1fr); gap: 6px; } .watch .go { display: none; } }

/* Story grid */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); padding-bottom: clamp(48px, 7vw, 88px); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card a { display: flex; flex-direction: column; gap: 14px; text-decoration: none; height: 100%; }
.card .frame { aspect-ratio: 3 / 2; }
.card h3 { font-size: 22px; line-height: 1.14; letter-spacing: -0.016em; font-weight: 700; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242, 241, 238, .35); }
.card .dek { font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 2px; }

.pager { display: flex; justify-content: space-between; gap: 16px; padding-bottom: clamp(48px, 7vw, 88px); }
.empty-state { padding: 48px 0 96px; color: var(--muted); max-width: 34em; }

/* Article hero, after TechCrunch's: the photo fills the left half edge to edge, the headline sits in a panel on the
   right whose content lines up with the page column. Recall and safety stories mark the panel with the lime signal. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(440px, 44vw, 620px); border-bottom: 1px solid var(--line); }
.hero.no-image { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.hero-media { position: relative; margin: 0; overflow: hidden; background: var(--surface); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px max(var(--gutter), 20px) 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, .78));
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 241, 238, .78);
}
.hero-panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  padding-block: clamp(28px, 4vw, 56px);
  padding-inline: clamp(28px, 4.5vw, 72px) max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.no-image .hero-panel { padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.alert .hero-panel { box-shadow: inset 0 3px 0 var(--signal); }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.hero-main { max-width: 34em; }
.hero h1 { margin-top: 16px; font-size: clamp(32px, 3.5vw, 54px); line-height: 1.02; letter-spacing: var(--track); }
.hero .dek { margin-top: 18px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--muted); }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.hero .meta > * + *::before { content: "·"; margin-right: 10px; color: var(--line-2); }
.hero .meta > :first-child { color: var(--muted); }
.hero .meta a { text-decoration: none; }
.hero .meta a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { aspect-ratio: 16 / 10; }
  .hero-panel { padding-inline: var(--gutter); gap: 28px; }
}
.crumbs { font: 500 12.5px/1.4 var(--font-mono); color: var(--faint); display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
/* At least a 24px tap target, at every width */
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.makes { display: inline-flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.makes a {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 12px/1 var(--font-mono); color: var(--muted); text-decoration: none;
}
.makes a:hover { color: var(--fg); border-color: rgba(242, 241, 238, .5); }

.prose { padding-block: clamp(32px, 5vw, 48px) 8px; font-size: 18.5px; line-height: 1.72; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.prose h3 { margin-top: 1.5em; font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { text-decoration-color: rgba(242, 241, 238, .4); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--faint); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--chrome); color: var(--muted); font-size: 20px; line-height: 1.55; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: 10px; border: 1px solid var(--line); }

/* The owners' section, set as a readout panel */
.brief { margin: 2.2em 0 .4em; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.brief > .label { margin-bottom: 14px; }
.brief > h2 { margin-top: 0 !important; }
.brief > * + * { margin-top: .9em; }
.alert .brief { border-color: rgba(181, 232, 83, .35); }
/* The Dashbird tip: one quiet line at the end of the take panel, linking home */
.prose .tip { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 1.3em; padding-top: 1.1em; border-top: 1px solid var(--line-2); font-size: 16px; line-height: 1.6; color: var(--muted); }
.prose .tip img { width: 26px; height: 26px; margin-top: 1px; border: 0; border-radius: 0; }
.prose .tip b { color: var(--fg); font-weight: 600; margin-right: 4px; }
.prose .tip a { color: var(--fg); }

/* The standards page: prose only, so it keeps its own room above the footer */
.prose.about { padding-bottom: clamp(48px, 7vw, 88px); }

.sources { padding-block: 36px 8px; }
.sources h2 { font-size: 13px; font-family: var(--font-body); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sources ol { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sources li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sources li span { font: 500 12.5px/1.6 var(--font-mono); color: var(--faint); }
.sources a { text-decoration-color: rgba(242, 241, 238, .3); text-underline-offset: 3px; }
@media (max-width: 560px) { .sources li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.cta { margin-block: 40px clamp(48px, 7vw, 80px); }
.cta .panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cta img { width: 64px; height: 64px; }
.cta h2 { font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
.cta p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.cta .btn { margin-top: 16px; }
@media (max-width: 560px) { .cta .panel { grid-template-columns: minmax(0, 1fr); } }

.related { padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }

/* Footer, as on the landing */
footer { padding-block: 56px 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.foot nav a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
.legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); display: grid; gap: 8px; max-width: 80em; }
@media (max-width: 700px) { .foot { grid-template-columns: minmax(0, 1fr); } .foot nav { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  a:hover .frame img { transform: none; }
}
