/* La puerta. Hoja aparte y no un <style> porque snippets/headers.conf sirve
   `style-src 'self'`: un estilo en linea lo bloquea la CSP y la pagina sale desnuda. */

:root {
  color-scheme: light;
  --fondo:  #f4f2ee;
  --tinta:  #191919;
  --suave:  #666663;
  --borde:  #bfbfba;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fondo);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  color: var(--tinta);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.puerta { width: 100%; max-width: 34rem; }

form { display: flex; flex-direction: column; gap: 20px; }

/* 5,15:1 contra el fondo. Medido, no elegido a ojo. */
.pregunta {
  margin: 0;
  color: var(--suave);
  text-wrap: pretty;
}

.campo {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--borde);
  border-radius: 0;
  background: #ffffff;
  color: var(--tinta);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  min-height: 48px;
}

.boton {
  align-self: flex-start;
  padding: 12px 28px;
  min-height: 48px;
  border: 1px solid var(--tinta);
  border-radius: 0;
  background: var(--tinta);
  color: var(--fondo);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.boton:hover { background: #40403e; border-color: #40403e; }

/* Doble anillo: un solo anillo sobre marfil no se ve. */
.campo:focus-visible,
.boton:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px var(--tinta);
}

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