/* Common Sense Desk. Black #141414, off-white #FAF7F0, gold #D9B45A, Source Serif 4. */
:root {
  --bg: #141414;
  --bg-2: #1c1b19;
  --bg-3: #24221f;
  --line: #34312c;
  --text: #faf7f0;
  --muted: #b9b3a8;
  --gold: #d9b45a;
  --gold-soft: rgba(217, 180, 90, .14);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w: 1180px;
  --read: 700px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.65 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(217, 180, 90, .55); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 6px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 5; background: rgba(20, 20, 20, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.mast-inner { max-width: var(--w); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 24px; }
.logo img { height: 56px; width: auto; }
.sections { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; flex: 1; font: 500 15px/1 var(--sans); }
.sections::-webkit-scrollbar { display: none; }
.sections a { text-decoration: none; color: var(--muted); padding: 8px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.sections a:hover, .sections a[aria-current] { color: var(--text); border-color: var(--gold); }
.mast-search { color: var(--muted); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.mast-search:hover, .mast-search[aria-current] { color: var(--gold); background: var(--bg-3); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 6; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* labels and titles */
.label, .river-cat, .kicker { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.section-title { font: 700 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.block { margin: 56px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.block-head .section-title { border: 0; margin: 0; }
.block-head a { font: 500 14px/1 var(--sans); color: var(--gold); text-decoration: none; }

/* cards */
.front { padding-top: 28px; padding-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card, .hero { display: flex; flex-direction: column; gap: 12px; }
.card-img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; background: var(--bg-2); }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card h3, .hero h3 { margin: 0; font: 700 21px/1.25 var(--serif); }
.card h3 a, .hero h3 a { text-decoration: none; }
.card-dek { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card-meta { margin: 0; color: var(--muted); font: 400 13px/1 var(--sans); }
.front-top { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; margin-bottom: 36px; }
.hero h3 { font-size: 34px; line-height: 1.15; }
.hero .card-dek { font-size: 19px; }
.more { padding-top: 32px; border-top: 1px solid var(--line); }

/* river lists */
.river { list-style: none; margin: 0; padding: 0; }
.river li { border-bottom: 1px solid var(--line); }
.river a { display: grid; gap: 6px; padding: 14px 0; text-decoration: none; }
.river-title { font: 600 17px/1.35 var(--serif); }
.river time { color: var(--muted); font: 400 13px/1 var(--sans); }
.river-all a { grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 16px; }

/* section pages */
.section-head { padding: 16px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-head h1 { font: 700 44px/1.1 var(--serif); margin: 8px 0 10px; }
.crumbs { font: 500 13px/1 var(--sans); color: var(--muted); margin: 0; display: flex; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; }
.dek { color: var(--muted); font-size: 20px; line-height: 1.5; margin: 0; }
.empty { text-align: center; padding: 100px 0; }
.empty h1 { font: 700 36px/1.2 var(--serif); }
.empty p { color: var(--muted); font-size: 20px; }

/* article */
.article { padding: 32px 16px 20px; }
.article-head, .article-body { max-width: var(--read); margin: 0 auto; }
.article-head h1 { font: 700 44px/1.12 var(--serif); margin: 14px 0 14px; letter-spacing: -.01em; }
.byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline > img { border-radius: 50%; background: var(--bg-2); }
.byline-name { margin: 0; font: 600 15px/1.3 var(--sans); }
.byline-meta { margin: 0; color: var(--muted); font: 400 13px/1.5 var(--sans); display: flex; flex-wrap: wrap; gap: 0 12px; }
.copy-link { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 20px; padding: 7px 14px; font: 500 13px/1 var(--sans); cursor: pointer; }
.copy-link:hover { border-color: var(--gold); color: var(--gold); }
.hero-art { max-width: 960px; margin: 28px auto; }
.hero-art img { width: 100%; border-radius: 4px; }
.hero-art figcaption { color: var(--muted); font: 400 13px/1.4 var(--sans); margin-top: 8px; }
.takeaways { background: var(--bg-2); border-left: 3px solid var(--gold); padding: 18px 22px; margin: 0 0 28px; border-radius: 0 4px 4px 0; }
.takeaways h2, .toc h2, .sources h2, .read-next h2 { font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin: 6px 0; }
.toc { border: 1px solid var(--line); padding: 16px 22px; margin: 0 0 28px; border-radius: 4px; font-size: 16px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; }
.prose h2 { font: 700 28px/1.25 var(--serif); margin: 40px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font: 700 22px/1.3 var(--serif); margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose figure { margin: 28px 0; }
.prose figcaption { color: var(--muted); font: 400 13px/1.4 var(--sans); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font: 600 13px/1.3 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sources { margin: 40px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { margin: 6px 0; }
.domain { color: var(--muted); font: 400 12px/1 var(--sans); margin-left: 4px; }
.standards { background: var(--gold-soft); padding: 14px 18px; border-radius: 4px; font-size: 15px; margin: 24px 0; }
.standards p { margin: 0; }
.read-next { margin: 40px 0 20px; }
.read-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.read-next a { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; text-decoration: none; }
.rn-img { width: 140px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 4px; }
.read-next small { display: block; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.read-next strong { font: 600 17px/1.3 var(--serif); }
.page .article-head h1 { margin-top: 0; }

/* search */
.search-form input { width: 100%; font: 400 20px/1.2 var(--serif); padding: 14px 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.search-form input:focus { outline: none; border-color: var(--gold); }
.search-count { color: var(--muted); font: 400 14px/1.4 var(--sans); margin: 12px 0 0; }
.search-results { list-style: none; margin: 0; padding: 0; max-width: var(--read); }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results a { display: block; padding: 18px 0; text-decoration: none; }
.search-results h2 { font: 700 21px/1.3 var(--serif); margin: 8px 0 6px; }
.search-results p { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.search-results time { color: var(--muted); font: 400 13px/1 var(--sans); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; background: #101010; }
.foot-inner { max-width: var(--w); margin: 0 auto; padding: 40px 16px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-about img { height: 48px; width: auto; }
.foot-about p { color: var(--muted); font-size: 16px; max-width: 360px; }
.site-foot h2 { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.site-foot .foot-inner > div:not(.foot-about) a { display: block; text-decoration: none; color: var(--muted); font: 400 15px/2 var(--sans); }
.site-foot .foot-inner a:hover { color: var(--text); }
.foot-legal { max-width: var(--w); margin: 0 auto; padding: 16px 16px 32px; color: #8a857c; font: 400 13px/1.5 var(--sans); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .front-top { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .mast-inner { flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px 0; }
  .logo img { height: 46px; }
  .mast-search { margin-left: auto; }
  .sections { order: 3; flex-basis: 100%; gap: 18px; }
  .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .hero h3 { font-size: 27px; }
  .article-head h1, .section-head h1 { font-size: 32px; }
  .dek { font-size: 18px; }
  .prose h2 { font-size: 24px; }
  .river-all a { grid-template-columns: 1fr; gap: 6px; }
  .read-next a { grid-template-columns: 100px 1fr; }
  .rn-img { width: 100px; }
  .byline { flex-wrap: wrap; }
}
.prose .lead { font-size: 22px; line-height: 1.5; color: var(--text); border-left: 3px solid var(--gold); padding-left: 18px; }
