/* ============================================
   BAGECHA BY ADI'S — Base Styles
   ============================================ */

/* ─── Font Imports ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

/* ─── Typography Helpers ─── */
.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.text-hero {
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
}

.text-title {
  font-size: var(--text-title);
  line-height: var(--leading-tight);
  font-weight: var(--weight-semibold);
}

.text-body {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
}

.text-caption {
  font-size: var(--text-caption);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-gold {
  color: var(--accent-gold);
}

/* ─── Selection ─── */
::selection {
  background: rgba(54, 76, 17, 0.2);
  color: var(--text-primary);
}

/* ─── Scrollbar (WebKit) ─── */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ─── Focus visible ─── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Image defaults ─── */
img, svg {
  display: block;
  max-width: 100%;
}

/* ─── Button reset ─── */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── Input reset ─── */
input {
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  width: 100%;
}

input::placeholder {
  color: var(--text-tertiary);
}

/* ─── Link reset ─── */
a {
  color: inherit;
  text-decoration: none;
}

/* ─── List reset ─── */
ul, ol {
  list-style: none;
}

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

.hidden {
  display: none !important;
}

.no-scroll {
  overflow: hidden !important;
}
