/* ============================================================
   Chinese Motorcycle Review — main stylesheet
   Plain CSS, no frameworks. Mobile-first, readability-focused.
   Palette: near-black header, CMR red accent (#c8102e).
   ============================================================ */

:root {
  --ink: #1c1f24;
  --ink-soft: #454b54;
  --paper: #ffffff;
  --paper-alt: #f5f3ef;
  --line: #e2ded6;
  --dark: #14181d;
  --dark-2: #1e242c;
  --red: #c8102e;
  --red-dark: #a30d26;
  --max: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--dark);
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 28px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { height: 84px; width: auto; }
.brand-name { font-size: 1.28rem; font-weight: 800; letter-spacing: .2px; line-height: 1.15; }
.brand-name small { display: block; font-size: .78rem; font-weight: 500; color: #b9c0c9; letter-spacing: .4px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.main-nav a {
  color: #e8ebef; font-weight: 600; font-size: .98rem; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--red); }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }

/* ---------- Hero (home) ---------- */
.hero { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding: 34px 0 38px; }
.hero .kicker, .kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
.hero p.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 18px; max-width: 46rem; }
.hero figure { margin: 22px 0 0; }
.hero figure img { border-radius: var(--radius); width: 100%; }

/* ---------- Sections & cards ---------- */
.section { padding: 38px 0 8px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.5rem; margin: 0; }
.section-head a.more { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--red); text-decoration: none; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card .meta { margin-top: auto; font-size: .83rem; color: #7a818c; }
.badge {
  display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: var(--red);
  padding: 3px 8px; border-radius: 4px;
}
.badge.archive { background: #6b7280; }

/* ---------- Feature (Journey story on home) ---------- */
.feature { background: var(--dark); color: #eef1f4; border-radius: var(--radius); overflow: hidden; margin: 38px 0; }
.feature figure { margin: 0; }
.feature figure img { width: 100%; }
.feature figcaption { padding: 10px 22px 0; font-size: .86rem; color: #aeb6c0; }
.feature-body { padding: 8px 22px 26px; }
.feature-body h2 { color: #fff; margin: 10px 0 12px; font-size: 1.6rem; }
.feature-body p { color: #d6dbe1; max-width: 46rem; }
.feature-body .kicker { color: #ff5b74; }

/* ---------- Articles ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 34px 20px 10px; }
.article h1 { font-size: 2rem; line-height: 1.22; margin: 6px 0 10px; }
.article .byline { color: #7a818c; font-size: .9rem; margin-bottom: 24px; }
.article p { font-size: 1.09rem; line-height: 1.75; margin: 0 0 1.15em; }
.article p strong.lead { color: var(--ink); }
.article ul, .article ol { font-size: 1.06rem; line-height: 1.7; padding-left: 1.4em; margin: 0 0 1.15em; }
.article li { margin-bottom: .45em; }
.article figure { margin: 26px 0; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.article .notice {
  background: var(--paper-alt); border-left: 4px solid var(--red);
  padding: 12px 16px; font-size: .98rem; margin-bottom: 1.4em;
}
.sources { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; }
.sources h2 { font-size: 1.15rem; margin: 0 0 10px; }
.sources ul { font-size: .95rem; line-height: 1.55; }
.sources a { word-break: break-word; }
.back-link { display: inline-block; margin: 26px 0 6px; font-weight: 600; }

/* ---------- Video embeds / placeholders ---------- */
.video-wrap {
  position: relative; aspect-ratio: 16/9; background: var(--dark-2);
  border-radius: var(--radius); overflow: hidden;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 18px; color: #c3cad2; background: var(--dark-2);
  font-size: .95rem; border-radius: var(--radius);
}

/* ---------- Image placeholder (only where a photo could not be recovered) ---------- */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #eceae5, #eceae5 14px, #e2ded6 14px, #e2ded6 28px);
  border: 1px dashed #b9b3a6; border-radius: var(--radius); color: #6d675c;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 34px 18px; font-size: .92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c9d0d8; margin-top: 54px; }
.footer-inner { padding: 30px 0 34px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; }
.site-footer a { color: #fff; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.05rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom { border-top: 1px solid #2a313a; padding: 14px 0 20px; font-size: .86rem; color: #98a1ab; }

/* ---------- Misc ---------- */
.page-head { padding: 34px 0 4px; }
.page-head h1 { font-size: 2rem; margin: 0 0 8px; }
.page-head p { color: var(--ink-soft); max-width: 46rem; margin: 0; }
.banner-img { width: 100%; border-radius: var(--radius); margin: 20px 0 4px; }
