/* ==========================================================================
   YOGAVIBE, Design System
   Editorial × Earthy. Inspired by Essaouira sun, Moroccan ceramics, and
   the quiet confidence of Aman / Kinfolk / Farm Minerals.
   ========================================================================== */

:root {
  /* Direction A: "Essaouira", warm sand & terracotta */
  --bg: oklch(0.965 0.012 78);            /* sun-bleached linen */
  --bg-alt: oklch(0.93 0.018 75);         /* warm cream */
  --bg-deep: oklch(0.28 0.025 50);        /* deep clay night */
  --ink: oklch(0.22 0.018 55);            /* warm charcoal */
  --ink-soft: oklch(0.42 0.018 55);       /* soft brown-grey */
  --ink-mute: oklch(0.62 0.012 60);       /* muted */
  --line: oklch(0.85 0.015 70);           /* hairline */
  --accent: oklch(0.58 0.12 38);          /* terracotta */
  --accent-2: oklch(0.48 0.06 130);       /* olive sage */
  --accent-3: oklch(0.78 0.08 75);        /* honey */

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Spacing scale */
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 10vw, 160px);
  --max: 1440px;

  /* Density (tweakable) */
  --density: 1;
}

[data-direction="atlas"] {
  --bg: oklch(0.97 0.012 30);             /* soft blush */
  --bg-alt: oklch(0.92 0.025 25);         /* peach milk */
  --bg-deep: oklch(0.32 0.04 280);        /* deep dusk */
  --ink: oklch(0.26 0.025 290);           /* ink violet */
  --ink-soft: oklch(0.46 0.022 290);
  --ink-mute: oklch(0.65 0.015 290);
  --line: oklch(0.85 0.02 30);
  --accent: oklch(0.68 0.10 20);          /* dusty rose */
  --accent-2: oklch(0.62 0.07 165);       /* eucalyptus */
  --accent-3: oklch(0.82 0.07 60);        /* peach gold */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Type scale */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}
.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(58px, 10vw, 168px);
}
.h-display em { font-style: italic; font-weight: 300; color: var(--accent); }
.h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.h1 em { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.body { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.55) 0; }
.divider { height: 1px; background: var(--line); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px * var(--density)) calc(22px * var(--density));
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 220ms cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); }
.btn .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor; opacity: 0.8;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: 0.4;
  transition: opacity 200ms;
}
.link-arrow:hover::after { opacity: 1; }
.link-arrow svg { transition: transform 220ms; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Placeholder imagery, striped with monospace caption */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(from var(--accent) l c h / 0.08) 0 1px,
      transparent 1px 14px
    ),
    var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.placeholder.dark {
  background:
    repeating-linear-gradient(
      135deg,
      oklch(from var(--accent) l c h / 0.18) 0 1px,
      transparent 1px 14px
    ),
    var(--bg-deep);
  color: oklch(from var(--bg) l c h / 0.6);
  border-color: oklch(from var(--bg) l c h / 0.1);
}
.placeholder .ph-coords { opacity: 0.7; }
.placeholder .ph-label {
  font-size: 11px;
  max-width: 60%;
  line-height: 1.5;
}
.placeholder .ph-tag {
  align-self: flex-end;
  border: 1px solid currentColor;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  opacity: 0.7;
}

/* Real photo */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
}
.photo:hover img { transform: scale(1.03); }
.photo-overlay {
  position: absolute; inset: 0;
  padding: 16px;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(from var(--bg) l c h / 0.85);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 300ms;
}
.photo:hover .photo-overlay { opacity: 1; }
.photo-overlay .ph-tag {
  border: 1px solid currentColor;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
}
body[data-imagery="mono"] .photo img { filter: grayscale(1) contrast(1.05); }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: marquee 19s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 60px;
}
.marquee-item .star {
  width: 18px; height: 18px; flex: none;
  color: var(--accent);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms ease, transform 900ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Misc */
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-sm { gap: 12px; flex-wrap: wrap; }
.gap-md { gap: 24px; flex-wrap: wrap; }
.gap-lg { gap: 48px; flex-wrap: wrap; }

/* selection */
::selection { background: var(--accent); color: var(--bg); }

/* hide scrollbar on horizontal scrollers */
.h-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: none; }
