/* Inter, self-hosted (SIL Open Font License, assets/fonts/OFL.txt); Latin subset, weights 400–900 */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/inter-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 {
  --navy: #0d2a46;
  --navy-deep: #081f35;
  --green: #a2d18e;
  --green-deep: #4c8b68;
  --blue: #1961c9;
  --blue-soft: #d3e3f6;
  --blue-on-navy: #6ea8f0;   /* 5.9:1 on --navy; --blue is only 2.5:1 there */
  --soon-bg: #eef3f6;
  --soon-text: #52677a;      /* 5.3:1 on --soon-bg */
  --soon-icon: #3f7a59;      /* 4.5:1 on --soon-bg */
  --canvas: #ffffff;
  --line: #d9e4e1;
  --muted: #63788a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(13, 42, 70, .09);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  color: var(--navy);
  background: var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

.site-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.ambient-lines {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient-lines circle {
  fill: none;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.ambient-lines-green { stroke: var(--green); opacity: .27; }
.ambient-lines-blue { stroke: #9ebfe2; opacity: .18; }

/* Fills the screen and centres the logo and cards in it; the bottom padding lifts them
   above the exact middle (optical centre), so less white sits above them than below. */
.landing {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 20vh;
}

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(34px, 6vh, 72px) 0 58px;
}

.hero-frame {
  display: grid;
  gap: clamp(40px, 7vh, 72px);   /* logo to cards */
  width: min(100%, 1180px);
}

.hero-brand {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  overflow: visible;
}

.hero-logo {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  margin: 0;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.route-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  width: 100%;
  padding: 12px 16px 12px 13px;
  border: 1px solid var(--navy);
  border-radius: 0;
  color: var(--white);
  text-decoration: none;
  text-align: left;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(13, 42, 70, .035);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.route-card-primary { cursor: pointer; }
.route-card-primary:focus-visible { outline: 3px solid var(--blue-on-navy); outline-offset: 3px; }
.route-card-primary:hover {
  border-color: var(--green);
  background: #123b5b;
  box-shadow: 0 12px 26px rgba(13, 42, 70, .18);
  transform: translateY(-2px);
}

/* Not a link: a light card, so it does not look like the clickable navy one */
.route-card-disabled {
  border-color: var(--line);
  color: var(--navy);
  background: var(--soon-bg);
  box-shadow: none;
}

.route-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

.route-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.route-icon-green { color: var(--soon-icon); background: rgba(76, 139, 104, .12); }
.route-icon-blue { color: var(--blue-on-navy); background: rgba(110, 168, 240, .16); }
.route-title { min-width: 0; font-size: 16px; font-weight: 780; }

.route-status {
  color: var(--soon-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.route-arrow {
  color: var(--blue-on-navy);
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 980px) {
  .hero { gap: 26px; }
}

@media (max-width: 620px) {
  .landing { width: min(100% - 36px, 1240px); }
  .hero { padding: 42px 0 58px; }
  .route-list { grid-template-columns: 1fr; }
  .route-status { max-width: 110px; white-space: normal; text-align: right; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
