/* ==========================================================================
   MaskanTanger — Modern CSS Reset
   Based on Andy Bell's modern reset + Josh Comeau additions
   ========================================================================== */

/* 1. Box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margins */
* {
  margin: 0;
}

/* 3. Allow percentage-based heights */
html,
body {
  height: 100%;
}

/* 4. Typographic tweaks — improve text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* 5. Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Form element font inheritance */
input,
button,
textarea,
select,
optgroup {
  font: inherit;
  color: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* 8. Create a stacking context — isolate root */
#root,
#__next {
  isolation: isolate;
}

/* 9. Smooth scroll — respects user preferences */
html:focus-within {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 10. Lists: remove bullets only when list-role is presentation */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* 11. Remove default button styling */
button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* 12. Remove default anchor styling */
a {
  text-decoration: none;
  color: inherit;
}

/* 13. Table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 14. HR */
hr {
  border: none;
  border-top: 1px solid currentColor;
  color: inherit;
  opacity: 0.15;
}

/* 15. Fieldset */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* 16. Abbr */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* 17. Address */
address {
  font-style: normal;
}

/* 18. Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold, #C9A84C);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* 20. Visually hidden utility (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: 0;
}
