/* =========================================================
   base.css — shared reset + utilities for every section.
   Each section (portfolio / reaper) defines its own color
   tokens; this file only uses the token NAMES.
   ========================================================= */

/* AZN Unified (AthayaDZN): display font for titles, nav, buttons and labels.
   It's already oblique and single-weight; registering it for normal + italic and
   every weight stops the browser from faking a second slant or a bold. */
@font-face {
  font-family: 'AZN Unified'; src: url('../fonts/azn-unified-oblique.otf') format('opentype');
  font-style: normal; font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'AZN Unified'; src: url('../fonts/azn-unified-oblique.otf') format('opentype');
  font-style: italic; font-weight: 100 900; font-display: swap;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, pre, kbd { font-family: var(--font-mono); }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--accent); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Scroll-reveal (toggled by JS; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
