/* 1rem = 18px — toutes les font-size en rem sont relatives à cette valeur */
html {
  font-size: 112.5%;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  min-height: 100vh;
}

/* SVG noise texture overlay — parchment grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}



/* ========== Bootstrap token overrides ========== */

:root {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--border);
  --bs-card-bg: var(--surface);
  --bs-card-border-color: var(--border);
  --bs-card-color: var(--ink);
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
  --bs-link-color: var(--link);
  --bs-link-hover-color: var(--link-hover);
  --bs-body-font-family: 'Roboto', sans-serif;
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-sm: 0.0625rem;
  --bs-border-radius-lg: 0.25rem;
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-item-active-color: var(--ink);
  --bs-breadcrumb-bg: transparent;
  --bs-primary: var(--accent);
  --bs-secondary: var(--muted);
  --bs-success: var(--success);
  --bs-danger: var(--danger);
  --bs-warning: var(--warning);
  --bs-info: var(--zeon);
  --bs-emphasis-color: var(--ink);
}

/* Bootstrap tables default to near-black text via --bs-table-color, which the
   bridge above doesn't touch — force cell text to follow the theme ink token so
   .table content (e.g. creature damage-affinity editors) stays readable in dark
   theme. */
.table {
  --bs-table-color: var(--ink);
  --bs-table-bg: transparent;
  color: var(--ink);
}


/* ========== Typography ========== */

.page-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: 'Cinzel', Georgia, serif;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-family: 'Roboto', sans-serif;
}
