:root {
  color-scheme: dark;
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #031326;
  color: #eef5ff;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header, main, footer {
  max-width: 880px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #284466;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header > a {
  font-size: 1.35rem;
  font-weight: 750;
}
a {
  color: #72b8ff;
  text-underline-offset: 0.2em;
}
main {
  min-height: 70vh;
  padding-block: 36px;
}
h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.2;
}
h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}
p, label {
  overflow-wrap: anywhere;
}
section {
  padding: 24px;
  background: #102b49;
  border: 1px solid #345576;
  border-radius: 20px;
  margin-block: 28px;
}
button {
  font: inherit;
  line-height: 1.35;
  white-space: normal;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  margin: 12px 10px 0 0;
  border-radius: 28px;
  border: 1px solid #6eb2ff;
  background: #1683ff;
  color: #010b1a;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-block: 16px;
}
input {
  min-width: 22px;
  min-height: 22px;
  margin-top: 5px;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #b4e6ff;
  outline-offset: 4px;
}
#error {
  color: #ffc2c7;
}
[hidden] {
  display: none !important;
}
footer {
  border-top: 1px solid #284466;
  color: #afc2d9;
  font-size: 0.9rem;
}
@media (max-width: 500px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  header, main, footer {
    padding: 20px;
  }
  section {
    padding: 18px;
  }
  button {
    width: 100%;
    margin-right: 0;
  }
}
