/* schedule.sortilege.online — the rsvp/landing chassis (PLAN D14).
   Tokens, hero, fields, booking card, buttons, notices and the month grid are
   rsvp's own rules, copied as they stand in registration/styles.css; only the
   picker pieces at the end are new. Light only, like its siblings. */

:root {
  --paper:      #F0EBDD;
  --paper-alt:  #f7f2ec;
  --surround:   #DAD3C4;
  --ink:        #1F2730;
  --ink-soft:   #3d4650;
  --plum:       #58536c;
  --lilac:      #776ead;
  --coral:      #e46064;
  --gold:       #fdd5a5;
  --teal:       #638690;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --display:'Cinzel', Georgia, serif;
  --label:  'Bebas Neue', 'Arial Narrow', sans-serif;

  --rule: 1px solid rgba(31, 39, 48, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

/* An author `display` rule outranks the UA sheet's [hidden]; say it once. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surround);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}

.sheet {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}

/* ---------- Hero ---------- */

.hero { background: var(--coral); color: var(--paper); }

.hero__art { padding: 1.1rem; font-size: 0; }

.hero__art img { display: block; width: 100%; height: auto; }

/* The house line art is ink on white; multiply drops the white to coral. */
.hero__art.is-house img { mix-blend-mode: multiply; }

.hero__body { padding: 0.4rem 1.5rem 1.2rem; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.hero p {
  margin: 0.7rem 0 0;
  font-size: 0.98rem;
  line-height: 1.32;
  color: rgba(240, 235, 221, 0.95);
}

.rule-gold { width: 4.5rem; height: 3px; background: var(--gold); margin: 0.7rem 0 0; }

.hero__system {
  margin: 0 0 0.55rem;
  font-family: var(--label);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  line-height: 1.3;
  color: var(--gold);
}

.hero p.hero__system { margin: 0 0 0.55rem; color: var(--gold); }

/* ---------- Shared type ---------- */

.sec__head {
  display: flex;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(88, 83, 108, 0.4);
}

h2 {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-family: var(--label);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lilac);
}

.optional {
  flex: none;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--coral);
}

.field > label .optional { float: right; }

.lede { margin: 0 0 1.4rem; color: var(--ink-soft); font-size: 1.02rem; }

.kicker {
  margin: 0 0 0.5rem;
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--coral);
}

/* ---------- Form scaffold ---------- */

.form { padding: 0 0 3rem; }

.sec { padding: 2rem 1.5rem 2.25rem; border-top: var(--rule); }

.field { margin-top: 1.35rem; }

.field > label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--label);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.hint { margin: 0.25rem 0 0.5rem; font-size: 0.92rem; color: var(--ink-soft); font-style: italic; }

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid rgba(31, 39, 48, 0.28);
  border-radius: 2px;
}

textarea { min-height: 5.5rem; resize: vertical; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 1px;
}

.submit-bar { padding: 1rem 1.5rem 0; }

button[type="submit"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--label);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--plum);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--coral); }
button[type="submit"]:disabled { opacity: 0.55; cursor: progress; }

.consent { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.consent.is-error { color: var(--coral); }

/* Honeypot — off-canvas rather than display:none, which some bots skip. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.foot { padding: 1.5rem; border-top: 2px solid var(--plum); background: var(--paper-alt); }
.foot p { margin: 0 0 0.3rem; }
.foot__who { margin-top: 0.85rem; font-family: var(--label); font-size: 0.85rem; letter-spacing: 0.16em; color: var(--ink-soft); }
.foot__meta { font-size: 0.92rem; color: var(--teal); }

a { color: var(--lilac); text-decoration: none; }
a:hover { color: var(--coral); }

.tile { width: 3rem; height: auto; display: block; }

@media (min-width: 40rem) {
  .hero__art { padding: 1.7rem 2.5rem; }
  .hero__body { padding: 0.6rem 2.5rem 1.8rem; }
  .sec, .submit-bar, .foot { padding-left: 2.5rem; padding-right: 2.5rem; }
  .sec { padding-top: 2.5rem; padding-bottom: 2.75rem; }
}

/* ---------- Booking card ---------- */
/* A restatement of what is being booked, on every step, so nobody wonders. */

.booking {
  margin: 0 0 0.4rem;
  padding: 0.95rem 1.05rem 1rem;
  background: #fffdf7;
  border: 1px solid rgba(88, 83, 108, 0.3);
  border-left: 3px solid var(--coral);
  border-radius: 2px;
}

.booking__kicker {
  margin: 0 0 0.3rem;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--coral);
}

.booking__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--plum);
}

.booking__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.22rem 0.7rem;
  margin: 0.75rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(31, 39, 48, 0.14);
}

.booking__meta dt {
  margin: 0;
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--lilac);
}

.booking__meta dd { margin: 0; font-size: 0.9rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }

.booking__swap {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(31, 39, 48, 0.22);
}

.booking__swap:hover { color: var(--coral); border-bottom-color: var(--coral); }

.booking--done { border-left-color: var(--lilac); }

/* A button that reads as the swap link. */
.linkish {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(31, 39, 48, 0.22);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.pay {
  display: block;
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  font-family: var(--label);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--paper);
  background: var(--plum);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
}

.pay:hover { background: var(--coral); color: var(--paper); }

.ics-link {
  display: block;
  margin-top: 1.1rem;
  padding: 0.7rem 1rem;
  font-family: var(--label);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--plum);
  background: transparent;
  border: 1px solid rgba(88, 83, 108, 0.5);
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
}

.ics-link:hover { color: var(--paper); background: var(--plum); }

/* ---------- Notices ---------- */

.notice .kicker { margin-bottom: 0.4rem; }

.notice__title {
  margin: 0 0 1.3rem;
  font-family: var(--label);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
}

.notice .booking { margin-bottom: 1.3rem; }

/* ---------- Confirmation ---------- */

.done { padding-bottom: 1rem; }
.done__head { padding: 2rem 1.5rem 0; }

.done__title {
  margin: 0;
  font-family: var(--label);
  font-weight: 400;
  font-size: 2.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
}

.done__lede { margin: 0.8rem 0 0; color: var(--ink-soft); }
.done .sec { border-top: 0; }

.is-done .hero__art { display: none; }
.is-done .hero__body { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.is-done .hero h1 { font-size: 1.35rem; line-height: 1.1; }
.is-done .hero h1 br,
.is-done .hero p,
.is-done .rule-gold { display: none; }

@media (min-width: 40rem) {
  .done__head { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ---------- Chooser ---------- */

.sec--chooser { padding-top: 1.4rem; border-top: 0; }

.kinds { display: grid; gap: 0.9rem; }

.kind {
  display: block;
  padding: 1rem 1.1rem 1.05rem;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid rgba(88, 83, 108, 0.3);
  border-left: 3px solid var(--coral);
  border-radius: 2px;
}

.kind:hover { border-left-color: var(--plum); color: var(--ink); }
.kind p { margin: 0; }
.kind__length { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--coral); }
.kind__title { margin-top: 0.2rem !important; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--plum); }
.kind__pitch { margin-top: 0.4rem !important; font-size: 0.98rem; color: var(--ink-soft); }
.kind__go { display: inline-block; margin-top: 0.7rem; font-family: var(--label); font-size: 0.85rem; letter-spacing: 0.12em; color: var(--lilac); }

@media (min-width: 40rem) { .kinds { grid-template-columns: 1fr 1fr; } }

/* ---------- Month view (rsvp's) ---------- */

.calendar { margin-top: 1.4rem; }

.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.calendar__month {
  margin: 0;
  font-family: var(--label);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
}

.calendar__nav {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.95rem;
  color: var(--plum);
  background: transparent;
  border: 1px solid rgba(88, 83, 108, 0.45);
  border-radius: 50%;
  cursor: pointer;
}

.calendar__nav:hover { color: var(--paper); background: var(--plum); }
.calendar__nav:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--plum); }

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  background: rgba(88, 83, 108, 0.22);
  border: 1px solid rgba(88, 83, 108, 0.22);
}

.calendar__weekday {
  padding: 0.35rem 0;
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--lilac);
  background: var(--paper);
}

.calendar__cell {
  position: relative;
  min-width: 0;
  min-height: 3.4rem;
  padding: 0.2rem 0.15rem 0.25rem;
  background: #fffdf7;
}

.calendar__cell.is-empty { background: var(--paper); }

.calendar__day {
  display: block;
  font-family: var(--label);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-soft);
}

.calendar__cell.is-today .calendar__day { color: var(--paper); background: var(--coral); border-radius: 999px; }

.calendar__note { margin: 0.9rem 0 0; font-size: 0.88rem; font-style: italic; line-height: 1.35; color: var(--ink-soft); }

@media (min-width: 30rem) {
  .calendar__cell { min-height: 4.4rem; }
  .calendar__weekday { font-size: 0.76rem; }
}

/* ---------- Picker (new) ---------- */
/* Days with free times are buttons; the rest are quiet. The count is how many
   times that day offers, so a crowded day and a thin one look different. */

.zone { margin-top: 1.4rem; }

.calendar__cell.day.is-closed { background: var(--paper-alt); }
.calendar__cell.day.is-closed .calendar__day { color: rgba(61, 70, 80, 0.45); }

button.calendar__cell {
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: center;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

button.calendar__cell.has-times { background: #fffdf7; box-shadow: inset 0 -3px 0 var(--lilac); }
button.calendar__cell.has-times:hover { background: rgba(119, 110, 173, 0.14); }
button.calendar__cell.has-times .calendar__day { color: var(--plum); font-size: 0.85rem; }
button.calendar__cell.is-selected,
button.calendar__cell.is-selected:hover { background: var(--plum); box-shadow: inset 0 -3px 0 var(--coral); }
button.calendar__cell.is-selected .calendar__day,
button.calendar__cell.is-selected .day__count { color: var(--paper); }
button.calendar__cell:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; position: relative; z-index: 1; }

.day__count {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--label);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--lilac);
}

.picker__grid[aria-busy="true"] { opacity: 0.55; }

.times { margin-top: 1.5rem; }

.times__head {
  margin: 0 0 0.7rem;
  font-family: var(--label);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
}

.times__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: 0.5rem; }

.time {
  padding: 0.6rem 0.4rem;
  font-family: var(--label);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--plum);
  background: #fffdf7;
  border: 1px solid rgba(88, 83, 108, 0.5);
  border-radius: 2px;
  cursor: pointer;
}

.time:hover { color: var(--paper); background: var(--plum); border-color: var(--plum); }

.advice {
  margin: 1.1rem 0 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  background: rgba(119, 110, 173, 0.1);
  border-left: 3px solid var(--lilac);
}

.flash {
  margin: 1.2rem 0 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(228, 96, 100, 0.12);
  border-left: 3px solid var(--coral);
}

/* ---------- Manage page ---------- */

.actions { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.danger { color: var(--coral); border-color: rgba(228, 96, 100, 0.6); }
.danger:hover { color: var(--paper); background: var(--coral); border-color: var(--coral); }
.pay.danger { color: var(--paper); background: var(--coral); }
.pay.danger:hover { background: var(--plum); }
