/* EasyRoute public pages: "the manifest". Two colours only (paper and ink) plus ink at opacity steps. */
:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #000;
  --ink-rgb: 0 0 0;
  --ink2: rgb(var(--ink-rgb) / 0.62);
  --ink3: rgb(var(--ink-rgb) / 0.36);
  --rule: rgb(var(--ink-rgb) / 0.14);
  --fill: rgb(var(--ink-rgb) / 0.07);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #000; --ink: #fff; --ink-rgb: 255 255 255; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
}
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.page { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.wordmark, .display {
  font-family: var(--sans); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1;
}
.wordmark { font-size: 1.125rem; text-decoration: none; }
.display { font-size: clamp(2rem, 9vw, 3.5rem); margin: 1.5rem 0 1rem; overflow-wrap: anywhere; }
.eyebrow {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink2);
}
/* The name on a live route page is how one link is told from another, so it reads as a name, not as a label:
   full ink, larger than body text, in the case it was typed. */
.eyebrow.share-name { font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: 0.01em; text-transform: none; margin: 1.5rem 0 0; overflow-wrap: anywhere; }
.share-name + .display { margin-top: 0.5rem; }
nav.links { display: flex; gap: 1rem; flex-wrap: wrap; }
nav.links a { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink2); text-decoration: none; }
nav.links a:hover { color: var(--ink); text-decoration: underline; }
.lede { font-size: 1.25rem; line-height: 1.35; margin: 0 0 2rem; max-width: 30rem; }
.figure, .num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Manifest rows */
.manifest { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.line {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 0 0.875rem 0.75rem; border-bottom: 1px solid var(--rule);
  border-inline-start: 2px solid transparent; margin-inline-start: -0.75rem;
}
.line.next { border-inline-start-color: var(--ink); }
.badge {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: 8px;
  border: 1px solid var(--ink); display: grid; place-items: center;
  font-family: var(--mono); font-weight: 500; font-size: 0.9375rem;
}
.done .badge { background: var(--ink); color: var(--paper); }
.skipped .badge { border-style: dashed; color: var(--ink2); border-color: var(--ink2); }
.name { min-width: 0; overflow-wrap: anywhere; }
.done .name { text-decoration: line-through; color: var(--ink2); }
.skipped .name { text-decoration: line-through; color: var(--ink3); }
.leader { flex: 1; min-width: 0.75rem; border-bottom: 1px dotted var(--ink3); align-self: flex-end; margin-bottom: 0.4rem; }
.eta { flex: none; text-align: end; font-size: 1.0625rem; }
.eta small { display: block; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink2); }
.eta sup { font-size: 0.6875rem; color: var(--ink2); }
.pending .eta small:empty { display: none; }
@media (max-width: 30rem) { .leader { display: none; } .name { flex: 1; } }

/* Progress */
.progress { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.progress .figure { font-size: 1.5rem; }
.meter {
  display: block; width: 100%; height: 2px; margin: 0.75rem 0 1.5rem; border: 0;
  appearance: none; -webkit-appearance: none; background: var(--rule); color: var(--ink);
}
.meter::-webkit-progress-bar { background: var(--rule); }
.meter::-webkit-progress-value { background: var(--ink); }
.meter::-moz-progress-bar { background: var(--ink); }

/* Prose pages */
.prose { max-width: 36rem; }
.prose h2 {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink2); margin: 2rem 0 0.5rem;
  padding-top: 1rem; border-top: 1px solid var(--rule);
}
.prose p, .prose li { margin: 0 0 0.75rem; }
.prose ul { padding-inline-start: 1.25rem; margin: 0 0 0.75rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; }
.prose th, .prose td { text-align: start; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; vertical-align: top; }
.prose th { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink2); }
.prose td:not(:first-child), .prose th:not(:first-child) { font-family: var(--mono); padding-inline-start: 1rem; }
.muted { color: var(--ink2); }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.75rem; color: var(--ink2); }

/* Landing page */
.who { margin: -1rem 0 1.5rem; }
.button {
  display: block; width: 100%; max-width: 22rem; min-height: 3.5rem; padding: 1rem 1.5rem;
  background: var(--ink); color: var(--paper); border-radius: 16px; text-align: center;
  font-size: 0.9375rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none;
}
.button:hover, .button:focus-visible { background: var(--paper); color: var(--ink); outline: 1px solid var(--ink); outline-offset: -1px; }
.cta, .cta-soon { margin: 0 0 2rem; }
.cta-soon { max-width: 30rem; border: 1px solid var(--rule); border-radius: 16px; padding: 0.875rem 1rem; }
.prose .facts { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--rule); }
.prose .facts li { margin: 0; padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }
.prose .facts strong, .prose summary { font-weight: 600; }
.prose .facts span { display: block; }
.prose details { border-bottom: 1px solid var(--rule); padding: 0.75rem 0; }
.prose details:first-of-type { border-top: 1px solid var(--rule); }
.prose summary { cursor: pointer; }
.prose summary:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.prose details p { margin: 0.5rem 0 0; }
.prose td:not(:first-child), .prose th:not(:first-child) { white-space: nowrap; }
.how .eta { flex: 0 1 12rem; }
.how .name { flex: none; }

/* Sent routes (handoff page): readable and usable without JavaScript */
.first { margin-top: 1.5rem; }
.summary { font-size: 1.25rem; margin: 0 0 1rem; }
.stops .stop { align-items: flex-start; }
.stop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.stop-body .addr, .stop-body .note { overflow-wrap: anywhere; white-space: pre-line; }
.stop-body .note { font-size: 0.9375rem; }
.go { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.5rem; }
.go a { font-size: 0.8125rem; font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; }
.legal { margin: 0.25rem 0 0; }
.stops + .cta { margin-top: 2rem; }
.prose pre { margin: 0 0 1rem; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--fill); overflow-x: auto; font: 500 0.8125rem/1.5 var(--mono); }
.prose code { font-family: var(--mono); font-size: 0.875em; }
.prose pre code { font-size: inherit; }
.wide { max-width: 44rem; }
