/* Gedeelde basis voor de drie Novimagine-concepten: reset, focus, safe-area en de terug-link.
   Lettertypen staan per concept in shared/fonts-i.css, fonts-ii.css en fonts-iii.css (zelf gehost,
   CSP 'self'); elke pagina laadt alleen de eigen set, zodat het eerste bezoek klein blijft. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 4px; }

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

/* Overslaan naar de inhoud (toetsenbord). */
.skip {
  position: fixed; left: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 100;
  padding: 10px 14px; background: var(--ink, #000); color: var(--bg, #fff);
  transform: translateY(-200%); transition: transform .2s ease;
}
.skip:focus { transform: none; }

/* Terug naar het overzicht: klein, altijd dezelfde plek; weg in de miniatuur. */
.design-back {
  position: fixed; z-index: 90; left: 50%; bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font: 400 10px/1 var(--f-mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 8px 12px; opacity: .6; color: var(--ink, currentColor);
  background: var(--bg, transparent); border-radius: 99px; transition: opacity .26s ease;
}
.design-back:hover { opacity: 1; }
.is-preview .design-back { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
