/* Clutch & Coin — what it really takes to run a car.
   The idea: the green guide sign over the highway.
   - One memorable thing: the masthead IS a highway sign - reflective green
     plate, white inset border, rounded corners, set in Overpass (an open
     descendant of the Highway Gothic road-sign lettering). The lead story's
     headline sits on the same plate.
   - Supporting cue, kept quiet: an asphalt strip with a dashed lane line
     under the sign and above the footer.
   - Body in Overpass too: one family, sign-shop plain, cool concrete paper.
   Font: Overpass, SIL Open Font License, self-hosted. */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../../fonts/road-overpass-latin.woff2") format("woff2");
}

.theme-road {
  --paper:   #f1f2f0;   /* concrete, not cream */
  --surface: #ffffff;
  --ink:     #23272b;
  --muted:   #5a6168;
  --rule:    #d9dcd8;
  --sign:    #0b5e3c;   /* guide-sign green */
  --sign-d:  #08472d;
  --asphalt: #34383d;
  --lane:    #f2c230;   /* lane-line yellow, used only as a line */
  --accent:  #0b5e3c;
  --accent-d:#0b5e3c;
  --serif:   "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans:    "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lanes: repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 84px);
}
body.theme-road { font-size: 1.1875rem; line-height: 1.64; }
/* Overpass's middle dot has almost no right side-bearing, so the "A · B"
   meta strings collapse; small meta text uses the system face instead. */
.theme-road .byline, .theme-road figcaption {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- masthead: the sign ---------- */
.theme-road .masthead {
  background: var(--asphalt); border-bottom: 0; padding: 1.1rem 0 1.15rem;
}
.theme-road .bar {
  background: var(--sign); color: #fff; border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 6px #fff;
  padding: 1.2rem 1.7rem 1.1rem; max-width: calc(68rem - 2.5rem);
  margin: 0 auto;
}
.theme-road .masthead::after {        /* the lane line */
  content: ""; display: block; height: 4px; margin-top: 1.15rem;
  background: var(--lanes);
}
.theme-road .brand { color: #fff; gap: .8rem; }
.theme-road .mark { width: 38px; height: 38px; color: #fff; }
.theme-road .mark circle:nth-of-type(2) { stroke: var(--sign); }
.theme-road .mark circle:nth-of-type(3) { fill: var(--sign); }
.theme-road .mark path { stroke: var(--sign); }
.theme-road .wordmark {
  font-family: var(--sans); font-weight: 800; font-size: 2rem;
  letter-spacing: -.005em; line-height: 1; padding-top: .12em;
}
.theme-road .wordmark .w-first,
.theme-road .wordmark .w-last { color: #fff; font-weight: 800; font-style: normal; }
.theme-road .wordmark .amp { color: #fff; font-style: normal; font-weight: 400; opacity: .85; }
.theme-road .tagline { color: #e5efe9; font-size: 1rem; font-weight: 600; }
.theme-road .sections { background: var(--asphalt); border-top: 0; }
.theme-road .sections .inner { padding: .9rem 2.6rem 0; }
.theme-road .sections a { color: #fff; font-weight: 700; }
.theme-road .sections a:hover { color: var(--lane); }

/* ---------- article ---------- */
.theme-road .article { padding-top: 2.6rem; }
.theme-road .article h1 {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.06;
  font-size: clamp(2.1rem, 4.4vw, 3.05rem); margin-bottom: .9rem;
}
.theme-road .dek { color: var(--muted); font-size: 1.25rem; line-height: 1.5; }
.theme-road .byline {
  border-top: 0; border-bottom: 0; background: var(--surface);
  border-left: 6px solid var(--sign); padding: .7rem 1rem; font-size: .875rem;
}
.theme-road .body p { margin-bottom: 1.25rem; }
.theme-road .body h2 {
  font-weight: 800; font-size: 1.55rem; letter-spacing: -.015em; line-height: 1.18;
  margin-top: 2.6rem;
}
.theme-road .body h3 { font-weight: 700; font-size: 1.2rem; }
.theme-road .body strong { font-weight: 750; color: #111417; }
.theme-road .body a { color: var(--sign); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.theme-road .body a:hover { color: var(--sign-d); }
.theme-road figure img { border-radius: 8px; }
.theme-road figcaption { font-size: .8rem; }
.theme-road .inseries a, .theme-road .cluster a, .theme-road .sources a { color: var(--sign); }
.theme-road .cluster {
  background: var(--surface); border-top: 0; border-radius: 10px;
  padding: 1.2rem 1.4rem 1rem; box-shadow: inset 0 0 0 1px var(--rule);
}
.theme-road .cluster h2, .theme-road .sources h2 { font-weight: 800; font-size: 1.15rem; }
.theme-road .pager .next { background: var(--sign); border-radius: 8px; }

/* ---------- rail: small sign plates as box titles ---------- */
.theme-road .rail { padding-top: 2.9rem; }
.theme-road .railbox {
  background: var(--surface); border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--rule); padding: 0 1.15rem 1.1rem; overflow: hidden;
}
.theme-road .railbox h2 {
  margin: 0 -1.15rem 1rem; padding: .65rem 1.15rem .55rem; border-bottom: 0;
  background: var(--sign); color: #fff; font-size: .95rem; font-weight: 800;
}
.theme-road .railbox a { font-weight: 650; font-size: .98rem; }
.theme-road .railbox a:hover { color: var(--sign); }
.theme-road .toc li::before { color: var(--sign); font-weight: 800; }

/* ---------- home ---------- */
.cc-home { max-width: 68rem; margin: 0 auto; padding: 2.4rem 1.25rem 1rem; }
.cc-lead a { display: block; color: inherit; text-decoration: none; }
.cc-lead-img img {
  width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block;
  border-radius: 12px;
}
.cc-plate {
  position: relative; max-width: 40rem; margin: -7rem 0 0 2rem;
  background: var(--sign); color: #fff; border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 6px #fff;
  padding: 1.8rem 2rem 1.7rem;
}
.cc-plate h1 {
  font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.06;
  letter-spacing: -.02em; margin: 0 0 .7rem; color: #fff;
}
.cc-plate .dek { color: #dcebe2; font-size: 1.1rem; line-height: 1.5; margin: 0 0 1.3rem; }
.cc-go {
  display: inline-block; font-weight: 800; font-size: .95rem; color: var(--sign);
  background: #fff; padding: .6rem 1rem .5rem; border-radius: 6px;
}
.cc-lead a:hover .cc-go { background: var(--lane); color: var(--ink); }

.cc-more { margin-top: 3.4rem; }
.cc-more > h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; margin: 0 0 1.4rem;
  padding-bottom: .9rem;
  background: repeating-linear-gradient(90deg, var(--asphalt) 0 28px, transparent 28px 48px) bottom left / 100% 3px no-repeat;
}
.cc-grid {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 2rem;
}
.cc-grid a { display: block; color: inherit; text-decoration: none; }
.cc-grid img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  border-radius: 8px; margin-bottom: .85rem;
}
.cc-grid h3 { font-size: 1.22rem; font-weight: 800; line-height: 1.18; letter-spacing: -.012em; margin: 0 0 .4rem; }
.cc-grid p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.cc-grid a:hover h3 { color: var(--sign); }

/* ---------- footer ---------- */
.theme-road .foot {
  background: var(--asphalt); color: #c9ced2; border-top: 0; padding-top: 0; margin-top: 4rem;
}
.theme-road .foot::before {
  content: ""; display: block; height: 4px; margin-bottom: 2rem;
  background: var(--lanes);
}
.theme-road .foot .legal a { color: #fff; }

/* ---------- focus, small screens ---------- */
.theme-road a:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 900px) {
  .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-plate { margin: -3rem .9rem 0; }
}
@media (max-width: 620px) {
  .theme-road .masthead { padding-top: .8rem; }
  .theme-road .bar { margin: 0 .8rem; padding: 1rem 1.2rem; max-width: none; }
  .theme-road .wordmark { font-size: 1.6rem; }
  .theme-road .tagline { font-size: .9rem; }
  .theme-road .sections .inner { padding: .8rem 1.4rem 0; }
  .cc-lead-img img { aspect-ratio: 4 / 3; }
  .cc-plate { margin: -2.2rem .6rem 0; padding: 1.4rem 1.3rem 1.3rem; }
  .cc-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
}
