:root {
  --ink: #17191b;
  --ink-soft: #4b5056;
  --paper: #f5f2ec;
  --panel: #ffffff;
  --steel: #5a6168;
  --safety: #d9680a;
  --safety-deep: #a84f06;
  --line: #ddd7c9;
  --line-soft: #e8e3d7;
  --focus: #a84f06;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2efe8;
    --ink-soft: #b7b0a3;
    --paper: #15171a;
    --panel: #1c1f22;
    --steel: #9aa1a8;
    --safety: #f0944a;
    --safety-deep: #f7b074;
    --line: #34383d;
    --line-soft: #292d31;
    --focus: #f0944a;
  }
}

:root[data-theme="dark"] {
  --ink: #f2efe8;
  --ink-soft: #b7b0a3;
  --paper: #15171a;
  --panel: #1c1f22;
  --steel: #9aa1a8;
  --safety: #f0944a;
  --safety-deep: #f7b074;
  --line: #34383d;
  --line-soft: #292d31;
  --focus: #f0944a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection {
  background: var(--safety);
  color: #17191b;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

.mono {
  font-family: var(--font-mono);
}

button,
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--safety-deep);
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 3px;
  background: var(--safety);
  display: inline-block;
}

/* ---------- NAV ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand .mark {
  width: 26px;
  height: 26px;
  color: var(--safety);
  flex: none;
}

nav.links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

nav.links a:hover {
  color: var(--ink);
}

.navtoggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.navtoggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- HERO ---------- */
.hero {
  padding-block: clamp(48px, 8vw, 84px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--safety);
}

.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-block: 18px 28px;
  text-transform: none;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-lg {
  background: var(--safety);
  color: #1a1203;
  border: none;
  border-radius: 4px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cta-lg:hover {
  background: var(--safety-deep);
}

.link-quiet {
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
}

.link-quiet:hover {
  border-color: var(--safety);
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
}

/* ---------- SECTIONS ---------- */
section {
  padding-block: clamp(48px, 7vw, 84px);
}

.band-panel {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.sec-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-top: 10px;
}

.sec-head p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-top: 12px;
  text-transform: none;
}

/* ---------- CATEGORY GRID ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-card {
  background: var(--panel);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 170px;
  text-decoration: none;
  color: var(--ink);
}

.cat-card .icon {
  width: 36px;
  height: 36px;
  color: var(--safety);
}

.cat-card h3 {
  font-size: 18px;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
}

.cat-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- GUIDE CARD ---------- */
.guide-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
}

.guide-card .photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}

.guide-card .photo svg {
  width: 100%;
  height: 100%;
}

.guide-card .body {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.guide-card .tag {
  display: inline-flex;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--safety);
  color: #1a1203;
  padding: 4px 10px;
  border-radius: 3px;
}

.guide-card h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  text-transform: none;
}

.guide-card p {
  color: var(--ink-soft);
  font-size: 15px;
  text-transform: none;
  margin: 0;
}

/* ---------- METHOD / WHY ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.why-item {
  display: flex;
  gap: 16px;
}

.why-item .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--safety-deep);
  flex: none;
  padding-top: 3px;
  width: 24px;
}

.why-item h3 {
  font-size: 16.5px;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.why-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  text-transform: none;
}

/* ---------- NEWSLETTER / CTA BAND ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(44px, 7vw, 72px);
}

.cta-band h2 {
  color: var(--paper);
  font-size: clamp(26px, 3vw, 36px);
  max-width: 20ch;
}

.cta-band p {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  margin-top: 12px;
  font-size: 15.5px;
  max-width: 50ch;
  text-transform: none;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cta-row input[type="email"] {
  flex: 1 1 240px;
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: 4px;
  color: var(--paper);
  padding: 13px 15px;
  font-size: 15px;
  font-family: var(--font-body);
}

.cta-row input[type="email"]::placeholder {
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 2px solid var(--ink);
  padding-block: 32px;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.foot-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-links a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--safety-deep);
}

/* ---------- GUIDE ARTICLE PAGE ---------- */
.article-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
  padding-block: clamp(40px, 7vw, 72px) 0;
}

.article-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  text-transform: none;
  margin-top: 14px;
}

.article-head .dek {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 60ch;
  text-transform: none;
}

.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(32px, 5vw, 56px);
}

.article-body h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  text-transform: none;
  margin-top: 48px;
  margin-bottom: 14px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  text-transform: none;
}

.article-body p.lead {
  font-size: 18px;
  color: var(--ink-soft);
}

.spec-table-wrap {
  overflow-x: auto;
  margin-block: 24px;
  border: 1px solid var(--line);
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}

table.spec-table th,
table.spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.spec-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--line-soft);
}

table.spec-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

table.spec-table tr:last-child td {
  border-bottom: none;
}

.pick-card {
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  margin-block: 20px;
  background: var(--panel);
}

.pick-card .rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--safety-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pick-card h3 {
  font-size: 22px;
  text-transform: none;
  margin-top: 8px;
}

.pick-card .model {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.pros-cons ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pros-cons li {
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}

.pros-cons .pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--safety-deep);
  font-weight: 700;
}

.pros-cons .cons li::before {
  content: "\2212";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.pros-cons .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: block;
}

.sources {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
}

.sources h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.sources ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sources a {
  color: var(--safety-deep);
  text-decoration: underline;
}

@media (max-width: 860px) {
  nav.links {
    display: none;
  }
  .navtoggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-card {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}
