* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory: #FBF7F0;
  --paper: #FFFFFF;
  --ink: #2E2620;
  --muted: #7d726a;
  --wine: #7A2F3B;
  --wine-dark: #5e2430;
  --gold: #B08D4A;
  --gold-soft: #d8c9a8;
  --sage: #6f8468;
  --serif: Georgia, 'Times New Roman', serif;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--wine);
}

/* ------------------------------------------------ cabecera de invitación */

.invite {
  text-align: center;
  padding: 1.75rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
}

h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h1 .conj {
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
  font-size: 1.4rem;
}

.lead {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 30ch;
  margin: 0 auto 0.75rem;
  line-height: 1.45;
}

.net {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid var(--gold-soft);
  background: var(--paper);
}
.net.online { color: var(--sage); }
.net.offline { color: var(--wine); }

/* ------------------------------------------------------------- acciones */

main { flex: 1; padding: 1.25rem 1rem; max-width: 34rem; margin: 0 auto; width: 100%; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.btn {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: 4px;
  font-size: 1.05rem;
  font-family: var(--serif);
  cursor: pointer;
  user-select: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold);
}

.btn.primary {
  background: var(--wine);
  color: var(--ivory);
  border-color: var(--wine);
}

.btn:active { opacity: 0.85; }
.btn:focus-within { outline: 2px solid var(--wine); outline-offset: 2px; }

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.1rem;
}

/* ----------------------------------------------------------------- cola */

#queue { list-style: none; }

#queue li {
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.5rem;
  align-items: center;
  font-size: 0.85rem;
}

#queue .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

#queue .status { text-align: right; white-space: nowrap; }
#queue .status.ok { color: var(--sage); }
#queue .status.err { color: var(--wine); }
#queue .status.up { color: var(--gold); }

#queue progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 5px;
  accent-color: var(--wine);
}

#queue .msg {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
}

#queue button.retry {
  grid-column: 1 / -1;
  padding: 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-size: 0.85rem;
  cursor: pointer;
}
#queue button.retry:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }

/* ------------------------------------------------------------------ pie */

footer {
  padding: 0.9rem 1rem 1.1rem;
  text-align: center;
  border-top: 1px solid var(--gold-soft);
}

.thanks {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

footer small { color: var(--muted); font-size: 0.65rem; }

