/* ACL brand tokens (from ACL BRANDING.pdf) + shared reset.
   Titles: Futura (falls back to Jost, a free geometric Futura-style face).
   Text: Helvetica. Arabic: Helvetica (Helvetica Neue Arabic where installed). */
:root {
  --acl-ink: #1f1f1e;
  --acl-charcoal: #272725;
  --acl-olive: #938c54;
  --acl-sand: #e4ded2;
  --acl-sand-2: #ece8df;
  --acl-white: #f6f4ef;

  --font-title: "Futura PT", Futura, "Jost", "Century Gothic", sans-serif;
  --font-text: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
}

html[lang="ar"] {
  --font-title: "Helvetica Neue Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Helvetica Neue Arabic", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
[data-logo] { display: inline-block; line-height: 0; }
[data-logo] svg { width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--acl-olive); outline-offset: 3px; }
.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 { position: fixed; top: -100px; left: 16px; z-index: 1000; background: var(--acl-sand); color: var(--acl-ink); padding: 10px 16px; }
.skip:focus { top: 16px; }

html[lang="ar"] body { letter-spacing: 0 !important; }
html[lang="ar"] * { letter-spacing: 0 !important; }

/* Film grain overlay (shared) */
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -8%); }
  60% { transform: translate(-8%, -2%); } 80% { transform: translate(6%, 8%); } 100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}
