/* ============================================================
   Reset, typography foundations, RTL + per-language font swaps
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--off-white);
  color: var(--stone);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--pom);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---- Display type ---- */

.display {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

/* Was a gold gradient clipped to the text. On paper a flat pomegranate ink
   reads as letterpress, which is both truer to the material and sharper. */
.accent-text {
  color: var(--pom);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--clay);
}

/* ---- Language-specific typography ---- */

html[lang="hy"] .display,
html[lang="hy"] body,
html[lang="hy"] .eyebrow {
  font-family: var(--font-hy);
}

html[lang="hy"] .eyebrow {
  letter-spacing: 0.2em;
  text-transform: none;
}

html[lang="ar"] body {
  font-family: var(--font-ar-display);
  line-height: 1.95;
}

html[lang="ar"] .display {
  font-family: var(--font-ar-display);
  line-height: 1.45;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0.12em;
  text-transform: none;
  font-family: var(--font-ar-display);
}

/* ---- RTL ---- */

[dir="rtl"] .flip-x {
  transform: scaleX(-1);
}

/* ---- Utility ---- */

.container {
  width: min(100% - 2.5rem, var(--content-max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
