:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #1f2933;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9dee3;
}

nav a[aria-current="page"] {
  color: #1f2933;
  font-weight: 700;
  text-decoration: none;
}

header {
  padding: 32px 0 20px;
  border-bottom: 1px solid #d9dee3;
}

article,
form {
  padding-top: 8px;
}

h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin: 32px 0 10px;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.3;
}

p,
li,
label,
input,
select,
textarea,
button {
  font-size: 1rem;
  line-height: 1.6;
}

p {
  margin: 10px 0;
}

ul {
  margin: 10px 0;
  padding-left: 24px;
}

li + li {
  margin-top: 7px;
}

a {
  color: #0969da;
  text-underline-offset: 3px;
}

.muted {
  color: #5f6b76;
}

.notice {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid #c9d0d7;
  background: #f6f8fa;
}

fieldset {
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid #d9dee3;
}

legend {
  width: 100%;
  padding: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 700;
}

label {
  display: block;
  margin: 18px 0 7px;
  color: #111827;
  font-weight: 650;
}

.optional {
  color: #5f6b76;
  font-size: 0.9rem;
  font-weight: 500;
}

.hint {
  margin: 6px 0 0;
  color: #5f6b76;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #aeb7c0;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(9, 105, 218, 0.25);
  outline-offset: 2px;
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 500;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 3px 0 0;
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 11px 18px;
  border: 1px solid #1f2933;
  border-radius: 4px;
  background: #1f2933;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

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

.status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c9d0d7;
  background: #f6f8fa;
}

.status.success,
.status.error {
  display: block;
}

.status.error {
  border-color: #c92a2a;
  background: #fff5f5;
  color: #8a1c1c;
}

.footer-link {
  margin-top: 28px;
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 760px);
    padding-top: 22px;
  }

  header {
    padding-top: 26px;
  }
}

@media print {
  nav,
  form,
  .footer-link {
    display: none;
  }

  main {
    width: 100%;
    padding: 0;
  }
}
