/* ============================================================
   FOUNDATION — shared tokens for farahmakesfilms.com rebuild
   Include this on every page, before any page-specific CSS.
   ============================================================ */

:root {
  /* ---- Color ---- */
  --color-bg:        #0a0a0a;   /* near-black, not pure #000 */
  --color-fg:        #f2f0ec;   /* warm off-white, not pure #fff */
  --color-fg-dim:     rgba(242, 240, 236, 0.55);
  --color-fg-faint:   rgba(242, 240, 236, 0.28);
  --color-line:       rgba(242, 240, 236, 0.16);
  --color-bg-panel:   #111111;
  --color-red:        #b3121b;   /* one dramatic accent, used sparingly */

  /* ---- Type ---- */
  --font-display: "Neue Haas Grotesk Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --size-name:    clamp(2.75rem, 7vw, 6.5rem);
  --size-h1:      clamp(1.75rem, 4vw, 2.75rem);
  --size-meta:    0.8125rem;   /* ~13px — placard / spec-sheet text */
  --size-body:    1.0625rem;   /* ~17px */
  --size-nav:     0.9375rem;

  --tracking-meta: 0.02em;
  --leading-body:  1.55;

  /* ---- Spacing scale ---- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  240ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

a {
  color: inherit;
  text-decoration: none;
}

/* no single words or syllables stranded on a last line */
p, h1, h2, h3, li {
  text-wrap: pretty;
  hyphens: manual;
}

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

:focus-visible {
  outline: 1px solid var(--color-fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
