/* ============================================================
   Etch Design Language — Base
   Minimal reset + body typography that pairs with tokens.css.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--ds-border);
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  font-family: var(--ds-font-sans);
}
html.dark { color-scheme: dark; }

body {
  margin: 0;
  background: var(--ds-background);
  color: var(--ds-foreground);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: 1.5rem; }   /* 24px — page titles */
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }

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

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

code, pre, kbd, samp { font-family: var(--ds-font-mono); }

::placeholder { color: var(--ds-muted-foreground); opacity: 1; }

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

/* Cross-platform belt-and-braces for native <option> in dark mode. */
html.dark select option {
  background-color: var(--ds-popover);
  color: var(--ds-popover-foreground);
}
