/* ==========================================================================
   BASE — reset, typography, accessibility defaults
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-deep-green);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-2); color: var(--text-secondary); }

a {
  color: var(--color-leaf-green);
  text-decoration: none;
}
a:hover { color: var(--color-deep-green); }

/* Telugu text gets the Telugu-optimized face automatically via lang attr */
[lang="te"] {
  font-family: var(--font-telugu);
  line-height: 1.8;
}

ul, ol { padding-left: 1.2em; color: var(--text-secondary); }

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---- Accessibility: visible focus for keyboard users ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Skip link for screen readers / keyboard nav ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-deep-green);
  color: var(--text-on-dark);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
