:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f6f0;
  color: #172b32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 10%, rgb(214 106 60 / 14%), transparent 28rem),
    #f8f6f0;
}

a {
  color: #8a3d24;
}

header,
main,
footer {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

nav {
  display: flex;
  gap: 1rem;
}

main {
  padding-block: clamp(2.5rem, 8vw, 7rem);
}

.panel {
  max-width: 43rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgb(23 43 50 / 12%);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 76%);
  box-shadow: 0 1.5rem 5rem rgb(23 43 50 / 10%);
}

h1 {
  max-width: 15ch;
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 8vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 2.5rem;
}

p,
li {
  line-height: 1.65;
}

.lede {
  max-width: 42rem;
  color: #41545a;
  font-size: 1.15rem;
}

.button,
button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: #d66a3c;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary,
button.secondary {
  border: 1px solid rgb(23 43 50 / 20%);
  background: transparent;
  color: #172b32;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.notice,
.error {
  margin-block: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
}

.notice {
  background: #edf3f1;
}

.error {
  background: #fbe6df;
  color: #6a2815;
}

[hidden] {
  display: none !important;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1rem;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
}

dl[data-stale="true"] {
  opacity: 0.65;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

footer {
  padding-block: 2rem;
  color: #607075;
  font-size: 0.9rem;
}

@media (max-width: 38rem) {
  nav {
    gap: 0.65rem;
    font-size: 0.9rem;
  }

  dl {
    grid-template-columns: 1fr;
  }

  dd + dt {
    margin-top: 0.5rem;
  }
}
