/* Colours follow docs/design/system/tokens.json. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f3f7f6;
  --surface: #ffffff;
  --hairline: #dfe6e8;
  --ink: #10211f;
  --ink-2: #5b6b73;
  --accent: #1fb5a8;
  --accent-deep: #0e7c73;
  --on-accent: #10211f;
  --tint: #e6f7f4;
  --blue: #3b8ed0;
  --aqua: #4cc4d6;
  --green: #27904f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1716;
    --surface: #182322;
    --hairline: #25332f;
    --ink: #eef4f2;
    --ink-2: #a9b8b4;
    --accent: #2fc9bb;
    --accent-deep: #7fe0d5;
    --on-accent: #0f1716;
    --tint: #17302d;
    --blue: #78bdf0;
    --aqua: #6fd6e4;
    --green: #5fc98a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent-deep); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

.route { width: min(100%, 320px); height: auto; overflow: visible; }
.route-line { fill: none; stroke: var(--hairline); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; }
.stop { stroke: var(--page); stroke-width: 3; }
.blue { fill: var(--blue); }
.aqua { fill: var(--aqua); }
.turquoise { fill: var(--accent); }
.green { fill: var(--green); }

.wordmark {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 15vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.wordmark.small { font-size: 1.5rem; }

.title { margin: 16px 0 0; font-size: clamp(2rem, 8vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.line { margin: 0; color: var(--ink-2); font-size: clamp(1.125rem, 4vw, 1.375rem); line-height: 1.4; }
.note { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 56px;
  margin-top: 8px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.foot { display: flex; justify-content: center; gap: 24px; padding: 24px; font-size: 0.9375rem; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
}

.tag {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 700;
}

.legal { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 24px 48px; overflow-wrap: break-word; }
.legal h1 { margin: 16px 0; font-size: clamp(2rem, 7vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.legal h2 { margin: 40px 0 8px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.legal ul { padding-left: 1.25em; }
.legal li { margin: 4px 0; }
.legal table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; min-width: 140px; }
.legal code { font-size: 0.9em; }
.todo { padding: 1px 4px; border-radius: 4px; background: var(--tint); color: var(--accent-deep); }
