/* ===== Base — design tokens, reset, base typography and accessibility helpers. ===== */

:root {
  --paper: #f7f8f2;
  --ink: #202d27;
  --muted: #69736a;
  --green: #345e43;
  --lime: #d9ebbb;
  --line: #dfe4d8;
  --mono: ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #638047;
  outline-offset: 5px;
}

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

h1, h2, h3, p {
  margin: 0;
}

svg {
  flex-shrink: 0;
}

.container {
  width: min(1120px,calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width:1000px) {
  .container {
    width: calc(100% - 64px);
  }
}

@media (max-width:760px) {
  .container {
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition: none!important;
  }
}
