/* ==========================================================================
   DazlinQ Travel — Base: reset, typography, the one-color rule
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

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

/* ==========================================================================
   THE ONE-COLOR RULE
   The client's #1 complaint: "All sentences/titles should be one color."
   The old site hard-coded `.page-title em { color: gold }` inside pink
   headings, so every title was two-tone by construction.

   This guard makes that impossible to reintroduce. Any element nested inside
   a heading or paragraph inherits its parent's color — emphasis must come
   from weight, size, or italics, never from a colour change.
   ========================================================================== */
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
p *, li *, blockquote * { color: inherit; }

/* The single sanctioned exception: real hyperlinks inside body copy, which
   must be distinguishable to be usable and accessible. Headings are exempt —
   they may never contain a recoloured link.

   Scoped to <p> and an explicit .prose wrapper, NOT to any <li>. A bare
   `li a` selector outranks `.nav__link` on specificity (two elements plus the
   :not class beats one class), so it silently repainted every navigation and
   footer link pink. Menus style their own links; this rule is for prose only. */
p a:not(.btn),
.prose a:not(.btn) {
  color: var(--pink-text);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
h1 a, h2 a, h3 a, h4 a { color: inherit !important; }

/* --- Headings -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: 0; line-height: 1.3; }

p { text-wrap: pretty; }

/* --- Links ------------------------------------------------------------ */
a { color: var(--pink-text); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--pink-deep); }

/* --- Focus: always visible, always on-brand --------------------------- */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* --- Selection -------------------------------------------------------- */
::selection { background: var(--pink-soft); color: var(--ink); }

/* --- Skip link -------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .8rem 1.4rem;
  background: var(--pink);
  color: #fff;
  font-size: var(--t-small);
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- 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;
}

/* --- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print ------------------------------------------------------------- */
@media print {
  .site-nav, .site-footer, .hero__actions, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
