/* ==========================================================================
   MAHAR MUZAMIL — DIGITAL HEADQUARTERS
   Base Styles, Modern Reset & Typography Utilities
   ========================================================================== */

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

html {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-primary);
  background-color: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  background-color: var(--surface-canvas);
  color: var(--ink-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-std);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Layout Containers & Section Foundations
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.site-section {
  position: relative;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  background-color: var(--surface-canvas);
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.site-section:first-of-type {
  content-visibility: visible;
}

.site-section--alt {
  background-color: var(--surface-alt);
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-header--center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.text-blue {
  color: var(--blue-primary);
}

.text-navy {
  color: var(--ink-primary);
}

.text-slate {
  color: var(--ink-secondary);
}

.text-muted {
  color: var(--ink-muted);
}

.font-hand {
  font-family: var(--font-hand);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Section Eyebrow Pill */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-alt);
  border: 1.5px solid var(--line-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: var(--space-3);
}

.section-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  flex-shrink: 0;
}

/* Dual-Tone Section Headline */
.section-headline {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: var(--space-3);
}

.section-lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 640px;
}

.section-header--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Handwritten Annotation */
.annotation-handwritten {
  font-family: var(--font-hand);
  font-size: var(--text-hand);
  font-weight: 600;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .annotation-handwritten {
    display: none;
  }
}
