:root {
  --rose: #d47772;
  --rose-deep: #b85d58;
  --cream: #f4ece6;
  --ink: #3b2c2a;
  --muted: #8a706c;
}

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

html, body { min-height: 100%; }

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% 18%, #fbe4df 0%, transparent 58%),
    var(--cream);
  font-family: Outfit, system-ui, sans-serif;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 36rem;
}

.logo {
  width: min(78vw, 26rem);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 28px 64px rgba(59, 44, 42, 0.14);
}

.tag {
  margin-top: 2.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.sub {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.6rem;
  margin-top: 2rem;
}

.links a {
  color: var(--rose-deep);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.12rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.links a:hover,
.links a:focus-visible,
.tools button:hover,
.tools button:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--rose);
  outline: none;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.6rem;
  margin-top: 1.15rem;
}

.tools button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 0.12rem;
  color: var(--rose-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

[hidden] { display: none !important; }

.qr-dialog {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 0;
  border-radius: 1.6rem;
  padding: 1.5rem 1.4rem 1.2rem;
  background: #fffaf6;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 22px 50px rgba(59, 44, 42, 0.16);
}

.qr-dialog::backdrop { background: rgba(59, 44, 42, 0.38); }

.qr-dialog img {
  width: min(72vw, 18rem);
  height: auto;
}

.qr-dialog p {
  margin: 0.7rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.qr-dialog button {
  appearance: none;
  background: var(--rose);
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  color: #fffaf6;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fffaf6;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .logo { width: min(86vw, 22rem); }
}
