/* ==========================================================================
   Digital Maheshwari — Base / Reset / Typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--dm-paper);
  color: var(--dm-text);
  font-family: var(--dm-font-body);
  font-size: var(--dm-body);
  line-height: var(--dm-lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dm-font-display);
  font-weight: 600;
  line-height: var(--dm-lh-tight);
  letter-spacing: var(--dm-tracking-tight);
  color: var(--dm-ink);
  margin: 0 0 var(--dm-space-4);
}
h1 { font-size: var(--dm-h1); }
h2 { font-size: var(--dm-h2); }
h3 { font-size: var(--dm-h3); }
h4 { font-size: var(--dm-h4); font-family: var(--dm-font-body); font-weight: 700; }

p { margin: 0 0 var(--dm-space-4); color: var(--dm-text); }
p.lead, .lead { font-size: var(--dm-body-lg); color: var(--dm-text-muted); }
.lead p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--dm-gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dm-ink);
  color: var(--dm-text-inverse);
  padding: var(--dm-space-3) var(--dm-space-5);
  z-index: var(--dm-z-toast);
  border-radius: 0 0 var(--dm-radius) 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Selection ---- */
::selection { background: var(--dm-gold); color: var(--dm-ink); }
