:root {
  color-scheme: light;
  --ink: #172f39;
  --muted: #4e626a;
  --line: #cbd8da;
  --teal: #155954;
  --surface: #fff;
  --canvas: #f5f8f8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  font:
    1rem/1.52 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
}
header {
  padding: 1rem clamp(1rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.38rem;
  font-weight: 750;
  letter-spacing: -0.07em;
  color: var(--ink);
}
.wordmark i {
  font-style: normal;
  text-align: center;
  line-height: 1.18;
  background: var(--teal);
  color: white;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
}
main {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 680px);
  gap: clamp(2rem, 7vw, 7rem);
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(2rem, 7vh, 5rem) 1.3rem;
}
aside {
  border-right: 1px solid var(--line);
  padding-right: 1rem;
}
ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3rem;
}
li {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
li span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 1.72rem;
  height: 1.72rem;
  flex: none;
}
li[aria-current] {
  font-weight: 700;
  color: var(--teal);
}
li[aria-current] span {
  background: var(--teal);
  color: white;
  border-color: transparent;
}
h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 0.1rem 0 0.65rem;
}
.lead,
.note,
small,
.help {
  color: var(--muted);
}
.lead {
  margin: 0.35rem 0 1.75rem;
  max-width: 58ch;
}
.note,
.help {
  font-size: 0.9rem;
}
form {
  display: grid;
  gap: 1rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}
input,
textarea,
select {
  font: inherit;
  font-weight: 450;
  border: 1px solid #a8b9bc;
  padding: 0.68rem 0.8rem;
  background: white;
  width: 100%;
  color: var(--ink);
  border-radius: 5px;
}
fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  margin: 0 0 0.4rem;
  padding: 0 0 1.25rem;
  min-width: 0;
}
legend {
  font-weight: 690;
  font-size: 1.1rem;
  padding: 0 0 0.75rem;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
button,
.primary {
  font: inherit;
  display: inline-block;
  width: fit-content;
  background: var(--teal);
  color: white;
  border-radius: 5px;
  border: 1px solid var(--teal);
  padding: 0.67rem 1.05rem;
  font-weight: 630;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.plain,
.secondary {
  background: transparent;
  color: var(--teal);
}
.plain {
  border: 0;
  padding-left: 0;
}
.actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.templates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.templates label {
  border: 1px solid var(--line);
  padding: 0.75rem;
  border-radius: 5px;
  align-content: start;
  cursor: pointer;
  background: white;
}
.templates label:has(:checked) {
  border: 2px solid var(--teal);
  padding: calc(0.75rem - 1px);
}
.templates input,
.check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--teal);
}
.templates small,
small {
  font-size: 0.8rem;
  font-weight: 450;
}
.check {
  display: flex;
  align-items: start;
  gap: 0.5rem;
}
.check input {
  flex: none;
}
dl {
  margin: 1.3rem 0;
}
dl > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--muted);
}
dd {
  font-weight: 640;
  text-align: right;
  overflow-wrap: anywhere;
  margin: 0;
}
#message {
  color: #8c342e;
}
code {
  font-size: 0.9em;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d79834;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  main {
    display: block;
    padding: 1rem;
  }
  aside {
    border: 0;
    margin: 0.2rem 0 1.6rem;
  }
  ol {
    display: flex;
    gap: 0.45rem;
  }
  li:not([aria-current]) {
    font-size: 0;
    gap: 0;
  }
  li span {
    font-size: 0.78rem;
  }
  li[aria-current] {
    margin-right: 0.3rem;
  }
  .twocol,
  .templates {
    grid-template-columns: 1fr;
  }
  .templates label {
    grid-template-columns: 1rem 1fr;
    align-items: center;
  }
  .templates small {
    grid-column: 2;
  }
  .templates input {
    margin: 0;
  }
  header {
    padding: 0.7rem 1rem;
  }
  h1 {
    font-size: 1.9rem;
  }
  dl > div {
    display: block;
  }
  dd {
    text-align: left;
  }
}
