/* ==========================================================================
   Tarimas Alejandro — base: design tokens, reset, typography, utilities.
   Tokens mirror the Figma variables ("Tarimas Alejandro — Web Design System").
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #1a1a18;
  --color-secondary: #c8a96e;
  --color-secondary-deep: #7d5f28;
  --color-tertiary: #f5f0e8;
  --color-surface: #ffffff;
  --color-text-dark: #1a1a18;
  --color-text-light: #f5f0e8;
  --color-text-muted: #7a7266;
  --color-text-muted-strong: #6b6358;
  --color-border: rgba(200, 169, 110, 0.3);
  --color-glass: rgba(26, 26, 24, 0.75);
  --color-glass-strong: rgba(26, 26, 24, 0.88); /* glass that sits over light content: keeps gold text at AA contrast */
  --color-whatsapp: #25d366;
  --color-error: #b3261e;
  --color-success: #2e6b3e;

  /* Typography */
  --font-display: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
  --font-label: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
  --text-hero: clamp(3rem, 7.2vw, 6.5rem);
  --text-h1: clamp(2.5rem, 5vw, 4.5rem);
  --text-h2: clamp(2.125rem, 3.6vw, 3.25rem);
  --text-h3: clamp(1.625rem, 2.4vw, 2.125rem);
  --text-h4: 1.5rem;
  --text-quote: clamp(1.5rem, 2.2vw, 1.875rem);
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-label: 0.8125rem;
  --text-label-sm: 0.75rem;

  /* Spacing (4px base grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radius and elevation */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-pill: 999px;
  --shadow-1: 0 2px 8px rgba(26, 26, 24, 0.06);
  --shadow-2: 0 12px 32px rgba(26, 26, 24, 0.12);
  --shadow-3: 0 32px 80px rgba(26, 26, 24, 0.24);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1312px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(64px, 9vw, 128px);
  --nav-h: 96px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  /* Per-section theme: sections override these four and everything follows. */
  --bg: var(--color-tertiary);
  --fg: var(--color-text-dark);
  --muted: var(--color-text-muted-strong);
  --accent: var(--color-secondary-deep);

  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ------------------------------------------------------------- Typography */
.h1, .h2, .h3, .h4, .hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  text-wrap: balance;
}

.h1 {
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.h3 {
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.2;
}

.h4 {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow--gold {
  color: var(--color-secondary);
}

.note {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* -------------------------------------------------------------- Utilities */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(860px + var(--gutter) * 2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2000;
  padding: var(--space-3) var(--space-4);
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Images that fill a positioned parent (hero, page headers, parallax bands). */
.media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.media picture {
  display: contents;
}

/* Mid-page bands overscan by 16% each side so the parallax never shows a gap. */
.media__img {
  position: absolute;
  top: -16%;
  left: 0;
  width: 100%;
  height: 132%;
  object-fit: cover;
}

.hero__media .media__img,
.page-header__media .media__img {
  top: 0;
  height: 100%;
}

.frame {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(26, 26, 24, 0.08);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
