/* ==========================================================================
   Base — reset, typography, utilities
   ========================================================================== */

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

html, body { height: 100%; }

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

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

/* --- Brand type scale ----------------------------------------------------
   Style guide: "Contrast in size, in caps, in boldness.
   Never have everything in caps, everything in bold."
   So: headings caps + heavy, body sentence case + regular.
   ------------------------------------------------------------------------- */

.t-display {
  font-size: 30px;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.t-h1 {
  font-size: 22px;
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.2;
}

.t-h2 {
  font-size: 16px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.005em;
}

.t-h3 {
  font-size: 14px;
  font-weight: var(--fw-semibold);
}

.t-label {
  font-size: 10.5px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-3);
}

.t-body { font-size: 13.5px; color: var(--text-2); }
.t-small { font-size: 12px; color: var(--text-2); }
.t-micro { font-size: 11px; color: var(--text-3); }
.t-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* --- Utilities ------------------------------------------------------------ */
.u-row { display: flex; align-items: center; }
.u-between { display: flex; align-items: center; justify-content: space-between; }
.u-gap-4 { gap: 4px; } .u-gap-6 { gap: 6px; } .u-gap-8 { gap: 8px; }
.u-gap-12 { gap: 12px; } .u-gap-16 { gap: 16px; } .u-gap-24 { gap: 24px; }
.u-wrap { flex-wrap: wrap; }
.u-grow { flex: 1 1 auto; min-width: 0; }
.u-mt-4 { margin-top: 4px; } .u-mt-8 { margin-top: 8px; }
.u-mt-16 { margin-top: 16px; } .u-mt-24 { margin-top: 24px; }
.u-mb-8 { margin-bottom: 8px; } .u-mb-16 { margin-bottom: 16px; }
.u-mb-24 { margin-bottom: 24px; }
.u-red { color: var(--fp-red); }
.u-dim { color: var(--text-2); }
.u-dimmer { color: var(--text-3); }
.u-nowrap { white-space: nowrap; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-center { text-align: center; }
.u-right { text-align: right; }
.u-hide { display: none !important; }

/* --- Scrollbars ----------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--surface-4) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border: 3px solid var(--bg);
  border-radius: var(--r-pill);
}
*::-webkit-scrollbar-thumb:hover { background: var(--n-600); }

/* --- Focus ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--fp-red);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--fp-red); color: #fff; }

/* --- Chevron motif (brand design element) --------------------------------- */
.chevrons {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  pointer-events: none;
}
.chevrons i {
  display: block;
  width: 5px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  opacity: 0.5;
}
.chevrons i:nth-child(2) { opacity: 0.75; }
.chevrons i:nth-child(3) { opacity: 1; }

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