/* ============================================================
   Formosa Film Fund — Base / element defaults
   Sets the cinema-dark canvas and base typography. Consumers get
   a sensible black-and-gold starting point just by linking styles.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--role-body-size);
  line-height: var(--leading-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "kern" 1;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--fw-bold);
}

h1 { font-size: var(--role-h1-size); letter-spacing: var(--tracking-display); font-weight: var(--fw-black); }
h2 { font-size: var(--role-h2-size); }
h3 { font-size: var(--role-h3-size); }

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: var(--text-gold);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent-hover); }

strong, b { font-weight: var(--fw-semibold); color: var(--text-primary); }

small { font-size: var(--text-sm); }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection { background: var(--gold-a32); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-hairline);
  margin: var(--space-8) 0;
}

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