/* ABC Social is not licensed for web yet. Add the two woff2 files, uncomment below, drop Inter. */
/*
@font-face {
  font-family: 'ABC Social';
  src: url('fonts/ABCSocial-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Social';
  src: url('fonts/ABCSocial-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
*/

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {

  --kono-navy:  #00142A;
  /* 1.23:1 on light — never text, icons or rules there. Use --green-800 on light, --kono-green on navy (15.07:1). */
  --kono-green: #ADFF00;
  --kono-aqua:  #005256;
  --kono-paper: #F2F2F2;
  --kono-white: #FFFFFF;

  /* Only the steps something references, so the ramps have gaps. */
  --navy-50:  #EDF2F6;
  --navy-200: #AFC0CD;
  --navy-300: #8399AC;
  --navy-400: #5C7A8E;
  --navy-500: #3D5B6E;
  --navy-600: #274557;
  --navy-700: #163247;
  --navy-800: #0A2138;
  --navy-950: #000A15;

  --green-200: #DEFF85;
  --green-300: #CBFF47;
  --green-500: #93D900;
  --green-800: #4D6600;

  --aqua-200: #8FD4D8;
  /* No --aqua-300 — referencing a missing ramp step voids the whole declaration in silence. */
  --aqua-500: #018A92;
  --aqua-800: var(--kono-aqua);
  --aqua-950: #002B2E;

  --neutral-200: #E3E3E3;
  --neutral-300: #CFCFCF;
  --neutral-500: #8A8A8A;
  --neutral-600: #6B6B6B;

  --surface-page:       var(--kono-paper);
  --surface-card:       var(--kono-white);
  --surface-brand-soft: var(--navy-50);

  --text-primary:   var(--kono-navy);
  --text-secondary: var(--navy-600);
  --text-muted:     var(--navy-500);
  --text-link:      var(--aqua-800);
  --text-link-hover: var(--aqua-950);
  --text-folio:     var(--aqua-800);
  --text-on-interactive: var(--kono-white);

  /* --control and --strong carry the 3:1 WCAG 1.4.11 floor; only those two may outline a control. */
  --border-subtle:  var(--neutral-200);
  --border-default: var(--neutral-300);
  --border-control: var(--neutral-500);
  --border-strong:  var(--navy-400);
  --border-width:        1px;
  --border-width-strong: 2px;

  --interactive:        var(--kono-navy);
  --interactive-hover:  var(--navy-800);
  --interactive-active: var(--navy-950);

  /* No status colours. Add a set back with its -bg and -border partners or bright ink lands on a tint. */

  --focus-ring-color:   var(--aqua-500);
  --focus-ring:         0 0 0 2px var(--surface-card), 0 0 0 4px var(--focus-ring-color);
  --focus-ring-inverse: 0 0 0 2px var(--surface-card), 0 0 0 4px var(--kono-green);

  --viz-1:    var(--aqua-800);

  /* Type. Medium is the heaviest weight in the system; there is no bold. */
  --font-sans: 'ABC Social', 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium:  500;

  --text-h1-fluid: clamp(32px, 5.4vw, 52px);
  --text-h2-fluid: clamp(26px, 4.2vw, 40px);
  --text-h3-fluid: clamp(22px, 3.0vw, 30px);
  --text-h4:      24px;
  --text-h5:      20px;
  --text-title:   17px;
  --text-body:    16px;
  --text-body-sm: 14px;
  --text-caption: 13px;
  --text-micro:   11px;

  --tracking-heading: -0.008em;
  --tracking-subhead: -0.009em;
  --tracking-body:    -0.007em;
  --tracking-folio:    0;

  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;

  --container-max: 1200px;
  --container-text: 760px;
  --gutter:    24px;
  --gutter-sm: 16px;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  --shadow-md: 0 4px 12px rgb(0 20 42 / 0.10);
  --shadow-lg: 0 16px 40px rgb(0 20 42 / 0.14);
  --shadow-xl: 0 24px 64px rgb(0 20 42 / 0.18);

  /* --ease-in ships unreferenced on purpose: it is the only right ease for anything leaving. */
  --duration-fast: 120ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.7, 0, 0.84, 0);
}

/* Not a dark theme: paint a band navy without this class and --text-primary stays navy on navy. */
.on-inverse {
  --surface-page:       var(--kono-navy);
  --surface-card:       var(--navy-800);
  --surface-brand-soft: var(--navy-700);

  --text-primary:    var(--kono-white);
  --text-secondary:  var(--navy-200);
  --text-muted:      var(--navy-300);
  --text-link:       var(--kono-green);
  --text-link-hover: var(--green-200);
  --text-folio:      var(--green-300);
  /* --interactive flips bright here, so its label must flip dark. */
  --text-on-interactive: var(--kono-navy);

  --border-subtle:  color-mix(in oklab, var(--kono-white) 10%, transparent);
  --border-default: color-mix(in oklab, var(--kono-white) 16%, transparent);
  --border-control: color-mix(in oklab, var(--kono-white) 42%, transparent);
  --border-strong:  color-mix(in oklab, var(--kono-white) 32%, transparent);

  --interactive:        var(--kono-green);
  --interactive-hover:  var(--green-300);
  --interactive-active: var(--green-500);

  --focus-ring: var(--focus-ring-inverse);

  --viz-1: var(--kono-green);

  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 1ms; }
}
