:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f6f1e8;
  background: #101c30;
  --gold: #edcd93;
  --muted: #c2cee0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: radial-gradient(ellipse at 58% 0%, #294469 0%, #172940 37%, #101c30 72%);
}
h1, h2, p { margin: 0; }
.visit { width: min(100%, 412px); margin: 0 auto; padding: 20px 24px 12px; }
.profile, .session, footer { text-align: center; }
.portrait {
  display: block;
  width: clamp(76px, 13svh, 104px);
  height: auto;
  margin: 0 auto 10px;
  border: 1px solid #e6c989;
  padding: 3px;
  border-radius: 50%;
  box-shadow: 0 0 22px #d9bd7e24;
}
h1 { font: 400 25px/1.16 Georgia, serif; }
.brand { color: var(--gold); font: 15px/1.4 Georgia, serif; margin-top: 4px; }
.role { margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.facts { margin-top: 7px; color: var(--gold); font-size: 13px; }
.facts span { margin: 0 3px; }
.session { margin-top: clamp(14px, 3svh, 26px); }
.motto { font: italic 24px/1.2 Georgia, serif; color: var(--gold); }
.session h2 { margin-top: 7px; font-size: 15px; font-weight: 600; }
.description { margin: 4px auto 0; max-width: 30ch; font-size: 14px; line-height: 1.4; color: var(--muted); }
nav { display: grid; gap: 7px; margin-top: 13px; }
nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 36px;
  text-align: center;
  border: 1px solid #9fb2cb55;
  border-radius: 10px;
  background: #d1e2ff0a;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
nav a span { position: absolute; right: 14px; }
nav a:hover { border-color: var(--gold); }
nav .booking {
  isolation: isolate;
  overflow: hidden;
  border-color: #f0d594;
  background: linear-gradient(110deg, #bd9354, #f6dfb3 51%, #ca9f60);
  color: #241911;
  font-weight: 700;
}
.booking::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(108deg, transparent 36%, #fff9e5a0 50%, transparent 63%);
  transform: translateX(-110%);
  animation: shine 5.8s ease-in-out infinite;
}
@keyframes shine {
  0%, 62% { transform: translateX(-110%); }
  84%, 100% { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) { .booking::before { animation: none; } }
button {
  font: inherit;
  color: var(--gold);
  background: transparent;
  border: 1px solid #9fb2cb55;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
  cursor: pointer;
}
#show-qr { border: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #f8dda8; outline-offset: 3px; }
dialog { width: min(360px, calc(100% - 24px)); padding: 18px; border: 1px solid #9fb2cb55; border-radius: 18px; background: #15243b; color: inherit; text-align: center; }
dialog::backdrop { background: #070e19c9; }
#qr-image:not(:empty) { margin: 12px auto; max-width: 256px; }
#qr-image svg { display: block; width: 100%; height: auto; }
#qr-message, #share-status { font-size: 13px; color: var(--muted); margin-top: 8px; }
#share-status:empty { display: none; }
#share-url { width: 100%; padding: 7px; margin-top: 8px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; font-size: 13px; }
@media (max-height: 615px) {
  .visit { padding-block: 12px 2px; }
  .portrait { margin-bottom: 7px; }
  .session { margin-top: 12px; }
  nav { margin-top: 9px; gap: 5px; }
}
