:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #fff; color: #101010; }
* { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 100vh; min-height: 100svh; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
header { text-align: center; }
h1 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.6px; font-weight: 650; }
header p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: #454545; }
.qr-link { display: block; flex: 0 0 auto; width: min(88vw, calc(100vh - 190px), 820px); width: min(88vw, calc(100svh - 190px), 820px); min-width: 150px; line-height: 0; }
.qr { display: block; width: 100%; height: auto; aspect-ratio: 1; }
a { color: inherit; }
.destination { font-size: clamp(16px, 2vw, 23px); line-height: 1.3; text-align: center; text-decoration: none; overflow-wrap: anywhere; font-weight: 600; }
.destination:hover { text-decoration: underline; text-underline-offset: 4px; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 2px; }
.controls a, .controls button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border: 0; background: transparent; color: #454545; font: inherit; font-size: 12px; text-underline-offset: 3px; cursor: pointer; }
.controls button { text-decoration: underline; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 3px solid #244ce3; outline-offset: 3px; border-radius: 3px; }
.status { margin: 0; font-size: 12px; color: #454545; text-align: center; }
.status:empty { display: none; }
@media (max-width: 420px) { main { padding: 14px; } .controls { gap: 0 3px; } }
@media (max-height: 480px) and (min-width: 640px) { main { display: grid; grid-template-columns: minmax(220px, 1fr) auto; grid-template-rows: 1fr auto auto auto 1fr; gap: 8px 20px; padding: 16px 28px; } header { grid-column: 1; grid-row: 2; } .qr-link { grid-column: 2; grid-row: 1 / -1; width: min(45vw, calc(100svh - 32px)); } .destination { grid-column: 1; grid-row: 3; font-size: 17px; } .controls { grid-column: 1; grid-row: 4; } .status { grid-column: 1; grid-row: 5; } }
@media print { main { min-height: auto; } .qr-link { width: 150mm; max-width: 90%; } .controls, .status { display: none; } }
