/* Shared base for the standalone designs (src/designs/*): a small reset, the skip
   link and readable imprint/privacy pages. Every design sets these tokens on :root:
   --bg, --ink, --ink-2 (secondary text), --line, --accent, --font-body, --font-display. */

:root {
  --bg: #ffffff;
  --ink: #16171d;
  --ink-2: #5a5d68;
  --line: #e2e4ea;
  --accent: #2d5bff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul[class], ol[class] { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
[id] { scroll-margin-top: 5rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Imprint and privacy pages (markup from src/content/<lang>/imprint.html and privacy.html). */
.legal { padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(4rem, 10vw, 8rem); }
.legal__inner { max-width: 44rem; margin-inline: auto; }
.legal h1 { margin-bottom: 2rem; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal ul { margin-top: 0.75rem; }
.legal ul { padding-left: 1.25rem; }
.legal a { color: var(--accent); }
.legal__note { margin-bottom: 1.5rem; font-size: 0.9375rem; font-style: italic; }
.nobr { white-space: nowrap; }
