:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

.contact-header .matches-theme-control {
  width: auto;
  margin-inline-start: auto;
  padding: .35rem .55rem;
  color: var(--text);
}

.page-shell.contact-shell { width: min(39rem, 100% - 2rem); }
.contact-shell h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.contact-field {
  display: grid;
  gap: .3rem;
  margin-bottom: 1rem;
}

.contact-field label { font-weight: 700; }
.contact-field p { margin: 0; }
.contact-field :is(input, textarea) { border-color: color-mix(in srgb, var(--text) 53%, var(--surface)); }
.contact-field [aria-invalid="true"] { border-color: var(--danger); }
.contact-shell :focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.contact-header :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.contact-form .primary-action { --success: #08783e; min-height: 3rem; }
