:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --text: #111;
  --muted: #626262;
  --border: #d8d4cc;
  --panel: #fff;
  --danger: #a42323;
  --danger-bg: #fff1f1;
  --focus: rgba(17, 17, 17, .18);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 1.55rem + 1vw, 2.45rem); line-height: 1.12; }
h2 { font-size: 1.15rem; line-height: 1.25; }
ul { margin: 0; padding-left: 1.2rem; }

.site-header, .site-footer { border-color: var(--border); border-style: solid; }
.site-header { border-width: 0 0 1px; padding: 1rem; }
.site-footer { border-width: 1px 0 0; padding: 1.25rem 1rem; color: var(--muted); font-size: .82rem; }
.site-header__inner, .site-footer__inner {
  width: min(100%, 64rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand, .site-nav { display: flex; align-items: center; }
.brand { gap: .55rem; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 2.35rem; height: 2.35rem; }
.site-nav { flex-wrap: wrap; gap: .65rem 1rem; font-size: .92rem; font-weight: 600; }
.site-nav a, .site-footer a { text-decoration: none; }
.site-footer p:last-child { display: flex; gap: 1rem; }

.container {
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: 3rem 1rem;
  flex: 1;
}
.builder-container { width: min(100%, 40rem); }
.stack { display: grid; gap: 1rem; }
.stack-tight { display: grid; gap: .85rem; }
.readable { max-width: 42rem; margin: 0 auto; }
.readable p { color: #414141; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.eyebrow {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero { margin-bottom: 3rem; }
.hero > p:first-of-type + h1 { max-width: 42rem; }
.hero > p:not(.eyebrow) { max-width: 40rem; color: #3f3f3f; }
.actions, .form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.actions { padding-top: .25rem; }
.form-actions { justify-content: space-between; padding-top: .75rem; }
.button {
  appearance: none;
  border: 1px solid var(--text);
  border-radius: .4rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: .55rem .9rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.button--primary { background: var(--text); color: #fff; }
.button:disabled { cursor: not-allowed; opacity: .48; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.grid-3 article, .notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: .45rem;
  padding: 1rem;
}
.grid-3 h2 { margin-bottom: .3rem; }
.grid-3 p, .notice { color: #444; font-size: .92rem; }
.address-block {
  border-top: 1px solid var(--border);
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding-top: 1.5rem;
  text-align: center;
}
.address-block img { height: auto; max-width: 10rem; }

.builder-panel {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
}
.builder-panel form {
  background: transparent;
}
.field { display: grid; gap: .3rem; }
.field label, .consent { font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .45rem;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: .62rem .72rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .button:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
[aria-invalid="true"] { border-color: var(--danger); }
.help { color: var(--muted); font-size: .78rem; }
.field-error, .submit-error { color: var(--danger); font-size: .9rem; font-weight: 650; }
.alert {
  border: 1px solid #efb4b4;
  border-radius: .45rem;
  background: var(--danger-bg);
  color: #7a1616;
  padding: .85rem;
}
.alert ul { margin-top: .4rem; }
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.review-list { display: grid; gap: 1.3rem; font-size: .93rem; }
.review-section { display: grid; gap: .5rem; }
.review-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: .45rem;
}
.empty { color: #8a8a8a; font-style: italic; }
.consent {
  border: 1px solid var(--border);
  border-radius: .45rem;
  background: #fff;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .85rem;
  font-size: .93rem;
}
.consent input { width: auto; margin-top: .2rem; }

@media (max-width: 720px) {
  .site-header__inner, .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .container { padding-block: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
}
