:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: Canvas;
  color: CanvasText;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 10vw, 8rem);
}

.shell-wide {
  width: min(100% - 2rem, 62rem);
}

.card {
  border: 1px solid color-mix(in srgb, CanvasText 18%, transparent);
  border-radius: 1rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}

.success-card {
  border-color: color-mix(in srgb, #23a559 70%, CanvasText 30%);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

p {
  max-width: 68ch;
}

.status {
  margin-top: 2rem;
  font-weight: 650;
}

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, CanvasText 7%, transparent);
}

.notice p:last-child {
  margin-bottom: 0;
}

.link {
  color: LinkText;
  text-underline-offset: 0.2em;
}

.link:focus-visible,
.button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid Highlight;
  outline-offset: 3px;
}

.action-grid,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid color-mix(in srgb, CanvasText 24%, transparent);
  border-radius: 0.7rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-primary {
  background: CanvasText;
  color: Canvas;
}

.button-secondary {
  background: transparent;
  color: CanvasText;
}

.button-danger {
  background: #9e2233;
  color: white;
  border-color: #9e2233;
}

.inline-button {
  width: fit-content;
}

.method-panel {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, CanvasText 16%, transparent);
  border-radius: 0.75rem;
}

.method-panel summary {
  cursor: pointer;
  font-weight: 650;
}

.form-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, CanvasText 28%, transparent);
  border-radius: 0.55rem;
  background: Canvas;
  color: CanvasText;
}

.status-line {
  min-height: 1.6em;
  margin-top: 1rem;
  font-weight: 600;
}

.error-text {
  color: #d94b5f;
}

.recaptcha-box {
  min-height: 0;
  margin-top: 1rem;
  overflow-x: auto;
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  .button-row .button,
  .action-grid .button {
    width: 100%;
  }
}
