:root {
  color-scheme: light;
  --background: #f8f7f1;
  --text: #20291f;
  --muted: #4a604b;
  --panel: #e9efe3;
  --line: #cad7c3;
  --action: #214531;
  --action-text: #fff;
  font-family: system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #162019;
  --text: #f3f6ed;
  --muted: #b5c9b1;
  --panel: #223528;
  --line: #43614a;
  --action: #c6e3b6;
  --action-text: #163422;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
}

main {
  width: min(100%, 37rem);
  margin: 0 auto;
  padding: clamp(1.75rem, 8vw, 4rem) 1.25rem 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

header { margin-bottom: 1.5rem; }
p, h1 { margin: 0; }

.brand, .label {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

h1 {
  margin-top: .4rem;
  font-family: Georgia, serif;
  font-size: clamp(2.25rem, 8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow-wrap: anywhere;
}

.schedule, .location { padding: 1.25rem 1.5rem; }
.location { border-top: 1px solid var(--line); }
.weekday, .time { color: var(--muted); }
.weekday::first-letter { text-transform: uppercase; }

.date {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 9vw, 3.125rem);
  line-height: 1.18;
  margin-block: .2rem .35rem;
}

.place { margin-top: .2rem; font-weight: 600; }

button {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  background: var(--action);
  color: var(--action-text);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

button:disabled { opacity: .7; cursor: wait; }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
#status { margin-top: 1rem; color: var(--muted); }
#status:empty { margin: 0; }
