/* ─────────────────────────────────────────────────────────
   Jonathon & Alexandra — shared styles for the guest pages
   Matches the invitation site: burgundy on cream, Cormorant
   ───────────────────────────────────────────────────────── */

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

:root {
  --burgundy:       #4a1c2a;
  --burgundy-light: #6b2c3e;
  --cream:          #f2ede7;
  --sage:           #7a9070;
  --petal:          #8b2a3c;
  --text:           #1a0810;
  --hairline:       rgba(74,28,42,0.15);
  --panel:          rgba(255,255,255,0.45);
}

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

body {
  background-color: var(--cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 22px 48px;
  padding-left:  max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}

/* ── Back link ── */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  text-decoration: none;
  opacity: 0.75;
  padding: 6px 0;
}
.back:hover { opacity: 1; }

/* ── Page header ── */
.page-head { text-align: center; margin: 10px 0 26px; }
.page-head .monogram {
  font-family: 'Cormorant', serif;
  font-size: 40px;
  color: var(--burgundy);
  letter-spacing: -3px;
  line-height: 1;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 12px;
}
.page-head .monogram span:last-child { font-size: 31px; }
.page-title {
  font-family: 'Cormorant', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.2;
  margin-bottom: 8px;
}
.page-sub {
  font-size: 16px;
  font-style: italic;
  color: var(--burgundy-light);
  line-height: 1.65;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 34px 0 22px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--burgundy);
  opacity: 0.3;
}
.divider-text {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

/* ── Search ── */
.search-wrap { position: relative; margin-bottom: 8px; }
.search-input {
  width: 100%;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  color: var(--text);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--burgundy);
  border-radius: 0;
  padding: 16px 44px 16px 46px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-input::placeholder { color: rgba(74,28,42,0.45); font-style: italic; }
.search-input:focus {
  box-shadow: inset 0 0 0 1px var(--burgundy);
  background: rgba(255,255,255,0.85);
}
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: var(--burgundy);
  fill: none; stroke-width: 1.4;
  opacity: 0.6;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: 0; background: none;
  color: var(--burgundy);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  display: none;
}
.search-clear.show { display: block; }
.search-note {
  font-size: 14px;
  font-style: italic;
  color: var(--burgundy-light);
  opacity: 0.8;
  padding: 2px 2px 0;
  min-height: 22px;
}

/* ── Cards ── */
.card {
  border: 1px solid var(--burgundy);
  background: var(--panel);
  padding: 22px 20px;
  margin-bottom: 14px;
}
.card-name {
  font-family: 'Cormorant', serif;
  font-size: 25px;
  color: var(--burgundy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy-light);
  opacity: 0.85;
}

/* Course rows */
.courses { margin-top: 16px; border-top: 1px solid var(--hairline); }
.course {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.course:last-child { border-bottom: 0; padding-bottom: 2px; }
.course-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--burgundy-light);
  opacity: 0.75;
  display: block;
  margin-bottom: 4px;
}
.course-dish {
  font-size: 18px;
  color: var(--burgundy);
  line-height: 1.45;
  display: block;
}
.course-dish.none { font-style: italic; opacity: 0.6; font-size: 16px; }

/* Dietary badges */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage);
  padding: 5px 11px;
  white-space: nowrap;
}
.badge.note {
  color: var(--burgundy-light);
  border-color: rgba(107,44,62,0.4);
  text-transform: none;
  letter-spacing: 0.5px;
  font-style: italic;
  font-size: 13px;
}

/* Empty / prompt states */
.empty {
  text-align: center;
  padding: 30px 16px;
  font-size: 17px;
  font-style: italic;
  color: var(--burgundy-light);
  opacity: 0.75;
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 22px 20px calc(30px + env(safe-area-inset-bottom));
  font-size: 13px;
  font-style: italic;
  color: var(--burgundy);
  opacity: 0.5;
  line-height: 1.8;
}
footer a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 560px) {
  .page-title { font-size: 36px; }
  .card { padding: 26px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
