:root {
  color-scheme: light dark;
  font:
    17px/1.65 system-ui,
    sans-serif;
  color: #222;
  background: #f4f3ef;
}
body {
  margin: 0;
}
main,
header,
footer {
  max-width: 760px;
  margin: auto;
  padding: 24px;
}
header,
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header {
  border-bottom: 1px solid #ccc;
}
footer {
  border-top: 1px solid #ccc;
  margin-top: 40px;
  font-size: 14px;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #4263eb;
  outline-offset: 4px;
}
h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.15;
}
h2 {
  font-size: 24px;
  margin-top: 34px;
  line-height: 1.3;
}
li {
  margin: 8px 0;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  margin-right: auto;
}
.muted {
  color: #666;
}
button,
.button {
  display: inline-block;
  padding: 12px 18px;
  background: #222;
  color: white;
  border: 1px solid #222;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.danger {
  background: #a02626;
  border-color: #a02626;
}
button.secondary {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}
label {
  display: block;
  margin: 18px 0 8px;
}
input {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  padding: 12px;
  font: inherit;
}
.notice {
  padding: 16px;
  border: 1px solid #888;
  border-radius: 8px;
  margin: 20px 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
[role="alert"] {
  color: #a02626;
}
@media (prefers-color-scheme: dark) {
  :root {
    color: #eee;
    background: #161616;
  }
  .muted {
    color: #aaa;
  }
  button,
  .button {
    background: #eee;
    color: #161616;
  }
  button.danger {
    color: white;
    background: #b63737;
  }
  [role="alert"] {
    color: #ffa6a6;
  }
}
