:root {
  color-scheme: light;
  --paper: #f2ede6;
  --surface: #fcfaf7;
  --ink: #29211c;
  --muted: #63564d;
  --line: #d6cbbf;
  --rust: #8b412c;
  --wash: #f2e5da;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
.wrap { width: min(72rem, calc(100% - 5rem)); margin-inline: auto; }
.masthead { min-height: 7rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.mark { display: grid; place-content: center; min-width: 4rem; min-height: 4rem; border: 1px solid var(--rust); text-align: center; text-decoration: none; }
.mark span:first-child { font: 1.65rem/1.2 var(--serif); letter-spacing: .17em; padding-left: .17em; }
.mark span:last-child { font-size: .56rem; letter-spacing: .23em; padding-left: .23em; }
.masthead-note, .footnote { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.masthead-note span { color: var(--rust); padding-inline: .4rem; }
.layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
main { padding-block: clamp(2.5rem, 8vw, 7rem); }
.intro { position: relative; padding-top: .5rem; }
.intro::after { content: ''; display: block; width: 3rem; height: 2px; margin-top: 2rem; background: var(--rust); }
.intro > p:not(.kicker) { max-width: 38ch; color: var(--muted); }
.intro h1 { font: 400 clamp(3.15rem, 6.8vw, 6.25rem)/.98 var(--serif); letter-spacing: -.065em; margin: .32em 0; }
.kicker { display: flex; align-items: center; gap: .9rem; color: var(--rust); text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; font-weight: bold; margin: 0; }
.pill { display: inline-block; white-space: nowrap; border: 1px solid #bda999; border-radius: 999px; padding: .15rem .6rem; color: var(--muted); font-size: .69rem; line-height: 1.45; letter-spacing: .035em; }
.done { background: #e7ebe0; border-color: #a2ab97; color: #3b4934; }
.panel { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--rust); padding: clamp(1.25rem, 4vw, 2.9rem); }
.panel h2 { font: 400 clamp(1.65rem, 3vw, 2.35rem)/1.13 var(--serif); margin: 0; letter-spacing: -.035em; overflow-wrap: anywhere; }
.status { color: var(--rust); margin: 0 0 1rem; font-size: .95rem; }
.status:empty { margin: 0; }
.switch { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.switch button { flex: 1; padding: .7rem .35rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); }
.switch button[aria-pressed='true'] { border-color: var(--rust); color: var(--rust); font-weight: bold; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
label { display: block; font-size: .95rem; }
label + label { margin-top: .8rem; }
input:not([type='checkbox']), select, textarea { display: block; width: 100%; margin-top: .22rem; padding: .68rem .75rem; border: 1px solid #b7aa9d; border-radius: 0; background: var(--surface); color: var(--ink); }
select:disabled, textarea:disabled { opacity: 1; background: var(--paper); color: var(--muted); }
a { color: var(--rust); text-underline-offset: .17em; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.hint { display: block; font-size: .83rem; color: var(--muted); margin: .32rem 0 .75rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; margin-block: .78rem; }
.check input { flex: none; width: 1.05rem; height: 1.05rem; margin: .23rem 0 0; accent-color: var(--rust); }
.check label { font-size: .87rem; }
.primary { display: flex; width: 100%; min-height: 2.85rem; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.2rem; padding: .6rem 1rem; border: 1px solid var(--rust); background: var(--rust); color: var(--surface); text-align: left; }
.primary:not(:disabled):hover { background: #6e3323; }
.admin-entry { text-decoration: none; }
.text-button { border: 0; background: transparent; color: var(--rust); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.auth-help { margin-top: 1rem; padding: .25rem 0; font-size: .85rem; }
.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.steps { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .65rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { margin: 0; font-size: .96rem; line-height: 1.4; }
.steps p, .steps a { margin: .22rem 0 0; font-size: .84rem; }
.step-number { color: var(--rust); font: 1rem/1.4 var(--serif); }
.intake-intro { margin-bottom: 2rem; }
.intake-intro::after { display: none; }
.intro .notice { max-width: 76ch; background: var(--wash); border-left: 3px solid var(--rust); padding: .9rem 1rem; color: var(--ink); }
.questionnaire { width: min(100%, 54rem); }
.questionnaire h2 { margin-top: .5rem; }
.questionnaire > p:not(.kicker) { color: var(--muted); }
fieldset { margin: 1.5rem 0 0; min-width: 0; border: 1px solid var(--line); padding: 1rem; }
legend { padding-inline: .3rem; font-weight: bold; }
legend .hint { display: inline; font-weight: normal; }
.phone-field, .password-field { margin-top: .8rem; }
.phone-controls { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .55rem; }
.phone-controls label + label { margin-top: 0; }
.phone-controls input, .phone-controls select { height: 2.75rem; }
.password-control { position: relative; }
.password-control input:not([type='checkbox']) { min-height: 2.75rem; padding-inline-end: 3rem; }
.password-toggle { position: absolute; inset-block: 0; inset-inline-end: 0; display: grid; place-items: center; width: 2.75rem; border: 0; background: transparent; color: var(--muted); }
.password-toggle:hover, .password-toggle[aria-pressed='true'] { color: var(--rust); }
.password-toggle:focus-visible { outline-offset: -4px; }
.password-toggle svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle[aria-pressed='false'] .password-slash { display: none; }
.field-error { color: var(--rust); }
.signup-agreements { margin: 1rem 0 .75rem; padding: .3rem .75rem .65rem; }
.signup-agreements legend { color: var(--muted); font-size: .83rem; }
.signup-agreements .check { margin: .28rem 0 0; }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.questions label { display: flex; flex-direction: column; margin: 0; }
.questions select { margin-top: auto; }
.questionnaire button { width: auto; }
.questionnaire kbd { background: var(--wash); border: 1px solid var(--line); border-radius: .25rem; padding-inline: .3rem; }
.screening-files { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; }
.screening-files h3 { margin: 0; font: 1.45rem var(--serif); }
.screening-files > p:not(.status) { color: var(--muted); font-size: .95rem; }
.screening-files details { border: 1px solid var(--line); padding: .75rem 1rem; margin-bottom: .65rem; }
.screening-files summary { cursor: pointer; color: var(--rust); font-weight: bold; }
.screening-files :is(summary, input) + label { margin-top: .7rem; }
.screening-files button + a:not([hidden]) { display: inline-block; margin-top: .65rem; }
.screening-files .status { margin-block: .75rem 0; }
.screening-files .status:empty { margin: 0; }
.footnote { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-block: 1.1rem; gap: 1rem; }

@media (max-width: 53rem) {
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  .panel { max-width: 43rem; }
  .intro h1 br { display: none; }
}

@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 5.3rem; }
  .questions { grid-template-columns: 1fr; }
  .steps li { gap: .42rem; }
}
