/* Lucraft · estilos compartidos
   Paleta tranquila, tipografía de alta legibilidad, bloques "de construcción". */

:root {
  --cielo: #eaf2f6;      /* fondo */
  --tinta: #1f3a4d;      /* texto */
  --tinta-suave: #4d6878;
  --papel: #ffffff;
  --salvia: #7fb69e;
  --sol: #f2c14e;
  --borde: #c9dbe4;
  --foco: #2d6cdf;

  --radio-bloque: 18px;
  --radio-boton: 999px;

  --f-titulo: 'Fredoka', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --f-texto: 'Atkinson Hyperlegible', 'Verdana', system-ui, sans-serif;
}

html[data-calma='1'] {
  --cielo: #eef0f1;
  --salvia: #9aaba3;
  --sol: #d9c79a;
  filter: saturate(0.55);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cielo);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--f-titulo);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

a { color: inherit; }

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

/* Botones grandes, fáciles de tocar */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0.6em 1.4em;
  border: 2px solid var(--tinta);
  border-radius: var(--radio-boton);
  background: var(--papel);
  color: var(--tinta);
  font: 600 1.1rem var(--f-titulo);
  text-decoration: none;
  cursor: pointer;
}
.boton.principal { background: var(--tinta); color: var(--papel); }
.boton.suave { border-color: var(--borde); }
.boton:active { transform: translateY(2px); }

/* Bloque tipo pieza de construcción: borde inferior grueso del color de la materia */
.bloque {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  background: var(--papel);
  border: 2px solid var(--borde);
  border-bottom: 8px solid var(--color, var(--salvia));
  border-radius: var(--radio-bloque);
  color: var(--tinta);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
}
.bloque:active { transform: translateY(3px); border-bottom-width: 5px; }
.bloque .icono { font-size: 2.6rem; line-height: 1; }
.bloque .nombre { font: 600 1.35rem var(--f-titulo); }
.bloque .detalle { color: var(--tinta-suave); font-size: 0.98rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
