/* ============================================================
   STENCILIZED — Brand foundation
   ============================================================ */

:root {
  /* Logo-derived palette */
  --ink: #0F0F10;
  --ink-2: #1C1C1F;
  --ink-3: #2A2A2E;
  --paper: #FAFAF7;
  --paper-2: #F2F0E9;
  --paper-3: #E6E3D8;
  --rule: #1a1a1c;
  --muted: #6b6b6e;

  /* Accents (from logo) */
  --c-orange: #F25C2A;
  --c-gold:   #F5B400;
  --c-teal:   #1FA899;
  --c-violet: #7B3FF2;
  --c-blue:   #2A6FDB;
  --c-pink:   #E94B83;

  /* Roles (default = orange primary, can be swapped via Tweaks) */
  --accent: var(--c-orange);
  --accent-2: var(--c-violet);
  --accent-3: var(--c-teal);

  /* Type */
  --font-display: "Stardos Stencil", "Allerta Stencil", Impact, sans-serif;
  --font-sans: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Scale */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Shadow */
  --sh-1: 0 1px 0 rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04);
  --sh-2: 0 8px 24px -8px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  --sh-cut: 4px 4px 0 var(--ink);
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Utility */
.stencil {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.mono { font-family: var(--font-mono); }

.rule-top    { border-top: 1.5px solid var(--ink); }
.rule-bottom { border-bottom: 1.5px solid var(--ink); }

.container {
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
}

/* ============================================================
   Stencil mark — the "S" reduced to its split letterforms
   ============================================================ */
.smark {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: 0 0 0 var(--ink); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-2); box-shadow: 4px 4px 0 var(--accent); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; }

.btn--sm { padding: 8px 12px; font-size: 12px; }
.btn--lg { padding: 16px 22px; font-size: 16px; }

/* ============================================================
   Tag / chip
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chip--dot::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   Background tape (industrial)
   ============================================================ */
.tape {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 12px,
    var(--accent) 12px 24px
  );
  height: 14px;
  width: 100%;
}

/* Halftone dots overlay (logo motif) */
.halftone {
  background-image: radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px);
  background-size: 10px 10px;
  background-position: 0 0;
}

/* "Stencil cut" — break in a shape */
.stencil-cut {
  position: relative;
}
.stencil-cut::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0 28%,
    var(--paper) 28% 30%,
    transparent 30% 64%,
    var(--paper) 64% 66%,
    transparent 66%
  );
  pointer-events: none;
}
