:root {
  color-scheme: light;
  --ink: #191713;
  --dark: #151410;
  --cream: #faf7ee;
  --gold: #e9c77c;
  --muted: #605747;
  --rule: #d8cdb7;
  --serif: Georgia, "Times New Roman", serif;
  font: 100%/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ba8826; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header, .hero, .contact { color: var(--cream); background: var(--dark); }
.site-header { border-bottom: 1px solid #665539; }
.site-header nav { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.wordmark { margin-right: auto; text-decoration: none; font: 1.25rem/1.14 var(--serif); }
.wordmark span { display: block; color: var(--gold); font: 600 .75rem/1.5 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.nav-link { text-decoration: none; }
.button { display: inline-block; padding: 13px 21px; color: var(--ink); background: var(--gold); border-radius: 3px; text-decoration: none; font-weight: 700; }
.button:hover { background: #f8dda4; }
.compact { padding: 8px 15px; }
.hero { background: radial-gradient(ellipse at 79% 35%, #302518, var(--dark) 63%); }
.hero-layout { display: grid; grid-template-columns: 1.3fr .9fr; align-items: center; gap: clamp(30px, 7vw, 105px); padding-block: clamp(50px, 7vw, 92px); }
.motto { margin-bottom: 18px; color: var(--gold); font-size: .85rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(3.1rem, 6.1vw, 5.7rem); letter-spacing: -.055em; line-height: .99; }
h1 span { color: var(--gold); }
.hero-content > p:not(.motto) { color: #e1d8c9; max-width: 31rem; margin-top: 24px; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.secondary { text-underline-offset: 4px; }
.logo-panel { border: 1px solid #a78245; padding: 8px; background: #201a13; box-shadow: 0 22px 55px #0008; }
.logo-panel img { display: block; width: 100%; height: auto; }
.courses, .enroll { padding-block: clamp(48px, 7vw, 84px); }
.section-intro { margin-bottom: 28px; }
h2 { font-size: clamp(2.25rem, 4.3vw, 3.65rem); letter-spacing: -.045em; }
.section-intro p { margin-top: 10px; color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--rule); border-top: 3px solid #a9792d; background: #fffdf8; }
.course h3 { font-size: 1.6rem; flex: 1; }
.course .price { color: #704906; font: 2.35rem/1.2 var(--serif); margin-block: 17px 10px; }
.price span { font: 600 .9rem system-ui, sans-serif; }
.course p:last-of-type { color: var(--muted); }
.payment-link { margin-top: 16px; }
.payment-note { margin-top: 18px; color: var(--muted); }
.enroll { border-top: 1px solid var(--rule); background: #f1ecdf; }
.enroll .section-intro { text-align: center; }
.date-note { font-weight: 650; }
.footer-layout { display: flex; justify-content: space-between; gap: 24px; padding-block: 40px; }
.contact h2 { color: var(--gold); font-size: 1.8rem; margin-bottom: 10px; }
.contact-links { display: grid; align-content: center; gap: 4px; overflow-wrap: anywhere; }
.contact-links a { text-underline-offset: 4px; }
@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .hero-layout { gap: 30px; }
  .course { padding: 19px; }
  .course h3 { font-size: 1.45rem; }
}
@media (max-width: 620px) {
  .site-header nav { gap: 14px; min-height: 68px; }
  .nav-link { display: none; }
  .hero-layout, .course-grid { grid-template-columns: 1fr; }
  .logo-panel { max-width: 300px; width: 100%; }
  .footer-layout { flex-direction: column; }
  .enroll .shell { width: calc(100% - 18px); }
}
[hidden] { display: none !important; }
.application { max-width: 920px; margin-inline: auto; padding: clamp(18px, 4vw, 48px); border: 1px solid var(--rule); border-radius: 6px; background: #fffdf8; }
fieldset { min-inline-size: 0; padding: 0 0 24px; margin: 0 0 24px; border: 0; border-bottom: 1px solid var(--rule); }
legend, .receipt h3 { padding: 0; margin-bottom: 12px; font: 1.65rem/1.2 var(--serif); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 600; }
label input:not([type="checkbox"]), label select, label textarea { display: block; width: 100%; min-height: 46px; margin-top: 5px; padding: 9px 11px; border-radius: 3px; border: 1px solid #a69a85; color: var(--ink); background: #fff; font: inherit; font-weight: 400; }
label select { appearance: none; padding-right: 34px; background: linear-gradient(45deg, transparent 50%, #605747 50%) right 16px center / 6px 6px no-repeat, linear-gradient(135deg, #605747 50%, transparent 50%) right 10px center / 6px 6px no-repeat, #fff; }
label textarea { resize: vertical; }
small, .field-hint { color: var(--muted); font-weight: 400; }
.field-hint { margin: 0 0 14px; }
.field-grid + .field-hint { margin: 14px 0 0; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0; }
.check input { accent-color: #7e5a1f; width: 19px; height: 19px; flex: 0 0 auto; margin-top: 3px; }
.terms { background: #f5efe2; padding: 16px; border-left: 3px solid #b8893c; }
.terms p + p, .receipt p + p { margin-top: 8px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.receipt .form-actions { margin-top: 20px; }
button { cursor: pointer; border: 0; font: inherit; }
button:disabled { cursor: wait; opacity: .7; }
.outline { display: inline-block; padding: 12px 20px; border: 1px solid #987244; background: transparent; border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 650; }
.outline:hover { background: #f1e4cc; }
:where(input, select, textarea, button):focus-visible { outline: 3px solid #ba8826; outline-offset: 2px; }
.form-error { background: #fff1ed; color: #841a16; padding: 12px; margin-bottom: 14px; }
.screening { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 620px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .hero, .courses, .contact, .enroll .section-intro, .form-actions { display: none; }
  .enroll { background: white; padding: 0; }
  .application { border: 0; padding: 0; }
  textarea { field-sizing: content; }
}
.admin-title { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 20px; }
.admin-fields { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 10px 20px; }
.admin-fields dt { font-weight: 650; }
.admin-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .admin-fields { grid-template-columns: minmax(0, 1fr); }
}
