/* Compare Comfort — shared site styles
   First pass at a visual identity: warm neutral background, serif headlines
   for an editorial/trust feel (Wirecutter/Consumer Reports style), clean
   sans body text, one warm accent color used sparingly. Nothing here is
   final branding — swap freely once Wade has a logo/color preference. */

:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-muted: #F1EDE3;
  --border: #E1DACB;
  --text: #24221D;
  --text-secondary: #5C574C;
  --text-muted: #8A8375;
  --accent: #B5533C;       /* warm terracotta — links, badges, CTA */
  --accent-dark: #8F3F2C;
  --accent-blue: #C0DCE3;      /* pale powder blue — terracotta's true complement, secondary accent (matches YouTube branding). Used sparingly: callouts, info badges, not CTAs. */
  --accent-blue-deep: #275B68; /* readable text/icon version of the blue accent */
  --accent-blue-bg: #EAF3F5;   /* very light tint of the blue accent, for subtle backgrounds */
  --success: #4E7C5E;
  --success-bg: #E9F1EA;
  --danger: #B23B3B;
  --danger-bg: #FBECEA;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --max-width: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0 48px;
  background: var(--surface-muted);
}
.site-footer .wrap { max-width: var(--max-width); }
.disclosure {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}
.footer-links { font-size: 14px; }
.footer-links a { color: var(--text-secondary); margin-right: 16px; }
.footer-links a:hover { color: var(--accent); }

/* Article shell */
.article {
  padding-top: 40px;
}
.article h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--text);
}
.article .dek {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  line-height: 1.55;
}
.article p { margin: 0 0 18px; }
.article h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 44px 0 14px;
  color: var(--text);
}
.article h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.note-box {
  background: var(--accent-blue-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-blue-deep);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

/* Results table */
.results-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 0 12px;
  background: var(--surface);
}
table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}
table.results th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 12px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}
table.results th.center, table.results td.center { text-align: center; }
table.results td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.results tr:last-child td { border-bottom: none; }
table.results td.rank { color: var(--text-muted); font-variant-numeric: tabular-nums; }
table.results td.product { font-weight: 700; }
table.results td.verdict { color: var(--text-secondary); }
table.results td.verdict.warn { color: var(--danger); font-weight: 600; }
.icon-yes { color: var(--success); font-size: 18px; }
.icon-no { color: var(--text-muted); font-size: 18px; }
.icon-no.warn { color: var(--danger); }
.table-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 40px;
}

/* Product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 0 0 28px;
}
.product-card .rank-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: #F7E7E1;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.product-card.warn .rank-badge {
  color: var(--danger);
  background: var(--danger-bg);
}
.product-card h3 { font-size: 20px; margin-bottom: 4px; }
.product-card .price-tag {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.avg {
  color: var(--text-muted);
  font-size: 0.92em;
}
table.results td .avg { display: block; margin-top: 2px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.gallery figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
.gallery figure { margin: 0; }
.process-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.process-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.process-gallery figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
.process-gallery figure { margin: 0; }
.article-hero-art {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 0 0 28px;
}
.material-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 0 0 28px;
}
.material-card h3 { font-family: var(--font-serif); font-size: 22px; margin: 0 0 14px; }
.material-art {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--surface-muted);
  border-radius: var(--radius);
  font-size: 14px;
}
.spec-row span { color: var(--text-secondary); }
.spec-row strong { color: var(--text); font-weight: 700; }
.material-card .writeup { font-size: 15.5px; color: var(--text); margin: 0 0 14px; }
.material-card .best-for, .material-card .our-pick { font-size: 15.5px; margin: 0 0 8px; color: var(--text); }
.material-card .best-for strong, .material-card .our-pick strong { color: var(--accent-dark); }
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.pros-cons h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.pros-cons .pros h4 { color: var(--success); }
.pros-cons .cons h4 { color: var(--danger); }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--text-secondary); }
.pros-cons li { margin-bottom: 4px; }
.product-card .writeup { font-size: 15.5px; color: var(--text); margin: 0; }

/* Bullet lists */
.article ul.plain { padding-left: 20px; margin: 0 0 18px; }
.article ul.plain li { margin-bottom: 10px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 { font-size: 16px; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--text-secondary); font-size: 15.5px; }

/* Homepage grid */
.hero { padding: 48px 0 8px; }
.hero h1 { font-family: var(--font-serif); font-size: 30px; margin: 0 0 12px; }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 560px; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px 0 40px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.article-card .card-body { padding: 16px 18px 20px; }
.article-card h2 { font-family: var(--font-serif); font-size: 19px; margin: 0 0 8px; }
.article-card p { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 12px; }
.article-card .status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.article-card .status-badge.live { color: var(--success); background: var(--success-bg); }
.article-card .status-badge.draft { color: var(--accent-blue-deep); background: var(--accent-blue-bg); }

/* About page */
.about-body { padding: 40px 0 0; }
.about-body h1 { font-family: var(--font-serif); font-size: 30px; margin: 0 0 20px; }
.about-body p { font-size: 16.5px; color: var(--text); margin: 0 0 18px; }

@media (max-width: 640px) {
  .article h1 { font-size: 27px; }
  .pros-cons { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
}
