/* ============================================================
   AMAL ABU AL-RAHI — PORTFOLIO
   global.css — design tokens, reset, typography, layout
   ============================================================ */

/* ── DESIGN TOKENS ───────────────────────────────────────── */

:root {
  /* Colors */
  --color-bg:        #141414;
  --color-text:      #e8e0d5;
  --color-text-dim:  #7a7269;
  --color-text-mid:  #b0a89e;
  --color-border:    rgba(232, 224, 213, 0.12);

  /* Layout */
  --sidebar-width:   160px;

  /* Typography */
  --font-primary: 'Cormorant Garamond', serif;  /* body, display text */
  --font-nav:     'Outfit', sans-serif;          /* nav, tags, UI labels */
  --font-display: 'Playfair Display', serif;     /* logo "Amal." + preloader name */
  --font-body:    'Lora', serif;                 /* body text for long-form reading */

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Durations */
  --t-fast: 200ms;
  --t-mid:  400ms;
  --t-slow: 700ms;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;  /* custom cursor handles all states */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide page content until transition panels are ready */
body {
  opacity: 0;
}

body.is-ready {
  opacity: 1;
  transition: opacity 0.1s ease;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

a             { color: inherit; text-decoration: none; }
img, video    { max-width: 100%; display: block; }
ul, ol        { list-style: none; }

/* ── LAYOUT ──────────────────────────────────────────────── */

/* Main content sits to the right of the fixed sidebar */
.page-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  position: relative;
}

/* Tablet — narrow sidebar */
@media (max-width: 1024px) {
  :root { --sidebar-width: 130px; }
}

/* Mobile — sidebar hidden, top bar takes over */
@media (max-width: 768px) {
  .page-content {
    margin-left: 0 !important;
    padding-top: 64px;
  }
}

/* ── TYPOGRAPHY SCALE ────────────────────────────────────── */

/* Used for large italic display text */
.text-display {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Used for section headings */
.text-heading {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
}

/* Used for nav links and UI labels */
.text-nav {
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
}

/* Used for body copy */
.text-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-mid);
}

/* Used for captions and metadata */
.text-small {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
}

/* ── UTILITIES ───────────────────────────────────────────── */

/* Screen-reader only — visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}