:root {
  --paper: #ffffff;
  --ink: #24211f;
  --muted: #716b67;
  --wine: #7b292b;
  --wine-dark: #5e1f21;
  --soft: #f9f6f3;
  --line: #e8dfd9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, a { font: inherit; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }
.skip-link { position: absolute; z-index: 10; top: -4rem; left: 1rem; padding: 0.7rem 0.9rem; color: white; background: var(--wine); }
.skip-link:focus { top: 1rem; }
.landing { min-height: 100svh; }
.event {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  max-width: 1450px;
  margin: 0 auto;
  padding: 1.8rem clamp(1.2rem, 4vw, 4.5rem) 1.2rem;
}
.event-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-decoration: none; }
.header-caption { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 0.9rem; font-style: italic; }
.event-content {
  display: grid;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(22rem, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  width: min(100%, 1130px);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vh, 4rem) 0;
}
.book-wrap { width: min(100%, 25rem); margin: 0 auto; }
.book-cover { display: block; width: 100%; height: auto; }
.book-wrap figcaption { max-width: 22rem; margin: 1rem auto 0; color: var(--muted); font-family: var(--serif); font-size: 0.81rem; font-style: italic; text-align: center; line-height: 1.5; }
.event-copy { width: 100%; max-width: 36rem; }
.eyebrow { margin-bottom: 1.35rem; color: var(--wine); font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.075em; line-height: 1.5; text-transform: uppercase; }
h1 { margin-bottom: 1.15rem; font-family: var(--serif); font-size: clamp(3.3rem, 6.7vw, 4.75rem); font-weight: 500; letter-spacing: -0.07em; line-height: 0.87; }
h1 em { color: var(--wine); font-weight: 500; }
.deck { max-width: 28rem; margin-bottom: 1rem; color: #494542; font-size: 0.97rem; line-height: 1.6; }
.live-menu { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1.45rem; color: var(--wine); }
.live-menu p { margin: 0; font-size: 0.84rem; line-height: 1.6; }
.live-indicator { flex: 0 0 0.35rem; width: 0.35rem; height: 0.35rem; align-self: center; border-radius: 50%; background: var(--wine); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-bottom: 1.65rem; color: var(--wine); font-family: var(--mono); font-size: 1.125rem; font-weight: 500; letter-spacing: 0.025em; line-height: 1.5; text-transform: uppercase; }
.meta-rule { width: 1.5rem; height: 1px; background: var(--muted); }
.rsvp-panel { padding: 1.4rem; border: 1px solid var(--line); border-top: 2px solid var(--wine); background: var(--soft); scroll-margin-top: 1.25rem; }
.desktop-rsvp { display: flex; align-items: center; gap: 1.45rem; }
.qr-tile { flex: 0 0 10rem; width: 10rem; padding: 0.4rem; background: white; border: 1px solid #eee7e2; }
.qr-tile img { display: block; width: 100%; height: auto; }
.scan-copy { flex: 1; min-width: 0; }
.action-label { margin-bottom: 0.65rem; color: var(--wine); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { margin-bottom: 0.65rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; letter-spacing: -0.045em; line-height: 1.08; }
h2 em { color: var(--wine); font-weight: 500; }
.scan-instructions { margin: 0; color: var(--muted); font-size: 0.77rem; line-height: 1.5; }
.manual-rsvp { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.manual-rsvp p { margin: 0; color: var(--muted); font-size: 0.7rem; }
.manual-rsvp strong { color: var(--wine); font-family: var(--mono); font-size: 0.67rem; font-weight: 500; }
.phone-number { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-family: var(--serif); font-size: 1.23rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; }
.copy-label { padding: 0.18rem 0.35rem; border: 1px solid #cbb9b5; color: var(--muted); font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.mobile-rsvp, .mobile-only { display: none; }
.cta-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.5rem; padding: 0.9rem 1rem; color: white; background: var(--wine); font-size: 0.81rem; font-weight: 700; letter-spacing: 0.015em; text-decoration: none; transition: background 180ms ease, transform 180ms ease; }
.cta-arrow { font-size: 1rem; }
.cta-button:hover, .cta-button:focus-visible { background: var(--wine-dark); transform: translateY(-2px); }
.fine-print { max-width: 33rem; margin: 1.1rem 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.6; }
.fine-print strong { color: var(--ink); font-weight: 600; }
.event-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.event-footer p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 0.59rem; letter-spacing: 0.055em; text-transform: uppercase; }
.toast { position: fixed; bottom: 1.5rem; left: 50%; z-index: 20; padding: 0.7rem 0.9rem; color: white; background: var(--wine); font-family: var(--mono); font-size: 0.68rem; opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

@media (min-width: 761px) and (max-width: 1100px) {
  .event-content { gap: 2rem; grid-template-columns: minmax(15rem, 0.8fr) minmax(23rem, 1.2fr); }
  .rsvp-panel { padding: 1.15rem; }
  .desktop-rsvp { gap: 1rem; }
  .qr-tile { flex-basis: 8.5rem; width: 8.5rem; }
  h2 { font-size: 1.65rem; }
  h1 { font-size: clamp(3rem, 6.3vw, 4.4rem); }
}

@media (max-width: 760px) {
  .event { padding: 1.1rem 1.15rem 1rem; }
  .event-header { justify-content: center; padding-bottom: 1.2rem; }
  .header-caption { display: none; }
  .event-content { grid-template-columns: 1fr; gap: 2.6rem; padding: 2.3rem 0; }
  .event-copy { justify-self: center; }
  .book-wrap { order: 2; width: min(70vw, 20rem); }
  h1 { font-size: clamp(3rem, 12vw, 4.75rem); }
  .desktop-rsvp, .desktop-only { display: none; }
  .mobile-rsvp { display: block; }
  .mobile-only { display: inline; }
  .mobile-rsvp h2 { margin-bottom: 0.65rem; font-size: 1.95rem; }
  .mobile-rsvp > p:not(.action-label) { margin-bottom: 1.15rem; color: var(--muted); font-size: 0.79rem; line-height: 1.6; }
  .mobile-rsvp > p strong { color: var(--wine); font-family: var(--mono); font-size: 0.75rem; }
  .rsvp-panel { padding: 1.25rem; }
  .manual-rsvp { gap: 0.5rem; }
  .manual-rsvp p { font-size: 0.66rem; }
  .manual-rsvp strong { font-size: 0.62rem; }
  .phone-number { font-size: 1.13rem; gap: 0.35rem; }
  .event-footer { align-items: flex-start; flex-direction: column; gap: 0.45rem; padding-top: 1rem; }
}

@media (max-width: 480px) {
  .eyebrow { margin-bottom: 1.15rem; font-size: 0.55rem; letter-spacing: 0.05em; }
  .deck { font-size: 0.94rem; }
  .event-meta { flex-direction: column; align-items: flex-start; gap: 0.25rem; font-size: 1rem; }
  .event-meta .meta-rule { display: none; }
  .live-menu p { font-size: 0.79rem; }
}

@media (max-width: 370px) {
  h1 { font-size: 2.8rem; }
  .meta-rule { width: 0.8rem; }
  .manual-rsvp { justify-content: center; }
  .copy-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
