/* =========================================================================
   ArabOodh — base.css
   Design tokens, typography, reset.
   ========================================================================= */

:root {
  /* Surface */
  --bg-1: #080808;
  --bg-2: #0a0a0a;
  --bg-3: #161616;
  --bg-4: #1a1a1a;

  /* Text */
  --text:      #f0ede8;
  --text-soft: rgba(240, 237, 232, 0.78);
  --text-mute: rgba(240, 237, 232, 0.52);
  --text-dim:  rgba(240, 237, 232, 0.32);

  /* Lines */
  --border:        #2c2c2c;
  --border-strong: #3a3a3a;

  /* Accent */
  --accent:        #ffffff;            /* crisp monochrome white */
  --accent-soft:   rgba(255, 255, 255, 0.14);
  --accent-hover:  #d4d4d4;

  /* Type */
  --font-serif: "Cormorant Garamond", "EB Garamond", "Adobe Caslon Pro",
                Georgia, "Times New Roman", serif;
  --font-sans:  "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
                Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-xs:  clamp(11px, 0.78vw, 12px);
  --fs-sm:  clamp(13px, 0.9vw,  14px);
  --fs-md:  clamp(15px, 1vw,    16px);
  --fs-lg:  clamp(17px, 1.2vw,  19px);
  --fs-xl:  clamp(22px, 2vw,    28px);
  --fs-2xl: clamp(32px, 4.5vw,  58px);
  --fs-3xl: clamp(44px, 6vw,    78px);
  --fs-4xl: clamp(52px, 8.5vw,  118px);

  /* Spacing */
  --space-2xs: clamp(4px,  0.4vw, 6px);
  --space-xs:  clamp(8px,  0.8vw, 12px);
  --space-sm:  clamp(14px, 1.4vw, 20px);
  --space-md:  clamp(20px, 2.2vw, 32px);
  --space-lg:  clamp(32px, 3.4vw, 48px);
  --space-xl:  clamp(48px, 5vw,   72px);
  --space-2xl: clamp(72px, 9vw,   130px);

  /* Layout */
  --container:        1320px;
  --container-narrow: 920px;
  --container-tight:  680px;
  --pad-x:            clamp(20px, 5vw, 72px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.55, 0, 0.45, 0);
  --t-fast:   0.18s;
  --t-med:    0.32s;
  --t-slow:   0.6s;
  --t-reveal: 0.9s;

  /* Elevation */
  --shadow-soft:  0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-fab:   0 6px 20px rgba(255, 255, 255, 0.16),
                  0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-card:  0 1px 0 rgba(255, 255, 255, 0.02) inset,
                  0 24px 60px rgba(0, 0, 0, 0.35);

  /* Radii */
  --r-sm:    4px;
  --r-md:    8px;
  --r-lg:    14px;
  --r-pill:  999px;

  /* Header height (used by anchored scrolling and sticky nav offset) */
  --header-h: 66px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-1);
  letter-spacing: 0.005em;
  overflow-x: clip;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out),
              opacity var(--t-fast) var(--ease-out);
}

input, select, textarea { font: inherit; }

ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

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

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
.serif { font-family: var(--font-serif); font-weight: 400; }

h1, .h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-4xl);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.012em;
}

h2, .h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.005em;
}

h3, .h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  font-weight: 300;
  font-style: italic;
  color: var(--text-soft);
}

.body-lg { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-soft); }
.body-sm { font-size: var(--fs-sm); line-height: 1.6; color: var(--text-soft); }

.text-mute { color: var(--text-mute); }
.text-dim  { color: var(--text-dim); }
.text-accent { color: var(--accent); }

.italic-serif { font-family: var(--font-serif); font-style: italic; font-weight: 300; }

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--text); }

/* Decorative accent dot — used as section dividers */
.dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 0.6em;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.container        { width: 100%; max-width: var(--container);        margin-inline: auto; padding-inline: var(--pad-x); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--pad-x); }
.container-tight  { width: 100%; max-width: var(--container-tight);  margin-inline: auto; padding-inline: var(--pad-x); }

section { padding-block: var(--space-2xl); position: relative; }

.section-band-2 { background: var(--bg-2); }
.section-band-3 { background: var(--bg-3); }
.section-band-4 { background: var(--bg-4); }

/* Hairline divider */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.divider-soft { height: 1px; background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent); border: 0; }

/* Skip-to-main accessibility helper */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--accent);
  color: var(--bg-1);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: var(--r-sm);
  font-weight: 500;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* Visually hidden but accessible */
.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;
}

/* -------------------------------------------------------------------------
   Focus visibility — strong, brand-coloured ring
   ------------------------------------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
