/* Shared by every page: font, palette, type and brand */

/* Archivo (SIL OFL, see fonts/OFL.txt), self-hosted so visitors' IP
   addresses are not sent to Google. Variable width and weight. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Map palette, sampled from the app icon and flattened for large areas */
  --meadow: #9EDB97;
  --rapeseed: #F9D553;
  --lake: #80CBF4;
  --road: #FDF7E8;
  --sign: #12783C;
  --sign-deep: #0B5A2C;
  --ink: #10261A;
  --ink-soft: rgba(16, 38, 26, 0.76);
  --tyre: #1B1D20;

  --gutter: clamp(44px, 8vw, 128px);
}

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

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

/* Author display rules must never override the hidden attribute */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--meadow);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Type ---------- */

.display {
  margin: 0;
  font-size: clamp(2.75rem, min(8.4vw, 12.5vh), 8rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.9;
  letter-spacing: -0.015em;
  max-width: 14ch;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 13ch;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

.lede {
  margin: 0;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
}

.body p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 34em;
}

.body p + p { margin-top: 1em; }

.fine {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36em;
}

.fine a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 22.5%;
  box-shadow: 0 1px 2px rgba(16, 38, 26, 0.25);
}

/* ---------- Subpages: the road from the start page, bike parked ---------- */

.lane {
  --road-w: clamp(14px, 2.2vw, 32px);
  position: fixed;
  top: 0;
  bottom: 0;
  /* Centre of the right margin, matching the start page's road */
  right: calc((100vw - min(1120px, 100vw - 2 * var(--gutter))) / 4 - var(--road-w) / 2);
  width: var(--road-w);
  background: var(--road);
  box-shadow: 0 2px 0 3px rgba(16, 38, 26, 0.07);
  pointer-events: none;
}

.lane svg {
  position: absolute;
  left: 50%;
  top: 62%;
  width: calc(var(--road-w) * 1.25);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 1.5px rgba(16, 38, 26, 0.35));
}
