/* Mobile-first; schaalt naar bredere schermen. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  color: #e2e8f0;
  background: radial-gradient(120% 80% at 50% 0%, #1e293b 0%, #0f172a 45%);
}

.page {
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 640px) {
  .page {
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
  }
}

.card {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.card__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
}

.input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: #f8fafc;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
}

.input:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.btn {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
}

.btn--primary {
  margin-top: 0.25rem;
  color: #0f172a;
  background: #38bdf8;
}

.btn--primary:hover {
  background: #7dd3fc;
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--ghost {
  color: #e2e8f0;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn--ghost:hover {
  background: rgba(148, 163, 184, 0.12);
}

.msg {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}

.msg--error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.75rem;
}

.topbar__title {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.35rem);
}

.topbar__actions {
  flex-shrink: 0;
}

.content {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
}

.lead {
  margin: 0;
  color: #cbd5e1;
}

.actions {
  margin: 1.25rem 0 0;
}

.subnav {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

.subnav__link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 500;
  touch-action: manipulation;
}

.subnav__link:hover {
  text-decoration: underline;
}

.content--wide {
  max-width: 44rem;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
}

.link-list__link {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

.link-list__link:hover {
  text-decoration: underline;
}

.link-list__hint {
  font-size: 0.8125rem;
  color: #94a3b8;
  word-break: break-all;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}
