/* Yearning — a calm car-buying guide.
   Identity: graphite + signal orange, a step-by-step "journey" layout. */

:root {
  --graphite: #1b1f24;
  --graphite-2: #262c33;
  --orange: #ff6a1a;
  --orange-deep: #d8540f;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --line: #dfe3e8;
  --muted: #626a73;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 31, 36, .06), 0 12px 32px -20px rgba(27, 31, 36, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--graphite);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--graphite); color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 28px; }
.brand-word { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.topnav { display: flex; gap: 1.4rem; font-size: .95rem; font-weight: 600; }
.topnav a { color: #c7ccd2; }
.topnav a:hover { color: var(--orange); text-decoration: none; }

/* ---------- layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 4rem; }
.kicker {
  margin: 0; text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 700; color: var(--orange-deep);
}
.section-title { font-size: 1.4rem; margin: 0 0 1rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); margin: .7rem 0 1rem; font-weight: 850; }
.hero .hl { color: var(--orange); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn {
  display: inline-block; padding: .72rem 1.35rem; border-radius: 10px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: .95rem;
}
.btn:hover { background: var(--orange-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--paper); }

/* ---------- roadmap ---------- */
.roadmap { margin: 2rem 0 3rem; }
.road-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: road;
}
.road-item a {
  display: flex; flex-direction: column; gap: .3rem; height: 100%;
  padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--orange); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--graphite);
}
.road-item a:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s ease; }
.road-no { font-size: 1.6rem; font-weight: 850; color: var(--orange); font-variant-numeric: tabular-nums; }
.road-name { font-weight: 700; font-size: 1.05rem; }
.road-count { font-size: .84rem; color: var(--muted); }

/* ---------- latest ---------- */
.latest-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.latest-list li { border-bottom: 1px solid var(--line); }
.latest-list a {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem;
  padding: .8rem .2rem; color: var(--graphite);
}
.latest-list a:hover { text-decoration: none; }
.latest-title { font-weight: 650; }
.latest-meta { font-size: .84rem; color: var(--muted); }

/* ---------- article ---------- */
.step { padding-top: 2rem; }
.crumb { font-size: .82rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 .3rem; }
.step-head { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; }
.step-badge {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 800;
  border-radius: 6px; padding: 0 .4rem; margin-left: .2rem;
}
.step-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .5rem 0 .2rem; font-weight: 850; }
.zh { margin: 0 0 .9rem; color: var(--muted); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: .22rem .65rem; border-radius: 6px; background: var(--mist); color: var(--muted);
  border: 1px solid var(--line); text-transform: uppercase;
}
.chip-level { background: var(--graphite); color: #fff; border-color: var(--graphite); }

.spec {
  margin: 1.8rem 0; background: var(--paper); border: 1px solid var(--line);
  border-left: 5px solid var(--orange); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.spec-title { margin: 0 0 .8rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--orange-deep); }
.spec-list { margin: 0; display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.spec-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; align-items: baseline; }
.spec-row dt { font-weight: 700; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.spec-row dd { margin: 0; font-weight: 600; }

.prose { max-width: 70ch; }
.prose-section h2 {
  display: flex; gap: .6rem; align-items: baseline;
  font-size: 1.28rem; margin: 2.3rem 0 .7rem; padding-top: .5rem; border-top: 1px solid var(--line);
}
.prose-section:first-child h2 { border-top: 0; margin-top: 0; }
.sec-no { font-size: .9rem; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.prose p { margin: 0 0 1.05rem; }
.prose--narrow { max-width: 62ch; }

.related { margin-top: 3rem; padding-top: 1.4rem; border-top: 2px solid var(--graphite); }
.related h2 { font-size: 1.15rem; }
.related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.related-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--graphite);
}
.related-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s ease; }
.related-title { font-weight: 700; }
.related-goal { font-size: .85rem; color: var(--muted); }

/* ---------- category ---------- */
.cat-head { padding: 2rem 0 1rem; max-width: 66ch; }
.cat-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: .6rem 0 .5rem; font-weight: 850; }
.steps { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.step-row { border-bottom: 1px solid var(--line); }
.step-row a { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem .2rem; color: var(--graphite); }
.step-row a:hover { text-decoration: none; background: var(--paper); }
.step-no { font-size: 1.4rem; font-weight: 850; color: var(--orange); font-variant-numeric: tabular-nums; min-width: 2.2rem; }
.step-body { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.step-title { font-weight: 700; font-size: 1.06rem; }
.step-goal { font-size: .8rem; font-weight: 700; color: var(--orange-deep); text-transform: uppercase; letter-spacing: .05em; }
.step-desc { font-size: .9rem; color: var(--muted); }
.step-level { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.empty { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- legal ---------- */
.page { padding-top: 2.4rem; }
.page-head { border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .55rem 0 1.4rem; font-weight: 850; }

/* ---------- footer ---------- */
.foot {
  background: var(--graphite); color: #c7ccd2; padding: 2.2rem clamp(1rem, 4vw, 3rem);
  display: grid; gap: .8rem; text-align: center; justify-items: center;
}
.foot-lead { margin: 0; max-width: 62ch; font-size: .9rem; }
.foot-nav { display: flex; gap: 1.2rem; font-size: .9rem; font-weight: 600; }
.foot-nav a { color: #c7ccd2; }
.foot-nav a:hover { color: var(--orange); }
.fine { margin: 0; font-size: .82rem; color: #8b939c; }

@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: .1rem; }
  .topnav { gap: 1rem; font-size: .88rem; }
  .step-row a { gap: .7rem; }
  .step-level { display: none; }
}
