/* =========================================================
   Shared base for the three 2026 explorations (A, B, C)
   Brand tokens, accessibility defaults, prototype control bar.
   ========================================================= */


:root {
  /* Brand palette, exact values from panilukasz-brand-colors.svg */
  --white: #FFFFFF;
  --ink: #000000;
  --lavender: #D1C2E0;   /* surface only: 1.7:1 on white */
  --yellow: #FCF7C6;     /* surface only: 1.07:1 on white */
  --orange: #E94E1B;     /* small accent, large text only on white (3.6:1) */
  --ink-soft: #4D4D4D;   /* 8.5:1 on white */

  /* NOT APPROVED: deeper violet shown only when the "Violet proposal" toggle is on.
     #6E4FBF = 5.9:1 on white, so it can carry lines, underlines and large text. */
  --violet-proposal: #6E4FBF;

  /* Lines, underlines and marks. Black in brand mode. */
  --accent-line: var(--ink);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
:root[data-palette="proposal"] { --accent-line: var(--violet-proposal); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); padding-bottom: 4.5rem; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: var(--white); padding: .75rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Placeholders: always visible, never mistaken for real content */
.ph { font-style: normal; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(0,0,0,.04) 6px 12px); outline: 1px dashed var(--ink-soft); outline-offset: 2px; }
.ph-box { display: grid; place-items: center; text-align: center; padding: 1.5rem; font: 500 .875rem/1.4 "Schibsted Grotesk", Arial, sans-serif; color: var(--ink); border: 1.5px dashed var(--ink); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(0,0,0,.035) 10px 20px); }

/* Motion off: OS setting OR the prototype toggle */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
:root[data-motion="off"] { scroll-behavior: auto; }

/* Signature "writes itself" left to right (the logo is a filled shape, so it is revealed, not stroked) */
.js .sig-write { clip-path: inset(-10% 100% -10% -2%); transition: clip-path 1.8s var(--ease-in-out) .35s; }
.js .sig-write.is-in { clip-path: inset(-10% -2% -10% -2%); }

/* Cross-page transition (Chromium, progressive enhancement) */
@view-transition { navigation: auto; }
[data-vt="case-title"] { view-transition-name: case-title; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

