:root {
  /* --- Palette « terminal ambre » (espresso chaud, pas noir pur) --------- */
  --void: #100d09;
  --void-2: #16110b;
  --panel: #1b150e;
  --line: #2f2718;
  --line-strong: #453a24;

  --sand: #efe6d6; /* texte principal — « phosphore papier » */
  --sand-dim: #b0a58e;
  --sand-faint: #7d735d;

  --amber: #f7931a; /* orange Bitcoin — accent unique, plat */
  --amber-deep: #c9740f;

  --up: #4bd6a0; /* deltas positifs uniquement */
  --down: #e5533c; /* deltas négatifs uniquement */

  /* --- Typographie ------------------------------------------------------ */
  /* Signature : titres en MONOSPACE (vernaculaire crypto), corps en serif. */
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SFMono-Regular",
    "Consolas", "Liberation Mono", monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1240px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--sand);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Texture ténue de « grain papier » — statique, sans glow */
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(247, 147, 26, 0.05),
    transparent 55%
  );
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--amber);
  color: var(--void);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Étiquette utilitaire monospace (eyebrows, méta, labels de données) */
.mono {
  font-family: var(--font-mono);
}
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-faint);
}

/* Filet horizontal */
.rule {
  border: 0;
  border-top: 1px solid var(--line);
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--void);
}
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--amber-deep);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
