/* RustChecker invitation: the launcher palette and type, without an account form. */
:root {
  color-scheme: dark;
  --ground: #111312;
  --surface: #191c1a;
  --ink: #f1f2ed;
  --muted: #a5aaa3;
  --accent: #c5d2bd;
  --notice: #dfb899;
  --control: #3e453e;
  --body: "Manrope", Arial, sans-serif;
  --display: "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p { margin: 0; }
html { min-width: 280px; background: var(--ground); }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection { color: var(--ground); background: var(--accent); }

.forest {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  filter: saturate(.35) brightness(.3);
  pointer-events: none;
}

.forest-shade {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: var(--ground);
  opacity: .42;
  pointer-events: none;
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 48px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-family: var(--body);
  font-size: 21px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.brand-mark { display: inline-flex; flex-direction: column; gap: 7px; width: 25px; flex: none; transform: skew(-14deg); }
.brand-mark::before, .brand-mark::after { content: ""; display: block; width: 25px; height: 8px; background: currentColor; }

.header-note, .site-footer {
  font-size: 12px;
  color: var(--muted);
}

.invite {
  width: min(100%, 720px);
  margin: auto;
  padding: 34px 32px 40px;
  text-align: center;
}

.invite h1 {
  /* The oversized two-line title follows the requested launcher reference. */
  font-family: var(--display);
  font-size: clamp(84px, 10.5vw, 142px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.042em;
  line-height: .92;
  text-transform: uppercase;
}
.invite h1 span { display: block; }

.intro {
  max-width: 390px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: balance;
}

.invitation-state { margin-top: 42px; }
.state-copy { min-height: 72px; }
.state-title {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.state-description {
  max-width: 420px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-wrap: balance;
}
body[data-invite-state="loading"] .state-title { color: var(--ink); }
body[data-invite-state="invalid"] .state-title,
body[data-invite-state="expired"] .state-title,
body[data-invite-state="revoked"] .state-title,
body[data-invite-state="network-error"] .state-title,
body[data-invite-state="waiting-timeout"] .state-title { color: var(--notice); }

.invite-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 14px;
}

.primary-action, .connection-confirmed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(100%, 302px);
  min-height: 56px;
  padding: 15px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: var(--ground);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.primary-action:hover { background: var(--accent); }
.primary-action:disabled {
  color: var(--muted);
  background: var(--surface);
  cursor: wait;
}
.primary-action svg, .connection-confirmed svg { flex: none; width: 18px; height: 18px; }
.connection-confirmed { color: var(--accent); background: var(--surface); cursor: default; }
.return-link { color: var(--ink); background: var(--surface); }
.return-link:hover { background: var(--control); }

.download-line { margin-top: 17px; color: var(--muted); font-size: 12px; }
.download-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: 3px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.download-line a:hover { color: var(--accent); }
.download-line svg { width: 14px; height: 14px; }
.platform-note { margin-top: 2px; color: var(--muted); font-size: 11px; }
.site-footer { padding-top: 20px; padding-bottom: 24px; flex-wrap: wrap; row-gap: 0; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--ink); }
.photo-credit { width: 100%; color: var(--muted); font-size: 11px; line-height: 1.7; }
.photo-credit a { display: inline; min-height: 0; text-underline-offset: 3px; }
.photo-credit a:hover { text-decoration: underline; }
.no-script { margin-top: 24px; color: var(--notice); font-size: 14px; }

@media (max-width: 680px) {
  .site-header, .site-footer { padding-left: 24px; padding-right: 24px; }
  .site-header { padding-top: 20px; padding-bottom: 16px; }
  .header-note { max-width: 110px; text-align: right; font-size: 11px; line-height: 1.45; }
  .wordmark { font-size: 19px; }
  .invite { padding: 26px 24px 30px; }
  .invite h1 { font-size: clamp(62px, 16vw, 100px); line-height: .95; }
  .intro { max-width: 290px; margin-top: 24px; font-size: 14px; }
  .invitation-state { margin-top: 32px; }
  .state-copy { min-height: 82px; }
  .state-description { max-width: 300px; }
  .invite-actions { margin-top: 10px; }
  .site-footer { font-size: 11px; padding-top: 12px; padding-bottom: 14px; }
  .forest { object-position: 60% center; }
}

@media (max-height: 730px) and (min-width: 681px) {
  .site-header { padding-top: 14px; padding-bottom: 12px; }
  .invite { padding-top: 16px; padding-bottom: 16px; }
  .invite h1 { font-size: 105px; }
  .invitation-state { margin-top: 25px; }
  .site-footer { padding-top: 8px; padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
