:root { color-scheme: light; --ink: #171717; --muted: #666; --line: #e7e7e7; --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: #fafafa; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #2f6fdc; outline-offset: 4px; }
.page-nav { width: min(1120px, 100% - 40px); margin: auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font: 800 21px SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.06em; text-decoration: none; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
main { width: min(480px, 100% - 40px); margin: 44px auto 64px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
h1 { margin: 0 0 18px; font-size: clamp(36px, 8vw, 52px); line-height: 1.07; letter-spacing: -.05em; }
h1 em { font-style: normal; color: #888; }
.intro { margin: 0; color: var(--muted); font-size: 17px; }
.signup-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.join { display: grid; gap: 10px; margin-top: 28px; }
.join label { font-size: 14px; font-weight: 600; }
input, button { font: inherit; }
.join input[type="email"] { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #ccc; border-radius: 10px; font-size: 16px; color: var(--ink); background: white; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 8px; padding: 11px 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px var(--sans); text-decoration: none; cursor: pointer; }
.btn.secondary { background: white; color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .6; cursor: wait; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fine { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
[data-join-state]:empty { display: none; }
[data-join-state] { margin-top: 12px; font-size: 14px; }
.joined { margin-top: 28px; padding: 20px; border: 1px solid var(--ink); border-radius: 14px; overflow-wrap: anywhere; }
.joined strong { font-size: 20px; line-height: 1.3; }
.joined p { margin: 12px 0; font-size: 14px; }
.ref { display: flex; flex-wrap: wrap; gap: 8px; }
.ref input { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.afterword { margin: 24px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.qr-page { background: #fff; }
.qr-page main { width: min(500px, 100% - 32px); margin: 20px auto 32px; text-align: center; }
.qr-page h1 { font-size: clamp(30px, 7vw, 44px); }
.qr-page .intro { max-width: 360px; margin: auto; font-size: 16px; }
.qr-code { display: block; width: min(360px, 100%); height: auto; margin: 20px auto 0; }
.signup-url { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 18px; font-size: 15px; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
:root:fullscreen { background: #fff; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .page-nav { min-height: 64px; width: calc(100% - 32px); }
  main { width: calc(100% - 32px); margin-top: 24px; }
  .signup-card { padding: 24px 20px; }
  .qr-page main { margin-top: 12px; }
  .qr-code { width: min(320px, 100%); margin-top: 12px; }
}
@media (max-height: 600px) and (min-width: 640px) {
  .qr-page main { width: min(820px, 100% - 40px); display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: center; }
  .qr-page .qr-copy { grid-column: 1; }
  .qr-code { grid-column: 2; grid-row: 1 / 5; max-height: calc(100dvh - 120px); width: auto; max-width: 100%; margin: auto; }
  .qr-page .signup-url, .qr-actions, .qr-page [role="status"] { grid-column: 1; justify-self: center; }
}
