/* Introduce — a Sunday seen from the desk.
 *
 * The page follows one service. It opens on the projection screen itself,
 * then walks the day by the clock: light while the service is being prepared
 * and after it ends, dark while the lights in the room are down. Colour here
 * says what time it is, not what section it is.
 *
 * One family, Archivo, used across its width axis: wide and heavy for what is
 * read from the back row, narrow and light for the clock, normal for reading.
 */

:root {
  --templo: #0e1838;      /* the room with the lights down */
  --lampara: #ffe7b0;     /* the projector's light */
  --vivo: #ff3b30;        /* on screen now; the same red as the app */
  --papel: #ffffff;
  --tinta: #0e1838;
  --gris: #566079;
  --gris-noche: #a9b2cc;
  --linea: #dde2eb;
  --linea-noche: #2b3867;

  --ancho: 1180px;
  --margen: clamp(20px, 5vw, 56px);
  --familia: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--familia);
  font-size: 18px;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

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

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--lampara);
  color: var(--tinta);
  z-index: 10;
}
.saltar:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 650;
  font-stretch: 108%;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}

.boton-luz { background: var(--lampara); color: var(--tinta); }
.boton-luz:hover { background: #fff3d6; }
.boton-luz:focus-visible { outline-color: var(--lampara); }

.boton-tinta { background: var(--tinta); color: #fff; }
.boton-tinta:hover { background: #22306a; }

/* For what can be downloaded but is not finished: the Windows beta. */
.boton-contorno { border: 1px solid var(--tinta); color: var(--tinta); background: transparent; }
.boton-contorno:hover { background: #e2e6ef; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.cabecera {
  background: var(--templo);
  color: #fff;
}

.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  font-stretch: 115%;
  text-decoration: none;
}

.marca img { width: 28px; height: 28px; border-radius: 7px; }

.cabecera nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 16px; }
.cabecera nav a:not(.boton) { color: var(--gris-noche); text-decoration: none; }
.cabecera nav a:not(.boton):hover { color: #fff; }
.cabecera .boton { min-height: 38px; padding: 7px 14px; font-size: 15px; }

/* ── The screen ──────────────────────────────────────────────────────────── */

/* Sized by the window's height as well as its width, so the desk under the
   screen is on view before anyone scrolls. */
.monitor {
  width: min(100%, calc((100svh - 200px) * 16 / 9));
  min-width: min(100%, 560px);
  margin-inline: auto;
}

.escenario {
  background: var(--templo);
  color: #fff;
  padding-block: clamp(12px, 3vw, 36px) clamp(64px, 9vw, 120px);
}

.pantalla {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: #050a1c;
  container-type: inline-size;
  cursor: pointer;
  /* The screen lights the wall around it. */
  box-shadow:
    0 0 0 1px rgba(255, 231, 176, 0.1),
    0 30px 140px -30px rgba(255, 231, 176, 0.28);
}

/* "Luz de lo alto", one of the scenes the app ships with: light falling from
   above. It keeps running while the words change, as it does in the app. */
.escena {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(255, 231, 176, 0.34), transparent 70%),
    linear-gradient(180deg, #111d45 0%, #070d24 100%);
}

.escena::before {
  content: "";
  position: absolute;
  inset: -40% -20% 0;
  background: repeating-conic-gradient(
    from 164deg at 50% 0%,
    rgba(255, 238, 205, 0.075) 0deg 2.2deg,
    transparent 2.2deg 7deg
  );
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 20%, transparent 75%);
  transform-origin: 50% 0%;
  animation: rayos 22s ease-in-out infinite alternate;
}

@keyframes rayos {
  from { transform: rotate(-2.5deg); }
  to { transform: rotate(2.5deg); }
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 7cqw 10cqw;
  text-align: center;
  color: #fffaf0;
  text-shadow: 0 0.3cqw 2cqw rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.slide[data-activo] { opacity: 1; }

html:not(.js) .slide:first-of-type { opacity: 1; }

.slide h1 {
  margin: 0;
  font-size: 7.4cqw;
  line-height: 1.02;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.slide .letra {
  margin: 0;
  font-size: 5cqw;
  line-height: 1.22;
  font-weight: 620;
  font-stretch: 104%;
}

.slide .versiculo {
  margin: 0;
  max-width: 34ch;
  font-size: 3.9cqw;
  line-height: 1.3;
  font-weight: 500;
  text-wrap: balance;
}

.slide .cita {
  position: absolute;
  right: 3.4cqw;
  bottom: 2.6cqw;
  margin: 0;
  font-size: 1.5cqw;
  font-weight: 500;
  color: rgba(255, 250, 240, 0.75);
  text-shadow: none;
}

.slide .anuncio-hora {
  margin: 0 0 1cqw;
  font-size: 2.6cqw;
  font-weight: 500;
  color: var(--lampara);
}

.slide .anuncio {
  margin: 0;
  font-size: 6cqw;
  line-height: 1.05;
  font-weight: 760;
  font-stretch: 116%;
}

.negro {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pantalla[data-negro] .negro { opacity: 1; }

/* The one moment on the page that moves by itself: the lamp comes on. */
.encendido {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
  animation: encender 1.3s ease-out 0.2s both;
}

@keyframes encender {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

/* ── The desk under the screen ───────────────────────────────────────────── */

.consola {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 18px;
  font-size: 15px;
}

html:not(.js) .consola { display: none; }

.estado {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.estado::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vivo);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.2);
}

.estado[data-negro]::before { background: var(--gris-noche); box-shadow: none; }

.lista {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.consola button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--linea-noche);
  border-radius: 6px;
  background: transparent;
  color: var(--gris-noche);
  font: inherit;
  cursor: pointer;
}

.consola button:hover { color: #fff; border-color: #44528a; }

.lista button[aria-current="true"] {
  color: #fff;
  border-color: var(--vivo);
  background: rgba(255, 59, 48, 0.1);
}

.lista .numero { font-weight: 700; font-variant-numeric: tabular-nums; }

.mandos { display: flex; gap: 6px; margin-left: auto; }

.mandos button[aria-pressed="true"] { color: #fff; background: #000; border-color: #000; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.4em;
  border: 1px solid currentColor;
  border-bottom-width: 2px;
  border-radius: 4px;
  font: inherit;
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* ── Under the screen ────────────────────────────────────────────────────── */

.presentacion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
  margin-top: clamp(40px, 6vw, 72px);
}

.presentacion .entrada {
  max-width: 34em;
  margin: 0;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: #e6eaf5;
}

.pista { margin: 14px 0 0; font-size: 15px; color: var(--gris-noche); }
html:not(.js) .pista { display: none; }

/* A phone has no arrow keys; the screen and the buttons still answer a tap. */
@media (hover: none) and (pointer: coarse) {
  .pista { display: none; }
}

.descarga-rapida { display: grid; justify-items: start; gap: 10px; }
.descarga-rapida p { margin: 0; font-size: 15px; color: var(--gris-noche); }

/* ── The day, by the clock ───────────────────────────────────────────────── */

.domingo-intro {
  padding-block: clamp(72px, 10vw, 128px) 8px;
}

.domingo-intro h2,
.descargas h2,
.preguntas h2,
.cierre h2 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  font-weight: 780;
  font-stretch: 120%;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.domingo-intro p {
  max-width: 36em;
  margin: 18px 0 0;
  font-size: 20px;
  color: var(--gris);
}

.parada { color: var(--tinta); }

.parada.apagado {
  background: var(--templo);
  color: #fff;
}

.parada .contenedor {
  display: grid;
  grid-template-columns: clamp(120px, 17vw, 210px) minmax(0, 1fr);
  column-gap: clamp(20px, 4vw, 56px);
}

.reloj {
  align-self: start;
  margin: 0;
  padding-block: clamp(64px, 8vw, 104px) 24px;
  font-variant-numeric: tabular-nums;
}

.reloj .dia {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--gris);
}

.reloj time {
  display: block;
  font-size: clamp(54px, 8.2vw, 104px);
  line-height: 0.92;
  font-weight: 250;
  font-stretch: 62%;
  letter-spacing: -0.01em;
}

.reloj .meridiano {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--gris);
}

.apagado .reloj .dia,
.apagado .reloj .meridiano { color: var(--gris-noche); }
.apagado .reloj time { color: var(--lampara); }

/* The line the day runs along. */
.cuerpo {
  position: relative;
  padding-block: clamp(64px, 8vw, 104px);
  padding-left: clamp(20px, 4vw, 56px);
  border-left: 1px solid var(--linea);
}

.apagado .cuerpo { border-left-color: var(--linea-noche); }

.cuerpo::before {
  content: "";
  position: absolute;
  left: -5px;
  top: calc(clamp(64px, 8vw, 104px) + 14px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tinta);
}

.apagado .cuerpo::before { background: var(--vivo); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.22); }

.cuerpo h3 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 740;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cuerpo > p {
  max-width: 36em;
  margin: 20px 0 0;
  font-size: 19px;
}

/* What the app does at that hour, each thing by the name an operator would
   look for. */
.funciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
  max-width: 820px;
  margin: 36px 0 0;
}

.funciones > div {
  padding-top: 14px;
  border-top: 1px solid var(--linea);
}

.apagado .funciones > div { border-top-color: var(--linea-noche); }

.funciones dt {
  font-size: 17px;
  font-weight: 680;
  font-stretch: 106%;
  line-height: 1.35;
}

.funciones dd {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gris);
}

.apagado .funciones dd { color: var(--gris-noche); }
.apagado .funciones dd kbd { color: #fff; }

.captura {
  margin: clamp(36px, 5vw, 56px) 0 0;
}

.captura img {
  border-radius: 10px;
  box-shadow: 0 34px 70px -34px rgba(14, 24, 56, 0.55), 0 0 0 1px rgba(14, 24, 56, 0.08);
}

.apagado .captura img {
  box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.captura figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--gris);
}

.apagado .captura figcaption { color: var(--gris-noche); }

.captura.angosta { max-width: 760px; }

/* What the desk and the stage see when the sermon runs long. */
.cronometro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 36px 0 0;
  font-variant-numeric: tabular-nums;
}

.cronometro .tiempo {
  font-size: clamp(56px, 7.5vw, 92px);
  line-height: 1;
  font-weight: 300;
  font-stretch: 62%;
}

.cronometro .plan { color: var(--gris-noche); }
.cronometro .pasado { color: var(--vivo); font-weight: 500; }

.cronometro .explica {
  flex-basis: 100%;
  font-size: 15px;
  color: var(--gris-noche);
}

.parada.final .cuerpo { padding-bottom: clamp(88px, 11vw, 140px); }

/* ── Downloads ───────────────────────────────────────────────────────────── */

.descargas {
  padding-block: clamp(80px, 10vw, 128px);
  background: #f1f3f8;
}

.plataformas {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cfd5e2;
}

.plataformas li {
  display: grid;
  grid-template-columns: clamp(140px, 20vw, 240px) minmax(0, 1fr) 210px;
  align-items: center;
  gap: 8px 32px;
  padding-block: 26px;
  border-bottom: 1px solid #cfd5e2;
}

.plataformas .so {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 720;
  font-stretch: 114%;
}

.plataformas .detalle { margin: 0; color: var(--gris); }

.plataformas .boton,
.plataformas .pendiente { justify-self: end; }

.plataformas .pendiente {
  font-size: 16px;
  font-weight: 600;
  color: var(--gris);
}

.instalar {
  display: grid;
  grid-template-columns: clamp(140px, 20vw, 240px) minmax(0, 1fr);
  gap: 16px 32px;
  margin-top: clamp(40px, 6vw, 64px);
}

.instalar h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  font-stretch: 110%;
}

.instalar ol {
  margin: 0;
  padding-left: 1.4em;
}

.instalar li { padding-left: 6px; margin-bottom: 8px; }
.instalar li::marker { font-weight: 700; font-variant-numeric: tabular-nums; }

.instalar + .instalar { margin-top: 40px; }

.instalar .aclaracion { grid-column: 2; margin: 4px 0 0; padding-left: calc(1.4em + 6px); font-size: 16px; color: var(--gris); }

/* ── Questions ───────────────────────────────────────────────────────────── */

.preguntas {
  padding-block: clamp(80px, 10vw, 128px);
}

.lista-preguntas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
  margin-top: clamp(32px, 5vw, 56px);
}

.lista-preguntas > div {
  padding-top: 18px;
  border-top: 1px solid var(--linea);
}

.lista-preguntas h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  font-stretch: 108%;
}

.lista-preguntas p {
  max-width: 34em;
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--gris);
}

/* ── Guides ──────────────────────────────────────────────────────────────── */

.guias-portada {
  padding-bottom: clamp(80px, 10vw, 128px);
}

.guias-portada .contenedor > div {
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--linea);
}

.guias-portada h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  font-weight: 760;
  font-stretch: 116%;
  letter-spacing: -0.01em;
}

.lista-guias {
  max-width: 52rem;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linea);
}

.lista-guias li { border-bottom: 1px solid var(--linea); }

.lista-guias a {
  display: block;
  padding-block: 24px;
  text-decoration: none;
}

.lista-guias .titulo {
  display: block;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  font-stretch: 108%;
}

.lista-guias a:hover .titulo { text-decoration: underline; text-underline-offset: 0.16em; }

.lista-guias .de-que-trata {
  display: block;
  max-width: 40em;
  margin-top: 6px;
  font-size: 17px;
  color: var(--gris);
}

.guia-cabeza {
  background: var(--templo);
  color: #fff;
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.migas { margin: 0 0 22px; font-size: 15px; color: var(--gris-noche); }
.migas a { color: var(--gris-noche); }
.migas a:hover { color: #fff; }

.guia-cabeza h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.04;
  font-weight: 780;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  color: var(--lampara);
  text-wrap: balance;
}

.guia-cabeza .resumen {
  max-width: 36em;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: #e6eaf5;
}

.guia-cabeza .fecha { margin: 18px 0 0; font-size: 15px; color: var(--gris-noche); }

.guia-cuerpo {
  max-width: 44rem;
  padding-block: clamp(48px, 7vw, 88px);
}

.guia-cuerpo h2 {
  margin: 56px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 740;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.guia-cuerpo > p:first-child { margin-top: 0; font-size: 21px; }

.guia-cuerpo p,
.guia-cuerpo li { font-size: 19px; line-height: 1.65; }

.guia-cuerpo p { margin: 16px 0 0; }

.guia-cuerpo ul,
.guia-cuerpo ol { margin: 16px 0 0; padding-left: 1.3em; }

.guia-cuerpo li { margin-top: 10px; padding-left: 4px; }
.guia-cuerpo ol > li::marker { font-weight: 700; font-variant-numeric: tabular-nums; }
.guia-cuerpo strong { font-weight: 660; }
.guia-cuerpo a { text-decoration-thickness: 1px; }

/* What only applies when the software is Introduce, set apart from the advice
   that holds whatever program the church uses. */
.nota {
  margin: 28px 0 0;
  padding: 18px 22px 20px;
  border-left: 3px solid var(--tinta);
  background: #f1f3f8;
}

.nota p { margin: 0; font-size: 18px; }

/* ── Closing ─────────────────────────────────────────────────────────────── */

.cierre {
  background: var(--templo);
  color: #fff;
  padding-block: clamp(80px, 10vw, 128px) 40px;
}

.cierre h2 { max-width: 18ch; color: var(--lampara); }

.cierre .contenedor > p {
  max-width: 34em;
  margin: 22px 0 0;
  font-size: 20px;
  color: #e6eaf5;
}

.cierre .acciones { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 32px; }
.cierre .acciones a:not(.boton) { color: #fff; }

.pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(72px, 9vw, 112px);
  padding-top: 24px;
  border-top: 1px solid var(--linea-noche);
  font-size: 15px;
  color: var(--gris-noche);
}

.pie p { margin: 0; }
.pie a { color: var(--gris-noche); }
.pie a:hover { color: #fff; }

/* ── Narrow screens ──────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .funciones { grid-template-columns: 1fr; gap: 20px; }
  .lista-preguntas { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .presentacion { grid-template-columns: 1fr; align-items: start; }
  .mandos { margin-left: 0; }
  .plataformas li { grid-template-columns: minmax(0, 1fr) auto; }
  .plataformas .detalle { grid-column: 1 / -1; grid-row: 2; }
  .instalar { grid-template-columns: 1fr; }
  .instalar .aclaracion { grid-column: 1; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .cabecera nav .opcional { display: none; }

  /* The clock sits above the text instead of beside it. */
  .parada .contenedor { grid-template-columns: 1fr; }
  .reloj {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 56px 0;
  }
  .reloj time { font-size: 64px; }
  .reloj .dia,
  .reloj .meridiano { display: inline; margin: 0; }
  .cuerpo { padding-block: 20px 64px; padding-left: 0; border-left: 0; }
  .cuerpo::before { display: none; }
  .parada.final .cuerpo { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .escena::before { animation: none; }
  .encendido { display: none; }
  .slide,
  .negro { transition: none; }
}
