/* liga.kortform.at: invite page. Tokens from the app's design/DESIGN.md (light + dark), same fonts as kortform.at.
   No external resources. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/BarlowCondensed-700.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexSans-400.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/IBMPlexSans-500.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/IBMPlexSans-600.woff") format("woff"); }

:root {
  color-scheme: light dark;
  --bg: #faf9f5;
  --banner: #f1efe4;
  --border: #e3e0d2;
  --text: #16150f;
  --text-2: #4a4842;
  --primary: #1f5c34;
  --on-primary: #ffffff;
  --avatar: #dff0e5;
  --on-avatar: #0f1a13;
  --icon-bg: #16150f;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --banner: #2f2e26;
    --border: #3a3930;
    --text: #f2f3f0;
    --text-2: #a19d93;
    --primary: #3ea56b;
    --on-primary: #0f1a13;
    --avatar: #1e3a2a;
    --on-avatar: #dff0e5;
    --icon-bg: #000000;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.app-banner { padding: 10px 12px 10px 16px; background: var(--banner); display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.app-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; background: var(--icon-bg); display: flex; align-items: center; justify-content: center; }
.app-banner-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.app-banner-text strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.app-banner-text span { font-size: 12px; color: var(--text-2); line-height: 1.3; }

.btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 24px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { color: var(--on-primary); filter: brightness(1.08); }
.btn-small { height: 36px; padding: 0 14px; border-radius: 18px; }
.btn-large { width: 100%; height: 48px; padding: 0 20px; }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 24px; }

.top { height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.top-sub { font-size: 13px; color: var(--text-2); }

main { flex-grow: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 8px 16px 24px; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 28px; background: var(--avatar); color: var(--on-avatar); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; }
.lead { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
h1 { margin: 4px 0 0; font-size: 22px; line-height: 28px; font-weight: 400; }
.meta { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.text { margin: 12px 0 0; font-size: 15px; line-height: 22px; }
.actions { margin-top: 20px; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.link-line { margin: 16px 0 0; font-size: 14px; }
.spinner { margin-top: 12px; width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { padding: 12px 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
footer span, footer a { line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
