/* ==========================================================================
   Sensei Slava · shared base: tokens, reset, type, buttons
   Used by the landing page, the members area and the login page.
   ========================================================================== */


:root {
  --ink: #09090b;
  --ink-2: #0e0e11;
  --ink-3: #141418;
  --ink-4: #1d1d23;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);

  --red: #f0263f;
  --red-hi: #ff3f57;
  --red-deep: #b0142b;
  --gold: #eba900;
  --gold-hi: #ffc21a;

  --bone: #f3efe6;
  --paper: #141416;
  --paper-mute: #55525b;

  --text: #f5f2ec;
  --mute: #a8a5ae;
  --mute-2: #77747e;

  --display: "Barlow Condensed", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --u: min(1vw, 19.2px); /* hero stage unit: 1/100 of the stage width */
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: inherit; color: var(--red); }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 40px, 1200px); margin-inline: auto; position: relative; }
.wrap--narrow { width: min(100% - 40px, 860px); }
.sec { position: relative; padding: clamp(76px, 9.5vw, 150px) 0; }
.sec--tight { padding-top: 0; }
.sec--ink2 { background: var(--ink-2); }
.sec--bone { background: var(--bone); color: var(--paper); }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---------- type ---------- */
.h1, .h2, .h3, .hero__title {
  font-family: var(--display); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: -.004em; line-height: .9; text-wrap: balance;
}
.h1 { font-size: clamp(50px, 7.7vw, 118px); line-height: .86; }
.nb { white-space: nowrap; }
.h2 { font-size: clamp(42px, 5.6vw, 84px); }
.h3 { font-size: clamp(27px, 2.5vw, 35px); line-height: .96; }
.h3--xl { font-size: clamp(36px, 3.8vw, 58px); line-height: .9; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font: 700 12.5px/1.35 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; }
.eyebrow--white { color: #fff; }

.lead { margin-top: 22px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--mute); max-width: 58ch; }
.sec--bone .lead { color: var(--paper); font-weight: 600; }
.lead--center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 20px;
  padding: 17px 30px 17px 32px; border: 0; cursor: pointer; overflow: hidden;
  color: #fff; background: linear-gradient(180deg, var(--red-hi), #e2122f);
  transform: skewX(-10deg);
  box-shadow: 0 12px 34px -8px rgba(240, 38, 63, .7), inset 0 1px 0 rgba(255, 255, 255, .32);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.btn > * { transform: skewX(10deg); position: relative; z-index: 1; }
.btn::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transition: left .7s var(--ease);
}
.btn:hover { transform: skewX(-10deg) translateY(-3px); box-shadow: 0 20px 44px -8px rgba(240, 38, 63, .85), inset 0 1px 0 rgba(255, 255, 255, .32); }
.btn:hover::after { left: 120%; }
.btn:active { transform: skewX(-10deg) translateY(0); }
.btn__label { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn__main { font: 800 italic clamp(22px, 2vw, 28px)/1 var(--display); text-transform: uppercase; letter-spacing: .012em; white-space: nowrap; }
.btn__sub { margin-top: 7px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .94; white-space: nowrap; }
.btn__icon { flex: none; width: 26px; height: 26px; transition: transform .28s var(--ease); }
.btn:hover .btn__icon { transform: skewX(10deg) translateX(5px); }
.btn--sm { padding: 11px 20px; box-shadow: 0 8px 22px -8px rgba(240, 38, 63, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--sm span { font: 800 italic 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
