:root {
  --ink: #29231f;
  --muted: #8b8178;
  --cream: #fff7fa;
  --line: #f2d8e1;
  --green: #5f9f78;
  --orange: #d98b52;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
body > header {
  position: relative;
  z-index: 10;
  background: #fff;
}
.schedule-page {
  max-width: 1400px;
  margin: auto;
  padding: 56px 5vw 90px;
  position: relative;
  z-index: 1;
}
.schedule-header {
  position: static;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 30px;
  width: 100%;
  padding: 0;
  margin-bottom: 34px;
}
.schedule-header > div {
  flex: 1 1 360px;
  min-width: 0;
}
.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font:
    700 clamp(32px, 4vw, 54px)/1.1 "Playfair Display",
    serif;
  margin: 0 0 12px;
}
.intro {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.month-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.legend {
  display: flex;
  gap: 24px;
  padding: 0;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 18px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}
.dot.booked {
  background: #d9a078;
}
.dot.closed {
  background: #9b9b9b;
}
.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}
.day-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.day-card.today {
  border: 2px solid var(--orange);
}
.day-card summary {
  list-style: none;
  cursor: pointer;
}
.day-card summary::-webkit-details-marker {
  display: none;
}
.day-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.day-card[open] .day-heading {
  border-bottom-color: transparent;
}
.day-heading span {
  font-size: 15px;
  font-weight: 700;
}
.day-heading strong {
  font:
    700 30px "Playfair Display",
    serif;
  grid-row: span 2;
}
.day-heading small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.slot-list {
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}
.slot {
  width: 100%;
  border: 1px solid #f0cad7;
  border-radius: 9px;
  background: #fff2f6;
  color: var(--ink);
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
}
.slot.available {
  border-color: #bddfcb;
  background: #f0fbf4;
  box-shadow: 0 0 0 3px #bddfcb33;
}
.slot b,
.slot em {
  display: block;
}
.slot b {
  font-size: 20px;
}
.slot em {
  color: var(--green);
  font-size: 15px;
  font-style: normal;
  margin-top: 4px;
}
.slot.booked {
  background: #f3f3f3;
  border-color: #dddddd;
  color: #999;
}
.slot.booked em {
  color: #999;
}
.slot.closed {
  background: #eeeeee;
  border-color: #d8d8d8;
  color: #999;
}
.slot.closed em {
  color: #999;
}
.slot:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.slot-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-message {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}
dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(430px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 70px #3d263055;
}
dialog::backdrop {
  background: #29231f66;
  backdrop-filter: blur(3px);
}
.booking-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: #fff;
}
.booking-form h2 {
  margin: 0;
  font:
    700 28px/1.15 "Playfair Display",
    serif;
}
.booking-summary {
  margin: 0 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--muted);
  font-size: 13px;
}
.booking-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #d98b5220;
}
.submit-booking {
  width: 100%;
  margin-top: 6px;
  text-align: center;
}
.close-dialog {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }
  body > header {
    padding: 18px 0 14px;
  }
  body > header .container,
  .schedule-page {
    width: min(100% - 32px, 420px);
  }
  nav {
    gap: 16px;
  }
  .logo {
    font-size: 24px;
    line-height: 1;
  }
  .logo span {
    font-size: 8px;
    letter-spacing: 2.5px;
    text-align: left;
  }
  nav .button {
    flex-shrink: 0;
    padding: 12px 18px;
    font-size: 12px;
    white-space: nowrap;
  }
  .schedule-page {
    padding: 34px 0 56px;
  }
  .schedule-header {
    display: block;
    margin-bottom: 18px;
  }
  .schedule-header h1 {
    max-width: 300px;
    font-size: 32px;
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .intro {
    display: block;
    max-width: 100%;
    line-height: 1.5;
    font-size: 13px;
    margin-bottom: 18px;
  }
  .month-button {
    width: 100%;
    margin-top: 0;
    padding: 13px 16px;
  }
  .legend {
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 12px;
    font-size: 12px;
  }
  .legend span {
    gap: 6px;
  }
  .schedule-grid {
    gap: 10px;
  }
  .day-card {
    border-radius: 12px;
  }
  .day-heading {
    padding: 15px 14px 13px;
  }
  .slot-list {
    padding: 0 14px 14px;
  }
  .slot {
    padding: 11px 8px;
  }
}
