/* Design tokens — AO Vision Lab v2.
   Single source of truth for colour, type and spacing. Token NAMES are kept
   stable so every existing template/rule keeps resolving; the VALUES carry the
   lab's own identity: amber + cyan brand, cone-mosaic charcoal, cyan links.
   LIGHT is the default (:root). DARK mirrors it via prefers-color-scheme and an
   explicit [data-theme] so the on-page toggle wins both ways. */
:root {
  /* Type ------------------------------------------------------------------ */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-nav:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --fs-1: 12.5px;  /* fine print, captions, impressum */
  --fs-2: 16px;    /* body copy */
  --fs-3: 18px;    /* lead / intro paragraphs */
  --fs-4: clamp(24px, 3vw, 31px);  /* section headings */
  --fs-5: clamp(30px, 5vw, 44px);    /* page / hero titles */

  /* Brand (shared across themes) ------------------------------------------ */
  --brand-amber: #d4920f;  /* AO / LAB gold */
  --brand-cyan:  #0e9ae4;  /* VISION cyan */
  --brand-laser: #23c23b;  /* the AOSLO beam — used sparingly */

  /* Colour — LIGHT -------------------------------------------------------- */
  --c-bg-outer: #e7eaed;   /* neutral field around the frame (nod to the grey) */
  --c-bg-panel: #ffffff;   /* content surface */
  --c-surface:  #f3f5f8;   /* subtle cards / wells */
  --c-text:     #23282d;   /* primary ink */
  --c-muted:    #5c6670;   /* secondary text, captions */
  --c-heading:  #14171b;   /* headings */
  --c-line:     #e4e8ec;   /* hairlines, borders */
  --c-accent:   #d4920f;   /* amber — brand marks, rails, nav active rule */
  --c-accent-2: #0e9ae4;   /* cyan — support accent */
  --c-link:     #0a7fd0;   /* links (cyan, legible on light) */
  --c-link-hover:#0a63a4;

  /* Header band + navigation */
  --c-head-band: #24282c;  /* dark band behind the cone-mosaic header image */
  --c-nav-text:   #5c6670; /* inactive nav label */
  --c-nav-active: #a9730a;  /* current page (amber ink, readable on light) */

  /* Shadow / radius */
  --radius:   12px;
  --radius-s: 8px;
  --shadow:   0 1px 2px rgba(16,20,26,.05), 0 10px 30px -18px rgba(16,20,26,.30);

  /* Layout ---------------------------------------------------------------- */
  --frame-width: 753px;    /* legacy frame (alias; unused by v2 flow) */
  --wrap:      860px;      /* modern max content width — matched to the header band */
  --wrap-text: 760px;      /* comfortable measure for running text */

  /* Spacing — 8px vertical rhythm ----------------------------------------- */
  --space: 8px;
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px;

  color-scheme: light;
}

/* Colour — DARK (the lab's current charcoal look, modernised) ------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg-outer: #3a3d41;
    --c-bg-panel: #2b2f33;
    --c-surface:  #33373c;
    --c-text:     #edeff1;
    --c-muted:    #9aa1a8;
    --c-heading:  #d2d6da;
    --c-line:     #3c4147;
    --c-accent:   #e4a81f;
    --c-accent-2: #49b4ef;
    --c-link:     #4bb6ff;
    --c-link-hover:#7cc9ff;
    --c-nav-text:  #aeb4ba;
    --c-nav-active:#e4a81f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-bg-outer: #3a3d41;
  --c-bg-panel: #2b2f33;
  --c-surface:  #33373c;
  --c-text:     #edeff1;
  --c-muted:    #9aa1a8;
  --c-heading:  #d2d6da;
  --c-line:     #3c4147;
  --c-accent:   #e4a81f;
  --c-accent-2: #49b4ef;
  --c-link:     #4bb6ff;
  --c-link-hover:#7cc9ff;
  --c-nav-text:  #aeb4ba;
  --c-nav-active:#e4a81f;
  color-scheme: dark;
}
