/* ============================================================
   FIGHT CLUB TLV — BASE LAYER
   ------------------------------------------------------------
   RTL-first reset + element defaults + a few brand utilities.
   Imported by styles.css after the tokens.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  direction: rtl;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  font-weight: var(--fw-regular);
}

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--red-500); color: var(--white); }

:focus-visible {
  outline: none;
  box-shadow: var(--glow-focus);
  border-radius: var(--r-xs);
}

/* ---- Brand utility primitives (handy in cards / UI kits) ---- */

.fc-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-kicker);
  color: var(--text-kicker);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
/* The red tick that precedes kickers */
.fc-kicker::before {
  content: "";
  width: 18px;
  height: var(--bw-accent);
  background: var(--accent);
}

.fc-display {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.fc-mono {
  font-family: var(--font-mono);
  letter-spacing: var(--ls-mono);
  font-variant-numeric: tabular-nums;
}

/* Film-grain texture overlay — add to any dark band for premium depth */
.fc-grain { position: relative; }
.fc-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* The red accent rule — the brand's signature divider */
.fc-rule {
  width: 48px;
  height: var(--bw-accent);
  background: var(--accent);
  border: 0;
}
