/* Papillon Reizen — base: reset, typography, primitives */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size:   var(--fs-16);
  line-height: var(--leading-normal);
  color:       var(--color-text);
  background:  var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  min-height: 100dvh;
  overflow-x: hidden;
}

img, svg, video, canvas, iframe {
  display:   block;
  max-width: 100%;
}

img {
  height: auto;
  font-style: italic; /* alt-text fallback styling */
  shape-margin: 1rem;
}
/* Images inside card thumbnails get a subtle placeholder bg while loading. */
.card-tour__media-wrap,
.card-destination,
.gallery__item {
  background-color: var(--color-bg-subtle);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--color-accent-hover); }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

/* ─── Typography ──────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display-xl); }
h2 { font-size: var(--fs-display-lg); }
h3 { font-size: var(--fs-display-md); font-variation-settings: "opsz" 36; }
h4 { font-size: var(--fs-24); font-variation-settings: "opsz" 24; }
h5 { font-size: var(--fs-20); font-variation-settings: "opsz" 20; }
h6 { font-size: var(--fs-18); font-variation-settings: "opsz" 18; }

p, li, dd { text-wrap: pretty; }

p { max-width: 65ch; }

.prose { max-width: var(--container-prose); }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { margin-block: 1.6em 0.4em; }
.prose h3 { margin-block: 1.4em 0.3em; }
.prose ul, .prose ol { padding-inline-start: 1.25em; }
.prose li + li { margin-block-start: 0.25em; }
.prose a { color: var(--color-accent); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lede {
  font-size: var(--fs-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-soft);
  max-width: 60ch;
}

/* ─── Skip link (a11y) ────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
}
.skip-link:focus-visible { top: var(--space-3); }

/* ─── Focus rings (global) ────────────────────────────────── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Selection ───────────────────────────────────────────── */
::selection {
  background: var(--color-accent-surface);
  color: var(--color-text-on-accent);
}

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

/* ─── Tables default ──────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

/* ─── Horizontal rule ─────────────────────────────────────── */
hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-6);
}

/* ─── Code ────────────────────────────────────────────────── */
code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
