/* The site's foundation, linked first on every page: the cascade layers, the
   reset, type defaults and the page container. Each file in this folder puts
   its rules in one of these layers, so a later layer wins whatever the file
   order or specificity. */

@layer base, layout, components, responsive;

@layer base {
  :root {
    font-family: var(--font-heading);
    color: var(--text-primary);
    background: var(--bg-primary);
    font-synthesis: none;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
  }

  body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
  }

  button,
  a,
  input,
  select,
  textarea,
  summary {
    -webkit-tap-highlight-color: transparent;
  }

  button {
    cursor: pointer;
    color: inherit;
  }

  button:disabled {
    cursor: not-allowed;
  }

  :focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p {
    margin: 0;
  }

  h1,
  h2,
  h3 {
    line-height: 1.2;
    font-weight: 600;
  }

  [hidden] {
    display: none !important;
  }

  .skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 8px;
  }

  .skip-link:focus {
    top: 12px;
  }

  /* Read out, not shown: what a short link such as "See it" points to. */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .text-accent {
    font-family: inherit;
    font-weight: inherit;
    font-style: normal;
    letter-spacing: inherit;
    color: var(--accent);
  }

  .eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
  }

  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--success);
    flex-shrink: 0;
  }
}

@layer layout {
  .container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
  }
}

@layer components {
  ::selection {
    background: var(--accent);
    color: var(--accent-ink);
  }

  .ui-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

@layer responsive {
  /* The container follows the header's side padding, so content lines up
     with the logo. */
  @media (max-width: 1100px) {
    .container {
      width: calc(100% - 48px);
    }
  }

  @media (max-width: 800px) {
    .container {
      width: calc(100% - 40px);
    }
  }

  @media (max-width: 760px) {
    .container {
      width: calc(100% - 32px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      transition: none !important;
      animation: none !important;
    }
  }
}
