/* ============================================================
   InTheRoom Productions — Base resets & primitives
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--body-md-size);
  font-weight: var(--weight-light);
  line-height: var(--body-md-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
}

/* Focus — crisp white ring, never rounded glow */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- The Threshold stripe utility (signature divider) ---- */
.itr-stripe {
  height: var(--stripe-height);
  border: 0;
  margin: 0;
  background: var(--accent);
}
.itr-stripe--spectrum {
  background: linear-gradient(
    to right,
    var(--ink) 0%, var(--ink) 33.33%,
    var(--accent) 33.33%, var(--accent) 66.66%,
    var(--carbon) 66.66%, var(--carbon) 100%
  );
}

/* ---- Hairline rule ---- */
.itr-rule { height: 1px; border: 0; background: var(--hairline); margin: 0; }

/* ---- Container ---- */
.itr-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}
