/* ─────────────────────────────────────────────────────────────
   PYKE. — Base styles. Reset + typography + textures.
   ───────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

html,
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ── Type primitives ── */
.t-display { font-family: var(--display); letter-spacing: -0.01em; line-height: 0.9; }
.t-mono    { font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.t-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.t-eyebrow.on-ink { color: rgba(244, 238, 216, 0.55); }

/* ── Paper textures ── */
.paper {
  position: relative;
  background: var(--cream);
}
.paper::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(12, 12, 12, 0.06) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}
.paper > * { position: relative; z-index: 1; }

.speedlines {
  position: relative;
}
.speedlines::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 40px,
    rgba(12, 12, 12, 0.025) 40px, rgba(12, 12, 12, 0.025) 41px
  );
  pointer-events: none;
  z-index: 0;
}
.speedlines > * { position: relative; z-index: 1; }

/* ── Containers ── */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Utility ── */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Rules */
.rule {
  display: block;
  width: 88px;
  height: 4px;
  background: var(--red);
  border: 0;
  margin: 32px 0 24px;
}
.rule.sm { width: 56px; height: 3px; margin: 18px 0; }
.rule.cyan { background: var(--cyan); }
.rule.yellow { background: var(--yellow); }
