/* Reset, typography, forms, accessibility */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.7 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
a { color: var(--maroon); text-decoration: none; transition: color .2s, border-color .2s; }
a:hover { color: var(--maroon-deep); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; color: var(--plum); letter-spacing: -.005em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: #54504b; max-width: 46ch; }
.eyebrow { display: block; font: 500 .74rem/1.3 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--maroon); margin-bottom: var(--s-4); }
.muted { color: var(--grey); }
.small { font-size: .875rem; }
.deva { font-family: var(--font-deva); font-weight: 500; }

/* forms */
label, .label { display: block; font: 500 .82rem/1.4 var(--font-ui); color: var(--ink); margin-bottom: .4rem; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s;
}
select { padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--maroon) 50%), linear-gradient(135deg, var(--maroon) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9a938c; }
input:hover, select:hover, textarea:hover { border-color: var(--brass); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(107, 38, 56, .14); }
input:user-invalid, select:user-invalid { border-color: #a63a3a; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--maroon); margin: 0; flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.req { color: var(--maroon); }

/* accessibility */
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--maroon); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
