body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #1d1d1f;
  background: #fafafa;
}

header {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.brand {
  margin: 0;
  font-weight: 700;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

header nav form {
  margin: 0;
}

main {
  max-width: 56rem;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
}

input[type="email"],
input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  max-width: 32rem;
  box-sizing: border-box;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font: inherit;
}

.totals {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0 0 1rem;
}

.totals dt {
  font-size: 0.875rem;
  color: #555;
}

.totals dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.note {
  font-size: 0.875rem;
  color: #555;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: #fff;
}

th,
td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.num {
  text-align: right;
}

.replacement {
  font-style: italic;
  color: #555;
}

.error {
  color: #a1260d;
}

.field-error {
  margin-top: -0.75rem;
}

.confirm {
  padding: 0.5rem 0.75rem;
  background: #e8f4ea;
  border: 1px solid #b6d8bc;
}

button {
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
}
