/* ============================================================
   Emilia está escribiendo — shared design tokens
   Brand palette = the 6 vibrant rainbow colors (LGBTQ+ pride).
   Used by both proposals (limpia + divertida).
   ============================================================ */

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Variable.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand rainbow — exact hex sampled from her palette */
  --red:    #FF3636;  /* empatía de género   */
  --orange: #FF6700;  /* palabra del día     */
  --gold:   #ECB409;  /* bitácora            */
  --green:  #1DC664;  /* hablemos de lengua  */
  --blue:   #0A6FFF;  /* contenidos digitales*/
  --purple: #D248FF;  /* popurrí             */

  /* Supporting (from the book cover + illustrations) */
  --lilac:      #6C4BD8;
  --lilac-soft: #EDE7FB;
  --coral:      #FF9E7A;

  /* Ink + paper */
  --ink:      #1B1B26;
  --ink-soft: #5B5B6B;
  --line:     #E7E4DE;
  --paper:    #FFFFFF;
  --paper-2:  #FAF7F2;  /* warm off-white */

  /* The signature rainbow gradient (left→right matches the logo) */
  --rainbow: linear-gradient(90deg,
    var(--red), var(--orange), var(--gold),
    var(--green), var(--blue), var(--purple));

  /* Type */
  --font-title: "Buenard", Georgia, "Times New Roman", serif;
  --font-body:  "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Rhythm */
  --container: 1040px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 27, 38, 0.08);
  --shadow-lift: 0 18px 44px rgba(27, 27, 38, 0.14);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Visually-hidden but accessible */
.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 */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 999; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The "está escribiendo…" rainbow dots motif */
.dots { display: inline-flex; gap: .28em; vertical-align: middle; }
.dots i {
  width: .42em; height: .42em; border-radius: 50%;
  display: inline-block;
}
.dots i:nth-child(1){ background: var(--blue); }
.dots i:nth-child(2){ background: var(--purple); }
.dots i:nth-child(3){ background: var(--red); }

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