/* S.O.S. Field Quote — aluminum storefront tokens */
:root {
  --font-sans: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-body: 1.5;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 180ms;

  --touch: 44px;
  --header-h: 56px;
  --dock-h: 92px;

  color-scheme: light;
  --bg: #eef1ef;
  --surface: #f7f8f7;
  --surface-2: #e4e8e6;
  --ink: #13201d;
  --muted: #5b6763;
  --faint: #8a948f;
  --line: color-mix(in oklab, #13201d 12%, transparent);
  --accent: #0d4f4a;
  --accent-ink: #f4f8f6;
  --accent-soft: color-mix(in oklab, #0d4f4a 12%, #f7f8f7);
  --warn: #8a3d16;
  --ok: #2f6a1c;
  --shadow: 0 10px 28px color-mix(in oklab, #13201d 10%, transparent);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101413;
  --surface: #171b1a;
  --surface-2: #222826;
  --ink: #d7dcd9;
  --muted: #8f9894;
  --faint: #6a7370;
  --line: color-mix(in oklab, #d7dcd9 12%, transparent);
  --accent: #6db8af;
  --accent-ink: #0b1614;
  --accent-soft: color-mix(in oklab, #6db8af 16%, #171b1a);
  --warn: #e08a55;
  --ok: #7cba58;
  --shadow: 0 12px 32px rgb(0 0 0 / 0.4);
}

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

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

html {
  background: var(--bg);
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  cursor: pointer;
}

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

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -40px;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
}

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

[hidden] { display: none !important; }
