/*
  Paleta: el azul liso de fondo es el de un set de interpretación (las manos
  se leen mejor sobre un color plano); turquesa y amarillo vienen de la
  bandera internacional de la comunidad sorda.
*/
:root {
  --backdrop: #182a63;
  --paper: #eef2fb;
  --mist: #a9b7e0;
  --turquoise: #43d3c6;
  --sun: #ffcb47;

  --gutter: clamp(16px, 4vw, 56px);
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--gutter);
  gap: clamp(24px, 4vw, 48px);
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Escritorio: titular y texto a la izquierda, mano a la derecha. */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "status hand"
    "copy   hand";
  align-content: center;
  align-items: end;
  column-gap: clamp(24px, 5vw, 80px);
  row-gap: clamp(28px, 4vw, 48px);
}

/* Las dos lenguas al mismo tamaño: el peso las distingue. */
.status {
  grid-area: status;
  margin: 0;
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.status-es,
.status-en {
  display: block;
}

.status-es {
  font-weight: 800;
}

.status-en {
  font-weight: 250;
  color: var(--turquoise);
}

.copy {
  grid-area: copy;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 44rem;
}

.copy p {
  margin: 0;
  max-width: 34ch;
}

.copy p[lang="en"] {
  color: var(--mist);
}

.hand {
  grid-area: hand;
  align-self: center;
  margin: 0;
  /* Luz de estudio sobre el fondo, detrás de la mano. */
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.07), transparent);
}

.hand svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bone {
  stroke: var(--turquoise);
  stroke-width: 3;
  stroke-linecap: round;
}

.joint {
  fill: var(--paper);
}

.tip {
  fill: var(--sun);
}

.trail {
  stroke: var(--sun);
  stroke-width: 2;
  stroke-linecap: round;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--mist);
}

.colophon small {
  font-size: 0.875rem;
}

.motion-toggle {
  font: inherit;
  font-size: 0.875rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgb(169 183 224 / 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.motion-toggle:hover {
  border-color: var(--paper);
}

.motion-toggle:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* Tablet y celular: titular, mano, texto. */
@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "status"
      "hand"
      "copy";
    align-content: start;
  }

  .hand {
    width: min(100%, 420px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .hand {
    width: min(100%, 300px);
  }
}
