:root {
  font:
    100%/1.5 'Inter',
    'Segoe UI',
    Arial,
    sans-serif;
  color: #202a37;
  background: #f4f6f9;
  color-scheme: light;
  --brand: #103547;
  --line: #c8d2db;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
.wrap {
  width: min(44rem, calc(100% - 2rem));
  margin: auto;
}
header {
  background: #142531;
  color: #fff;
  border-bottom: 3px solid #e7aa3c;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.1rem;
  gap: 0.75rem;
}
.top img {
  height: auto;
}
.top a {
  color: #fff;
}
main {
  padding-block: clamp(1.6rem, 5vw, 3.5rem) 1rem;
}
section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2.2rem);
  box-shadow: 0 5px 18px #1425310a;
}
h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}
h2 {
  font-size: 1.05rem;
}
.lead {
  font-size: 1.08rem;
  margin: 0 0 1.7rem;
  color: #425266;
}
a,
.link {
  color: #104f70;
  font-weight: 650;
  text-underline-offset: 0.18em;
}
form {
  display: grid;
  gap: 0.55rem;
}
label,
dt {
  font-weight: 650;
}
input,
select,
textarea {
  background: #fff;
  color: inherit;
  display: block;
  border: 1px solid #8092a1;
  border-radius: 0.45rem;
  min-height: 2.8rem;
  font: inherit;
  padding: 0.6rem 0.75rem;
  width: 100%;
}
textarea {
  resize: vertical;
}
#key {
  max-width: 16rem;
  font:
    1.4rem/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.18em;
}
button,
.primary,
.secondary {
  width: fit-content;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  background: var(--brand);
  color: white;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  margin: 0.6rem 0;
  display: inline-block;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.link {
  background: none;
  padding: 0.35rem 0;
  text-decoration: underline;
}
.secondary {
  color: var(--brand);
  background: #e7f1f5;
}
.note,
footer {
  font-size: 0.92rem;
  color: #46586b;
}
dl {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) 1.5fr;
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  gap: 0.6rem;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
output {
  display: block;
  font:
    1rem/1.5 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  padding: 0.65rem;
  background: #f0f4f7;
  border-radius: 0.4rem;
}
#status:not(:empty) {
  border-inline-start: 4px solid var(--brand);
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
}
#status[data-kind='success'] {
  border-color: #13704e;
}
#status[data-kind='alert'] {
  border-color: #a05016;
}
aside {
  padding: 0.4rem 0.25rem;
}
aside p {
  margin: 0.45rem 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2.3rem;
}
:focus-visible {
  outline: 3px solid #0875aa;
  outline-offset: 3px;
}
@media (max-width: 30rem) {
  .top img {
    width: 122px;
  }
  dl {
    grid-template-columns: 1fr;
  }
  dd {
    margin-bottom: 0.4rem;
  }
}
