/* 
   ESHA AI — SELF-HOSTED FONTS, SPECIFIC RESET & BASE TYPOGRAPHY (W0.4)
    */

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/plus-jakarta-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/plus-jakarta-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/plus-jakarta-sans-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Gujarati';
  src: url('../assets/fonts/noto-sans-gujarati-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0A80-0AFF;
}

@font-face {
  font-family: 'Noto Sans Gujarati';
  src: url('../assets/fonts/noto-sans-gujarati-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0A80-0AFF;
}

@layer reset {
  /* Targeted element resets rather than global '*' overrides */
  html, body, h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    box-sizing: border-box;
  }

  div, section, article, aside, header, footer, main, nav, form, input, button, textarea, select {
    box-sizing: border-box;
  }

  body, h1, h2, h3, h4, p, figure, blockquote {
    margin: 0;
  }

  img, svg {
    display: block;
    max-inline-size: 100%;
  }

  button, input, textarea, select {
    font: inherit;
    color: inherit;
  }
}

@layer base {
  html {
    accent-color: var(--color-cobalt);
    @media (prefers-reduced-motion: no-preference) {
      scroll-behavior: smooth;
    }
  }

  body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-text);
    letter-spacing: -0.025em;
  }

  h1 {
    font-size: var(--text-hero);
    line-height: 1.1;
    font-weight: 700;
  }

  h2 {
    font-size: var(--text-h2);
    line-height: 1.2;
    font-weight: 700;
  }

  h3 {
    font-size: var(--text-h3);
    line-height: 1.3;
    font-weight: 600;
  }

  p {
    color: var(--color-muted);
  }

  [lang="gu"] {
    font-family: var(--font-gujarati);
  }

  :where(a:any-link, button, summary, input, textarea, select, [tabindex="0"]):focus-visible {
    outline: 3px solid var(--color-cobalt);
    outline-offset: 3px;
  }

  /* 12-Column Responsive Layout Container */
  .container {
    inline-size: 100%;
    max-inline-size: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
  }

  .grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .section {
    padding-block: var(--space-section);
  }

  /* Accessible Helpers */
  .visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .skip-link {
    position: fixed;
    inset-block-start: -100px;
    inset-inline-start: var(--space-4);
    z-index: 200;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--color-text);
    color: var(--color-bg);
    font-weight: 600;
    text-decoration: none;
  }

  .skip-link:focus-visible {
    inset-block-start: var(--space-4);
  }

  /* Forced Colors / High Contrast Support */
  @media (forced-colors: active) {
    .skip-link {
      border: 2px solid ButtonBorder;
    }
  }
}
