:root {
  color-scheme: light;
  --ink: #222321;
  --muted: #545750;
  --red: #b41d16;
  --red-dark: #88140f;
  --paper: #faf7f2;
  --line: #dedbd5;
  --white: #fff;
  --width: 86rem;
  font: 100%/1.55 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: .16em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #2375a1; outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .8rem; line-height: 1.08; }
h1 { font-size: 3.25rem; }
h2 { font-size: 2.55rem; color: var(--red); }
h3 { font-size: 1.24rem; }
.wrap { width: min(var(--width), 100% - 7rem); margin-inline: auto; }
.skip { position: absolute; top: .65rem; left: .65rem; z-index: 2; padding: .6rem 1rem; background: #fff; }
.skip:not(:focus) { clip-path: inset(50%); }
.masthead { background: #fff; }
.masthead-inner, .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; min-height: 4rem; }
.wordmark { font-size: 1.75rem; font-weight: 800; color: var(--red); text-decoration: none; }
.masthead nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 2.35rem; }
.masthead nav a { color: var(--ink); font-weight: 600; text-decoration: none; padding: .45rem 0; }
.masthead nav a:hover { text-decoration: underline; }
.hero { position: relative; display: grid; align-items: center; min-height: 28rem; color: #fff; isolation: isolate; background: #282724; }
.hero picture { position: absolute; inset: 0; z-index: -1; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 19%; }
.hero-inner { padding-block: 4rem; }
.hero h1 { font-size: 4.4rem; margin-bottom: .4rem; }
.hero p { font-size: 1.55rem; font-weight: 600; margin-bottom: 1.75rem; }
.hero h1, .hero p { text-shadow: 0 1px 9px rgb(0 0 0 / 58%); }
.hero :focus-visible { outline-color: #fff; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 7px;
  color: #fff; background: var(--red); font-size: 1.03rem; line-height: 1.25;
  font-weight: 750; text-decoration: none; text-align: center;
}
.button:hover:not(:disabled) { background: var(--red-dark); }
.button:disabled { background: #ece9e4; color: #53514c; }
.hero .button { min-height: 3.6rem; padding-inline: 1.65rem; font-size: 1.18rem; }
.band { padding: 2.4rem 0; scroll-margin-top: 1rem; }
.availability, .training { background: var(--paper); }
.availability #availability-status { margin-bottom: .5rem; }
.opening-list, .entries { list-style: none; margin: .65rem 0 0; padding: 0; }
.opening-list li {
  display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 2fr) auto;
  gap: .55rem 1.5rem; align-items: center; padding: .8rem 1rem; border-top: 1px solid var(--line);
}
.opening-list li:last-child { border-bottom: 1px solid var(--line); }
.opening-list small { display: block; color: var(--muted); font-size: .875rem; }
.plain, .text-link {
  color: var(--red-dark); font-weight: 750; border: 0; background: none;
  padding: .22rem 0; text-underline-offset: .18em; text-decoration: underline;
}
.plain:hover, .text-link:hover { color: var(--ink); }
.followup { margin: .75rem 0 0; }
.about-grid, .training-grid, .contact-grid { display: grid; align-items: start; gap: 2rem; }
.about-grid { grid-template-columns: minmax(10rem, 22rem) minmax(0, 42rem); }
.about-grid > div { padding-top: .5rem; }
.portrait { width: 100%; max-height: 25rem; object-fit: cover; object-position: 50% 25%; border-radius: 8px; }
.lead { max-width: 46rem; font-size: 1.15rem; }
.training-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.training img { width: 100%; border-radius: 8px; }
.lesson-details { margin: 1.4rem 0 0; }
.lesson-details dt { font-weight: 750; margin-top: 1rem; }
.lesson-details dd { margin: 0; max-width: 37rem; }
.contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 69rem; }
.form { display: grid; gap: 1rem; }
.field { display: grid; align-content: start; gap: .2rem; }
.field label { font-weight: 700; }
.field input, .field textarea {
  display: block; width: 100%; min-width: 0; min-height: 2.8rem; padding: .6rem .7rem;
  border: 1px solid #888780; border-radius: 6px; color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; }
.trap { position: absolute; top: 0; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.selected-opening { background: var(--paper); border-inline-start: 3px solid var(--red); padding: .7rem 1rem; }
.selected-opening p { margin-bottom: .15rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.form-status { margin: 0; }
.form-status.error { color: var(--red-dark); }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; }
.footer { border-top: 1px solid var(--line); }
.footer .wordmark { font-size: 1.2rem; }
.policy { max-width: 48rem; }
.policy h2 { font-size: 1.65rem; margin-block: 1.6rem .5rem; }
.admin { max-width: 68rem; }
.admin .band { border-top: 1px solid var(--line); }
.admin .form { max-width: 45rem; margin-bottom: 1.2rem; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.entries li { padding: 1rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.entries p { margin-bottom: .4rem; white-space: pre-wrap; }
.entries li > :last-child { margin-bottom: 0; }
.entry-actions { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; }
.empty { color: var(--muted); }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero h1 { font-size: 3.55rem; }
  .hero p { font-size: 1.3rem; }
  .hero img { object-position: 40% 18%; }
  h2 { font-size: 2.15rem; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner { gap: .15rem; padding-block: .65rem .35rem; }
  .wordmark { font-size: 1.54rem; }
  .masthead nav { width: 100%; gap: .15rem 1.15rem; }
  .masthead nav a { font-size: .91rem; }
  .hero { min-height: 0; }
  .hero picture { position: relative; display: block; height: clamp(10rem, 48vw, 15rem); grid-row: 1; }
  .hero img { object-position: 68% 28%; }
  .hero-inner { padding-block: 1.2rem 1.5rem; }
  .hero h1 { font-size: 2.65rem; }
  .hero p { font-size: 1.06rem; margin-bottom: .9rem; }
  .hero .button { font-size: 1rem; min-height: 2.85rem; padding-inline: 1rem; }
  .band { padding-block: 1.7rem; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.9rem; }
  .opening-list li { grid-template-columns: minmax(0, 1fr) auto; gap: .22rem .65rem; padding-inline: 0; }
  .opening-list li > div { grid-column: 1; }
  .opening-list li > button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .opening-list li > strong { grid-column: 1; }
  .opening-list button { max-width: 8rem; text-align: end; }
  .about-grid, .training-grid, .contact-grid, .admin-fields { grid-template-columns: 1fr; gap: 1.05rem; }
  .portrait { width: min(100%, 19rem); max-height: 20rem; }
  .about-grid > div { padding: 0; }
}
