/* Aurora del Trazo — system.css
   Variables, reset, fonts, base typography, utilities. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Cormorant Garamond'), local('CormorantGaramond-Regular');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Cormorant Garamond Italic'), local('CormorantGaramond-Italic');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Cormorant Garamond SemiBold'), local('CormorantGaramond-SemiBold');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter Regular'), local('Inter-Regular');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Inter Medium'), local('Inter-Medium');
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0B1130;
  --indigo: #003399;
  --cielo: #6699CC;
  --rosa-polvo: #FFCCCC;
  --luna: #F4EFE6;
  --paper: #F4EFE6;
  --oro: #C8A968;
  --plata: #C7D2DA;
  --text: #1A1A1A;
  --muted: #5B6477;
  --rule: rgba(11, 17, 48, 0.12);

  --font-display: 'Cormorant Garamond', 'EB Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 2px;

  --sp-8: 8px; --sp-16: 16px; --sp-24: 24px; --sp-32: 32px;
  --sp-48: 48px; --sp-64: 64px; --sp-80: 80px; --sp-96: 96px; --sp-128: 128px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-24);
}
h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 500; }
h2 { font-size: clamp(28px, 3.8vw, 40px); }
h3 { font-size: clamp(22px, 2.6vw, 26px); }
h4 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 var(--sp-16); max-width: 68ch; }
em, i { font-style: italic; }
strong { font-weight: 600; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 56ch; line-height: 1.55; }

/* ---------- Containers ---------- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-80) 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 112px 0; } }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 var(--sp-24);
  padding-left: 28px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--indigo);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--luna);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--luna);
}

/* ---------- Hairline divider ---------- */
.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro) 50%, transparent);
  margin: 0;
  opacity: .55;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* ---------- Skip link ---------- */
.skip-content {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: var(--luna);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-content:focus { top: 12px; }

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Selection ---------- */
::selection { background: var(--indigo); color: var(--luna); }
