:root {
  --ink: #14213d;
  --paper: #f2f0eb;
  --accent: #c8532b;
  --surface: #e8e4dc;
  --muted: #4a5a74;
  --success: #2e7d4f;
  --danger: #8c2f14;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

h1 { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; margin: 0; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; margin: 0 0 0.75rem; }

main { max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.site-footer {
  border-top: 1px solid var(--surface);
  padding: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.muted { color: var(--muted); }

button {
  font: inherit;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
button.secondary { background: var(--danger); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.day-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.class-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px solid #d6d0c4;
}
.class-row:first-of-type { border-top: none; }
.class-info { flex: 1 1 220px; }
.class-time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.5rem; }
.class-name { font-weight: 600; }
.class-meta { color: var(--muted); font-size: 0.9rem; }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge.booked { background: var(--success); color: #fff; }
.badge.full { background: var(--muted); color: #fff; }

.booking-list { list-style: none; padding: 0; margin: 0; }
.booking-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.bookings {
  background: #fff;
  border: 1px solid var(--surface);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.auth-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.auth-form input {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

@media (max-width: 600px) {
  h1 { font-size: 1.2rem; }
  .site-header { padding: 1rem; }
}
