/* =========================================
   SHAILY RAJWANSHI — Base / Reset / Typography
   ========================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background-color: var(--color-sage-light);
  color: var(--color-charcoal);
}

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text-primary);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--lh-body);
}

p:last-child {
  margin-bottom: 0;
}

.text-lg {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

.text-sm {
  font-size: var(--fs-caption);
}

.text-xs {
  font-size: var(--fs-small);
}

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

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

.text-center {
  text-align: center;
}

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

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

/* --- Utility --- */

.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;
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* --- Scroll Reveal Animation Classes --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --- Section spacing --- */

.section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section--lg {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }
  .section--lg {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}
