/* Vigie — design system (nordic / editorial) */
@import url("./fonts/fonts.css");

:root {
  --paper:      #F7F4EE;   /* warm off-white */
  --paper-2:    #FBF9F4;
  --ink:        #14171C;   /* deep ink */
  --ink-soft:   #4B515B;
  --ink-faint:  #8A909B;
  --line:       #DED7C9;   /* hairline on paper */
  --line-2:     #ECE6D9;
  --blue:       #0B3D6B;   /* Québec blue */
  --blue-deep:  #072742;
  --teal:       #0E7C7B;   /* aurora secondary */
  --aurora-1:   #1f9e8f;
  --aurora-2:   #2f6fb0;
  --aurora-3:   #6dc3b0;
  --gold:       #B8862F;   /* fleur-de-lis warmth */
  --ok:         #1B7A4B;
  --warn:       #9A6B12;
  --block:      #A6322E;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1180px;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(20,23,28,.04), 0 18px 50px -28px rgba(20,23,28,.28);
  --shadow-lg: 0 2px 4px rgba(20,23,28,.05), 0 40px 90px -40px rgba(11,61,107,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  overflow-x: hidden;
}

/* paper grain + contour atmosphere, fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(45,111,176,.10), transparent 60%),
    radial-gradient(48rem 36rem at 8% 6%, rgba(31,158,143,.085), transparent 62%),
    var(--paper);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: min(var(--maxw), calc(100vw - 48px)); margin-inline: auto; }
section { position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--blue); opacity: .55; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 22px; line-height: 1.15; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  text-decoration: none;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px -14px rgba(11,61,107,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(11,61,107,.8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- topbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(247,244,238,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck { border-color: var(--line); background: rgba(247,244,238,.9); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--font-display); font-size: 23px; letter-spacing: -.02em; }
.brand svg { width: 26px; height: 30px; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a.lnk { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav__links a.lnk:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 16px; }

/* language toggle */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.lang button {
  border: 0; background: transparent; cursor: pointer; padding: 7px 11px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-faint);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 860px) { .nav__links { display: none; } }

/* fade-up util */
.fade { opacity: 0; transform: translateY(18px); }
.fade.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: var(--ink-faint); font-size: 14px; }
.foot .brand { font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
