/* ==========================================================================
   BASE.CSS -- Shubhdeep Metier
   Modern CSS Reset + Base Typography + Global Defaults
   Domain: sdmlt.in
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

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

html {
  font-size: 16px;
  
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  font-size: 1rem;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
}

img,picture,video,canvas,svg { display: block; max-width: 100%; height: auto; }
input,button,textarea,select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; line-height: inherit; color: inherit; }
ul,ol { list-style: none; }
a { color: inherit; text-decoration: none; }
p,h1,h2,h3,h4,h5,h6 { overflow-wrap: break-word; }
table { border-collapse: collapse; border-spacing: 0; }

/* --- Headings --- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
h6 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; }

/* --- Body Text --- */
p { margin-bottom: 1em; line-height: var(--leading-relaxed); }
p:last-child { margin-bottom: 0; }
strong,b { font-weight: 600; }
em,i { font-style: italic; }
small { font-size: 0.875em; }
mark { background-color: var(--color-clay-light); color: var(--color-text-primary); padding: 0 0.25em; border-radius: 2px; }
blockquote { border-left: 2px solid var(--color-gold); padding-left: 1.5rem; margin-left: 0; font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--color-text-secondary); }

/* --- Focus & Accessibility --- */
:focus-visible { outline: 2px solid var(--color-clay); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background-color: var(--color-clay-light); color: var(--color-text-primary); }
::-moz-selection { background-color: var(--color-clay-light); color: var(--color-text-primary); }

/* --- Screen Reader Only --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* --- Reduced Motion --- */
@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;
  }
  html { scroll-behavior: auto !important; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-main); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-clay); }





/* --- Lenis Recommended Base Styles --- */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
