:root {
  --dd-bg: #0E1016;
  --dd-card: #1C1F28;
  --dd-accent: #FF4D28;
  --dd-text: #F5F5F0;
  --dd-title: #FFF5EE;
  --ink: #14161a;
  --ink-2: #3a3d42;
  --muted: #5d6168;
  --line: #cfcbc3;
  --bg: #eceae6;
  --surface: #f4f3f0;
  --input: #f7f6f3;
  --signup: #f3ebe7;
  --link: #0a4ec8;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --tap: 44px; --r: 8px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { text-decoration: none; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 40; }
.skip:focus { left: 8px; top: 8px; }
.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; }
.hv, .hv-date { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--s4); padding-right: var(--s4); }
.sponsor { background: var(--dd-card); color: var(--dd-text); font-size: .85rem; }
.sponsor a { color: var(--dd-text); text-decoration: none; display: block; padding: 6px 0; }
.pvbar { background: var(--dd-bg); color: var(--dd-text); font-size: .8rem; }
.pvbar .wrap { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.pvbar a { color: #ffd0c2; }
.pvbar p { margin: 0; }
.pvbar button, .btn, .signup button, .search button {
  min-height: var(--tap); background: var(--dd-accent); color: var(--ink); border: 0; border-radius: var(--r);
  font: inherit; font-weight: 700; padding: 0 14px; cursor: pointer;
}
.pvbar button { min-height: 32px; background: transparent; color: var(--dd-text); border: 1px solid #A0A6B2; white-space: nowrap; }
.site-head { position: sticky; top: 0; z-index: 20; background: var(--dd-bg); color: var(--dd-text); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 52px; }
.logo { color: var(--dd-title); font-weight: 800; text-decoration: none; letter-spacing: -.03em; font-size: 1.15rem; }
.logo b { color: var(--dd-accent); }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; flex: 1; }
.site-head nav a { color: var(--dd-text); text-decoration: none; white-space: nowrap; min-height: var(--tap); display: inline-flex; align-items: center; font-size: .92rem; }
.site-head nav a.cta { background: var(--dd-accent); color: var(--ink); border-radius: var(--r); padding: 0 12px; font-weight: 700; }
@media (max-width: 899px) {
  .site-head .wrap { flex-wrap: wrap; align-items: center; row-gap: 0; padding-top: 4px; padding-bottom: 2px; }
  .site-head nav { flex: 1 0 100%; gap: 0 12px; }
  .site-head nav a { min-height: 34px; font-size: .84rem; }
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--dd-accent); transform: scaleX(var(--scroll, 0)); transform-origin: 0 50%; }
main { padding-bottom: var(--s7); }
main section { padding: var(--s6) 0; border-top: 1px solid var(--line); }
main section:first-child { border-top: 0; }
h1 { font-size: clamp(1.55rem, 5.4vw, 2.55rem); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 var(--s3); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.2; margin: 0 0 var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
h2 .more { margin-left: auto; font-size: .9rem; font-weight: 600; }
h3 { margin: 0 0 6px; font-size: 1.02rem; }
p { margin: 0 0 var(--s3); }
.eyebrow, .updated, .meta, .fine { color: var(--muted); }
.eyebrow { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; margin-bottom: var(--s2); }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 68ch; min-height: 3lh; }
.signup { background: var(--signup); border: 1px solid #e4cfc6; border-radius: var(--r); padding: var(--s3); margin: 0 0 var(--s4); }
.signup strong { color: var(--ink); }
.signup .sbs, .signup .fine { color: var(--ink-2); }
.signup a { color: #b8321c; }
.signup form, .search { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: end; }
.signup input[type=email], .search input, .search select {
  min-height: var(--tap); border: 1px solid #b5b4ae; border-radius: var(--r); padding: 0 12px; font: inherit; color: var(--ink); background: var(--input);
}
.signup input[type=email] { flex: 1 1 180px; min-width: 0; }
.search { margin: var(--s3) 0; }
.search label { display: grid; gap: 4px; font-size: .8rem; color: var(--ink-2); flex: 1 1 100%; }
.search label.grow { flex: 2 1 220px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; }
.msg { min-height: 1.25em; }
a.btn { display: inline-block; line-height: var(--tap); text-decoration: none; margin: 0 8px 8px 0; vertical-align: middle; }
.cta-row { margin: var(--s3) 0; }
.chips, .catlist, .steps, .posts, .issues { list-style: none; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; }
.grid { display: grid; gap: var(--s3); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); color: inherit; text-decoration: none; }
.card p:last-child { margin-bottom: 0; }
.badge { color: #9a3412; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.steps { display: grid; gap: var(--s3); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); }
.steps code { color: #9a3412; font-size: .78rem; }
.tools { display: grid; gap: var(--s3); }
.tool { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); color: inherit; text-decoration: none; }
.tool-score { grid-row: span 3; font-weight: 800; font-size: 1.25rem; color: var(--ink); align-self: center; }
.tool-name { font-weight: 700; }
.tool-type, .tool-desc, .meta, .fine { color: var(--muted); font-size: .92rem; }
.tool-desc { grid-column: 2; }
.note { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: var(--s4); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 var(--s3); list-style: none; }
.roles li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: .8rem; }
.posts { display: grid; gap: var(--s3); }
.post { display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2) var(--s3); }
.post-cast { width: 56px; height: 56px; }
.rank { font-weight: 800; }
.catlist { display: grid; gap: 4px; }
.catlist li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.catlist b { font-variant-numeric: tabular-nums; }
.issues li { margin: 0 0 8px; }
.xposts { display: grid; gap: var(--s3); min-width: 0; }
.xposts article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); min-width: 0; }
.xposts a { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  #top { padding-top: 8px; }
}
footer { background: var(--dd-bg); color: var(--dd-text); padding: var(--s6) 0; font-size: .92rem; }
footer a { color: #d6e2ff; }
footer .fine, footer .meta { color: #c5cad3; }
@media (min-width: 800px) {
  .grid.m2 { grid-template-columns: 1fr 1fr; }
  .grid.m3 { grid-template-columns: 1fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .tools { grid-template-columns: 1fr 1fr; }
  .search label { flex: 0 0 auto; }
  .search label.grow { flex: 1 1 auto; }
}
@media (min-width: 1040px) {
  .grid.m3 { grid-template-columns: 1fr 1fr 1fr; }
}
