:root {
  color-scheme: light;
  --bg: #e6eaee;
  --bg-raise: #f7f8f9;
  --ink: #1f2227;
  --muted: #3f4650;
  --line: #c4ccd6;
  --accent: #3f5f70;
  --accent-ink: #f7f8f9;
  --shadow: 0 10px 30px rgba(31, 34, 39, 0.06);
  --radius: 18px;
  font-family: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1f24;
  --bg-raise: #262d35;
  --ink: #e7edf2;
  --muted: #c7ced6;
  --line: #4a5560;
  --accent: #93afc2;
  --accent-ink: #1b1f24;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

html[data-theme="stellar"] {
  color-scheme: dark;
  --bg: #080c16;
  --bg-raise: rgba(16, 22, 36, 0.88);
  --ink: #e6eef8;
  --muted: #d0d8e0;
  --line: rgba(213, 228, 242, 0.28);
  --accent: #d5e4f2;
  --accent-ink: #080c16;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

html[data-theme="stellar"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 248, 252, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 28% 36%, rgba(238, 244, 252, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 64% 22%, rgba(244, 248, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 48%, rgba(232, 238, 246, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 40% 70%, rgba(240, 246, 252, 0.75) 0 1px, transparent 1.5px);
}

html.stellar-effects-ready[data-theme="stellar"] body::before {
  opacity: 1;
  animation: drift 32s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -12px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html.stellar-effects-ready[data-theme="stellar"] body::before {
    animation: none;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
}

body, .bar, main { position: relative; z-index: 1; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
}

.skip:focus {
  top: 12px;
  background: var(--bg-raise);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg-raise) 88%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand img { color: var(--ink); }

.theme {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme button,
.nav button,
.nav a {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
}

.theme button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.narrow { width: min(560px, 100%); margin: 0 auto; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; font-weight: 640; }
h1 { font-size: clamp(32px, 6vw, 48px); margin: 0 0 12px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 28px 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; }

.lede, .quiet { color: var(--muted); }
.lede { margin-top: 0; }

.banner, .hold {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 20px;
}

form, .card, .panel {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 18px;
}

label { display: block; margin: 14px 0 6px; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

textarea { min-height: 120px; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary, button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checks { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.checks label { display: flex; gap: 8px; align-items: center; margin: 0; }
.checks input { width: 20px; min-height: 20px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin-top: 0;
}

.card p { margin: 0 0 8px; }
.card .button, .card button { margin-top: auto; align-self: flex-start; }

.status { min-height: 1.4em; }
.status.error { color: #9b3d3d; }
html[data-theme="dark"] .status.error,
html[data-theme="stellar"] .status.error { color: #f0b4b4; }

.list { padding-left: 1.2em; }
.meta { color: var(--muted); font-size: 16px; }

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

@media (max-width: 720px) {
  .bar { align-items: flex-start; flex-direction: column; }
  button, .button, input, select { width: 100%; }
  .checks input, .theme button, .nav a, .nav button { width: auto; }
}
