/* Cargo Van Load Boards - editorial publication styling */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #4b5563;
  --text-faint: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #1e40af;
  --accent-hover: #1e3a8a;
  --highlight: #fef3c7;
  --highlight-border: #f59e0b;
  --max-width: 720px;
  --max-width-wide: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav.site-nav a:hover { color: var(--accent); }
nav.site-nav a.active { color: var(--text); font-weight: 600; }

/* Main content */
main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.25rem;
}

main.wide { max-width: var(--max-width-wide); }

/* Typography */
h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.dek {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.byline {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; }

/* Editor's pick callout */
.editors-pick {
  background: var(--highlight);
  border-left: 4px solid var(--highlight-border);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.editors-pick h3 { margin-top: 0; }
.editors-pick .pick-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #92400e;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Review card */
.review {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}

.review-rank {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.review h3 { margin-top: 0; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0;
}

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}

.pros, .cons {
  background: var(--surface);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pros h4, .cons h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.pros h4 { color: #047857; }
.cons h4 { color: #b91c1c; }

.pros ul, .cons ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.pros li, .cons li { margin-bottom: 0.3rem; }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: #f3f4f6;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr.featured { background: var(--highlight); }

@media (max-width: 600px) {
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.5rem; }
}

/* FAQ */
.faq { margin-top: 2rem; }
.faq h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}
.faq h3:first-of-type { margin-top: 1rem; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 2.5rem 1.25rem;
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner p { margin-bottom: 0.4rem; }
.footer-inner a { color: var(--text-muted); }

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Card grid for home page */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: var(--text);
}

.card h3 { margin-top: 0; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* CTA box */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
  text-align: center;
}

.cta-box h3 { margin-top: 0; }

/* Updated/published date */
.update-meta {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0.5rem 0 1.5rem;
}
