/*
 * Design tokens and base styles. Every stylesheet in this folder is linked
 * in alphabetical order, so this file loads first and the others build on
 * these variables. See the "Two Birds UI Direction" canvas for the source
 * mockups.
 */

@font-face {
  font-family: "Urbanist";
  src: url("/assets/urbanist-latin-wght-791141eb.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --color-ground: #F4F4F1;      /* page background */
  --color-surface: #FFFFFF;     /* cards, inputs */
  --color-pill: #E9E9E5;        /* secondary buttons, inactive nav pills */
  --color-line: #E2E2DD;
  --color-ink: #151515;         /* text, primary buttons */
  --color-navy: #1B2438;        /* logo and wordmark */
  --color-muted: #55595C;       /* secondary text; 4.5:1 or better on ground and surface */
  --color-lemon: #F1F37A;       /* the one primary action per screen; always with ink text */
  --color-mist: #C8D7DC;        /* feature cards */
  --color-mist-ink: #3E4A4F;    /* secondary text on mist */
  --color-signal: #E0484D;      /* live dots, errors */

  /* Type */
  --font-sans: "Urbanist", system-ui, sans-serif;
  --text-eyebrow: 0.8125rem;    /* 13px */
  --text-body: 1rem;            /* 16px */
  --text-title: 1.625rem;       /* 26px */
  --text-display: 2.75rem;      /* 44px */

  /* Shape and space */
  --radius-card: 28px;
  --radius-input: 18px;
  --radius-pill: 999px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  /* Touch targets */
  --control-height: 3.25rem;    /* 52px inputs and buttons */
}

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

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

/* Keep the hidden attribute working on elements whose class sets display. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: var(--text-display);
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-title);
  font-weight: 400;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--color-muted);
}

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

:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
}

/* Page shell */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
}

.site-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-7);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.muted {
  color: var(--color-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  color: var(--color-muted);
}

.eyebrow--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-signal);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
