/* ============================================================
   M.P Events & Tours — Modern CSS Reset
   reset.css — Opinionated, minimal, accessible
   Based on modern reset best practices (2024)
   ============================================================ */

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

/* ── Root & HTML ─────────────────────────────────────────────── */
html {
  font-size: 100%;               /* 16px base */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Body ────────────────────────────────────────────────────── */
body {
  min-height: 100svh;
  line-height: var(--lh-base);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--clr-text);
  background-color: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
  max-width: 72ch;
}

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

a:hover { text-decoration: underline; }

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

img {
  height: auto;
  font-style: italic;          /* show alt text as italic if image fails */
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

fieldset {
  border: none;
}

/* ── Lists ───────────────────────────────────────────────────── */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* ── Tables ──────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ── Hidden ──────────────────────────────────────────────────── */
[hidden] { display: none !important; }

.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;
}

/* ── Focus ───────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ── Selection ───────────────────────────────────────────────── */
::selection {
  background-color: var(--clr-primary-soft);
  color: var(--clr-primary-dark);
}

/* ── Horizontal Rule ─────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-8) 0;
}

/* ── Dialog (native) ─────────────────────────────────────────── */
dialog {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: min(90vw, 560px);
  padding: var(--sp-8);
}

dialog::backdrop {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
}

/* ── Scrollbar (Chrome/Edge/Safari) ──────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-muted); }
