:root {
  --ink: #2b3230; --ink-soft: #6b7472;
  --paper: #fbfaf7; --card: #ffffff;
  --sage: #7d8f7b; --sage-deep: #55684f;
  --line: #e4e2da; --gold: #b49b5e; --err: #a4443c; --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Jost', sans-serif; font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.15; margin: 0; }
.page { max-width: 640px; margin: 0 auto; padding: 48px 20px 80px; }
.page.wide { max-width: 940px; }
.crest { text-align: center; margin-bottom: 40px; }
.crest .rule { width: 56px; height: 1px; background: var(--gold); margin: 18px auto 0; }
.crest h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
.crest .sub { color: var(--ink-soft); letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; margin-top: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; margin-bottom: 18px; }
.guest-name { font-size: 1.45rem; margin-bottom: 14px; font-family: 'Cormorant Garamond', serif; }
.field { margin: 14px 0; }
.field > label, .field > span.lbl { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; border: 1px solid var(--line); padding: 10px 18px;
  border-radius: 999px; transition: all .15s; cursor: pointer;
}
.choice input:checked + span { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.choice.decline input:checked + span { background: var(--ink-soft); border-color: var(--ink-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
select, input[type=text], input[type=password], textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font: inherit; color: var(--ink);
}
textarea { resize: vertical; min-height: 70px; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: 2px; }
.hotel {
  display: flex; align-items: flex-start; gap: 12px; background: #f4f6f1;
  border: 1px solid #dfe5d8; border-radius: 10px; padding: 14px; margin-top: 14px; cursor: pointer;
}
.hotel input { width: auto; margin-top: 4px; accent-color: var(--sage-deep); }
.btn {
  display: block; width: 100%; padding: 15px; border: none; border-radius: 999px;
  background: var(--sage-deep); color: #fff; font: inherit; letter-spacing: .05em; cursor: pointer;
}
.btn:hover { background: #46573f; }
.btn.small { width: auto; padding: 10px 22px; display: inline-block; }
.note { color: var(--ink-soft); font-size: .9rem; text-align: center; }
.error { color: var(--err); text-align: center; }
.thanks { text-align: center; padding: 60px 20px; }
.thanks h2 { font-size: 2rem; font-style: italic; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--ink-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-family: 'Cormorant Garamond', serif; font-weight: 500; }
.tag { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: #eef1ea; white-space: nowrap; }
.tag.warn { background: #f3e9e2; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.qr-item { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.qr-item .qr-box { display: flex; justify-content: center; margin-bottom: 8px; }
.qr-item small { color: var(--ink-soft); display: block; }
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
