/* Zero Traction. Photo-led news layout. One self-hosted headline font. */

@font-face {
  font-family: "ZT Display";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #3f3f3f;
  --faint: #5c5c5c;
  --line: #e2e2e2;
  --accent: #b91c1c;
  --header: #111111;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "ZT Display", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", serif;
  --wrap: 1120px;
  --measure: 700px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

h1, h2, .story-title, .card-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: #7f1d1d; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: #111; color: #fff; }

.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;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  transform: translateY(-140%);
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  z-index: 5;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.masthead {
  background: var(--header);
  color: #fff;
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
}

.brand-logo,
.footer-logo {
  display: block;
  width: auto;
  height: 34px;
  color: #fff;
}

.footer-logo { height: 28px; }

.footer-brand {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.site-nav {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.nav-list a[aria-current="page"] { color: #ff4d3a; }

.kicker,
.tag {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker { margin: 0.7rem 0 0.35rem; }

body.home .wrap {
  width: min(1200px, calc(100% - 2.5rem));
}

.front {
  display: grid;
  gap: 1.35rem;
  padding: 1.1rem 0 0.5rem;
}

.hero-link,
.story-card,
.card {
  color: inherit;
  text-decoration: none;
  display: block;
}

.hero-link img,
.story-card img,
.card img,
.topic-hero img,
.lead img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #eee;
}

.hero-link {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
}

.hero-link img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.hero-copy .kicker { margin: 0 0 0.4rem; }

.hero-link h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.7rem);
  max-width: none;
  margin-top: 0;
  line-height: 0.98;
}

.hero-link .dek {
  margin-top: 0.65rem;
  max-width: 36rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--muted);
  font-style: italic;
}

.byline {
  margin-top: 0.7rem;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.photo-credit,
.lead figcaption,
.topic-hero figcaption {
  margin-top: 0.35rem;
  color: var(--faint);
  font-size: 0.78rem;
}

.lead figcaption a,
.photo-credit a {
  color: inherit;
}

.latest-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.latest-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.latest-head::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.latest-grid .story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.latest-grid .story-card img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.latest-grid .kicker { margin: 0.55rem 0 0.25rem; }

.latest-grid .story-title {
  font-size: clamp(1.28rem, 1.45vw, 1.55rem);
  line-height: 1.02;
  margin: 0;
}

.latest-grid .dek {
  margin-top: 0.4rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.35;
}

.home-more {
  margin: 1.15rem 0 0.35rem;
}

.home-more a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-more a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.story-card img,
.card img { aspect-ratio: 16 / 10; object-fit: cover; }

.story-title,
.card-title {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  color: var(--ink);
}

.story-card:hover .story-title,
.card:hover .card-title,
.hero-link:hover h1 { text-decoration: underline; text-underline-offset: 0.06em; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0 1.35rem;
}

.card-row {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.card-title { display: block; }

.page { padding-bottom: 2.5rem; }

.page-hero { padding: 1.6rem 0 1rem; }

.page-hero h1,
.story h1,
.lost h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  max-width: 18ch;
}

.dek {
  margin-top: 0.75rem;
  max-width: 40rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.crumbs li { display: inline-flex; gap: 0.4rem; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--faint); }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.topic-hero,
.lead {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.4rem auto 1.4rem;
}

.prose {
  width: min(var(--measure), 100%);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
}

.page-prose { margin-top: 0.2rem; }

.prose h2 {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  margin: 1.8rem 0 0.55rem;
}

.prose h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.3rem;
}

.prose p, .prose ul, .prose ol { margin: 0.8rem 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }

.desk-card, .callout-tip {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 0.25rem;
  box-shadow: none;
}

.quick-answer,
.verdict,
.callout-cost {
  background: #fff;
  border: 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  border-radius: 0;
  padding: 0.95rem 0 1rem;
  margin: 1.35rem 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
}

.verdict-stop { border-top-color: var(--accent); }
.quick-answer { border-top-width: 3px; border-top-color: var(--accent); }

.callout-kicker,
.verdict-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.verdict-label {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 0.4rem;
}

.lamps { display: flex; gap: 0.35rem; margin-bottom: 0.45rem; }
.lamp { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #ddd; }
.lamp-red.is-lit { background: #dc2626; }
.lamp-amber.is-lit { background: #d97706; }
.lamp-green.is-lit { background: #15803d; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
}
caption { caption-side: top; text-align: left; color: var(--muted); margin-bottom: 0.6rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
td:first-child { font-weight: 700; width: 34%; }

.faq-item + .faq-item { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }

.story-shell {
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto 2.5rem;
}
.story-narrow { width: 100%; }
.story header { padding-top: 1.25rem; }
.lead { width: min(1120px, calc(100% - 2rem)); }

.prose figure { margin: 1.25rem 0; }
.prose figure img { display: block; width: 100%; height: auto; }
.prose figcaption {
  margin-top: 0.35rem;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.4;
}

.demo-banner {
  margin: 0;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.button:hover { background: var(--accent); color: #fff; }
.actions { margin-top: 1rem; }

.panel {
  border-top: 1px solid #111;
  padding: 1rem 0;
  margin: 0.5rem 0;
}
.mailbox { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.3rem 0; }
.mailbox a { color: var(--ink); }
.note { font-family: var(--sans); font-size: 1rem; color: var(--muted); }

.lost { padding: 3rem 0 3.5rem; }
.lost-code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.8;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.related-list, .desk-list { list-style: none; padding: 0; margin-top: 0.4rem; }
.related-list a, .desk-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 44px;
  justify-content: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.desk-list a { font-weight: 700; }
.related-list strong { font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.related-list a:hover strong, .desk-list a:hover { text-decoration: underline; }

.updated { margin-top: 0.6rem; color: var(--faint); font-size: 0.9rem; }

.site-footer {
  margin-top: 2.5rem;
  background: #111;
  color: #f3f3f3;
  padding: 1.6rem 0 1.1rem;
}
.footer-grid { display: grid; gap: 1rem; }
.footer-name { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.04em; }
.footer-tag { color: #c8c8c8; margin-top: 0.25rem; max-width: 28ch; }
.footer-heading {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff4d3a;
  margin-bottom: 0.15rem;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f3f3f3;
  text-decoration: none;
}
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid #2a2a2a;
  color: #bdbdbd;
  font-size: 0.85rem;
}

.stack { display: grid; }

@media (max-width: 859px) {
  .hero-link { grid-template-columns: 1fr; gap: 0.85rem; }
}

@media (min-width: 700px) {
  .latest-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .card-row { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
}

@media (min-width: 960px) {
  .latest-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-list { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .masthead-inner { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .masthead, .site-footer, .skip, .demo-banner { display: none; }
  body { color: #000; }
  a { color: #000; }
}
