/* base.css — reset and element defaults for the 3.0 templates. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { color-scheme: dark; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--type-family);
  font-size: var(--type-size-md);
  line-height: var(--type-leading-base);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

h1, h2, h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--type-family-display);
  font-weight: var(--type-weight-regular);
  line-height: var(--type-leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--type-display-xl); }
h2 { font-size: var(--type-display-lg); }
h3 { font-size: var(--type-display-md); }
h4, h5, h6 {
  margin: 0 0 var(--space-2);
  font-size: var(--type-size-md);
  font-weight: var(--type-weight-semibold);
}

p, ul, ol, dl, figure, blockquote, pre, table { margin: 0 0 var(--space-4); }
ul, ol { padding-left: var(--space-6); }

a {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

hr { margin: var(--space-8) 0; border: 0; border-top: 1px solid var(--color-border); }

code, pre, kbd { font-family: var(--type-family-mono); font-size: 0.92em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
