/* ==========================================================================
   BART-DENT — base.css
   Andy Bell modern reset + typography + accessible defaults
   ========================================================================== */

/* Fraunces — variable (opsz, wght, SOFT, WONK) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter Tight — variable (wght) */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono — variable (wght) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Reset — Andy Bell's modern css reset, lightly trimmed */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body {
  line-height: 1.65;
  font-family: var(--font-text);
  font-weight: 420;
  font-size: var(--step-0);
  color: var(--on-surface);
  background: var(--surface);
  font-feature-settings: "kern", "liga", "calt";
  font-variation-settings: "wght" 420;
  letter-spacing: -0.001em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  font-variation-settings: "opsz" 60, "SOFT" 60, "WONK" 0;
  line-height: 1.1;
  color: var(--ink-graphite);
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-5);
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-variation-settings: "opsz" 120, "SOFT" 70, "WONK" 0;
}
h2 { font-size: var(--step-4); letter-spacing: -0.018em; line-height: 1.1; }
h3 { font-size: var(--step-2); letter-spacing: -0.012em; line-height: 1.2; }
h4 { font-size: var(--step-1); letter-spacing: -0.006em; line-height: 1.3; font-weight: 560; font-variation-settings: "opsz" 36, "SOFT" 60; }

p { font-size: var(--step-0); line-height: 1.65; max-width: 60ch; }
p.lede { font-size: var(--step-1); line-height: 1.55; max-width: 52ch; font-weight: 400; color: var(--on-surface-mute); }

strong, b { font-weight: 680; font-variation-settings: "wght" 680; }
em, i { font-style: italic; }

a {
  color: var(--brand);
  transition: color var(--t-fast) var(--ease-out-quint);
}
a:hover { color: var(--brand-deep); }

::selection { background: var(--accent-lime); color: var(--ink-navy-deep); }

/* Focus — visible custom outline, never default blue */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ink-navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.bd-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 0.6em 1em;
  background: var(--ink-navy);
  color: var(--paper);
  font-weight: 600;
  z-index: 9999;
}
.bd-skip:focus { left: 8px; }

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