:root {
  --bg: #0b0b0c;
  --bg-elev: #141416;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: #2a2a2e;
  --chip: #1c1c1f;
  --focus: #e4e4e7;
  --ok: #d4d4d8;
  --danger: #d4d4d8;
  --radius: 18px;
  --tap: 56px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100dvh;
}

.frame {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.wordmark-logo {
  display: block;
  width: min(240px, 78vw);
  height: auto;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  width: 100%;
  margin-top: 4px;
}

.top-meta {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.show-line,
.show-dates {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sync-badge {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 24px;
  max-width: 42rem;
}

form,
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

label,
legend {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.req {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: var(--tap);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
.chip:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.chip:has(input:checked) {
  background: #f4f4f5;
  color: #111;
  border-color: #f4f4f5;
}

.chip input {
  width: 18px;
  height: 18px;
  accent-color: #111;
}

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  margin: 0;
  font-weight: 500;
}

.check input {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex: none;
  accent-color: #f4f4f5;
}

.check small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
  line-height: 1.4;
}

.privacy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 8px 0 20px;
}

.submit {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 14px;
  background: #f4f4f5;
  color: #111;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.submit.compact,
.ghost {
  width: auto;
  min-height: 48px;
  padding: 0 18px;
  font-size: 1rem;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.form-error {
  color: var(--ink);
  background: #1c1c1f;
  border: 1px solid #3f3f46;
  padding: 12px 14px;
  border-radius: 10px;
}

.thanks {
  min-height: 60dvh;
  display: grid;
  align-content: center;
  text-align: center;
}

.thanks-kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.8rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.staff {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  padding: 24px;
}

.staff::backdrop {
  background: rgb(0 0 0 / 0.72);
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.staff-table-wrap {
  overflow: auto;
  max-height: 50dvh;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

  .frame {
    padding: 32px 32px 48px;
  }

  .wordmark-logo {
    width: 320px;
  }
}

@media (min-width: 1200px) {
  .frame {
    width: min(1080px, 100%);
  }
}
