/* Longest Road: road-sign world. Green direction signs, white legends, yellow route plates. */
:root {
  --green: #006b3d;
  --green-deep: #00542f;
  --legend: #ffffff;
  --legend-2: #cceed9;
  --yellow: #ffd100;
  --ink: #121210;
  --bg: #f3f4f1;
  --surface: #ffffff;
  --text: #171a17;
  --muted: #545b55;
  --rule: #dfe3de;
  --link: #006b3d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #0d5c36;
    --green-deep: #08432a;
    --bg: #0f1210;
    --surface: #181c19;
    --text: #edf1ec;
    --muted: #a6aea7;
    --rule: #2a302b;
    --link: #3dc27a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.top { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.top img { width: 40px; height: 40px; border-radius: 10px; }
.top a.brand { font-family: "Overpass", sans-serif; font-weight: 900; font-size: 20px; color: var(--text); text-decoration: none; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.sign {
  position: relative;
  background: linear-gradient(var(--green), var(--green-deep));
  color: var(--legend);
  border-radius: 22px;
  padding: 30px 28px 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  margin: 8px 0 40px;
}
.sign::after {
  content: ""; position: absolute; inset: 6px;
  border: 3px solid var(--legend); border-radius: 16px; pointer-events: none;
}
.plate {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-family: "Overpass", sans-serif; font-weight: 900; font-size: 15px;
  padding: 4px 10px 2px; border-radius: 5px; letter-spacing: .01em;
}
.sign h1 {
  font-family: "Overpass", sans-serif; font-weight: 900;
  font-size: clamp(34px, 8vw, 54px); line-height: 1.02; margin: 14px 0 10px; letter-spacing: -0.01em;
}
.sign p { font-family: "Overpass", sans-serif; font-weight: 700; font-size: 20px; color: var(--legend-2); margin: 0; max-width: 34ch; }
.lines { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.lines li {
  display: flex; align-items: center; gap: 12px;
  font-family: "Overpass", sans-serif; font-weight: 800; font-size: 20px;
}
.lines li span.v { margin-left: auto; font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; }
.hex {
  width: 30px; height: 30px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-weight: 900; font-size: 13px; color: #fff;
}

main h2 { font-family: "Overpass", sans-serif; font-weight: 900; font-size: 26px; line-height: 1.2; margin: 44px 0 10px; }
main h3 { font-size: 18px; margin: 28px 0 6px; }
main p, main li { max-width: 68ch; }
main ul { padding-left: 22px; }
.note { color: var(--muted); font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 6px 20px; }
details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "›"; color: var(--link); font-weight: 900; transition: transform .2s ease; display: inline-block; }
details[open] summary::before { transform: rotate(90deg); }
details p { margin: 8px 0 2px 18px; color: var(--muted); }

.cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font-family: "Overpass", sans-serif; font-weight: 900; font-size: 17px;
  padding: 12px 18px 10px; border-radius: 10px;
}
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 16px 0; }
.features div { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; }
.features b { display: block; font-family: "Overpass", sans-serif; font-size: 18px; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: 15px; }

footer { margin: 60px 0 40px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .top nav { gap: 12px; font-size: 14px; }
  .sign { padding: 24px 20px 22px; }
}
