:root {
  --white: #ffffff;
  --black: #000000;
  --teal: #0b5d5e;
  --ink-soft: #3d3d3d;
  --line: #d9d9d9;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--body); font-size: 20px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 4px solid var(--teal); outline-offset: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 32px 0 24px; border-bottom: 4px solid var(--black); }
.logo { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -0.035em; text-decoration: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 700; font-size: 20px; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-head nav a:hover { color: var(--teal); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

main { padding: 56px 0 24px; }

.label { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--teal); }
.label a { text-decoration: none; }
.label a:hover { text-decoration: underline; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 17px; color: var(--ink-soft); }

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 20px; text-decoration: none; }
.btn-outline { border: 3px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* Lists */
.listing h1, .article h1 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.listing h1 { font-size: clamp(44px, 7vw, 80px); }
.topics { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 28px 0 40px; }
.topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 3px solid var(--black); border-radius: 999px; font-weight: 700; text-decoration: none; }
.topics a:hover, .topics a[aria-current="page"] { background: var(--black); color: var(--white); }

.item { padding: 36px 0; border-top: 4px solid var(--black); max-width: 860px; }
.item h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
.item h2 a { text-decoration: none; }
.item h2 a:hover { color: var(--teal); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.item .summary { margin: 0 0 12px; font-size: 22px; line-height: 1.55; color: var(--ink-soft); }
.item .more { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; font-weight: 700; color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.empty { font-size: 22px; color: var(--ink-soft); }

/* Article */
.article { max-width: 760px; }
.article h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 20px; }
.lede { margin: 28px 0 0; font-size: 26px; line-height: 1.5; color: var(--ink-soft); }
.prose { margin-top: 36px; font-size: 22px; line-height: 1.75; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 1.8em 0 0.6em; }
.prose h2 { font-size: 36px; }
.prose h3 { font-size: 28px; }
.prose a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose img { display: block; max-width: 100%; height: auto; margin: 2em 0; }
.prose blockquote { margin: 2em 0; padding: 20px 0 0; border-top: 4px solid var(--teal); font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; color: var(--teal); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2.5em 0; }
.back { margin-top: 28px; }

.site-foot { margin-top: 56px; border-top: 4px solid var(--black); padding: 28px 0 44px; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: space-between; font-size: 17px; color: var(--ink-soft); }
.logo-sm { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; color: var(--black); }

@media (max-width: 520px) {
  body { font-size: 19px; }
  .wrap { padding: 0 18px; }
  .logo { font-size: 40px; }
  .prose { font-size: 20px; }
}

/* Share and Print */
button.btn { font-family: inherit; line-height: 1.2; cursor: pointer; background: transparent; }
.btn-small { gap: 10px; min-height: 48px; padding: 0 22px; font-size: 18px; }
.article-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 48px 0 0; padding-top: 28px; border-top: 4px solid var(--black); }
.share-status { font-weight: 700; color: var(--teal); }
.print-only { display: none; }

@media print {
  @page { margin: 18mm; }
  body { font-size: 12pt; line-height: 1.55; color: #000; background: #fff; }
  .site-head, .site-foot, .article-tools, .back, .topics, #state { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  main { padding: 0; }
  .article { max-width: none; }
  .print-only { display: block; }
  .print-brand { margin: 0 0 14pt; font-family: var(--display); font-weight: 800; font-size: 20pt; letter-spacing: -0.03em; }
  .article h1 { font-size: 28pt; }
  .lede { font-size: 14pt; margin-top: 12pt; }
  .prose { font-size: 12pt; line-height: 1.65; margin-top: 18pt; }
  .prose h2 { font-size: 20pt; break-after: avoid; }
  .prose h3 { font-size: 15pt; break-after: avoid; }
  .prose a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; word-break: break-all; }
  .prose img, .prose blockquote { break-inside: avoid; }
  .prose blockquote { color: #000; border-top-color: #000; }
  #print-url { margin-top: 24pt; padding-top: 8pt; border-top: 1pt solid #000; font-size: 10pt; word-break: break-all; }
}

/* Footer links */
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-weight: 700; font-size: 18px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-nav a:hover { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Topic intro and related stories */
.topic-intro { margin: 20px 0 0; font-size: 23px; line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.related { max-width: 760px; margin-top: 72px; padding-top: 28px; border-top: 4px solid var(--black); }
.related h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.related-item { padding: 20px 0; border-top: 2px solid var(--line); }
.related-item h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.15; letter-spacing: -0.01em; }
.related-item h3 a { text-decoration: none; }
.related-item h3 a:hover { color: var(--teal); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.related-item p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
@media print { .related, .foot-nav { display: none !important; } }
