:root {
  --ink: #17362c;
  --muted: #657068;
  --gold: #a87532;
  --line: #ddcfb9;
  --paper: #ffffff;
  --card: #ffffff;
  --serif: Georgia, 'Times New Roman', serif;
  --script: 'Snell Roundhand', 'Segoe Script', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.site-shell { width: min(100% - 32px, 980px); margin: 0 auto; }
.hero { position: relative; padding: 74px 20px 56px; border-bottom: 1px solid var(--line); text-align: center; }
.hero::before, .hero::after { position: absolute; top: 22px; color: var(--gold); font-family: var(--serif); font-size: 2rem; line-height: 1; }
.hero::before { left: 8%; content: '❦'; transform: rotate(-22deg); }
.hero::after { right: 8%; content: '❦'; transform: scaleX(-1) rotate(-22deg); }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 5.2rem); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.hero-script { margin-bottom: 18px; font-family: var(--script); font-size: clamp(2rem, 6vw, 3.5rem); color: var(--ink); }
.intro { max-width: 440px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
section { margin-bottom: 64px; }
.couple-photo { position: relative; max-width: 620px; margin: 0 auto 72px; padding: 10px 10px 34px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 42px rgba(31, 54, 43, .08); transform: rotate(-.7deg); }
.couple-photo::before, .couple-photo::after { position: absolute; top: 11px; color: var(--gold); font-family: var(--serif); font-size: 1.25rem; }
.couple-photo::before { left: 18px; content: '❦'; }
.couple-photo::after { right: 18px; content: '❦'; transform: scaleX(-1); }
.couple-photo img { display: block; width: 100%; max-height: 680px; object-fit: cover; object-position: center 58%; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; letter-spacing: -.03em; }
.section-heading h2::after { display: block; width: 74px; margin-top: 13px; border-bottom: 1px solid var(--gold); content: ''; }
.compact-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.compact-heading .eyebrow { margin-bottom: 0; }
.search-field { position: relative; display: block; }
.search-field input { width: 100%; padding: 20px 56px 20px 22px; border: 1px solid #bfc9bf; border-radius: 999px; outline: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(31, 54, 43, .06); }
.search-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(183, 131, 62, .13); }
.search-icon { position: absolute; top: 50%; right: 23px; color: var(--gold); font-size: 1.8rem; transform: translateY(-54%) rotate(-20deg); }
.search-hint { margin: 10px 20px 0; color: var(--muted); font-size: .82rem; }
.search-results { margin-top: 18px; }
.result-card, .table-card { border: 1px solid var(--line); border-radius: 3px; background: var(--card); box-shadow: 0 8px 25px rgba(31, 54, 43, .05); }
.result-card { padding: 22px; }
.result-card + .result-card { margin-top: 12px; }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.result-name { font-family: var(--serif); font-size: 1.5rem; }
.table-badge { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--gold); border-radius: 2px; background: #fff; color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.result-label { margin: 18px 0 8px; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.result-guests, .table-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: #42554b; font-size: .92rem; }
.result-guests li.match { color: var(--ink); font-weight: 700; }
.empty-result { padding: 18px 20px; border-left: 3px solid var(--gold); color: var(--muted); background: #fff; }
.chart-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 0 16px 50px rgba(31, 54, 43, .08); }
.chart-frame img { display: block; width: 100%; height: auto; }
.table-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.table-card { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 20px; }
.table-number { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 1.55rem; }
.table-card h3 { margin: 2px 0 12px; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.table-card ul { grid-template-columns: 1fr; gap: 6px; font-size: .86rem; }
.footer { padding: 4px 0 62px; color: var(--gold); font-family: var(--script); font-size: 1.7rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 640px) {
  .site-shell { width: min(100% - 24px, 500px); }
  .hero { padding: 54px 10px 40px; }
  section { margin-bottom: 48px; }
  .couple-photo { margin-bottom: 54px; padding: 7px 7px 29px; }
  .couple-photo img { max-height: 480px; }
  .compact-heading { display: block; }
  .compact-heading .eyebrow { margin-bottom: 10px; }
  .result-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .result-guests { grid-template-columns: 1fr; }
  .table-list { grid-template-columns: 1fr; gap: 12px; }
  .table-card { grid-template-columns: 50px 1fr; gap: 14px; padding: 16px; }
  .table-number { width: 50px; height: 50px; font-size: 1.3rem; }
}
