/* Rubik, self-hosted, one variable file per script (weights 300 to 900). */
@font-face { font-family: "Rubik"; src: url("../lib/fonts/rubik-hebrew-wght-normal.woff2") format("woff2-variations"), url("../lib/fonts/rubik-hebrew-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; src: url("../lib/fonts/rubik-latin-wght-normal.woff2") format("woff2-variations"), url("../lib/fonts/rubik-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/*
  The world: true black, bright white, red light.
  Contrast against #000: ink #F4F5F7 19.4:1 · body #C3C7CD 12.2:1 · meta #9A9FA7 7.9:1 · red text #FF4D42 6.4:1.
  White on the button red (#C8101A at the text line) 5.9:1. Red light (#FF4A3D, #F5222D, #D0101A, #7A0610) is light, not text.
*/
:root {
  --black: #000000;
  --page: #020202;
  --surface: #0B0B0D;
  --surface-2: #111114;
  --surface-3: #18181C;
  --white: #FFFFFF;
  --ink: #F4F5F7;
  --ink-2: #C3C7CD;
  --ink-3: #9A9FA7;
  --line: rgb(255 255 255 / 0.075);
  --line-2: rgb(255 255 255 / 0.14);
  --edge: rgb(255 255 255 / 0.14);

  --red-hot: #FF4A3D;
  --red: #F5222D;
  --red-body: #D0101A;
  --red-deep: #7A0610;
  --red-text: #FF4D42;
  --warm: #FFE9E6;

  --silver: linear-gradient(180deg, #FFFFFF 0%, #D4D7DC 48%, #8E939B 100%);
  --red-light: linear-gradient(180deg, #FFD9D4 0%, #FF6A5C 26%, #F5222D 62%, #C70F19 100%);

  --f: "Rubik", "Arial Hebrew", "Segoe UI", Arial, sans-serif;

  --t-hero: clamp(2.75rem, 1.15rem + 6.2vw, 6rem);
  --t-h2: clamp(2.15rem, 1.25rem + 3.5vw, 4.4rem);
  --t-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.55rem);
  --t-lede: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --t-body: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --t-small: 0.9375rem;

  --r-pill: 999px;
  --r-card: 24px;
  --r-frame: 28px;
  --r-inner: 14px;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(6rem, 3.5rem + 9vw, 11.5rem);
  --brand-w: 10.9375rem; /* the logo and the header WhatsApp button share this width */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: dark;
  accent-color: var(--red);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--black);
  scrollbar-color: #3A0A0E var(--black);
}
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--red-hot);
}
img { display: block; max-inline-size: 100%; block-size: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.24em; text-decoration-thickness: 1px; }
em, strong { font-style: normal; }

::selection { background: var(--red-body); color: var(--white); }
::-webkit-scrollbar { inline-size: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2A0709; border: 2px solid var(--black); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #5A0C12; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3 { font-weight: 800; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.num { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.icon { inline-size: 1.15em; block-size: 1.15em; flex: none; }
.wrap { inline-size: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }

.skip {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 60;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--white); color: var(--black); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 180ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Headings in two tones: a white line, a silver line, and the red phrase as light ---------- */
.h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -0.02em; }
.h2 .l1, .h2 .l2 { display: block; }
.h2 .l1 { color: var(--ink); }
.silver, .h2 .l2 {
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-block-end: 0.06em; /* descenders stay inside the clipped paint */
}
.lit {
  background: var(--red-light); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  filter: drop-shadow(0 0 18px rgb(245 34 45 / 0.55)) drop-shadow(0 0 2px rgb(255 74 61 / 0.4));
}
.head { display: grid; justify-items: start; gap: 22px; }
.head--center { justify-items: center; text-align: center; }
.lede { font-size: var(--t-lede); line-height: 1.6; color: var(--ink-2); max-inline-size: 46ch; }

/* ---------- Pill badge: dark glass, a red dot of light, short white text ---------- */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-block-size: 34px; padding: 6px 16px 6px 14px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, #16161A 0%, #0B0B0D 100%);
  border: 1px solid rgb(255 255 255 / 0.09);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), 0 8px 24px -10px rgb(245 34 45 / 0.45);
  color: var(--ink); font-size: 0.875rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em;
}
.pill::before {
  content: ''; flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFE9E6 0%, var(--red-hot) 45%, var(--red) 100%);
  box-shadow: 0 0 0 3px rgb(245 34 45 / 0.16), 0 0 12px 2px rgb(255 74 61 / 0.85);
}
.pill::after { /* a thin red edge of light along the top, as on Nik Cooper's tags */
  content: ''; position: absolute; inset-block-start: -1px; inset-inline: 22%; block-size: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 74 61 / 0.9), transparent);
}

/* ---------- Buttons: glossy pills ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 48px; padding: 12px 26px; border-radius: var(--r-pill);
  font-family: var(--f); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform 160ms var(--ease-out), box-shadow 240ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn::before { /* the gloss: a soft sheen on the upper half */
  content: ''; position: absolute; inset: 1px 1px 52% 1px; border-radius: var(--r-pill) var(--r-pill) 40% 40% / var(--r-pill) var(--r-pill) 14px 14px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.26), rgb(255 255 255 / 0)); pointer-events: none; z-index: -1;
}
.btn:active { transform: scale(0.97); }
.btn .icon { inline-size: 1.25em; block-size: 1.25em; }
.btn-red {
  color: var(--white);
  background: linear-gradient(180deg, #E61E29 0%, #C8101A 50%, #9C0A12 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.36), inset 0 -1px 0 rgb(0 0 0 / 0.28),
    0 0 0 1px rgb(255 92 80 / 0.45),
    0 10px 28px -8px rgb(245 34 45 / 0.8), 0 0 44px -8px rgb(245 34 45 / 0.55);
}
.btn-white {
  color: #0A0A0B;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEEFF2 52%, #D2D5DA 100%);
  box-shadow:
    inset 0 1px 0 #FFFFFF, inset 0 -1px 0 rgb(0 0 0 / 0.14),
    0 0 0 1px rgb(255 255 255 / 0.3),
    0 12px 34px -12px rgb(255 74 61 / 0.55);
}
.btn-white::before { background: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0)); }
.btn-ghost {
  color: var(--ink);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 0 0 1px rgb(255 255 255 / 0.18);
}
.btn-ghost::before { background: none; }
.btn-sm { min-block-size: 44px; padding: 10px 16px; font-size: 0.875rem; gap: 7px; }
.btn-lg { min-block-size: 58px; padding: 16px 32px; font-size: 1.0625rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-red:hover {
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.42), inset 0 -1px 0 rgb(0 0 0 / 0.28),
      0 0 0 1px rgb(255 120 108 / 0.7),
      0 14px 34px -8px rgb(245 34 45 / 0.95), 0 0 70px -6px rgb(245 34 45 / 0.7);
  }
  .btn-white:hover { box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -1px 0 rgb(0 0 0 / 0.14), 0 0 0 1px rgb(255 255 255 / 0.6), 0 14px 40px -10px rgb(255 74 61 / 0.75); }
  .btn-ghost:not([disabled]):hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 0 0 1px rgb(255 255 255 / 0.42); }
}
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-text {
  background: none; border: 0; padding: 10px 4px; min-block-size: 44px; cursor: pointer;
  color: var(--ink); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 0.24em;
}
.micro { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
.micro .sep { inline-size: 4px; block-size: 4px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 8px var(--red-hot); }

/* ---------- Header: over the hero at the top, away while you read down, back on black when you scroll up ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  border-block-end: 1px solid transparent;
  transition: transform 260ms var(--ease-out), background-color 220ms ease, border-color 220ms ease;
}
.site-header.is-floating { background: rgb(0 0 0 / 0.94); border-block-end-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); transition-duration: 180ms, 200ms, 200ms; }
.read-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 31; block-size: 2px;
  background: rgb(255 255 255 / 0.06); pointer-events: none; opacity: 0; transition: opacity 200ms ease;
}
.is-reading .read-progress { opacity: 1; }
.read-progress > span {
  display: block; block-size: 100%; transform: scaleX(0); transform-origin: right;
  background: linear-gradient(270deg, var(--red-hot), var(--red) 60%, var(--red-body));
  box-shadow: 0 0 10px rgb(255 74 61 / 0.9);
}
.wordmark { display: inline-flex; align-items: center; min-block-size: 44px; text-decoration: none; }
/* Daniel's rule (16.11.2026): the logo is exactly as wide as the WhatsApp button beside it. Both read --brand-w. */
.wordmark .logo { display: block; inline-size: var(--brand-w); block-size: auto; }
.site-header .btn { inline-size: var(--brand-w); padding-inline: 8px; }
.site-footer .wordmark .logo { inline-size: 8.75rem; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 14px; border-radius: var(--r-pill);
  text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500;
  transition: color 200ms ease, background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--white); background: rgb(255 255 255 / 0.05); } }
@media (max-width: 960px) { .site-nav { display: none; } .site-header .btn { margin-inline-start: auto; } }
@media (max-width: 420px) {
  :root { --brand-w: 9.9375rem; }
  .site-header { gap: 12px; }
  .site-header .wordmark .logo { inline-size: min(var(--brand-w), 100vw - 2 * var(--gutter) - 12px - var(--brand-w)); }
  .site-header .btn { font-size: 0.8125rem; gap: 6px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 40px;
  padding: 40px var(--gutter) calc(40px + var(--consent-h, 0px));
  border-block-start: 1px solid var(--line); background: var(--black);
  color: var(--ink-2); font-size: var(--t-small);
}
.footer-brand { display: grid; justify-items: start; gap: 6px; }
.footer-tag { margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a, .footer-links button {
  display: inline-flex; align-items: center; min-block-size: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: var(--t-small); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.32); text-underline-offset: 0.28em;
}
@media (hover: hover) and (pointer: fine) { .footer-links a:hover, .footer-links button:hover { text-decoration-color: var(--red-hot); } }
.footer-copy { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.875rem; }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr; padding-block-end: calc(96px + var(--consent-h, 0px)); } }

/* Reduced motion is handled as a mode (html.a11y-still, set before first paint by js/boot.js; css/ui.css):
   movement and loops stop, short colour and opacity feedback stays. */
