@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --ink: #17201e;
  --muted: #65716d;
  --paper: #f4f1e9;
  --paper-deep: #e8e2d6;
  --white: #fffefa;
  --green: #173b33;
  --green-soft: #d9e4dc;
  --lime: #d8f06a;
  --coral: #e97a58;
  --line: rgba(23, 32, 30, .15);
  --shadow: 0 24px 60px rgba(23, 32, 30, .12);
  --radius: 26px;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed; z-index: 999; left: 1rem; top: 1rem;
  transform: translateY(-160%); padding: .75rem 1rem;
  background: var(--lime); color: var(--green); border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; z-index: 50; top: 0;
  min-height: 74px; padding: 0 clamp(1.15rem, 4vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: rgba(244, 241, 233, .91); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--lime); font-family: var(--serif); }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--green); }
.menu-button { display: none; }

.hero {
  min-height: calc(100vh - 74px); max-width: 1600px; margin: auto; padding: clamp(2.5rem, 7vw, 7rem) clamp(1.2rem, 4vw, 4rem);
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: center;
}
.eyebrow { margin: 0 0 1rem; color: var(--coral); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3.35rem, 6.4vw, 7rem); line-height: .91; }
h1 em { color: var(--green); font-weight: 400; }
.hero-lede { max-width: 650px; margin: 1.75rem 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-verdict { max-width: 650px; padding: 1.25rem 0; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verdict-number { color: var(--coral); font-size: .75rem; font-weight: 700; }
.hero-verdict strong { font-size: 1.05rem; }
.hero-verdict p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem 1.2rem; border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: #225246; }
.text-link { color: var(--green); font-weight: 700; font-size: .9rem; text-underline-offset: 4px; }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; z-index: -1; border: 1px solid var(--green); border-radius: 45% 45% 22px 22px; transform: rotate(-1deg); }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50% 50% 24px 24px; box-shadow: var(--shadow); }
.hero-media figcaption { position: absolute; right: -1rem; bottom: 1.5rem; max-width: 250px; padding: .9rem 1rem; background: var(--lime); border-radius: 14px; box-shadow: 0 14px 30px rgba(23,32,30,.16); font-size: .86rem; font-weight: 700; transform: rotate(-2deg); }
.hero-media figcaption span { display: block; color: var(--green); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.reference-strip { padding: 1.35rem clamp(1.2rem, 4vw, 4rem); display: grid; grid-template-columns: auto minmax(100px, 1fr) auto auto; gap: 2rem; align-items: center; color: white; background: var(--green); }
.reference-strip > div:not(.reference-line) { display: grid; }
.reference-strip span, .reference-strip small { color: rgba(255,255,255,.62); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.reference-strip strong { font-size: .95rem; }
.reference-note { grid-column: 1 / -1; margin: -.6rem 0 0; color: rgba(255,255,255,.56); font-size: .68rem; }
.reference-line { height: 2px; position: relative; background: rgba(255,255,255,.24); }
.reference-line i { position: absolute; top: 50%; width: 9px; height: 9px; border: 2px solid var(--green); border-radius: 50%; background: var(--lime); transform: translate(-50%,-50%); }
.reference-line i:nth-child(1) { left: 0; } .reference-line i:nth-child(2) { left: 42%; } .reference-line i:nth-child(3) { left: 100%; }

.section { max-width: 1500px; margin: auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 4vw, 4rem); }
.section-heading { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading h2, .editorial-card h2, .checklist-shell h2 { margin: 0; font-size: clamp(2.55rem, 4.6vw, 5rem); line-height: .98; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 3rem; align-items: end; }
.split-heading > p { max-width: 560px; margin: 0; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.podium-card { overflow: hidden; position: relative; background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(23,32,30,.07); }
.podium-card:first-child { transform: translateY(-1rem); }
.podium-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.podium-content { padding: 1.5rem; }
.podium-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.podium-rank { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-weight: 700; }
.podium-card h3 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.4rem); line-height: 1; }
.podium-price { margin: .9rem 0; color: var(--green); font-size: 1.1rem; font-weight: 700; }
.podium-card p { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row div { padding: .75rem .4rem; }
.stat-row div + div { border-left: 1px solid var(--line); }
.stat-row small { display: block; color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.stat-row strong { font-size: .84rem; }

.decision-banner { max-width: 1500px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem); background: var(--coral); border-radius: var(--radius); }
.decision-banner .eyebrow { color: #421b10; }
.decision-banner blockquote { max-width: 1100px; margin: 0; color: #fff8ee; font-size: clamp(2.1rem, 4vw, 4.5rem); line-height: 1.05; }

.filters { position: sticky; top: 74px; z-index: 30; margin-bottom: 2rem; padding: .8rem; display: flex; justify-content: space-between; gap: 1rem; background: rgba(244,241,233,.94); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px); }
.filter-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter { padding: .6rem .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .82rem; font-weight: 700; }
.filter:hover, .filter:focus-visible, .filter.is-active { color: white; background: var(--green); }
.sort-control { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.sort-control select { min-height: 40px; padding: 0 2.3rem 0 .8rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); }
.comparison-key { margin-bottom: 2rem; display: flex; gap: 1rem; }
.comparison-key p { flex: 1; margin: 0; padding: 1rem 1.15rem; color: var(--muted); background: var(--paper-deep); border-radius: 12px; font-size: .82rem; }

.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.car-card { overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1px solid transparent; border-radius: 20px; transition: transform .2s, box-shadow .2s; }
.car-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(23,32,30,.09); }
.car-card[hidden] { display: none; }
.car-photo { position: relative; }
.car-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.car-label { position: absolute; left: .8rem; top: .8rem; padding: .4rem .65rem; border-radius: 999px; color: var(--green); background: var(--lime); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.car-content { padding: 1.25rem; display: flex; flex: 1; flex-direction: column; }
.car-heading { display: flex; justify-content: space-between; gap: .7rem; align-items: start; }
.car-heading h3 { margin: 0; font-family: var(--sans); font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
.car-price { white-space: nowrap; color: var(--green); font-weight: 700; }
.car-type { margin: .35rem 0 .8rem; color: var(--coral); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.car-verdict { margin: 0; color: var(--muted); font-size: .88rem; }
.car-specs { margin: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.car-specs div { padding: .55rem .65rem; background: #f4f2ec; border-radius: 8px; font-size: .75rem; }
.car-specs small { display: block; color: var(--muted); }
.details-toggle { margin-top: auto; padding: .7rem 0; border: 0; border-top: 1px solid var(--line); color: var(--green); background: transparent; cursor: pointer; text-align: left; font-weight: 700; }
.card-details { padding-top: .6rem; font-size: .8rem; }
.card-details[hidden] { display: none; }
.card-details h4 { margin: .8rem 0 .2rem; }
.card-details ul { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.official-link { display: inline-block; margin-top: 1rem; color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.image-credit { margin-top: .7rem; color: #8b928f; font-size: .68rem; }

.table-wrap { overflow-x: auto; margin-top: 3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
caption { padding: 1rem; text-align: left; font-weight: 700; }
th, td { padding: .9rem 1rem; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
tbody tr:hover { background: #f5f7ef; }
.delta-good { color: #2d705c; } .delta-warn { color: #9a4e38; }

.two-column-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.editorial-card { min-height: 560px; padding: clamp(2rem, 4vw, 4rem); border-radius: var(--radius); }
.dark-card { display: flex; flex-direction: column; justify-content: center; color: white; background: var(--green); }
.dark-card .eyebrow { color: var(--lime); }
.dark-card p { color: rgba(255,255,255,.7); }
.plain-list { padding: 0; list-style: none; }
.plain-list li { padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.17); }
.photo-card { overflow: hidden; position: relative; padding: 0; display: flex; flex-direction: column; background: #101714; }
.photo-card img { height: 55%; width: 100%; object-fit: cover; opacity: .85; }
.photo-card > div { flex: 1; padding: 2rem; color: white; }
.photo-card h3 { margin: 0; font-size: 2.2rem; }
.photo-card p { color: rgba(255,255,255,.68); }
.text-link.light { color: var(--lime); }

.used-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.used-card { padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.featured-used { grid-column: span 2; color: white; background: var(--green); }
.used-card h3 { margin: .4rem 0; font-size: 1.45rem; }
.used-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.featured-used p { color: rgba(255,255,255,.7); }
.used-price { color: var(--coral) !important; font-size: 1.25rem !important; font-weight: 700; }
.rank-badge { color: var(--lime); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.import-note { margin-top: 1rem; padding: 1.2rem 1.4rem; color: #714027; background: #f3d9bd; border-radius: 14px; }

.method { border-top: 1px solid var(--line); }
.criteria-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.criteria-grid article { padding: 1.4rem; border-left: 1px solid var(--line); }
.criteria-grid article:first-child { border-left: 0; }
.criteria-grid span { color: var(--coral); font-size: .75rem; font-weight: 700; }
.criteria-grid h3 { margin: 1rem 0 .5rem; font-size: 1.4rem; }
.criteria-grid p { color: var(--muted); font-size: .9rem; }

.checklist-shell { padding: clamp(2rem, 6vw, 6rem); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 8rem); color: white; background: #1e2926; border-radius: var(--radius); }
.checklist-shell .eyebrow { color: var(--lime); }
.checklist-shell > div > p:last-child { color: rgba(255,255,255,.65); }
.checklist { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.checklist li { padding: 1rem 0; display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem; border-top: 1px solid rgba(255,255,255,.16); }
.checklist li span { color: var(--lime); font-size: .75rem; font-weight: 700; }

.sources { padding-top: 5rem; padding-bottom: 4rem; border-top: 1px solid var(--line); }
.source-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.source-links a { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: .8rem; font-weight: 700; text-decoration: none; }
.source-links a:hover { border-color: var(--green); }
.fine-print { max-width: 1100px; margin-top: 2rem; color: var(--muted); font-size: .74rem; }
footer { padding: 2rem clamp(1.2rem, 4vw, 4rem); display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.65); background: var(--green); font-size: .82rem; }
footer a { color: var(--lime); }
.noscript { padding: 1rem; background: #fff0c8; text-align: center; }
.empty-state { grid-column: 1 / -1; padding: 3rem; color: var(--muted); text-align: center; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .used-grid { grid-template-columns: repeat(2, 1fr); }
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
  .criteria-grid article:nth-child(3) { border-left: 0; }
}

@media (max-width: 780px) {
  body { overflow-x: hidden; }
  .site-header { min-height: 64px; }
  .menu-button { display: block; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: .8rem; }
  .site-header nav { position: absolute; left: 0; right: 0; top: 64px; padding: 1rem 1.2rem; display: none; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-header nav.is-open { display: flex; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 3.5rem; }
  h1 { font-size: clamp(3rem, 11vw, 4.4rem); overflow-wrap: normal; }
  .hero-media { max-width: 560px; }
  .hero-media img { aspect-ratio: 4/3; border-radius: 24px; }
  .hero-media::before { border-radius: 24px; }
  .hero-media figcaption { right: .5rem; }
  .reference-strip { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .reference-line { display: none; }
  .podium, .two-column-section, .checklist-shell, .split-heading { grid-template-columns: 1fr; }
  .podium-card:first-child { transform: none; }
  .filters { top: 64px; align-items: stretch; flex-direction: column; }
  .sort-control { justify-content: space-between; }
  .comparison-key { flex-direction: column; }
  .car-grid { grid-template-columns: 1fr; }
  .editorial-card { min-height: auto; }
  .photo-card { min-height: 580px; }
  .used-grid { grid-template-columns: 1fr; }
  .featured-used { grid-column: auto; }
  .criteria-grid { grid-template-columns: 1fr; }
  .criteria-grid article, .criteria-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .checklist-shell { gap: 2rem; }
}

@media (max-width: 480px) {
  .brand span:last-child { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { text-align: center; }
  .reference-strip { grid-template-columns: 1fr; }
  .section, .hero { padding-left: 1rem; padding-right: 1rem; }
  .decision-banner { margin: 0 1rem; border-radius: 20px; }
  .filter-group { display: grid; grid-template-columns: 1fr 1fr; }
  .filter { border: 1px solid var(--line); }
  .car-specs { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
