/* ──────────────────────────────────────────────────────────
   Uman Lodge · base.css
   Reset minimal, tipografía base, primitivas.
   ────────────────────────────────────────────────────────── */

/* ── @font-face — Flama self-hosted, WOFF2 subset latin + latin-ext ── */
@font-face {
  font-family: "Flama";
  src: url("../fonts/Flama-Ultralight.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flama";
  src: url("../fonts/Flama-Book.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flama";
  src: url("../fonts/Flama-Basic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flama";
  src: url("../fonts/Flama-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flama";
  src: url("../fonts/Flama-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flama";
  src: url("../fonts/Flama-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Flama";
  src: url("../fonts/Flama-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── Reset minimal ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Body ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300; /* Flama Book */
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Focus visible (a11y) ───────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 2px;
}
.on-dark :focus-visible { outline-color: var(--c-paper); }

/* ── Typography primitives ──────────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1;
  color: var(--c-teal);
}
.on-dark .eyebrow { color: var(--c-mist); }

.display {
  font-family: var(--font-display);
  font-weight: 100; /* Ultralight */
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}
.h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  letter-spacing: 0;
}
.lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: 1.4;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.body { font-size: var(--fs-body); line-height: var(--lh-normal); font-weight: 300; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.micro { font-size: var(--fs-micro); letter-spacing: var(--ls-mid); }

.text-wrap-pretty { text-wrap: pretty; }
.text-wrap-balance { text-wrap: balance; }

/* ── Color helpers ──────────────────────────────────────── */
.on-dark { color: var(--c-paper); background: var(--c-teal); }
.on-paper { background: var(--c-paper); color: var(--c-ink); }
.on-ink { color: var(--c-paper); background: var(--c-ink); }
.text-teal { color: var(--c-teal); }
.text-mute { color: var(--c-mute); }
.text-soft { color: var(--c-ink-soft); }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container-tight { max-width: 1200px; }
.container-prose { max-width: 720px; }

/* ── Section spacing ────────────────────────────────────── */
.section {
  padding-block: clamp(64px, 9vw, 144px);
}
.section-sm { padding-block: clamp(48px, 6vw, 96px); }
.section-bleed { padding: 0; }

/* ── Utilities ──────────────────────────────────────────── */
.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: 16px;
  background: var(--c-teal); color: var(--c-paper);
  padding: 12px 18px; font-weight: 500; font-size: 14px;
  z-index: var(--z-toast);
}
.skip-link:focus-visible { top: 16px; }

/* ── Full-bleed media ───────────────────────────────────── */
.media-cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-3-2  { aspect-ratio: 3/2; }
.aspect-4-3  { aspect-ratio: 4/3; }
.aspect-1-1  { aspect-ratio: 1/1; }
.aspect-3-4  { aspect-ratio: 3/4; }
.aspect-2-3  { aspect-ratio: 2/3; }

/* ── Divider ────────────────────────────────────────────── */
.divider {
  border: 0; height: 1px; background: var(--c-line); margin: 0;
}
.on-dark .divider { background: var(--c-line-dark); }
