/* What every page on skipstop.app shares: colours, type, the header and footer, buttons and
   plain text pages. home.css adds the home page; lateness.css the "How late is my bus?" pages. */

:root {
  --blue: #1b4fd8;
  --blue-deep: #12379b;
  --orange: #ff9a4d;
  --ink: #0f1830;
  --muted: #4a5573;
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #dde2ef;
  --accent: var(--blue);
  --error: #b42318;
  --ok: #067647;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1fa;
    --muted: #a9b3cc;
    --bg: #0b1226;
    --card: #131c36;
    --line: #26314f;
    --accent: #6e95ff;
    --error: #ff8a80;
    --ok: #6ce9a6;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.top, main, .foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.top-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

.top-nav a { font-weight: 600; text-decoration: none; }

/* Type */

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 850;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.button:hover { background: var(--blue-deep); }
.button:disabled { opacity: 0.6; cursor: default; }

/* Plain text pages: privacy and not found */

.prose { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(36px, 6vw, 52px); }
.prose h2 { margin-top: 40px; font-size: 24px; }
.prose p, .prose li { color: var(--muted); }

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot p { margin: 0; }
.foot-note { flex-basis: 100%; }
.foot-links { display: flex; gap: 16px; }
