/* Base: la identidad de la marca. Fondo blanco cálido, una letra con oficio para los títulos,
   otra clara para leer, y el rojo y el amarillo del sello como detalles. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #16171a;
  --ink-soft: #3b3c40;
  --muted: #65635c;
  --faint: #74716a;
  --paper: #ffffff;
  --cream: #faf8f3;
  --wash: #f3efe7;
  --sand: #e8e2d6;
  --line: #e9e4da;
  --line-strong: #d6d0c3;
  --red: #c8180f;
  --red-dark: #a3130b;
  --yellow: #ffd91f;
  --yellow-deep: #e9bd00;
  --yellow-soft: #fff8d6;
  --green: #11763f;
  --green-soft: #e6f3ea;
  --amber-soft: #fdf3d6;
  --red-soft: #fcebe8;
  --blue-soft: #e8eef8;
  --on-dark: #b9b7af;
  --r: 12px;
  --r-sm: 9px;
  --r-lg: 20px;
  --r-xl: 28px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(22, 23, 26, 0.05);
  --shadow-md: 0 1px 2px rgba(22, 23, 26, 0.04), 0 14px 30px -14px rgba(22, 23, 26, 0.16);
  --shadow-lg: 0 4px 12px rgba(22, 23, 26, 0.05), 0 34px 70px -26px rgba(22, 23, 26, 0.34);
  --ease-out: cubic-bezier(0.22, 0.9, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.5, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-display: var(--serif);
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1360px;
  --head: 68px;
  --h2: clamp(32px, 3.5vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #cfc8ba var(--cream); scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red-dark); }
h1, h2 { margin: 0; font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
h3 { margin: 0; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 70; padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 10px; color: #fff; }
html:has(dialog[open]), html.menu-open { overflow: hidden; }
::selection { background: var(--yellow); color: var(--ink); }

/* Etiqueta de sección, discreta como la que va cosida por dentro de una prenda */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--red-dark);
}
.muted { color: var(--muted); }
.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;
}
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

/* Al cambiar de página, un fundido corto en vez de un salto. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 140ms ease-out both page-out; }
::view-transition-new(root) { animation: 240ms var(--ease-out) both page-in; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }

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