/* ===========================================================================
   GGDS — Great Goods Design System, tokens.
   Kilde: docs/ggds-v1.md + design-system/approved/00-command-central-LOCKED-MASTER.png
   Værdierne herunder er den eneste kilde til farve, type og rum. Brug altid
   token'et — aldrig en rå hex-værdi ude i komponenterne.
   =========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
}

:root {
  /* --- Flader ---------------------------------------------------------- */
  --bg: #f7f3ea;            /* app-baggrund, varm creme */
  --bg-2: #f3ede0;          /* dæmpet panel, hover */
  --card: #ffffff;          /* kort "popper" på cremen */
  --sidebar: #241a12;       /* mørk sidebar */
  --sidebar-2: #2e2117;     /* sidebar gradient bund */
  --sidebar-text: #e8ddc9;

  /* --- Blæk og tekst --------------------------------------------------- */
  --ink: #2c2620;
  --ink-soft: #5c554b;
  --muted: #938a7b;
  --faint: #a99f8d;

  /* --- Linjer ---------------------------------------------------------- */
  --line: #ece3d2;
  --line-soft: #f2ece0;

  /* --- Brand: Great Goods guld ----------------------------------------- */
  --brand: #c79a3f;
  --brand-dark: #a8823a;
  --brand-deep: #7a6328;
  --brand-light: #fbf1d8;
  --brand-tint: #faf6ee;

  /* --- Semantisk ------------------------------------------------------- */
  --good: #2f9e57;
  --good-tint: #e6f6ec;
  --warn: #d9a327;
  --warn-tint: #fdf3e2;
  --bad: #d8574e;
  --bad-tint: #fbeae8;
  --info: #2b6cb0;
  --info-tint: #e8f0fb;

  /* --- Elevation: varme skygger, aldrig neutralt gråt ------------------- */
  --shadow-sm: 0 1px 2px rgba(44, 38, 32, 0.04), 0 1px 3px rgba(44, 38, 32, 0.05);
  --shadow: 0 1px 2px rgba(44, 38, 32, 0.04), 0 6px 18px rgba(44, 38, 32, 0.07);
  --shadow-md: 0 4px 12px rgba(44, 38, 32, 0.08), 0 16px 40px rgba(44, 38, 32, 0.10);
  --ring: 0 0 0 3px rgba(199, 154, 63, 0.22);

  /* --- Geometri og bevægelse ------------------------------------------- */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 0.18s;

  --sidebar-w: 198px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Signaturvasken: to bløde guld-radialer. Fast lag, så den aldrig gentegnes
   ved scroll. Den er et identitetsmærke — hver side sidder på den. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 560px at 100% -8%, rgba(199, 154, 63, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(122, 99, 40, 0.07), transparent 55%);
}

::selection {
  background: rgba(199, 154, 63, 0.25);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #d9cfba;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #bdb098;
}
::-webkit-scrollbar-track {
  background: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

/* Tal skal kunne sammenlignes lodret overalt i systemet. */
.tnum,
.value,
.kpi-value,
.pulse-value,
table {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
