:root {
  color-scheme: light;
  --brand: #ef6c00;
  --brand-dark: #b94f00;
  --ink: #201a17;
  --muted: #655d58;
  --line: #e7ddd7;
  --surface: #fffaf7;
  --white: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffb36f;
  outline-offset: 2px;
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

main {
  padding-block: 2.25rem 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 7vw, 2.7rem);
}

h2 {
  margin-top: 2rem;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
}

.card,
form {
  margin-block: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 24px rgb(69 43 27 / 6%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

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

input,
textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem;
  border: 1px solid #aa9e97;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.notice {
  padding: 1rem;
  border-left: 4px solid var(--brand);
  background: #fff0e3;
}

.form-status {
  min-height: 1.6em;
  margin-top: 1rem;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .card,
  form {
    padding: 1rem;
  }
}
