/* ============================================
   Y8 YOUNG AGE — BASE & TYPOGRAPHY
   ============================================ */

/* ── Font face ── */
@font-face {
  font-family: 'DBHeavent';
  src: url('../assets/fonts/DBHeavent-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DBHeavent';
  src: url('../assets/fonts/DBHeavent-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DBHeavent';
  src: url('../assets/fonts/DBHeavent-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DBHeavent';
  src: url('../assets/fonts/DBHeavent-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DBHeavent';
  src: url('../assets/fonts/DBHeavent-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DBHeavent';
  src: url('../assets/fonts/DBHeavent-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

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

html {
  font-size: var(--text-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* JS guard: show content if JS/reveal fails */
.no-js .reveal,
.no-js .section-header,
.no-js .product-card {
  opacity: 1 !important;
  transform: none !important;
}

.no-js .faq-group-panel,
.no-js .faq-answer {
  display: block !important;
  opacity: 1 !important;
  height: auto !important;
}

body {
  font-family: var(--font-main);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  color: var(--text-body);
  background-color: var(--bg-primary);
  line-height: var(--leading-normal);
  max-width: var(--max-width);
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 260;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #2f3641;
  box-shadow: 0 10px 24px rgba(20, 25, 32, 0.14);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

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

/* ── Selection ── */
::selection {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 0;
}

/* ── Typography helpers ── */
.text-heading {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-sub {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--text-sub);
  letter-spacing: var(--tracking-wide);
}

.text-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-label);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

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