/* G11 — Nordsølv | Det Sølvskab — Nordic Editorial Broadsheet */
/* Velvet ink ground · pearl typography · cold silver inlay · gold leaf */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..700,30..100,0..1&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

@import url("blocks/topstrip.css");
@import url("blocks/header.css");
@import url("blocks/hero.css");
@import url("blocks/brands.css");
@import url("blocks/usp.css");
@import url("blocks/faq.css");
@import url("blocks/footer.css");
@import url("blocks/cookie.css");
@import url("blocks/page.css");
@import url("blocks/sticky-cta.css");

:root {
  color-scheme: dark;

  /* Velvet ink ground */
  --ink: #0a0d12;
  --ink-deep: #06080c;
  --ink-elev: #11151c;
  --vellum: #161b24;     /* card surface */
  --vellum-2: #1d2330;   /* lifted surface */

  /* Hairline rules — newspaper-grade */
  --rule: #232a36;
  --rule-soft: #1a1f29;
  --rule-strong: #364152;

  /* Type — Nordsølv silver palette */
  --bone: #d8dde6;       /* primary body */
  --pearl: #f5f7fa;      /* high-emphasis */
  --slate: #8e98a6;      /* secondary */
  --mute: #5b6573;       /* tertiary / labels */
  --quiet: #3e4654;      /* ghost text, dividers */

  /* Single accent palette — restraint is the design */
  --silver: #c2cdde;     /* Nordsølv silver */
  --silver-soft: rgba(194, 205, 222, 0.10);
  --silver-line: rgba(194, 205, 222, 0.35);

  /* Gold leaf — used very sparingly (top 1, key callouts) */
  --gold: #c69a55;
  --gold-bright: #e3b66a;
  --gold-soft: rgba(198, 154, 85, 0.12);
  --gold-line: rgba(198, 154, 85, 0.45);

  /* Bronze for #3 medal */
  --bronze: #a87248;

  /* Steel blue — single editorial highlight (rare) */
  --steel: #7c98c4;
  --steel-soft: rgba(124, 152, 196, 0.12);
  --steel-line: rgba(124, 152, 196, 0.40);

  /* Trust marks */
  --verified: #6cb597;     /* aurora-muted teal */
  --verified-soft: rgba(108, 181, 151, 0.12);
  --verified-line: rgba(108, 181, 151, 0.40);
  --warning: #d97070;
  --warning-soft: rgba(217, 112, 112, 0.10);
  --warning-line: rgba(217, 112, 112, 0.40);

  /* Legacy aliases — kept so any stray ref still works */
  --c-bg: var(--ink);
  --c-bg-dark: var(--ink-elev);
  --c-surface: var(--vellum);
  --c-surface-dark: var(--vellum-2);
  --c-line: var(--rule);
  --c-line-dark: var(--rule);
  --c-line-strong: var(--rule-strong);
  --c-text: var(--bone);
  --c-text-on-dark: var(--ink-deep);
  --c-text-soft: var(--slate);
  --c-muted: var(--mute);
  --c-brand: var(--gold);
  --c-action: var(--gold);
  --c-success: var(--verified);
  --c-danger: var(--warning);
  --c-cream: var(--pearl);
  --c-accent: var(--gold);

  /* Typography */
  --ff-display: "Fraunces", "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Inter Tight", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale */
  --fs-xs: 0.72rem;
  --fs-sm: 0.84rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 3rem;
  --fs-billboard: clamp(64px, 11vw, 168px);
  --fs-section: clamp(40px, 5.6vw, 96px);
  --fs-card-title: 30px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 80px;
  --sp-9: 120px;

  /* Radius — slight, hairline cards. No pills for cards; pills only for chips/buttons. */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 9999px;

  --container: 1280px;
  --container-narrow: 920px;
  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html, body { overflow-wrap: break-word; word-wrap: break-word; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--bone);
  background: var(--ink);
  background-image:
    radial-gradient(1200px 700px at 90% -10%, rgba(124, 152, 196, 0.10), transparent 60%),
    radial-gradient(900px 600px at -5% 8%, rgba(198, 154, 85, 0.06), transparent 65%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "calt" 1, "ss01" 1, "kern" 1;
}

/* Subtle paper grain overlay — adds tactile editorial feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a {
  color: var(--bone);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover, a:focus-visible {
  color: var(--silver);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold-line);
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.0;
  margin: 0 0 var(--sp-4);
  color: var(--pearl);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

h1 { font-size: var(--fs-section); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-section); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-card-title); letter-spacing: -0.005em; line-height: 1.15; font-variation-settings: "opsz" 36, "SOFT" 50; }
h4 { font-size: var(--fs-lg); line-height: 1.3; font-variation-settings: "opsz" 24; }

p { margin: 0 0 var(--sp-4); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { padding-left: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Sections — separated by hairlines, no big colour blocks */
.section {
  padding: var(--sp-9) 0;
  position: relative;
  border-top: 1px solid var(--rule);
}

.section--tight { padding: var(--sp-7) 0; }
.section--dark, .section--surface { background: transparent; }

/* Editorial subhead — eyebrow + serif title duo */
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: var(--sp-4);
}

.section__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--silver);
}

.section__title {
  font-family: var(--ff-display);
  font-size: var(--fs-section);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: var(--sp-4);
  text-align: left;
  color: var(--pearl);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

.section__lead {
  text-align: left;
  color: var(--slate);
  max-width: 720px;
  margin: 0 0 var(--sp-7);
  font-size: var(--fs-md);
  line-height: 1.65;
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 24, "SOFT" 100;
  font-style: italic;
  font-weight: 400;
}

/* Buttons — pill, hairline, restrained */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  min-height: 46px;
}

.button:hover, .button:focus-visible { text-decoration: none; }

.button--primary {
  background: var(--pearl);
  color: var(--ink-deep);
  border-color: var(--pearl);
}
.button--primary:hover, .button--primary:focus-visible {
  background: var(--gold-bright);
  color: var(--ink-deep);
  border-color: var(--gold-bright);
}

.button--secondary {
  background: var(--vellum);
  color: var(--bone);
  border-color: var(--rule-strong);
}
.button--secondary:hover, .button--secondary:focus-visible {
  border-color: var(--silver);
  color: var(--pearl);
}

.button--outlined,
.button--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--rule-strong);
}
.button--outlined:hover, .button--outlined:focus-visible,
.button--ghost:hover, .button--ghost:focus-visible {
  color: var(--pearl);
  border-color: var(--silver);
  background: var(--silver-soft);
}

.button--small {
  padding: 11px 22px;
  font-size: 0.82rem;
  min-height: 42px;
}

/* Editorial hairline rule — used between content blocks */
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-7) 0;
}

.rule--double {
  border: 0;
  height: 5px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin: var(--sp-7) 0;
}

@media (max-width: 1024px) {
  :root {
    --fs-2xl: 1.75rem;
    --fs-xl: 1.375rem;
    --sp-9: 96px;
    --sp-8: 72px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-2xl: 1.625rem;
    --fs-xl: 1.25rem;
    --fs-lg: 1.125rem;
    --fs-card-title: 24px;
    --sp-9: 72px;
    --sp-8: 56px;
  }
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-8) 0; }
}

@media (max-width: 360px) {
  .button { padding: 12px 22px; font-size: 0.82rem; }
}

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

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

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--vellum-2);
  border-radius: var(--radius-pill);
  border: 3px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--rule-strong); }

/* Reveal animations */
@keyframes pv-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pv-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pv-rule-grow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); }
}
