/* ========================================
   Modern CSS Reset / Normalize
   KashiVedicConnect.com
   ======================================== */

/* Box-sizing for everything */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Document */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  tab-size: 4;
  line-height: 1.15;
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-charcoal);
  background-color: var(--color-ivory);
  min-height: 100vh;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

/* Lists */
ul,
ol {
  list-style: none;
}

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

textarea {
  white-space: revert;
}

/* Buttons */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Paragraphs */
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Misc */
hr {
  border: none;
  border-top: 1px solid var(--color-sand);
}

dialog {
  padding: 0;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-ivory-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-ivory-dark);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Suppress animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
