/* base.css — Pfiff & Regel — Reset, Tokens, Typografie */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --white: #ffffff;
  --paper: #f6f6f1;
  --yellow: #ffd400;
  --yellow-deep: #f2c200;
  --grey-100: #ededea;
  --grey-200: #d9d9d4;
  --grey-400: #9a9a93;
  --grey-600: #5a5a55;

  --font-mono: "Space Mono", "Courier New", monospace;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --border: 2px solid var(--black);
  --border-thick: 4px solid var(--black);
  --radius: 0px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--black);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-2); }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

ul, ol { margin: 0 0 var(--space-2) 1.2rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; }

img { max-width: 100%; display: block; }

::selection {
  background: var(--yellow);
  color: var(--black);
}

.mono { font-family: var(--font-mono); }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--grey-600); }
.center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
