:root {
  color-scheme: light;
  font: 100%/1.55 system-ui, sans-serif;
  color: #231c1b;
  background: #faf7f3;
  --red: #9f2527;
  --deep-red: #721c21;
  --muted: #5f504d;
  --line: #e8ddd8;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--deep-red); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #9f2527; outline-offset: 3px; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .65rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.masthead { background: var(--deep-red); color: white; border-bottom: 4px solid #c28d4d; }
.masthead-inner { max-width: 74rem; margin: auto; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead a { color: white; }
.masthead a:focus-visible { outline-color: white; }
.brand { display: flex; align-items: center; gap: .65rem; min-height: 44px; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 50%; background: white; padding: .15rem; object-fit: contain; }
.home-link { flex: none; font-size: .86rem; }

main { width: min(100% - 2rem, 46rem); margin: clamp(2.4rem, 7vw, 4.75rem) auto 2.5rem; }
.eyebrow { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .5rem; }
h1, h2, p { margin: 0 0 .8rem; }
h1 { font-size: clamp(2.05rem, 6vw, 3.45rem); line-height: 1.06; letter-spacing: -.044em; }
h2 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
.intro { max-width: 58ch; margin-bottom: 1.65rem; color: var(--muted); font-size: 1.09rem; }
.muted, .after-card, small { color: var(--muted); font-size: .9rem; }

.card { margin-bottom: 1.2rem; padding: clamp(1.1rem, 4vw, 2rem); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: .65rem; background: #fff; box-shadow: 0 10px 26px #41231609; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.15rem; }
.field:has(textarea) { grid-column: 1 / -1; }
.field label { display: block; font-size: .94rem; font-weight: 700; margin-bottom: .25rem; }
.field small { display: block; margin-top: .2rem; }
.field input, .field textarea { width: 100%; min-height: 2.75rem; padding: .55rem .65rem; border: 1px solid #b6a9a4; border-radius: .3rem; font: inherit; color: inherit; background: #fff; }
.field textarea { resize: vertical; }
.field :is(input, textarea):focus { border-color: var(--red); }
form > .field, form > .form-grid { margin: 1.1rem 0; }

button, .button { display: inline-flex; align-items: center; min-height: 2.7rem; border: 1px solid var(--red); border-radius: .35rem; padding: .5rem .9rem; background: var(--red); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--deep-red); }
.secondary { background: #fff; color: var(--deep-red); }
.secondary:hover { background: #f8eeeb; }
.after-card { margin-top: 1.35rem; }
.notice { background: #fbebe8; border-left: 3px solid var(--red); color: var(--deep-red); padding: .65rem .85rem; }

footer { max-width: 72rem; margin: auto; padding: 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .88rem; }

main.program { width: auto; margin: 0; }
.program-shell { width: min(100% - clamp(2rem, 8vw, 6rem), 69rem); margin-inline: auto; }
.program-hero {
  background: repeating-linear-gradient(135deg, #ffffff06 0 1px, transparent 1px 19px), linear-gradient(112deg, #28161b, #511d25 75%, #621e27);
  color: #fff9f1;
  padding-block: clamp(2.75rem, 8vw, 6rem);
}
.hero-grid, .overview-grid, .appointment-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.75rem, 6vw, 5rem); align-items: start; }
.hero-grid { align-items: end; }
.program-hero .eyebrow, .help-strip .eyebrow { color: #f8cb95; }
.program-hero .eyebrow span { margin-inline: .35em; opacity: .7; }
.program h1, .program h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.program h1 { margin: .8rem 0 1rem; font-size: clamp(3.15rem, 9vw, 7.2rem); line-height: .91; letter-spacing: -.055em; }
.program h2 { font-size: clamp(1.95rem, 4vw, 3.15rem); line-height: 1.05; letter-spacing: -.035em; }
.program h3 { margin: 0 0 .4rem; font-size: 1.18rem; line-height: 1.3; }
.hero-intro { max-width: 35ch; color: #f9e6de; font-size: clamp(1.04rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: 1.5rem; }
.hero-actions a { color: #fff9f1; }
.hero-actions .button { border-color: #f8cb95; background: #f8cb95; color: #32191d; }
.hero-actions .button:hover { background: #ffe1b8; }
.program-hero :focus-visible, .help-strip :focus-visible { outline-color: #f8cb95; }
.hero-brief { padding: clamp(1.1rem, 3vw, 2rem); background: #2b171b90; border: 1px solid #f8cb9566; border-top: 3px solid #f8cb95; }
.hero-brief h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.hero-brief .hero-attribution { color: #f8cb95; font-size: .88rem; margin: 1rem 0 0; }
.program-nav { background: #f4e8dd; border-bottom: 1px solid var(--line); }
.program-nav .program-shell { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem clamp(1rem, 4vw, 2.5rem); padding-block: .4rem; }
.program-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 700; font-size: .9rem; }
.program-content { padding-block: clamp(2.5rem, 7vw, 5rem) 1.5rem; }
.program-section { scroll-margin-top: 1rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.program-section + .program-section { padding-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.deadline { border-left: 3px solid #ac783d; background: #f4e8dd; padding: .85rem 1rem; margin-top: 1.4rem; }
.deadline p { margin: .25rem 0 0; }
.building-list { margin: 0; padding-left: 1.5rem; }
.building-list li { padding: .65rem 0 .65rem .25rem; border-bottom: 1px solid var(--line); }
.building-list li::marker { color: var(--red); }
.program-steps { margin: 1.5rem 0 0; padding: 0; list-style-type: none; counter-reset: setup; }
.program-steps > li { counter-increment: setup; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(.8rem, 3vw, 1.5rem); padding: 1.2rem 0; border-top: 1px solid var(--line); }
.program-steps > li:last-child { padding-bottom: 0; }
.program-steps > li::before { content: "0" counter(setup); background: #f4e8dd; color: var(--deep-red); min-width: 2.5rem; padding: .32rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.program-steps p:last-child { margin-bottom: 0; }
.order-step { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; }
.order-step > div { flex: 1 1 19rem; }
.order-step .button { gap: .6rem; }
.order-qr { margin: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.order-qr img { display: block; border: 1px solid var(--line); margin-bottom: .25rem; }
.appointment-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.appointment-form { margin-bottom: 0; scroll-margin-top: 1rem; }
.appointment-qr { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1.4rem; padding: .9rem; border: 1px solid var(--line); background: #fff; }
.appointment-qr img { display: block; border: 1px solid var(--line); }
.appointment-qr > div { flex: 1 1 12rem; }
.appointment-qr p { margin: .2rem 0 .35rem; color: var(--muted); font-size: .9rem; }
.appointment-qr a { font-weight: 700; }
.owner-notes { margin: 1.4rem 0 0; }
.owner-notes dt { padding-top: .9rem; border-top: 1px solid var(--line); font-weight: 750; }
.owner-notes dd { margin: .25rem 0 1rem; color: var(--muted); }
.help-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: clamp(1.25rem, 4vw, 2.35rem); background: #3f2026; color: #fff9f1; }
.help-strip h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.help-strip p:last-child { margin-bottom: 0; }
.help-strip address { display: grid; align-content: center; gap: .35rem; font-style: normal; }
.help-strip a { color: #fff9f1; }

@media (max-width: 48rem) {
  .hero-grid, .overview-grid, .appointment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 36rem) {
  .form-grid { grid-template-columns: 1fr; }
  .masthead-inner { padding-inline: 1rem; }
  .home-link { flex: 0 1 auto; text-align: right; }
}
