:root {
  --parchment: #f3ead8;
  --paper: #fbf6e9;
  --ink: #321c18;
  --oxblood: #741f2a;
  --oxblood-dark: #4d141d;
  --amber: #c88331;
  --herb: #66745a;
  --rule: rgba(74, 42, 34, 0.28);
  --soft-rule: rgba(74, 42, 34, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: var(--sans);
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--oxblood-dark);
}
.skip-link:focus { transform: translateY(0); }

.masthead {
  min-height: 82px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.masthead-date { margin: 0; }
.masthead-actions { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.session-state { color: rgba(50, 28, 24, 0.62); font-size: 0.62rem; letter-spacing: 0.08em; }

.text-button {
  min-height: 44px;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(5rem, 10vw, 9.5rem) 5vw 5rem 7vw;
  border-right: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--oxblood);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  font: 400 clamp(4rem, 8.7vw, 9rem) / 0.88 var(--serif);
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 32rem;
  margin: 2.25rem 0;
  font: 400 clamp(1.05rem, 1.6vw, 1.4rem) / 1.55 var(--serif);
}

.primary-action,
.secondary-action {
  min-height: 50px;
  padding: 0.8rem 1.45rem;
  border: 1px solid var(--oxblood);
  border-radius: 0;
  color: var(--paper);
  background: var(--oxblood);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.primary-action:hover { background: var(--oxblood-dark); }
.primary-action:disabled, .secondary-action:disabled { opacity: 0.55; cursor: wait; }

.secondary-action {
  color: var(--oxblood);
  background: transparent;
}

.reply-note {
  display: inline-block;
  margin: 0 0 0 1rem;
  color: rgba(50, 28, 24, 0.7);
  font-size: 0.75rem;
}

.table-scene {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 131, 49, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(116, 31, 42, 0.035), transparent 50%);
}

.table-top {
  position: relative;
  z-index: 2;
  width: clamp(190px, 24vw, 330px);
  height: clamp(380px, 52vw, 650px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oxblood);
  border-radius: 50%;
  background: rgba(251, 246, 233, 0.48);
  box-shadow: inset 0 0 0 13px var(--parchment), inset 0 0 0 14px rgba(116, 31, 42, 0.25);
}

.table-top::before,
.table-top::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 42%;
  height: 1px;
  background: var(--amber);
  transform: translateX(-50%);
}
.table-top::before { top: 30%; }
.table-top::after { bottom: 30%; }

.table-label,
.table-top span:last-child {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.table-top strong {
  margin: 0.45rem 0 0.1rem;
  color: var(--oxblood);
  font: 400 clamp(4rem, 7vw, 7.5rem) / 1 var(--serif);
}

.seat {
  position: absolute;
  z-index: 3;
  width: 38px;
  height: 54px;
  border: 1px solid var(--herb);
  border-radius: 50% 50% 44% 44%;
  background: var(--parchment);
}
.seat::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(102, 116, 90, 0.35);
  border-radius: 50%;
}
.seat-1 { left: 16%; top: 14%; transform: rotate(-28deg); }
.seat-2 { left: 10%; top: 32%; transform: rotate(-12deg); }
.seat-3 { left: 10%; top: 54%; transform: rotate(12deg); }
.seat-4 { left: 17%; top: 73%; transform: rotate(28deg); }
.seat-5 { right: 16%; top: 14%; transform: rotate(28deg); }
.seat-6 { right: 10%; top: 32%; transform: rotate(12deg); }
.seat-7 { right: 10%; top: 54%; transform: rotate(-12deg); }
.seat-8 { right: 17%; top: 73%; transform: rotate(-28deg); }
.seat-9 { top: 5%; left: calc(50% - 19px); transform: rotate(90deg); }
.seat-10 { bottom: 5%; left: calc(50% - 19px); transform: rotate(90deg); }

.flourish {
  position: absolute;
  color: var(--herb);
  font-size: 2rem;
}
.flourish-one { top: 8%; right: 8%; transform: rotate(24deg); }
.flourish-two { bottom: 8%; left: 8%; transform: rotate(204deg); }

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.details article {
  position: relative;
  min-height: 285px;
  padding: 4rem 4vw 3rem;
  border-right: 1px solid var(--rule);
}
.details article:last-child { border-right: 0; }
.detail-number { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--amber); font: 1.1rem var(--serif); }
.detail-label { margin: 0 0 1.8rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.details h2 { margin: 0; font: 400 clamp(1.6rem, 3vw, 3.3rem) / 1.1 var(--serif); }

.host-note {
  min-height: 700px;
  padding: 8vw;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 8vw;
  color: var(--paper);
  background: var(--oxblood-dark);
}

.host-note .eyebrow { color: #dfb875; }
.host-note h2 { max-width: 820px; margin: 0 0 2rem; font: 400 clamp(3rem, 5.7vw, 6.6rem) / 0.98 var(--serif); letter-spacing: -0.04em; }
.host-note p:not(.eyebrow):not(.signature) { max-width: 650px; color: rgba(251, 246, 233, 0.76); font-size: 1.05rem; line-height: 1.75; }
.signature { margin-top: 2rem; color: #dfb875; font: italic 1.8rem var(--serif); }

.botanical {
  position: relative;
  height: 460px;
  max-width: 360px;
  margin: auto;
  border-left: 1px solid rgba(251, 246, 233, 0.5);
  transform: rotate(-8deg);
}
.botanical span,
.botanical i,
.botanical b,
.botanical em {
  position: absolute;
  width: 145px;
  height: 72px;
  border: 1px solid rgba(251, 246, 233, 0.6);
  border-radius: 100% 0 100% 0;
  transform-origin: left center;
}
.botanical span { top: 55px; transform: rotate(-30deg); }
.botanical i { top: 145px; transform: rotate(24deg) scaleX(-1); }
.botanical b { top: 245px; transform: rotate(-34deg) scale(0.86); }
.botanical em { top: 330px; transform: rotate(28deg) scale(-0.74, 0.74); }

.guest-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 570px;
  border-bottom: 1px solid var(--rule);
}
.section-heading { padding: 7vw; border-right: 1px solid var(--rule); }
.section-heading h2 { margin: 0; font: 400 clamp(3.2rem, 6vw, 6.8rem) / 0.94 var(--serif); letter-spacing: -0.04em; }
.guest-content { padding: 7vw; display: flex; flex-direction: column; justify-content: center; }
.guest-orbit { display: flex; margin-bottom: 2.5rem; }
.guest-orbit span {
  width: 58px;
  height: 58px;
  margin-left: -9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  background: var(--herb);
  font: 1.1rem var(--serif);
}
.guest-orbit span:first-child { margin-left: 0; background: var(--oxblood); }
.guest-orbit span:nth-child(2) { background: #bd7b4b; }
.guest-orbit span:nth-child(3) { background: #7a6955; }
.guest-orbit span:nth-child(4) { background: #9c4f45; }
.guest-orbit span:last-child { color: var(--ink); background: var(--amber); }
.guest-names { max-width: 650px; margin: 0 0 1rem; font: 400 clamp(1.8rem, 3.2vw, 3.5rem) / 1.2 var(--serif); }
.guest-note { max-width: 590px; color: rgba(50, 28, 24, 0.66); }

.updates-section { display: grid; grid-template-columns: 0.65fr 1.35fr; background: var(--paper); border-bottom: 1px solid var(--rule); }
.updates-heading { padding: 6vw; border-right: 1px solid var(--rule); }
.updates-heading h2 { margin: 0; font: 400 clamp(2.8rem, 5vw, 5rem) var(--serif); }
.updates-list { padding: 5vw 6vw; }
.update-note { padding: 2rem 0; border-bottom: 1px solid var(--soft-rule); }
.update-note:last-child { border-bottom: 0; }
.update-note time { display: block; margin-bottom: 0.75rem; color: var(--oxblood); font-size: 0.67rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.update-note p { max-width: 770px; margin: 0; font: 400 clamp(1.25rem, 2.3vw, 2.2rem) / 1.35 var(--serif); }
.loading-line { color: rgba(50, 28, 24, 0.65); }

.closing { padding: 9rem 1.5rem; text-align: center; color: var(--paper); background: var(--herb); }
.closing .eyebrow { color: #f0cf98; }
.closing h2 { margin: 0 0 2.4rem; font: 400 clamp(4rem, 8vw, 8.5rem) / 0.9 var(--serif); letter-spacing: -0.045em; }
.closing-flourish { display: block; margin-bottom: 2rem; color: #f0cf98; font-size: 1.8rem; }
.primary-action.light { border-color: var(--paper); color: var(--herb); background: var(--paper); }
.personal-status { min-height: 1.5rem; margin: 1.4rem auto 0; color: rgba(251, 246, 233, 0.85); }
.save-status { min-height: 1.25rem; margin: 0.25rem auto 0; color: rgba(251, 246, 233, 0.68); font-size: 0.78rem; }

footer { padding: 2rem 4vw; display: flex; justify-content: space-between; gap: 2rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

dialog {
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--oxblood);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 90px rgba(30, 12, 10, 0.35);
}
dialog::backdrop { background: rgba(40, 20, 17, 0.7); backdrop-filter: blur(3px); }
.dialog-shell { position: relative; padding: clamp(2rem, 5vw, 4rem); }
.dialog-shell::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--soft-rule); pointer-events: none; }
.dialog-shell h2 { margin: 0 3rem 1rem 0; font: 400 clamp(2.7rem, 6vw, 4.8rem) / 1 var(--serif); }
.dialog-intro { max-width: 580px; margin: 0 0 2rem; color: rgba(50, 28, 24, 0.72); }
.close-button {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

form label { display: block; margin: 0 0 1.3rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
form label small { float: right; color: var(--herb); font-size: 0.62rem; font-weight: 500; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 0.5rem;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}
textarea { min-height: 88px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.8rem; }
.form-status { min-height: 1.4rem; margin: 1rem 0 0; color: var(--oxblood); font-size: 0.84rem; }
.remove-action { margin-left: auto; }
.danger-action { color: var(--oxblood); }

#host-dialog { width: min(1100px, calc(100% - 2rem)); }
.host-dialog-shell { padding: clamp(2rem, 4vw, 3.5rem); }
.host-heading { display: flex; justify-content: space-between; align-items: start; gap: 2rem; margin-bottom: 2rem; }
.host-heading h2 { margin-bottom: 0; }
.host-claim { max-width: 610px; padding: 2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.host-claim p { margin-top: 0; }
.capacity-ledger { padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.capacity-ledger > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.capacity-ledger span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.capacity-ledger strong { color: var(--oxblood); font: 2.2rem var(--serif); }
.meter-track { height: 8px; margin: 1rem 0; overflow: hidden; background: rgba(102, 116, 90, 0.18); }
.meter-track span { display: block; width: 76%; height: 100%; background: var(--herb); transition: width 250ms ease; }
.capacity-ledger p { margin: 0; color: rgba(50, 28, 24, 0.65); font-size: 0.82rem; }
.host-update-form { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.host-update-form textarea { min-height: 80px; }
.host-update-ledger { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.host-update-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 0.65rem 0; }
.host-update-row p { margin: 0; font-size: 0.82rem; }
.guest-ledger { padding-top: 1rem; }
.ledger-group { padding: 1.5rem 0; border-bottom: 1px solid var(--soft-rule); }
.ledger-group h3 { display: flex; justify-content: space-between; margin: 0 0 1rem; color: var(--oxblood); font: 1.7rem var(--serif); }
.ledger-group h3 span { font: 0.7rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.ledger-empty { color: rgba(50, 28, 24, 0.55); font-style: italic; }
.guest-row { padding: 1rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; border-top: 1px dotted var(--rule); }
.guest-row:first-of-type { border-top: 0; }
.guest-row h4 { margin: 0; font: 1.2rem var(--serif); }
.guest-row p { margin: 0.25rem 0 0; color: rgba(50, 28, 24, 0.67); font-size: 0.78rem; }
.guest-row-controls { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 0.6rem; }
.guest-row-controls label { margin: 0; }
.guest-row-controls input { width: 64px; margin: 0; padding: 0.55rem; border: 1px solid var(--rule); }
.small-action { min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid var(--rule); color: inherit; background: transparent; cursor: pointer; font-size: 0.75rem; }
.host-foot { padding-top: 2rem; text-align: right; }
.toast { position: fixed; z-index: 120; right: 1.25rem; bottom: 1.25rem; max-width: 360px; padding: 1rem 1.2rem; color: var(--paper); background: var(--oxblood-dark); opacity: 0; transform: translateY(20px); pointer-events: none; transition: 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .masthead { grid-template-columns: 1fr auto; padding: 0 1rem; }
  .masthead-date { display: none; }
  .session-state { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 5rem 1.25rem 4rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  h1 { font-size: clamp(4rem, 20vw, 6.6rem); }
  .reply-note { display: block; margin: 1rem 0 0; }
  .table-scene { min-height: 620px; }
  .table-top { width: 190px; height: 410px; }
  .details { grid-template-columns: 1fr; }
  .details article { min-height: 220px; padding: 4rem 1.5rem 2.5rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  .details article:last-child { border-bottom: 0; }
  .host-note { padding: 5rem 1.5rem; grid-template-columns: 1fr; gap: 3rem; }
  .botanical { width: 210px; height: 320px; order: 2; }
  .botanical span, .botanical i, .botanical b, .botanical em { width: 105px; height: 52px; }
  .botanical span { top: 35px; }
  .botanical i { top: 105px; }
  .botanical b { top: 175px; }
  .botanical em { top: 240px; }
  .guest-section, .updates-section { grid-template-columns: 1fr; }
  .section-heading, .updates-heading { padding: 5rem 1.5rem 3rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  .guest-content, .updates-list { padding: 3rem 1.5rem 5rem; }
  .closing { padding: 7rem 1.25rem; }
  footer { flex-direction: column; gap: 0.2rem; }
  footer p { margin: 0.25rem 0; }
  .dialog-shell { padding: 3.5rem 1.5rem 2rem; }
  .host-heading { display: block; }
  .host-heading .text-button { margin-top: 0.8rem; }
  .guest-row { grid-template-columns: 1fr; }
  .guest-row-controls { justify-content: start; }
  .remove-action { margin-left: 0; }
}

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