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

  html,
  body {
    margin: 0;
    padding: 0;
  }

  h1, h2, h3, h4, p, ul, ol, dl, dd {
    margin-top: 0;
  }

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

  button {
    cursor: pointer;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

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

@layer base {
  body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1 {
    font-size: var(--text-2xl);
    line-height: 1.32;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0;
  }

  h2 {
    font-size: var(--text-xl);
    line-height: 1.35;
    letter-spacing: -0.015em;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: var(--space-2);
  }

  h3 {
    font-size: var(--text-lg);
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-2);
  }

  p {
    margin-bottom: var(--space-3);
  }

  small {
    font-size: var(--text-xs);
    color: var(--muted);
  }

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

  .hidden {
    display: none !important;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

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

  .tabular-nums {
    font-variant-numeric: tabular-nums;
  }

  .boot-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-6);
    background: var(--bg);
  }

  .boot-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 360px;
    width: 100%;
  }

  .boot-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2);
  }

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