:root {
  color-scheme: light;
  --text: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --link: #174ea6;
  --background: #ffffff;
  --panel: #f8fafc;
  --danger: #9b1c1c;
  --success: #0f6b3e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: var(--link);
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.top-nav a {
  text-decoration: none;
  font-size: 14px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 22px;
}

.meta {
  color: var(--muted);
  margin-bottom: 28px;
}

.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  margin: 22px 0;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

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

button {
  justify-self: start;
  border: 1px solid #111827;
  border-radius: 4px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  min-height: 24px;
  margin-top: 4px;
  font-weight: 600;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
