/* Default event layout. Themes in /themes override the tokens or replace the layout. */
.muted { color: var(--muted); }

.ev {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.ev-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 40px;
}
.ev-top a { text-decoration: none; }
.ev-top a:hover { color: var(--ink); }

.ev-head { text-align: center; margin-bottom: 40px; }
.ev-cover {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 32px;
  background: var(--line);
}
.ev-kicker {
  display: inline-block; margin: 0 0 18px;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.ev-kicker:empty { display: none; }
.ev h1 {
  font: 400 clamp(44px, 11vw, 76px)/.98 var(--serif);
  letter-spacing: -.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ev-sub { font: italic 400 clamp(20px, 4.6vw, 26px)/1.3 var(--serif); color: var(--muted); margin: 0 0 14px; text-wrap: balance; }
.ev-host { font-size: 14px; color: var(--muted); margin: 0; }

.ev-facts {
  margin: 0 0 24px; padding: 0;
  border-top: 1px solid var(--line);
}
.ev-facts > div {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.ev-facts dt { font: 500 11px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ev-facts dd { margin: 0; font-size: 17px; }

.ev-cal { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.ev-cal .btn { padding: 10px 18px; font-size: 14px; }

.ev-details { font-size: 17px; line-height: 1.65; margin-bottom: 48px; }
.ev-details p { margin: 0 0 1em; }
.ev-details ul { padding-left: 1.2em; margin: 0 0 1em; }
.ev-details a { color: var(--accent); }

.ev h2 {
  font: 400 32px/1.1 var(--serif);
  margin: 0 0 16px;
}

.ev-subs { margin-bottom: 48px; }
.ev-subs ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev-subs a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 16px 2px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.ev-subs .t { font-size: 18px; }
.ev-subs .w { font: 12px var(--mono); color: var(--muted); }
.ev-subs .arrow { color: var(--accent); transition: transform .15s; }
.ev-subs a:hover .arrow { transform: translateX(3px); }

.ev-rsvp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 22px;
  margin-bottom: 40px;
}
.ev-rsvp > p { margin: -6px 0 18px; font-size: 15px; }
.rsvp-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg);
  padding: 11px 12px; font-size: 16px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--accent); }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; text-align: center; min-height: 52px;
  padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  font-size: 14px; font-weight: 500; line-height: 1.2;
  transition: background .15s, border-color .15s;
}
.choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.stepper { display: inline-grid; grid-template-columns: 46px 72px 46px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; background: var(--bg); }
.stepper button { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--surface); }
.field .stepper input { border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; padding: 11px 4px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.party { display: flex; flex-wrap: wrap; gap: 8px; }
.party-opt {
  min-width: 64px; min-height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 500 15px/1 var(--sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.party-opt:hover { border-color: var(--ink); }
.party-opt:active { transform: scale(.97); }
.party-opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.guests .stepper { margin-top: 2px; }
.party-sum { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.guest-names { display: grid; gap: 8px; margin-top: 4px; }
.guest-names:empty { display: none; }
.guest-name { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
.guest-name .gn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--mono); background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.guest-name input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 10px 12px; font-size: 16px; }
.food-note { margin: 0 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.food-note .k { display: block; font: 500 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.diet { gap: 10px; }
.rsvp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rsvp-done { font-size: 17px; margin: 0 0 18px; }

.ev-foot { text-align: center; font-size: 13px; color: var(--faint); max-width: 40ch; margin: 0 auto; }

@media (max-width: 420px) {
  .ev-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .choice { grid-template-columns: 1fr; }
  .choice span { min-height: 46px; }
}
