:root {
    color-scheme: light;
    --ink: #514638;
    --muted: #786d60;
    --rose: #94694e;
    --border: #e9e0d6;
    --paper: #fbf8f3;
    --blush: #f3e5e2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.guest-page { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.guest-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.guest-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.guest-monogram { font-family: Georgia, serif; font-size: 1.8rem; letter-spacing: -.08em; }
.guest-monogram > span { font-style: italic; font-size: 1.25rem; padding: 0 .16em; color: var(--rose); }
.guest-brand-date { font-size: .65rem; letter-spacing: .15em; color: var(--muted); border-left: 1px solid var(--border); padding-left: 16px; }
.back-link { font-size: .8rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.back-link:hover, .guest-page-footer a:hover { color: var(--rose); }
.guest-heading { display: grid; grid-template-columns: 1fr 250px; align-items: center; gap: 48px; padding: 32px 0; animation: guest-enter .45s ease both; }
.eyebrow { margin: 0 0 13px; font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--rose); }
.guest-intro > .eyebrow { display: flex; align-items: center; gap: 9px; }
.guest-intro > .eyebrow > span { width: 20px; height: 1px; background: currentColor; flex-shrink: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; }
h1 { margin: 0 0 16px; font-size: clamp(2.35rem, 3.5vw, 3.15rem); letter-spacing: -.045em; }
.heading-dot { color: #bb8b76; }
.guest-description { max-width: 520px; color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.75; }
.guest-stats { display: flex; gap: 30px; margin-top: 23px; }
.guest-stats > div { display: flex; align-items: center; gap: 12px; }
.guest-stats > div + div { border-left: 1px solid var(--border); padding-left: 30px; }
.guest-stats strong { font-family: Georgia, serif; font-size: 2.35rem; font-weight: 400; line-height: 1; }
.guest-stats span { font-size: .72rem; line-height: 1.45; color: var(--muted); }
.guest-memory { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 0%, #f8efeb, #f1e8df); border: 1px solid #eadfd4; border-radius: 140px 140px 16px 16px; padding: 22px 20px; min-height: 190px; text-align: center; }
.wedding-rings { width: 84px; height: 58px; color: #a48160; margin-bottom: 12px; }
.memory-names { margin: 0; font-family: Georgia, serif; font-size: 1.6rem; letter-spacing: -.03em; }
.memory-names > span { color: var(--rose); font-style: italic; }
.guest-memory time { font-size: .65rem; color: var(--muted); margin-top: 5px; letter-spacing: .08em; }
.guest-panel { background: #fffdfb; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px #51463804; }
.guest-tools { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 30px 18px; }
.guest-list-heading .eyebrow { margin-bottom: 7px; font-size: .6rem; }
h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.025em; }
.guest-search { flex: 0 1 306px; min-width: 180px; }
.search-field { position: relative; }
.search-field svg { position: absolute; width: 18px; height: 18px; top: 50%; left: 14px; transform: translateY(-50%); color: #9b8e80; pointer-events: none; }
.guest-search input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid #e4d9cd; border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .8rem; appearance: none; }
.guest-search input::placeholder { color: var(--muted); }
.guest-filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 30px 18px; }
.guest-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--muted); padding: 9px 11px; font-size: .72rem; transition: background .16s ease, color .16s ease; }
.filter-button > span { font-size: .64rem; color: inherit; }
.filter-button:hover { background: #f6efe8; }
.filter-button[aria-pressed="true"] { color: #654e39; background: #f0e6da; border-color: #e9daca; }
.guest-order { flex-shrink: 0; max-width: 230px; }
.guest-order select { max-width: 100%; padding: 8px 4px 8px 10px; border: 0; background: transparent; color: var(--muted); font-size: .71rem; }
.guest-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; font-size: .83rem; }
.guest-table thead { background: #f6f0e9; }
.guest-table thead th { padding: 13px 30px; font-size: .65rem; text-transform: uppercase; letter-spacing: .09em; color: #776855; font-weight: 600; }
.guest-table thead th:nth-child(1) { width: 53%; }
.guest-table thead th:nth-child(2) { width: 23%; }
.guest-table thead th:nth-child(3) { width: 24%; }
.guest-table tbody th, .guest-table tbody td { padding: 17px 30px; border-bottom: 1px solid #f0e9e1; vertical-align: middle; }
.guest-table tbody th { font-weight: 500; overflow-wrap: anywhere; }
.guest-table tbody tr { transition: background .15s ease; }
.guest-table tbody tr:hover { background: #f9f4ee; }
.guest-table tbody tr.godparent-row { background: #fbf5f355; }
.guest-table tbody tr.godparent-row:hover { background: #f9efea; }
.guest-person { display: flex; align-items: center; gap: 13px; min-width: 0; }
.guest-avatar { flex: 0 0 35px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #e9dfd3; background: #f5efe7; border-radius: 50%; color: #99816a; font-family: Georgia, serif; font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 400; }
.godparent-row .guest-avatar { background: #f4e5e0; border-color: #ead6ce; color: #a56e58; }
.guest-side { color: var(--muted); font-size: .78rem; }
.cell-label { display: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-size: .71rem; white-space: nowrap; }
.tag-rose { background: #f1e1da; color: #8f5c49; }
.tag svg { width: 14px; height: 14px; }
.guest-no-role { color: var(--muted); font-size: .75rem; }
#guest-empty td { text-align: center; padding: 44px 20px; color: var(--muted); }
#guest-empty strong, #guest-empty td > span { display: block; }
#guest-empty strong { font-weight: 500; color: var(--ink); margin: 6px 0; }
#guest-empty td > span:last-child { font-size: .8rem; }
.empty-symbol { font-size: 2rem; color: #b58971; line-height: 1; }
.guest-panel-footer { display: flex; align-items: center; gap: 18px; padding: 17px 30px; font-size: .7rem; color: var(--muted); }
.guest-panel-footer p { margin: 0; }
#guest-clear { border: 0; padding: 0; color: var(--rose); background: none; font-size: .7rem; text-decoration: underline; text-underline-offset: 3px; }
.guest-footer-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.guest-footer-note > span { color: #b28570; font-size: 1rem; }
.guest-page-footer { padding: 26px 0 36px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .7rem; }
.guest-page-footer a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.closed-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.closed-card { width: min(560px, 100%); border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 6vw, 48px); background: #fffdfb; }
.closed-card .eyebrow { margin-bottom: 16px; }
.closed-card h1 { font-size: 2rem; letter-spacing: -.025em; }
.closed-card p { color: var(--muted); }
.closed-card .back-link { display: inline-flex; margin-top: 12px; }
@keyframes guest-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
    .guest-heading { grid-template-columns: 1fr 260px; gap: 36px; }
    .guest-filter-bar { flex-wrap: wrap; gap: 10px; }
    .guest-order { margin-left: auto; }
    .guest-table thead th, .guest-table tbody th, .guest-table tbody td { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 650px) {
    .guest-page { width: calc(100% - 32px); }
    .guest-nav { padding: 19px 0; gap: 12px; }
    .guest-monogram { font-size: 1.65rem; }
    .guest-brand-date { display: none; }
    .back-link { font-size: .71rem; }
    .guest-heading { display: block; padding: 31px 0 28px; }
    .guest-intro > .eyebrow { font-size: .58rem; letter-spacing: .1em; gap: 7px; margin-bottom: 15px; }
    h1 { font-size: clamp(2.4rem, 10.5vw, 3.4rem); margin-bottom: 16px; }
    .guest-description { font-size: .8rem; line-height: 1.7; max-width: 380px; }
    .guest-stats { gap: 22px; margin-top: 23px; }
    .guest-stats > div { gap: 10px; }
    .guest-stats > div + div { padding-left: 22px; }
    .guest-stats strong { font-size: 2rem; }
    .guest-stats span { font-size: .65rem; }
    .guest-memory { display: none; }
    .guest-tools { display: block; padding: 23px 20px 16px; }
    h2 { font-size: 1.3rem; }
    .guest-search { margin-top: 18px; min-width: 0; }
    .guest-search input { padding-top: 13px; padding-bottom: 13px; font-size: 16px; }
    .guest-filter-bar { display: block; padding: 0 20px 18px; }
    .guest-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
    .filter-button { padding: 10px 5px; font-size: .68rem; border-color: #eee5da; gap: 5px; }
    .guest-order { margin: 11px 0 0; max-width: none; text-align: right; }
    .guest-order select { font-size: .72rem; padding: 9px 0; }
    .guest-table, .guest-table tbody { display: block; }
    .guest-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    .guest-table tbody { padding: 0 14px 2px; }
    .guest-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; border: 1px solid #ece2d7; border-radius: 10px; margin-bottom: 10px; padding: 15px; }
    .guest-table tbody tr.godparent-row { background: #fcf5f1; border-color: #e9d6ca; }
    .guest-table tbody th, .guest-table tbody td { padding: 0; border: 0; min-width: 0; }
    .guest-table tbody th { grid-column: 1 / -1; margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid #eee4da; font-size: .86rem; }
    .guest-person { gap: 11px; }
    .guest-avatar { flex-basis: 34px; width: 34px; height: 34px; }
    .cell-label { display: block; margin-bottom: 4px; color: #806e5b; font-size: .59rem; font-weight: 400; }
    .guest-side { font-size: .78rem; }
    .guest-role-cell { text-align: right; }
    .tag { font-size: .7rem; padding: 4px 8px; }
    #guest-empty { display: block; }
    #guest-empty td { display: block; padding: 20px 0; }
    .guest-panel-footer { padding: 15px 20px; flex-wrap: wrap; gap: 10px 14px; border-top: 1px solid var(--border); }
    .guest-footer-note { display: none; }
    .guest-page-footer { flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 24px 0 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .guest-heading { animation: none; }
    .filter-button, .guest-table tbody tr { transition: none; }
}
