:root {
  color: #182019;
  background: #f7f4ec;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #125f42;
}

.shell {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.demo-header {
  border-bottom: 1px solid #ccd2c9;
  padding-block: 1rem;
}

.demo-header .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #182019;
  font-weight: 800;
  text-decoration: none;
}

.demo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo-main {
  padding-block: 3rem;
}

.demo-main h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  max-width: 56ch;
  color: #526057;
  font-size: 1.15rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  gap: 1rem;
}

.card {
  border: 1px solid #ccd2c9;
  border-radius: 0.8rem;
  background: white;
  padding: 1.2rem;
}

.button {
  display: inline-block;
  border-radius: 0.35rem;
  background: #166347;
  color: white;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #657068;
  border-radius: 0.3rem;
  padding: 0.65rem;
  font: inherit;
}

button {
  margin-top: 1rem;
  border: 0;
  border-radius: 0.35rem;
  background: #166347;
  color: white;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid #ec8826;
  outline-offset: 3px;
}

@media (max-width: 42rem) {
  .grid {
    grid-template-columns: 1fr;
  }
}
