/* Shared styles for every latebag.com page.
   Layout borrows from airport wayfinding signage; colors are latebag red and navy.
   Page-specific layout stays in each page's <style> block and uses these tokens. */

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --ink: #0a0a0a;
  --text: #2b2d31;
  --muted: #64676d;
  --rule: #e2e4e8;
  --navy: #003366;
  --red: #C01933;
  --red-hover: #a01528;
  --on-red: #ffffff;
  --sign: #003366;          /* board background */
  --sign-text: #ffffff;
  --sign-muted: #9fb3c8;
  --sign-tile: #0d4275;
  --sign-rule: #1d4f80;
  --focus: #003366;

  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Unbounded', system-ui, sans-serif;

  /* Type scale — each step clearly larger than the one below */
  --fs-label: 14px;   /* uppercase sign labels */
  --fs-small: 15px;   /* footer, dates */
  --fs-body: 17px;    /* running text */
  --fs-lead: 20px;    /* hero intro */
  --fs-h3: 22px;      /* step titles, legal section titles */
  --fs-h2: clamp(34px, 5vw, 48px);         /* section headings */
  --fs-h1-page: clamp(40px, 6vw, 64px);    /* Terms / Privacy titles */
  --fs-h1: clamp(40px, 10vw, 92px);        /* homepage headline — "GET YOUR MILES." stays on one line on phones */

  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #141416;
    --ink: #e8e8e8;
    --text: #c9c9c9;
    --muted: #8a8a8a;
    --rule: #26282c;
    --navy: #5b9bd5;
    --red: #e8365d;
    --red-hover: #c0294a;
    --sign: #0f2440;
    --sign-tile: #1a3557;
    --sign-rule: #24446b;
    --focus: #5b9bd5;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Form controls don't inherit fonts by default */
button, input { font: inherit; }

strong, b { font-weight: 600; color: var(--navy); }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

.nowrap { white-space: nowrap; }

/* NAV + LOGO */
nav { border-bottom: 1px solid var(--rule); }
nav .container {
  padding-top: 22px;
  padding-bottom: 20px;
}
@media (max-width: 480px) {
  nav .container { padding-top: 16px; padding-bottom: 14px; }
}


.logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .l { color: var(--red); }
.logo .b { color: var(--navy); }
.logo .t {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0;
}

/* FOOTER */
footer { border-top: 1px solid var(--rule); }
footer .container { padding-top: 32px; padding-bottom: 40px; }
.footer-note {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.7;
}
.footer-note a { white-space: nowrap; }

/* LEGAL PAGES (Terms, Privacy) */
.legal .container { padding-top: 56px; padding-bottom: 88px; }
.legal .container > * { max-width: 720px; }

.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1-page);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--navy);
  margin-bottom: 14px;
  text-wrap: balance;
}

.legal .updated {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: 44px;
}

.legal h2 {
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--navy);
  margin: 44px 0 12px;
  text-wrap: balance;
}

.legal p { margin-bottom: 16px; }

.highlight-box {
  background: var(--surface);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--ink);
}
