:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #d8e0ea;
  --brand: #f6821f;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.page-shell {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.2;
}

.form-header p,
.lede {
  margin-bottom: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #111827;
}

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

.panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgb(246 130 31 / 18%);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: #157347;
}

.form-status.error {
  color: #b42318;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 640px);
    padding: 36px 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  .panel {
    padding: 20px;
  }
}
