/* ═══════════════════════════════════════════════════
   SHAYAN IJAZ — GLOBAL STYLESHEET
   All pages link to this file: css/style.css
   ═══════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
  --ink:           #0a0a08;
  --ink2:          #111110;
  --ink3:          #1a1a17;
  --amber:         #d4a853;
  --amber-dim:     rgba(212,168,83,0.35);
  --amber-faint:   rgba(212,168,83,0.08);
  --cream:         #f0ead8;
  --muted:         #8a8070;
  --dim:           #3a3830;
  --border:        rgba(240,234,216,0.07);
  --border-amber:  rgba(212,168,83,0.2);
  --display:       'Playfair Display', serif;
  --mono:          'IBM Plex Mono', monospace;
  --sans:          'IBM Plex Sans', sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  /* subtle grain texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--dim); }

/* ════════════════════════════════════════════════
   NAV — fixed top bar, shared by every page
   ════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px; display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,8,0.88);
  backdrop-filter: blur(20px) saturate(150%);
}
.nav-inner {
  width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  color: var(--amber); letter-spacing: 0.12em; text-decoration: none;
}
.nav-logo .prompt { color: var(--dim); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; font-weight: 300;
  color: var(--muted); text-decoration: none; letter-spacing: 0.14em;
  text-transform: uppercase; transition: color 0.15s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--amber); transition: width 0.25s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
/* JS adds .active to the current page link */
.nav-links a.active { color: var(--amber); }
.nav-links a.active::after { width: 100%; }

/* ════════════════════════════════════════════════
   PAGE WRAPPER
   ════════════════════════════════════════════════ */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* ════════════════════════════════════════════════
   PAGE HEADER — inner pages (non-home)
   ════════════════════════════════════════════════ */
.page-header {
  padding: 128px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; right: -200px; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: rise 0.6s 0.1s ease forwards;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--amber-dim); }
.page-title {
  font-family: var(--display); font-size: clamp(48px, 6vw, 80px);
  font-weight: 900; line-height: 0.92; letter-spacing: -0.02em; margin-bottom: 24px;
  opacity: 0; animation: rise 0.6s 0.2s ease forwards;
}
.page-title em { font-style: italic; font-weight: 400; color: var(--amber); }
.page-desc {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  max-width: 540px; line-height: 1.8; font-weight: 300;
  opacity: 0; animation: rise 0.6s 0.3s ease forwards;
}

/* ════════════════════════════════════════════════
   SECTION LABEL
   ════════════════════════════════════════════════ */
.section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

.section-label {
  font-family: var(--mono); font-size: 10px; color: var(--amber);
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 48px;
  display: flex; align-items: center; gap: 16px;
}
.section-label::before { content: ''; width: 40px; height: 1px; background: var(--amber-dim); }
.section-label .count { color: var(--dim); margin-left: 4px; }

/* ════════════════════════════════════════════════
   SHARED ATOMS
   ════════════════════════════════════════════════ */
.tag {
  font-family: var(--mono); font-size: 10px; color: var(--dim);
  border: 1px solid var(--border); padding: 2px 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.chip {
  font-family: var(--mono); font-size: 9px; color: var(--dim);
  border: 1px solid var(--border); padding: 2px 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.tag-amber {
  font-family: var(--mono); font-size: 10px; color: var(--amber);
  border: 1px solid var(--amber-dim); padding: 3px 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ════════════════════════════════════════════════
   FOOTER — same on every page
   ════════════════════════════════════════════════ */
footer {
  padding: 44px 0; text-align: center;
  border-top: 1px solid var(--border);
}
.footer-text {
  font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em;
}
.footer-text a { color: var(--dim); text-decoration: none; transition: color 0.15s; }
.footer-text a:hover { color: var(--amber); }

/* ════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.08em; }
}
