/* The page's own styles: fonts, colours and the few things outside a component.
   Each component's styles are in its .zb file. */

@font-face { font-family: 'Big Shoulders Display'; src: url('fonts/big-shoulders-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url('fonts/big-shoulders-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Colours: shop-floor asphalt, Garrett County evergreen, safety amber, and repair-ticket paper. */
:root {
  --asphalt: #141619;
  --asphalt-2: #181b1f;
  --line: #2a2e33;
  --green: #1f3b2d;
  --green-line: #3a4a3f;
  --amber: #f2a900;
  --amber-bright: #ffc93d;
  --amber-ink: #7a5a00;
  --paper: #ece8df;
  --paper-line: #c9c3b6;
  --ink: #141619;
  --ink-soft: #4a463f;
  --ink-faint: #6b665c;
  --text: #ece8df;
  --text-soft: #b5b0a5;
  --text-faint: #a9b3a6;

  --font-body: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 77.5rem;
  --gutter: clamp(1.25rem, 4vw, 1.5rem);
  --section: clamp(4.5rem, 9vw, 6.5rem);

  color-scheme: dark;
}

/* Zubra puts component styles in the `components` layer, so the page-wide rules go in `base`:
   a component's own styles always win over them. */
@layer theme, base, components, utilities;
@layer base {
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); }
a:hover { color: var(--amber-bright); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
section { display: block; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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