/* ============================================================
   Vannu Tours — base: reset, type, layout primitives
   Mobile-first. Every rule below 720px is the default.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-tap-highlight-color: color-mix(in oklab, var(--d-primary) 18%, transparent);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
  min-height: 100svh;
  padding-top: var(--header-h);
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
/* A placeholder tint while a photo loads — but only inside a media well.
   Applying it to every <img> paints a visible box behind any transparent
   PNG, which is exactly what happened to the logo. */
.card-media img,
.phero-art img,
.hero-art img { background: var(--ink-100); }

/* Every icon from VannuBrand.icon() carries .ico. Without an intrinsic size an
   inline <svg> falls back to the replaced-element default of 300x150, which is
   how the checkmarks ended up the size of the headings. Contexts that want a
   different size override this. */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.15em;
}

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 40;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-md); line-height: var(--lh-snug); }

p { text-wrap: pretty; }
p + p { margin-top: var(--s-4); }

a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

ul, ol { padding-left: 1.15em; }
li + li { margin-top: .3em; }
li::marker { color: var(--d-primary); }

hr { border: 0; height: 1px; background: var(--border); }

strong, b { font-weight: 700; }

::selection { background: color-mix(in oklab, var(--d-primary) 24%, transparent); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--d-primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---------- Layout primitives ---------- */

.wrap      { width: min(100% - var(--gutter) * 2, var(--wrap));       margin-inline: auto; }
.wrap-wide { width: min(100% - var(--gutter) * 2, var(--wrap-wide));  margin-inline: auto; }
.wrap-narrow{width: min(100% - var(--gutter) * 2, var(--wrap-narrow));margin-inline: auto; }
.bleed     { width: 100%; }

.section    { padding-block: var(--s-9); }
.section-sm { padding-block: var(--s-8); }
.section-lg { padding-block: var(--s-10); }

.stack > * + * { margin-top: var(--flow, var(--s-4)); }
.stack-lg { --flow: var(--s-6); }
.stack-sm { --flow: var(--s-2); }

.grid { display: grid; gap: var(--gap, var(--s-5)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

.row { display: flex; flex-wrap: wrap; gap: var(--gap, var(--s-3)); align-items: center; }
.row-between { justify-content: space-between; }
.row-center { justify-content: center; }
.push { margin-left: auto; }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--d-primary);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before {
  content: ''; width: 1.6em; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--d-primary), transparent);
}
.eyebrow.center::before { display: none; }

.lede { font-size: var(--fs-md); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.tiny  { font-size: var(--fs-xs); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.035em;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
}

/* Hand-drawn underline echoing the logo's brush strokes */
.brushed { position: relative; display: inline-block; }
.brushed::after {
  content: '';
  position: absolute; left: -2%; right: -2%; bottom: -.06em;
  height: .28em;
  background: var(--d-accent);
  opacity: .48;
  border-radius: 50%;
  transform: rotate(-.7deg);
  z-index: -1;
}

.ink-grad {
  background: linear-gradient(96deg, var(--d-primary), color-mix(in oklab, var(--d-secondary) 78%, var(--d-primary)));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Utility ---------- */

.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;
}
.skip-link {
  position: absolute; top: -100px; left: var(--s-4); z-index: 999;
  background: var(--d-primary); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: calc(var(--header-h) + 8px); }

[hidden] { display: none !important; }
.hide { display: none !important; }
@media (max-width: 719px)  { .md-up { display: none !important; } }
@media (min-width: 720px)  { .sm-only { display: none !important; } }
@media (max-width: 1023px) { .lg-up { display: none !important; } }

.scroll-x {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* Reveal-on-scroll, opt-in via [data-reveal] */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

@media print {
  body { padding-top: 0; background: #fff; }
  .site-header, .site-footer, .no-print { display: none !important; }
}
