/* ==========================================================================
   Design tokens
   Two darks (a true black for the deepest moments, a slightly lifted
   charcoal for elevated surfaces), warm off-white, one deep burgundy
   used with restraint. Radius 0 throughout: an archive/document
   character, not app chrome.
   ========================================================================== */

:root {
  /* color */
  --ink: #0b0b0b;
  --ink-soft: #151515;
  --paper: #f2efe7;
  --paper-soft: #e8e2d2;
  --accent: #681923;
  --accent-deep: #470f16;
  --accent-bright: #c05a64;
  --grey-on-paper: #6e6b62;
  --grey-on-ink: #9a978d;
  --line-on-paper: rgba(11, 11, 11, 0.14);
  --line-on-ink: rgba(242, 239, 231, 0.16);
  --line-strong-on-ink: rgba(242, 239, 231, 0.36);
  --focus-ring: #c05a64;

  /* type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Host Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-hebrew: "Noto Serif Hebrew", "Arial Hebrew", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;

  --fs-hero: clamp(2.75rem, 4.4vw + 1.5rem, 6rem);
  --fs-h2: clamp(2rem, 2.4vw + 1.3rem, 3.5rem);
  --fs-h3: clamp(1.375rem, 0.9vw + 1.1rem, 1.875rem);
  --fs-body-lg: clamp(1.125rem, 0.3vw + 1.05rem, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --lh-tight: 1.05;
  --lh-heading: 1.14;
  --lh-body: 1.6;

  /* space */
  --space-section-y: clamp(5rem, 8vw, 10rem);
  --space-section-y-tight: clamp(3rem, 5vw, 6rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-width: 1400px;
  --max-width-text: 42rem;

  /* radius: sharp everywhere */
  --radius: 0;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 500ms;
  --dur-reveal: 900ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

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

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

/* Hebrew moments: a distinct typeface and correct reading direction,
   never Oswald stretched over glyphs it wasn't built for. Applied by
   attribute so every lang="he" span picks this up automatically. */
[lang="he"] {
  font-family: var(--font-hebrew);
  font-weight: 500;
  line-height: 1.5;
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   Base typography helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.eyebrow--on-paper {
  color: var(--accent);
}

.section-heading {
  font-size: var(--fs-h2);
  text-transform: uppercase;
  max-width: 22ch;
}

.body-lead {
  font-size: var(--fs-body-lg);
  max-width: var(--max-width-text);
  color: var(--ink-soft);
}

.mt-tight {
  margin-top: 0.85rem;
}

.numeral {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-small);
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--space-section-y);
}

.section--tight {
  padding-block: var(--space-section-y-tight);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.hr {
  border: 0;
  border-top: 1px solid var(--line-on-paper);
}

.section--ink .hr {
  border-top-color: var(--line-on-ink);
}
