/* FindMy Design System — colors_and_type.css
 * Pinned to the FindMy Profilmanual V1.0 (Headspin Advertising AS).
 * Pantone-to-hex conversions are approximations of the print spec.
 */

/* Webfonts — Ubuntu is the FindMy profile font (manual page 8).
 * Calibri Light is the documented offline substitute (Word/PPT/email);
 * not loaded on web. Ubuntu Mono is used for coordinate/data callouts. */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* ─────────────────────────────────────────────────────────────
   * COLOR — LOGO PALETTE (manual page 5)
   * ───────────────────────────────────────────────────────────── */

  /* Pantone 7717 CP — primary brand teal */
  --fm-teal:            #008C80;
  --fm-teal-80:         #339F95;   /* 80% tint */
  --fm-teal-60:         #66B7AF;   /* 60% tint */
  --fm-teal-40:         #99CFCA;   /* 40% tint */
  --fm-teal-20:         #CCE7E4;   /* 20% tint */
  --fm-teal-dark:       #007870;   /* +8% hover */
  --fm-teal-darker:     #006760;   /* +12% press  */

  /* Pantone Cool Gray 11 CP — logo/text dark */
  --fm-gray:            #53565A;
  --fm-gray-80:         #75787B;
  --fm-gray-60:         #98999C;
  --fm-gray-40:         #BABBBD;
  --fm-gray-20:         #DDDDDE;

  /* ─────────────────────────────────────────────────────────────
   * COLOR — PROFILE PALETTE (manual page 6, "PROFILFARGER")
   * Use to support the teal — never to compete.
   * ───────────────────────────────────────────────────────────── */
  --fm-olive:           #76881D;   /* Pantone 576 CP */
  --fm-amber:           #E0A024;   /* Pantone 7564 CP */
  --fm-taupe:           #5C504B;   /* Pantone 411 CP — warm brown */

  /* ─────────────────────────────────────────────────────────────
   * COLOR — CONTRAST PALETTE (manual page 6, "KONTRASTFARGER")
   * "Husk moderasjon!" — use sparingly, never on flat surfaces.
   * ───────────────────────────────────────────────────────────── */
  --fm-slate:           #5D7B8E;   /* Pantone 5415 CP */
  --fm-mint:            #D5E2BD;   /* Pantone 7485 CP */
  --fm-sage:            #A4BFAB;   /* Pantone 559 CP */

  /* ─────────────────────────────────────────────────────────────
   * COLOR — NEUTRAL SURFACE SCALE
   * Derived from Cool Gray 11; warm-neutral to feel "Norwegian outdoor"
   * rather than tech-sterile.
   * ───────────────────────────────────────────────────────────── */
  --fm-white:           #FFFFFF;
  --fm-bg:              #FAFAF9;   /* page background */
  --fm-bg-alt:          #F4F4F2;   /* striped rows, raised cards */
  --fm-border:          #E5E6E8;   /* default border */
  --fm-border-strong:   #C9CBCE;
  --fm-divider:         #EDEEEF;

  /* ─────────────────────────────────────────────────────────────
   * SEMANTIC / FOREGROUND
   * ───────────────────────────────────────────────────────────── */
  --fg-1:               #1F2124;   /* darkest text, near-black */
  --fg-2:               var(--fm-gray);          /* body text */
  --fg-3:               #75787B;   /* secondary / metadata */
  --fg-4:               #98999C;   /* placeholder */
  --fg-on-teal:         #FFFFFF;
  --fg-link:            var(--fm-teal-dark);

  --bg-1:               var(--fm-white);
  --bg-2:               var(--fm-bg);
  --bg-3:               var(--fm-bg-alt);
  --bg-inverted:        var(--fm-gray);
  --bg-brand:           var(--fm-teal);

  /* ─────────────────────────────────────────────────────────────
   * STATUS — semantic, not in manual; added for UI completeness.
   * Uses profile-palette colors where possible to stay on-brand.
   * ───────────────────────────────────────────────────────────── */
  --status-success:     var(--fm-olive);
  --status-success-bg:  #EAF0D2;
  --status-warning:     var(--fm-amber);
  --status-warning-bg:  #FBEED1;
  --status-danger:      #C13B2A;        /* additive — flagged in README */
  --status-danger-bg:   #F9DAD4;
  --status-info:        var(--fm-slate);
  --status-info-bg:     #E1E8ED;

  /* ─────────────────────────────────────────────────────────────
   * TYPE — families
   * ───────────────────────────────────────────────────────────── */
  --font-sans:          'Ubuntu', 'Calibri Light', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display:       'Ubuntu', 'Calibri Light', system-ui, sans-serif;  /* always italic medium when used as display */
  --font-mono:          'Ubuntu Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ─────────────────────────────────────────────────────────────
   * TYPE — scale (in px / line-height pairs)
   * Headings are italic-medium by brand rule.
   * ───────────────────────────────────────────────────────────── */
  --fs-display:         80px;
  --lh-display:         1.05;  /* @kind font */
  --fs-h1:              48px;
  --lh-h1:              1.1;    /* @kind font */
  --fs-h2:              32px;
  --lh-h2:              1.15;   /* @kind font */
  --fs-h3:              24px;
  --lh-h3:              1.2;    /* @kind font */
  --fs-h4:              20px;
  --lh-h4:              1.25;   /* @kind font */
  --fs-h5:              16px;
  --lh-h5:              1.3;    /* @kind font */

  --fs-body-lg:         18px;
  --lh-body-lg:         1.55;  /* @kind font */
  --fs-body:            16px;
  --lh-body:            1.5;    /* @kind font */
  --fs-body-sm:         14px;
  --lh-body-sm:         1.5;    /* @kind font */
  --fs-caption:         12px;
  --lh-caption:         1.4;    /* @kind font */
  --fs-overline:        11px;
  --lh-overline:        1.4;    /* @kind font */

  --fw-light:           300;   /* @kind font */
  --fw-regular:         400;   /* @kind font */
  --fw-medium:          500;   /* @kind font */
  --fw-bold:            700;   /* @kind font */

  /* ─────────────────────────────────────────────────────────────
   * SPACING — 4-based scale
   * ───────────────────────────────────────────────────────────── */
  --space-1:            4px;
  --space-2:            8px;
  --space-3:            12px;
  --space-4:            16px;
  --space-5:            24px;
  --space-6:            32px;
  --space-7:            48px;
  --space-8:            64px;
  --space-9:            96px;

  /* ─────────────────────────────────────────────────────────────
   * RADIUS — small. The brand is not "soft & friendly".
   * ───────────────────────────────────────────────────────────── */
  --radius-xs:          2px;
  --radius-sm:          4px;
  --radius-md:          6px;
  --radius-lg:          8px;
  --radius-xl:          12px;
  --radius-pill:        999px;
  --radius-circle:      50%;

  /* ─────────────────────────────────────────────────────────────
   * ELEVATION — minimal. One floating shadow is usually enough.
   * ───────────────────────────────────────────────────────────── */
  --shadow-1:           0 1px 2px rgba(31,33,36,0.06);
  --shadow-2:           0 1px 2px rgba(31,33,36,0.06), 0 4px 12px rgba(31,33,36,0.04);
  --shadow-3:           0 2px 4px rgba(31,33,36,0.06), 0 12px 24px rgba(31,33,36,0.06);
  --shadow-focus:       0 0 0 2px var(--fm-white), 0 0 0 4px var(--fm-teal);

  /* ─────────────────────────────────────────────────────────────
   * MOTION
   * ───────────────────────────────────────────────────────────── */
  --easing-out:         cubic-bezier(0.16, 1, 0.3, 1);  /* @kind other */
  --easing-standard:    cubic-bezier(0.4, 0, 0.2, 1);   /* @kind other */
  --duration-fast:      120ms;  /* @kind other */
  --duration-base:      180ms;  /* @kind other */
  --duration-slow:      280ms;  /* @kind other */

  /* ─────────────────────────────────────────────────────────────
   * Z-INDEX
   * ───────────────────────────────────────────────────────────── */
  --z-sticky:           100;   /* @kind other */
  --z-overlay:          800;   /* @kind other */
  --z-modal:            900;   /* @kind other */
  --z-toast:            1000;  /* @kind other */
}

/* ─────────────────────────────────────────────────────────────
 * SEMANTIC ELEMENT STYLES
 * Apply these to bare HTML in mocks/decks/prototypes.
 * ───────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, .fm-display {
  font-family: var(--font-display);
  font-style: italic;        /* brand rule: headings are italic medium */
  font-weight: var(--fw-medium);
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.fm-display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }

p { margin: 0 0 var(--space-4) 0; text-wrap: pretty; }
small, .fm-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--fg-3); }
.fm-overline {
  font-size: var(--fs-overline);
  line-height: var(--lh-overline);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: var(--fw-medium);
  font-style: normal;
}

code, pre, .fm-mono { font-family: var(--font-mono); font-size: 0.95em; }

a {
  color: var(--fg-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--fm-teal-darker); }

hr {
  border: 0;
  border-top: 1px solid var(--fm-divider);
  margin: var(--space-5) 0;
}

::selection { background: var(--fm-teal-40); color: var(--fg-1); }

/* The FindMy coordinate signature — a small reusable utility for the
 * °-circle motif from the manual. Drop this around any content. */
.fm-coord {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  color: var(--fm-teal);
}
