:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --bg-hover: #182236;
  --text: #e8eef8;
  --muted: #8b9bb4;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --line: #1e2a40;
  --radius: 0.75rem;
  --bad: #f87171;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Outfit, system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(37, 99, 235, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.4;
}

.site-header,
main {
  width: min(40rem, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}

.site-header {
  padding-top: 1.75rem;
  padding-bottom: 0.5rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.session {
  margin: 0 0 1rem;
}

.session a {
  color: var(--muted);
  font-size: 0.85rem;
}

.session a:hover,
.session a:focus-visible {
  color: var(--text);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.jump a:hover,
.jump a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

section {
  padding: 1rem 0 0.5rem;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.links a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name hint"
    "host host";
  align-items: baseline;
  column-gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: inherit;
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.name {
  grid-area: name;
  font-weight: 600;
  font-size: 1.05rem;
}

.hint {
  grid-area: hint;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  justify-self: end;
}

.host {
  grid-area: host;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

main {
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .links {
    grid-template-columns: 1fr;
  }
}

.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sheet {
  width: min(24rem, 100%);
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.sheet h1 {
  font-size: 1.5rem;
}

.sheet label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.sheet input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.sheet input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.sheet button {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #07111f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sheet button:hover,
.sheet button:focus-visible {
  filter: brightness(1.08);
}

.err {
  margin: 0 0 0.75rem;
  color: var(--bad);
  font-size: 0.9rem;
}

.err:empty {
  display: none;
}

.lock {
  display: none;
  margin: 0;
  color: var(--muted);
}

body[data-locked="1"] .form-fields,
body[data-locked="1"] .err {
  display: none;
}

body[data-locked="1"] .lock {
  display: block;
}
