/* Fuentes self-hosted (OFL) — sin peticiones a terceros */
@font-face {
  font-family: 'Fell';
  src: url('../assets/fonts/im-fell-english-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fell';
  src: url('../assets/fonts/im-fell-english-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fell SC';
  src: url('../assets/fonts/im-fell-english-sc-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Color */
  --night: #0b120e;
  --leather: #5a3219;      /* cuero café de tapa dura */
  --leather-deep: #2b160a;
  --leather-edge: #3a1f0e; /* canto de la tapa */
  --gold: #c9a24f;
  --gold-hi: #f3d98b;
  --gold-deep: #8f6a22;
  --parchment: #ecdcb6;
  --parchment-hi: #f6ead0;
  --parchment-lo: #d6c194;
  --ink: #6a4510;          /* tinta dorada ya asentada: legible sobre pergamino */
  --ink-fresh: #f0b443;    /* tinta recién escrita */
  --ink-line: #a87b26;     /* trazos de ilustración */
  --text-soft: #e8dcc0;

  /* Tipografía */
  --font-display: 'Fell SC', 'Fell', Georgia, 'Times New Roman', serif;
  --font-title: 'Fell', Georgia, serif;
  --font-text: 'Cormorant', 'Cormorant Garamond', Garamond, Georgia, serif;

  /* Movimiento (espejo de js/core/motion.js) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-press: 140ms;
  --dur-ui: 220ms;
  --dur-enter: 360ms;
  --dur-reveal: 700ms;

  /* Espacio reservado abajo para controles / botón de portada */
  --bottom-h: calc(70px + env(safe-area-inset-bottom, 0px));
  --pen-w: clamp(30px, 6.5vmin, 50px);
}
