/* ============================================================
   01 — BASE: design tokens, typography, resets
   ============================================================ */

:root{
  /* --- Palette (Finnish flag) ------------------------------ */
  --flag:   #003580;   /* primary blue                         */
  --flag-2: #0044A8;   /* hover / lighter interactive blue     */
  --deep:   #0A1F44;   /* dark navy — dark sections, footer    */
  --deep-2: #0d2752;   /* dark navy, slightly lifted           */
  --ice:    #8CC0FF;   /* accent on dark                       */
  --frost:  #EDF3FB;   /* light panels                         */
  --birch:  #F7FAFD;   /* alternating section background       */
  --white:  #FFFFFF;
  --ink:    #10203D;   /* near-black text on white             */
  --ink-soft: #4C5C77; /* secondary text on white              */
  --ink-on-dark: #EAF1FF;
  --ink-on-dark-soft: #A9BEE0;
  --line:   rgba(16,32,61,.10);
  --line-on-dark: rgba(255,255,255,.14);

  /* --- Type -------------------------------------------------- */
  --f-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --f-body:    "Manrope", "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --fs-h1: clamp(2.6rem, 5.6vw, 5rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.1rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.8rem);
  --fs-lead: clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .78rem;

  /* --- Spacing / shape ---------------------------------------- */
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --container: 1240px;
  --edge: clamp(1.25rem, 5vw, 4rem);

  /* --- Motion --------------------------------------------------*/
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-fast: .3s;
  --dur-med: .6s;
  --dur-slow: 1.1s;

  --header-h: 84px;
}

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

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a{ color: inherit; text-decoration: none; }

button{
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol{ margin: 0; padding: 0; list-style: none; }
p{ margin: 0; }

h1,h2,h3,h4{
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1{ font-size: var(--fs-h1); }
h2{ font-size: var(--fs-h2); }
h3{ font-size: var(--fs-h3); }

.eyebrow{
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--flag);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.on-dark .eyebrow{ color: var(--ice); }

.lead{
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 46ch;
}
.on-dark .lead{ color: var(--ink-on-dark-soft); }

/* Visually-hidden but accessible */
.vh{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link{
  position: fixed;
  top: -60px; left: 1rem;
  background: var(--flag);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--dur-fast) var(--ease);
  font-family: var(--f-mono);
  font-size: var(--fs-small);
}
.skip-link:focus{ top: 1rem; }

/* Focus visibility */
:focus-visible{
  outline: 3px solid var(--flag);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible{ outline-color: var(--ice); }

::selection{ background: var(--ice); color: var(--deep); }
