/* ---------------------------------------------------------------------------
   book.lolwe.co.ke

   Tokens, type stack and register are lifted from lolwe.co.ke
   (llw/src/styles/global.css). Nothing here is invented. If you change a
   colour, change it there first and measure it.

   MEASURED CONTRAST — carried over from llw, recomputed for this page.

   On ink #0E1420 (the ground):
     --field      #FBFAF6   17.64:1   body text
     --amber      #C8852B    6.01:1   links, labels, rules
     --slate-dim  #8A92A0    5.88:1   muted text
     --slate      #5A6170    2.96:1   FAILS AA. Non-text only on ink.
     --rule       #2A3446    1.47:1   borders only, never text

   On field white #FBFAF6:
     --ink        #0E1420   17.64:1   body text
     --amber      #C8852B    2.94:1   FAILS AA. Never a word on light ground.
     ink on an amber fill             6.01:1   the booking CTA pairing
   --------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --ink: #0e1420;
  --field: #fbfaf6;
  --amber: #c8852b;
  --slate: #5a6170;
  --slate-dim: #8a92a0;
  --rule: #2a3446;

  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--field);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

@media (min-width: 48rem) {
  body {
    font-size: 18px;
  }
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--amber);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--field);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

::selection {
  background-color: color-mix(in srgb, var(--amber) 35%, transparent);
  color: var(--field);
}

/* A monospace label: kickers, route numbers, metadata. */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.measure {
  max-width: var(--measure);
}

.shell {
  margin-inline: auto;
  width: 100%;
  max-width: 72rem;
  padding-inline: 1.5rem;
}

@media (min-width: 48rem) {
  .shell {
    padding-inline: 2.5rem;
  }
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  clip-path: none;
  background-color: var(--amber);
  color: var(--ink);
  padding: 0.5rem 1rem;
}

/* --- header ---------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-block: 4rem;
}

@media (min-width: 48rem) {
  .masthead {
    padding-block: 5rem;
  }
}

.masthead .kicker {
  color: var(--amber);
}

.masthead h1 {
  margin-top: 0.75rem;
  max-width: 20ch;
  font-size: 2.25rem;
}

@media (min-width: 48rem) {
  .masthead h1 {
    font-size: 3rem;
  }
}

.standfirst {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--slate-dim);
}

/* --- routes ---------------------------------------------------------------- */

main {
  flex: 1;
}

.routes {
  padding-block: 4rem;
}

.route {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
  display: grid;
  gap: 0.75rem 2.5rem;
}

.route:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 60rem) {
  .route {
    grid-template-columns: 5rem 1fr;
  }
}

.route-no {
  color: var(--slate-dim);
  padding-top: 0.35rem;
}

.route h2 {
  font-size: 1.375rem;
  max-width: 28ch;
}

.route p {
  margin-top: 0.75rem;
  color: var(--slate-dim);
}

.route .action {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.prefix {
  color: var(--field);
  border: 1px solid var(--rule);
  padding: 0.05rem 0.4rem;
  white-space: nowrap;
}

/* --- the gate -------------------------------------------------------------- */

.gate {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--amber);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.gate .label {
  color: var(--amber);
}

.gate ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.gate li {
  color: var(--field);
  padding-block: 0.3rem;
}

.gate .terms {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--slate-dim);
  font-size: 0.9375rem;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
}

.cta:hover {
  background-color: var(--field);
  color: var(--ink);
}

/* --- footer ---------------------------------------------------------------- */

footer {
  margin-top: 6rem;
  border-top: 1px solid var(--rule);
  padding-block: 3rem;
}

footer .name {
  color: var(--field);
}

footer .place {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-dim);
}

.ecosystem {
  margin-top: 2.5rem;
}

.ecosystem .label {
  color: var(--slate-dim);
}

.ecosystem ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
}

.ecosystem .role {
  color: var(--slate-dim);
}

.colophon {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--slate-dim);
}
