/* ==========================================================================
   CENTNORD DESIGN SYSTEM — TOKENS
   --------------------------------------------------------------------------
   This file is the single source of truth for the visual system.
   Every color, size, font and timing used anywhere on the site is
   defined here. Change a value here and it changes everywhere.

   The system is derived from the Nordstjärnan logo:
     · Navy  #13213D — sampled from the star + wordmark
     · Green #39B78F — sampled from the glowing north tip
   The green is the "north" of the system: it marks direction and
   action. It is used ONLY for accents and CTAs — never for body
   text (it fails contrast on white) and never as a large surface.
   ========================================================================== */

/* --------------------------------------------------------------
   00 · TYPE SOURCE — DM Sans (variable), self-hosted
   One ~37 KB file carries every weight from 100 to 1000.
   No third-party requests: faster, and no visitor IP is sent to
   Google (a GDPR concern for EU/Nordic audiences).
   -------------------------------------------------------------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-var.woff2") format("woff2-variations");
}

:root {

  /* --------------------------------------------------------------
     01 · COLOR — brand
     -------------------------------------------------------------- */
  --navy:        #13213D;  /* star + wordmark. Primary ink. */
  --green:       #39B78F;  /* north tip. Action + accent only. */
  --green-deep:  #2C9977;  /* hover state of green buttons/graphics */
  --green-ink:   #1E7F63;  /* green for SMALL TEXT on light (AA: 4.9:1) */
  --green-soft:  #E4F5EF;  /* green at ~10% — tag/selected backgrounds */

  /* --------------------------------------------------------------
     02 · COLOR — derived neutrals (navy-tinted, never pure grey)
     Every neutral carries a hint of the brand navy so the page
     feels like one material, not a template with grey slapped on.
     -------------------------------------------------------------- */
  --ink:         var(--navy);          /* headings, primary text  */
  --ink-2:       #3E4B66;             /* body text               */
  --ink-3:       #626E87;             /* captions, meta, labels (AA on --bg: 4.9:1) */
  --line:        #DDE3EC;             /* borders, dividers       */
  --line-soft:   #EAEEF4;             /* hairlines inside cards  */
  --bg:          #F7F9FB;             /* page background         */
  --surface:     #FFFFFF;             /* cards, nav, modal       */
  --navy-deep:   #0D1830;             /* footer background       */
  --on-navy:     #C6CEDC;             /* body text on navy       */
  --on-navy-dim: #8A96AD;             /* muted text on navy      */

  /* --------------------------------------------------------------
     03 · TYPE — one family: DM Sans (geometric, matches the
     wordmark's round forms). Weight roles:
       400 body · 500 small labels & nav · 700 headings & buttons.
     Headings and body remain the page's two visible "voices"
     (per brand guidelines); 500 exists only so small uppercase
     labels don't shout at 700.
     Scale is fluid: it interpolates between phone and desktop.
     -------------------------------------------------------------- */
  --font: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --w-regular: 400;
  --w-medium:  500;
  --w-bold:    700;

  --text-xs:   0.8125rem;                          /* 13px meta     */
  --text-sm:   0.9375rem;                          /* 15px small    */
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);   /* body  */
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); /* lede */
  --text-xl:   clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);  /* h3    */
  --text-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.375rem);  /* h2    */
  --text-3xl:  clamp(2.25rem, 1.7rem + 2.8vw, 3.5rem);    /* h1    */

  --leading-tight: 1.12;   /* display headings  */
  --leading-snug:  1.3;    /* subheadings       */
  --leading-body:  1.65;   /* paragraphs        */

  --tracking-tight: -0.02em;  /* large headings   */
  --tracking-wide:   0.09em;  /* uppercase labels */

  /* --------------------------------------------------------------
     04 · SPACE — 4px base grid
     Sections breathe (Nordic white space is a feature, not waste).
     -------------------------------------------------------------- */
  --s-1: 0.25rem;   /*  4px */
  --s-2: 0.5rem;    /*  8px */
  --s-3: 0.75rem;   /* 12px */
  --s-4: 1rem;      /* 16px */
  --s-5: 1.5rem;    /* 24px */
  --s-6: 2rem;      /* 32px */
  --s-7: 3rem;      /* 48px */
  --s-8: 4rem;      /* 64px */
  --s-9: 6rem;      /* 96px */
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);  /* vertical rhythm between sections */

  /* --------------------------------------------------------------
     05 · SHAPE — crisp, not pill-soft. The mark is pointed;
     the UI keeps edges present but comfortable.
     -------------------------------------------------------------- */
  --r-sm: 6px;      /* buttons, inputs, chips */
  --r-md: 12px;     /* cards                  */
  --r-lg: 18px;     /* modal, large panels    */

  /* --------------------------------------------------------------
     06 · ELEVATION — light theme, shadows stay quiet
     -------------------------------------------------------------- */
  --shadow-card:  0 1px 2px rgba(19, 33, 61, 0.05), 0 6px 20px rgba(19, 33, 61, 0.06);
  --shadow-hover: 0 2px 4px rgba(19, 33, 61, 0.06), 0 14px 34px rgba(19, 33, 61, 0.10);
  --shadow-modal: 0 8px 24px rgba(19, 33, 61, 0.14), 0 32px 80px rgba(19, 33, 61, 0.22);

  /* --------------------------------------------------------------
     07 · MOTION — fast in, settled out. Nothing bounces.
     -------------------------------------------------------------- */
  --ease:       cubic-bezier(0.22, 0.8, 0.36, 1);
  --t-fast:     160ms;   /* hovers, toggles      */
  --t-med:      320ms;   /* reveals, modal       */
  --t-slow:     700ms;   /* icon line drawing    */

  /* --------------------------------------------------------------
     08 · LAYOUT
     -------------------------------------------------------------- */
  --container:  72rem;    /* 1152px max content width */
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --nav-h:      4.5rem;
}
