/* Base styles: reset, body, typography, layout helpers. Requires tokens/tokens.css + fonts/fonts.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; height: 100%; }
body {
  margin: 0; min-height: 100%; display: flex; flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-body); line-height: 1.5;
  color: var(--color-ink); background: var(--color-paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration-base) var(--ease-default), color var(--duration-base) var(--ease-default);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--color-lime); color: var(--color-on-lime); }
:focus-visible { outline: 2px solid var(--color-lime-text); outline-offset: 3px; border-radius: 6px; }

/* ---------- Headings: Outfit, regular weight, tight tracking ---------- */
.t-display, .t-h1, .t-h2, .t-statement, .t-stat, .t-h3, h1, h2, h3 {
  font-family: var(--font-display); font-weight: var(--weight-normal); margin: 0;
}
.t-display   { font-size: var(--text-display);   line-height: var(--text-display--lh);   letter-spacing: var(--text-display--ls); }
.t-h1, h1    { font-size: var(--text-h1);        line-height: var(--text-h1--lh);        letter-spacing: var(--text-h1--ls); }
.t-h2, h2    { font-size: var(--text-h2);        line-height: var(--text-h2--lh);        letter-spacing: var(--text-h2--ls); }
.t-statement { font-size: var(--text-statement); line-height: var(--text-statement--lh); letter-spacing: var(--text-statement--ls); }
.t-stat      { font-size: var(--text-stat);      line-height: var(--text-stat--lh);      letter-spacing: var(--text-stat--ls); font-variant-numeric: tabular-nums; }
.t-h3, h3    { font-size: var(--text-h3);        line-height: var(--text-h3--lh);        letter-spacing: var(--text-h3--ls); }
.t-h4        { font-size: var(--text-h4);        line-height: var(--text-h4--lh); font-weight: var(--weight-medium); letter-spacing: -0.01em; }

/* Signature move: one italic serif word inside a heading */
.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.03em; }

/* ---------- Body copy ---------- */
.t-lead    { font-size: var(--text-lead); line-height: 1.5; color: var(--color-muted); }
.t-body    { font-size: var(--text-body); }
.t-small   { font-size: var(--text-small); }
.t-caption { font-size: var(--text-caption); line-height: 1.5; color: var(--color-muted); }
.t-muted   { color: var(--color-muted); }
.t-faint   { color: var(--color-faint); }
.t-accent  { color: var(--color-lime-text); }
.t-mono    { font-family: var(--font-mono); }
.t-eyebrow {
  font-size: 12px; font-weight: var(--weight-medium); text-transform: uppercase;
  letter-spacing: var(--tracking-widest); color: var(--color-faint);
}
[lang="ur"], .urdu { font-family: var(--font-urdu); line-height: 2; direction: rtl; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container-7xl); margin-inline: auto; padding-inline: var(--space-gutter); }
@media (min-width: 768px)  { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 40px; } }
.section      { padding-block: var(--space-section); }
.section-hero { padding-block: var(--space-hero); }
.section-head { margin-bottom: var(--space-head); }
.section-alt  { background: var(--color-paper-2); }

.stack > * + * { margin-top: 16px; }
.grid-auto { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hairline { height: 1px; background: var(--color-line); border: 0; }

/* ---------- Motion ---------- */
@keyframes stagger-in   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes stagger-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes screen-in    { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.anim-stagger-in   { animation: stagger-in .26s var(--ease-soft) backwards; }
.anim-stagger-fade { animation: stagger-fade .2s ease backwards; }
.anim-screen-in    { animation: screen-in .4s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
