*, *::before, *::after { box-sizing: border-box; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; display: contents; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }
a { color: inherit; }

/* Typography */
.eyebrow {
  font-size: 12px; font-weight: 400; color: var(--brand-nude-deep);
  text-transform: uppercase; letter-spacing: 0.18em;
}
h1, h2, h3 { color: var(--ink-deep); word-break: keep-all; margin: 0; }
h1 { font-size: 40px; font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 24px; font-weight: 500; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
p  { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; letter-spacing: 0.02em;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  height: 56px; padding: 0 40px;
  background: var(--brand-nude-deep); color: #fff; font-size: 16px;
}
.btn-primary:hover { background: var(--brand-nude-deeper); }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }

.btn-outline {
  height: 48px; padding: 0 28px;
  background: transparent; color: var(--ink-deep);
  border-color: var(--line-strong); font-size: 15px;
}
.btn-outline:hover { border-color: var(--brand-nude-deep); color: var(--brand-nude-deep); }

/* Form fields */
.field { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.field label.field-label { font-size: 13px; font-weight: 500; color: var(--sub); letter-spacing: 0.02em; }
.field .required { color: var(--brand-nude-deep); margin-left: 4px; }

.input, .textarea {
  width: 100%; background: var(--paper-pure);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); padding: 0 18px; height: 52px;
  transition: border-color 0.15s ease;
}
.textarea { padding: 14px 18px; min-height: 120px; height: auto; line-height: 1.7; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus { outline: none; border-color: var(--brand-nude-deep); }
.input.is-error, .textarea.is-error { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); visibility: hidden; height: 0; overflow: hidden; }
.field.has-error .field-error { visibility: visible; height: auto; }

/* Radio / Checkbox (custom) */
.choice-group { display: flex; flex-direction: column; gap: var(--space-md); }
.choice-group.horizontal { flex-direction: row; flex-wrap: wrap; gap: var(--space-md); }
.choice {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer; user-select: none;
  padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-pure); transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 15px; color: var(--ink);
}
.choice:hover { border-color: var(--line-strong); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--line-strong); background: var(--paper-pure);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.choice input[type="radio"] ~ .mark { border-radius: 50%; }
.choice input[type="checkbox"] ~ .mark { border-radius: 4px; }
.choice input:checked ~ .mark { background: var(--brand-nude-deep); border-color: var(--brand-nude-deep); }
.choice input[type="radio"]:checked ~ .mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.choice input[type="checkbox"]:checked ~ .mark::after {
  content: ""; width: 6px; height: 10px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg) translate(-1px, -1px);
}
.choice input:focus-visible ~ .mark {
  outline: 2px solid var(--brand-nude-deep);
  outline-offset: 2px;
}
.choice:has(input:checked) { border-color: var(--brand-nude-deep); background: var(--brand-nude-soft); }

/* Screen reader only — visually hidden, AT-readable */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
