/* Bisoux — base element styles & a few brand utilities.
   Kept minimal: the design language is space and surface tone, not heavy chrome. */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--text);
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }

/* Small uppercase label — used for column headers, meta */
.bx-label {
  font-family: var(--font-body);
  font-size: var(--body-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Faint paper grain — love-letter warmth. Layer behind content, very low opacity.
   Apply .bx-paper to a full-bleed element; it tiles a soft fibrous noise. */
.bx-paper { position: relative; }
.bx-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42  0 0 0 0 0.38  0 0 0 0 0.32  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark .bx-paper::before { mix-blend-mode: screen; opacity: 0.35; }

/* Entrance: fade + rise a few px. Add .bx-rise; it animates once on mount. */
@keyframes bx-rise {
  from { opacity: 0; transform: translateY(var(--motion-rise)); }
  to   { opacity: 1; transform: translateY(0); }
}
.bx-rise { animation: bx-rise var(--motion-dur) var(--motion-ease) both; }

/* The signature: a kiss mark presses in, blooms open, then settles. */
@keyframes bx-bloom {
  0%   { transform: scale(0.82); opacity: 0.0; }
  35%  { transform: scale(0.92); opacity: 1; }
  62%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.bx-bloom { animation: bx-bloom var(--motion-slow) var(--motion-ease) both; }
