@font-face {
  font-family: Fraunces;
  src: url("./fonts/fraunces-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  --display: Fraunces, Georgia, serif;
  color: #272c25;
  background: #f7f3eb;
  --ink: #272c25;
  --muted: #555c50;
  --green: #234536;
  --line: #dcdcd0;
  --paper: #fffdf8;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #9a5621; outline-offset: 3px; }
.shell { width: min(100% - 32px, 760px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner, .brand, .toolbar, .course-top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-inner { min-height: 74px; }
.brand { justify-content: start; color: var(--ink); text-decoration: none; font: 550 clamp(1.25rem, 5vw, 1.7rem)/1 var(--display); }
.brand img { border: 1px solid #d3b889; border-radius: 12px; display: block; }
.brand small { display: block; margin-top: 4px; font: 500 .75rem "DM Sans", system-ui, sans-serif; color: var(--muted); }
main { padding-block: 26px 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font: 500 clamp(2.25rem, 8vw, 4rem)/1.04 var(--display); letter-spacing: -.035em; }
h2 { font: 530 clamp(1.22rem, 4vw, 1.52rem)/1.19 var(--display); }
h3 { font-size: 1rem; }
.lede, .note { color: var(--muted); line-height: 1.5; }
.lede { margin-block: 8px 22px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: clamp(12px, 4vw, 38px); padding-block: 10px 27px; }
.welcome h1 { font-size: clamp(1.95rem, 7.8vw, 4rem); text-wrap: balance; }
.welcome-schedule { margin-top: 12px; color: var(--green); font-weight: 700; line-height: 1.35; }
.welcome .lede { max-width: 36ch; }
.welcome-photo { display: block; width: clamp(68px, 23vw, 150px); height: auto; border-radius: 48% 48% 18px 18px; border: 1px solid #a69887; }
.welcome-login { display: inline-flex; align-items: center; gap: 32px; min-height: 50px; padding-inline: 18px; }
.inquiry p { color: var(--muted); line-height: 1.55; margin-block: 8px 14px; max-width: 56ch; }
.note { font-size: .89rem; }
.toolbar { margin-block: 0 12px; flex-wrap: wrap; }
.booking-guide { margin-block: 14px 20px; padding-inline-start: 13px; border-inline-start: 2px solid #a69887; }
.booking-guide h2 { font-size: 1.12rem; }
.booking-guide p { max-width: 62ch; margin-top: 5px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.button, .text-button { min-height: 46px; border-radius: 10px; padding: 9px 14px; font-weight: 650; }
.button { background: var(--green); color: white; border: 1px solid var(--green); }
.quiet { background: var(--paper); color: var(--green); border-color: #9ba99d; }
.button:disabled { border-color: var(--line); background: #eeeae0; color: #575952; }
.button[aria-pressed="true"]:not(.quiet) { background: #173c2a; box-shadow: inset 0 0 0 2px #b2d2ba; }
.quiet[aria-pressed="true"] { background: #eee4d3; color: #543922; border-color: #a78465; }
.text-button { background: transparent; border: 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.stack { display: grid; gap: 11px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 15px; box-shadow: 0 3px 12px #3c302007; }
.course-top { align-items: start; }
.date { display: grid; gap: 4px; }
.date strong { font-size: clamp(1rem, 4.5vw, 1.25rem); font-weight: 700; }
.status { border-radius: 25px; font-size: .78rem; font-weight: 700; padding: 5px 9px; background: #eeebe1; white-space: nowrap; }
.status.yes { color: #1d4933; background: #dbeadd; }
.status.no { color: #62432d; background: #eee4d3; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.actions .button { padding-inline: 5px; }
.course .note { margin-top: 8px; }
.contact { margin-top: 20px; display: flex; gap: 13px; align-items: center; }
.contact img { border-radius: 50%; flex: none; object-fit: cover; }
.contact p { margin-block: 4px; }
.footer { padding-block: 4px 16px; color: var(--muted); font-size: .8rem; justify-content: space-between; }
.footer .text-button { padding-inline: 0; }
dialog { width: min(100% - 24px, 475px); max-height: 90dvh; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #202b22a6; }
dialog h2 { padding-right: 32px; }
.close { position: absolute; top: 7px; right: 8px; font-size: 1.5rem; text-decoration: none; }
label { display: grid; gap: 4px; font-weight: 650; font-size: .9rem; }
input, textarea, select { width: 100%; padding: 8px 9px; min-height: 44px; color: var(--ink); background: white; border: 1px solid #a3ab9c; border-radius: 8px; }
.booking-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-options label { min-width: 0; }
.booking-dates { border: 0; padding: 0; margin: 0; min-width: 0; }
.booking-dates legend { padding: 0; margin-bottom: 5px; font-weight: 700; }
.booking-date { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 9px; min-height: 48px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.booking-date input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); }
.booking-date small { display: block; color: var(--muted); font-weight: 500; }
dialog ul { margin: 0; padding-inline-start: 22px; }
textarea { resize: vertical; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.health-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.health-check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); }
.error { color: #8e2d21; }
.qr svg { display: block; width: min(100%, 205px); height: auto; margin: auto; }
details > summary { cursor: pointer; padding-block: 4px; }
.groups { display: grid; gap: 14px; margin-top: 9px; overflow-wrap: anywhere; }
.groups p { margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 620px) {
  .courses, .groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  main { padding-top: 36px; }
  .card { padding: 18px; }
}

#health-panel, #health-panel .panel, #health-panel fieldset { display: grid; gap: 12px; }
#health-panel .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
#health-panel label.check { display: flex; align-items: start; gap: 8px; }
#health-panel label.check input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; flex: none; }
#health-panel output { overflow-wrap: anywhere; }
#health-panel button { min-height: 44px; border-radius: 8px; padding: 7px 12px; color: var(--green); border: 1px solid var(--line); background: var(--paper); }
#health-panel button[type=submit] { background: var(--green); color: white; }
#health-panel [hidden] { display: none; }
.footer nav { display: flex; gap: 10px; }
.page-status { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.admin-actions a.button { text-decoration: none; display: flex; align-items: center; }
