html,
body {
  background-color: var(--color-bg);
  color: var(--color-ink);
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: clip;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

::selection {
  background-color: rgba(163, 168, 136, 0.35);
  color: var(--color-ink);
}

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  color: var(--color-ink);
  letter-spacing: 0;
}

h1,
.h1 {
  font-size: var(--text-hero);
  line-height: 1.38;
}

h2,
.h2 {
  font-size: var(--text-3xl);
  line-height: 1.44;
}

h3,
.h3 {
  font-size: var(--text-xl);
  line-height: 1.52;
}

p {
  color: var(--color-ink-soft);
}

.font-editorial {
  font-family: var(--font-editorial);
}

.font-wordmark {
  font-family: var(--font-wordmark);
}

.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: fixed;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 999;
  background: var(--ashian-olive);
  color: var(--ashian-bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  transition: inset-block-start var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  inset-block-start: 1rem;
}

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

.on-dark :focus-visible {
  outline-color: var(--ashian-cream);
}

/* Subtle organic paper grain overlay (pointer-events: none) */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
