/* Web de MOSSU. La página de redirección de OAuth (redirect.html) sigue usando style.css.

   Los colores salen del logo: el amarillo del icono, el azul de la cabeza de la abeja,
   el rojo de las rayas y el azul pálido de las alas. Las tipografías vienen con macOS
   (Superclarendon y Avenir Next), así que no se descarga ninguna fuente. */

:root {
  --honey: #FFCC00;
  --honey-soft: #FFF3BF;
  --navy: #16233F;

  --paper: #FFFFFF;
  --ink: #16233F;
  --ink-2: #48546E;
  --line: rgba(22, 35, 63, 0.15);
  --rule: #16233F;

  /* Mismo color que el fondo con el que se capturó img/light-menu.webp. */
  --hero: #FFCC00;
  --hero-title: #16233F;
  --hero-text: #16233F;
  --band: #16233F;
  --wing: #E2EFF4;
  --night: #0C1426;
  --button: #16233F;
  --button-ink: #FFFFFF;
  --accent: #C22D33;

  --bar: 44px;
  --bar-glass: rgba(255, 255, 255, 0.6);
  --bar-hover: rgba(22, 35, 63, 0.12);
  --notice: rgba(255, 255, 255, 0.78);
  --window-shadow: drop-shadow(0 22px 38px rgba(22, 35, 63, 0.2)) drop-shadow(0 3px 8px rgba(22, 35, 63, 0.1));

  --display: "Superclarendon", "Rockwell", "Roboto Slab", Georgia, serif;
  --text: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --honey-soft: rgba(255, 204, 0, 0.13);

    --paper: #121C33;
    --ink: #F2EFE6;
    --ink-2: #B5BDD0;
    --line: rgba(242, 239, 230, 0.17);
    --rule: #F2EFE6;

    /* Mismo color que el fondo con el que se capturó img/dark-menu.webp. */
    --hero: #121C33;
    --hero-title: #FFCC00;
    --hero-text: #F2EFE6;
    --band: #0A1223;
    --wing: #18243F;
    --night: #070C18;
    --button: #FFCC00;
    --button-ink: #16233F;
    --accent: #FF6B6F;

    --bar-glass: rgba(18, 28, 51, 0.62);
    --bar-hover: rgba(255, 255, 255, 0.16);
    --notice: rgba(44, 58, 94, 0.82);
    --window-shadow: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.5)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: calc(var(--bar) + 16px);
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.glyph {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 19px;
  line-height: 1;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.75em;
  height: 1.75em;
  margin-inline: 1px;
  padding: 0 0.35em;
  border: 1.5px solid var(--rule);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--system);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1;
  vertical-align: 0.08em;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--honey-soft);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(var(--bar) + 8px);
}

/* Botones y enlaces */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  flex: none;
}

/* El botón de GitHub lleva su propia píldora, con los colores de los botones de github.com. */
.github-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px 0 20px;
  border: 1px solid rgba(31, 35, 40, 0.2);
  border-radius: 999px;
  background: #FFFFFF;
  color: #1F2328;
  font-family: var(--system);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.github-pill:hover {
  transform: translateY(-2px);
}

.github-pill:active {
  transform: translateY(0);
}

.github-pill svg {
  flex: none;
}

@media (prefers-color-scheme: dark) {
  .github-pill {
    border-color: #3D444D;
    background: #212830;
    color: #F0F6FC;
  }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.link:hover {
  text-decoration-thickness: 3px;
}

.link svg {
  flex: none;
}

.fine {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.78;
}

/* Barra de menús */

.menubar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar);
  margin-bottom: calc(var(--bar) * -1);
  background: var(--bar-glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  font-family: var(--system);
  font-size: 14px;
}

.menubar-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.menubar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.menubar a:hover {
  background: var(--bar-hover);
}

.menubar .menubar-app {
  margin-left: -10px;
  font-weight: 700;
}

.menubar-menus {
  display: flex;
  gap: 2px;
  margin-right: auto;
}

.menubar .menubar-download {
  font-weight: 700;
}

.menubar-extras {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}

.menubar-now {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.menubar-now.is-open {
  background: var(--bar-hover);
}

.menubar-now img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.menubar-glyph {
  flex: none;
  opacity: 0.9;
}

.menubar-clock {
  min-width: 4.6em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.is-tick {
  animation: tick 0.35s ease;
}

@keyframes tick {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
}

/* Portada */

.hero {
  --pad: clamp(48px, 6.5vw, 92px);

  overflow-x: clip;
  padding: calc(var(--bar) + var(--pad)) 0 clamp(72px, 8vw, 116px);
  background: var(--hero);
  color: var(--hero-text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 357px;
  gap: 40px;
  align-items: start;
}

.hero h1 {
  color: var(--hero-title);
  font-family: var(--display);
  font-size: clamp(42px, 6.3vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* El título se parte a mano en cuatro líneas. El icono de Slack va pegado a su palabra. */
.slack-word {
  white-space: nowrap;
}

.slack-mark {
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.16em;
  vertical-align: -0.03em;
}

.hero-lead {
  max-width: 33em;
  margin-top: 30px;
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 500;
  line-height: 1.5;
}

/* El menú cuelga de la barra. La captura trae 36 px de fondo a cada lado, así que
   se saca del hueco con márgenes negativos y se difumina el borde por si el color
   de fondo no casa al píxel. */
.hero-screen {
  position: relative;
  margin-top: calc(var(--pad) * -1);
}

.hero-menu {
  display: block;
  width: 429px;
  max-width: none;
  margin: -30px -36px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent), linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent), linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.notice {
  position: absolute;
  left: -84px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 276px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--notice);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 14px 34px rgba(22, 35, 63, 0.22), 0 0 0 0.5px rgba(22, 35, 63, 0.14);
  color: var(--ink);
  font-family: var(--system);
}

.app-icon {
  flex: none;
  width: 40px;
  height: 40px;
}

.notice-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.notice-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.85;
}

.notice-tag {
  align-self: flex-start;
  margin-left: auto;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
}

/* Sedes y estados: una banda azul */

.roster {
  padding: 46px 0;
  background: var(--band);
  color: #FFFFFF;
}

.roster-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px 56px;
  align-items: start;
}

.roster h2 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.roster ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 2px 0 0;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}

.roster li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.roster img,
.roster .glyph {
  flex: none;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Un día cualquiera con MOSSU */

.day {
  padding-top: clamp(72px, 9vw, 124px);
}

.day-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.day-head p {
  color: var(--ink-2);
  font-size: 19px;
}

.day-hint {
  display: none;
}

.js .day-hint {
  display: inline;
}

.event {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 56px;
  padding: 48px 0 72px;
  border-top: 3px solid var(--rule);
}

.event-time {
  font-family: var(--display);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}

.event-time time {
  position: sticky;
  top: calc(var(--bar) + 28px);
  display: block;
}

.event-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 14px 7px 10px;
  border-radius: 8px;
  background: var(--honey-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.event-status img {
  flex: none;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.event-status.is-keys {
  gap: 3px;
  padding-left: 8px;
}

.event-status.is-keys kbd:last-of-type {
  margin-right: 8px;
}

.event h3 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(26px, 2.7vw, 35px);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

.notes {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 16.5px;
}

.notes li {
  position: relative;
  padding-left: 26px;
}

.notes li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0.22em;
  color: var(--accent);
  font-size: 0.8em;
}

.event-visual {
  align-self: start;
}

/* Capturas */

.shot {
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 14px;
  background: var(--honey-soft);
}

.shot img {
  display: block;
  width: 100%;
  filter: var(--window-shadow);
  cursor: zoom-in;
}

.shot img:focus-visible {
  outline-offset: 6px;
}

/* Cómo decide MOSSU: condiciones arriba, lo que pone en Slack abajo */

.rule {
  max-width: 440px;
  border: 3px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  font-size: 17px;
}

.rule > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}

.rule > div:first-child {
  border-top: 0;
}

.rule dt {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.rule dd {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.rule dd img {
  flex: none;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rule > .rule-result {
  border-top: 3px solid var(--rule);
  background: var(--honey);
  color: var(--navy);
}

/* Magic LAPS */

.laps {
  display: grid;
  gap: 24px;
  justify-items: start;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 14px;
  background: var(--honey-soft);
}

.keys {
  display: flex;
  gap: 12px;
}

.keys kbd {
  width: 68px;
  height: 68px;
  margin: 0;
  border-width: 2px;
  border-bottom-width: 6px;
  border-radius: 14px;
  font-size: 28px;
}

.menu-rows {
  width: 100%;
  padding: 6px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(22, 35, 63, 0.16), 0 0 0 0.5px rgba(22, 35, 63, 0.16);
  color: var(--ink);
  font-family: var(--system);
  font-size: 15px;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
}

.menu-row svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-row.is-muted {
  opacity: 0.5;
}

.menu-row.is-done {
  background: var(--honey);
  color: var(--navy);
  font-weight: 600;
}

.menu-shortcut {
  margin-left: auto;
  letter-spacing: 0.12em;
  opacity: 0.5;
}

/* 21:30: se hace de noche a todo lo ancho */

.event.is-night {
  --ink: #EEF1F7;
  --ink-2: #AEB8CF;
  --rule: #EEF1F7;
  --line: rgba(238, 241, 247, 0.2);
  --paper: #0C1426;
  --honey-soft: rgba(255, 204, 0, 0.14);
  --accent: #FF6B6F;
  --window-shadow: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.55)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));

  border-top-color: transparent;
  background: var(--night);
  box-shadow: 0 0 0 100vmax var(--night);
  clip-path: inset(0 -100vmax);
  color: var(--ink);
}

/* Instalación */

.setup {
  padding-top: clamp(72px, 9vw, 124px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(36px, 4.5vw, 56px);
  padding: 0;
  border-top: 3px solid var(--rule);
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 28px 36px 4px 0;
  counter-increment: step;
}

.steps li + li {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
}

.steps p {
  color: var(--ink-2);
  font-size: 17px;
}

/* Y además */

.extras {
  padding: clamp(72px, 9vw, 124px) 0;
}

.extras-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.extra-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  margin-top: 40px;
}

.extra-list dt {
  margin-bottom: 4px;
  padding-top: 14px;
  border-top: 3px solid var(--rule);
  font-size: 18px;
  font-weight: 700;
}

.extra-list dd {
  color: var(--ink-2);
  font-size: 16.5px;
}

/* Privacidad: la etiqueta del bote */

.privacy {
  padding: clamp(72px, 9vw, 124px) 0;
  background: var(--wing);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.privacy-intro {
  position: sticky;
  top: calc(var(--bar) + 36px);
}

.privacy-intro p {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 19px;
}

.label {
  padding: 16px 24px 18px;
  border: 3px solid var(--rule);
  background: var(--paper);
}

.label-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.label-serving {
  padding: 4px 0 10px;
  border-bottom: 12px solid var(--rule);
  font-size: 16px;
  font-weight: 500;
}

.label dl > div {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.label dt {
  font-weight: 700;
}

.label dd {
  color: var(--ink-2);
  font-size: 16.5px;
}

.label-section {
  padding: 18px 0 8px;
  border-bottom: 6px solid var(--rule);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.label-foot {
  padding-top: 12px;
  font-size: 15px;
}

/* Código abierto */

.oss {
  padding: clamp(72px, 9vw, 116px) 0;
  background: var(--band);
  color: #FFFFFF;
}

.oss-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
}

.stars {
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.35em;
}

.oss p:not(.stars) {
  max-width: 31em;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.oss .button {
  background: var(--honey);
  color: var(--navy);
}

.stack {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  list-style: none;
}

.stack li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.stack strong {
  font-family: var(--display);
  font-weight: 700;
}

.stack span {
  color: rgba(255, 255, 255, 0.72);
}

/* Preguntas */

.faq-section {
  padding: clamp(72px, 9vw, 124px) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}

.faq {
  border-top: 3px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 0.7;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 56px 24px 0;
  color: var(--ink-2);
}

/* Llamada final: el icono de la app a lo grande */

.final {
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--honey);
  color: var(--navy);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.final h2 {
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.final p:not(.fine) {
  margin-top: 20px;
  font-size: 21px;
  font-weight: 500;
}

.final .button {
  background: var(--navy);
  color: #FFFFFF;
}

.final-bee {
  width: min(300px, 26vw);
  transform: rotate(-7deg);
}

/* Pie */

.site-footer {
  padding: 30px 0;
  color: var(--ink-2);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
}

.site-footer a {
  text-underline-offset: 4px;
}

/* Captura ampliada */

.lightbox {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.lightbox::backdrop {
  background: rgba(8, 13, 26, 0.76);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox img {
  display: block;
  width: min(1100px, 94vw);
  max-height: 90vh;
  object-fit: contain;
}

/* Pantallas medianas */

@media (max-width: 1040px) {
  .notice {
    left: -40px;
  }

  .event {
    grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 36px;
  }

  .event-time {
    font-size: 46px;
  }

  .privacy-grid,
  .faq-grid,
  .oss-grid,
  .extras-grid {
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .menubar-menus {
    display: none;
  }

  .menubar .menubar-app {
    margin-right: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-screen {
    justify-self: center;
    width: min(357px, 100%);
    margin-top: 44px;
  }

  .hero-menu {
    width: calc(100% + 72px);
    margin-top: -24px;
  }

  .notice {
    left: 0;
    right: 0;
    bottom: -36px;
    min-width: 0;
  }

  .roster-inner,
  .day-head,
  .privacy-grid,
  .faq-grid,
  .oss-grid,
  .extras-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .event {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 0 56px;
  }

  .event-time {
    margin-bottom: 18px;
  }

  .event-time time {
    position: static;
  }

  .event-visual {
    margin-top: 32px;
  }

  .privacy-intro {
    position: static;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li,
  .steps li + li {
    padding: 24px 0 28px;
    border-left: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .steps li::before {
    font-size: 60px;
  }

  .final-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .final-bee {
    order: -1;
    width: 150px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .wrap {
    width: min(1180px, 100% - 32px);
  }

  .menubar-extras {
    gap: 10px;
    margin-left: 2px;
  }

  .menubar-glyph {
    display: none;
  }

  .menubar-clock {
    min-width: 0;
  }

  .button,
  .github-pill {
    width: 100%;
    justify-content: center;
  }

  .roster ul {
    gap: 12px 22px;
    font-size: 16px;
  }

  .rule > div {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 13px 14px;
  }

  .keys kbd {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .extra-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .label {
    padding: 14px 16px 16px;
  }

  .label dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .faq details p {
    padding-right: 0;
  }

  .site-footer nav {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
