/* ==========================================================
   Kaplika Tech — base.css
   Design tokens, reset and typography
   ========================================================== */

:root {
  /* Brand colours */
  --navy: #1B2B47;
  --navy-deep: #131F35;
  --navy-soft: #24375A;
  --red: #E3262D;
  --red-dark: #C21E25;
  --red-soft: #FF7B80;

  /* Neutrals */
  --ink: #1C1D21;
  --text: #45474D;
  --muted: #5B5D63;
  --line: #DCDDE0;
  --mist: #F3F4F6;
  --paper: #FFFFFF;
  --on-dark: #E3E6EC;
  --on-dark-muted: #B4BCCB;

  /* Type */
  --font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --fs-hero: clamp(2.75rem, 6.5vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.85rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-tiny: 0.8125rem;

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --max: 1200px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(19, 31, 53, 0.12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }

ul { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 3px; }

::selection { background: var(--red); color: #fff; }

/* Two-tone headline helper: <h2>Plain <span class="accent">Red</span></h2> */
.accent { color: var(--red); display: block; }
.on-dark .accent { color: var(--red); }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.on-dark .eyebrow { color: var(--red-soft); }

.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--red); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
