*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 1rem/1.55 var(--body-font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { color: var(--select-ink); background: var(--select-fill); }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h2 { text-wrap: balance; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:where(section, main)[tabindex]:focus { outline: none; }

.frame { width: min(1200px, calc(100% - 2 * clamp(18px, 4.7vw, 68px))); margin-inline: auto; }
.section { padding-block: clamp(3.4rem, 7vw, 6.3rem); }
.site-header { border-bottom: 1px solid var(--line); }
.topbar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; font-size: 1.2rem; line-height: 1; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); font-size: .9rem; font-weight: 600; }
.topbar nav a { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.nav-action svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.section-lead { margin-bottom: 1.8rem; }
.section-lead p { color: var(--muted); margin-top: .7rem; max-width: 58ch; }
.section-lead h2 { font: var(--heading-weight, 500) 4.1rem/1 var(--heading-font); font-size: 4.1rem; letter-spacing: -.035em; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.form-heading h3 { font-size: 1.22rem; }
.fields { display: grid; gap: .7rem; }
.fields > * { min-width: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: .45rem; font-size: .94rem; }
label { display: block; font-size: .9rem; font-weight: 700; }
input:not([type=radio], [type=checkbox]), select, textarea {
  width: 100%; min-width: 0; min-height: 47px; display: block; margin-top: .3rem;
  background-color: var(--input); color: var(--ink); border: 1px solid var(--input-line);
  border-radius: 6px; padding: .58rem .7rem; font-size: 1rem; font-weight: 500;
  transition: border-color .16s ease-out;
}
input:not([type=radio], [type=checkbox]):hover, select:hover, textarea:hover { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--error); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 1.12rem; height: 1.12rem; margin: 0; flex: 0 0 1.12rem; }
select {
  appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%233D4544' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 17px; background-position: right .6rem center; background-repeat: no-repeat;
}
.label-note { color: var(--muted); font-size: .79rem; font-weight: 500; margin-left: .25rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 49px; padding: .7rem 1.18rem; border: 1px solid transparent;
  border-radius: 6px; font-size: .96rem; font-weight: 700; line-height: 1.25; text-decoration: none;
  transition: color .18s ease-out, background-color .18s ease-out, border-color .18s ease-out;
}
.button:hover { text-decoration: none; }
.button:disabled { cursor: progress; opacity: .78; }
.button svg, .icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; fill: none; }
.primary { color: var(--button-ink); background: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.secondary { color: var(--accent); background: transparent; border-color: var(--accent); }
.secondary:hover { background: var(--select-fill); }
.text-button {
  min-height: 44px; border: 0; background: none; color: var(--accent); padding: .2rem 0;
  font-weight: 700; font-size: .88rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
}
.text-button:hover { text-decoration-thickness: 2px; }
.error, .status { font-size: .85rem; line-height: 1.4; }
.error:not(:empty), .status:not(:empty) { margin-top: .42rem; }
.error, .status[data-state=error] { color: var(--error); }
.status[data-state=success] { color: var(--success); font-weight: 700; }
.inline-note { color: var(--muted); padding: .7rem 0; }
.fine-print { font-size: .84rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.65rem 2rem; }
.footer-layout { display: flex; align-items: flex-start; gap: 2rem; justify-content: space-between; }
.footer-layout p { color: var(--muted); font-size: .86rem; max-width: 67ch; }
.skip-link { position: absolute; top: .5rem; left: .75rem; z-index: 2; padding: .7rem 1rem; background: var(--page); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); white-space: nowrap; overflow: hidden; padding: 0; border: 0; }
@media (max-width: 900px) {
  .section-lead h2 { font-size: 3.4rem; }
}
@media (max-width: 650px) {
  .section-lead h2 { font-size: 2.7rem; }
}
@media (max-width: 540px) {
  .topbar { min-height: 62px; }
  .topbar nav a:not(.nav-action) { display: none; }
  .footer-layout { flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
