@charset "UTF-8";
:root {
  color-scheme: light;
  --royal: #1e4778;
  --royal-deep: #102b50;
  --rose: #2e5c8c;
  --rose-pale: #eaf1f8;
  --lavender: #f2f5f8;
  --gold: #c2a064;
  --ink: #26364b;
  --muted: #68778a;
  --paper: #fbfaf7;
  --line: #dbe3ed;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); color: white; background: var(--royal-deep); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px clamp(20px, 5vw, 74px); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--royal); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--serif); font-size: 18px; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.brand-copy span { color: var(--muted); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.header-link { padding: 11px 15px; color: var(--royal); border: 1px solid var(--royal); text-decoration: none; font-size: 12px; transition: color .2s ease, background .2s ease; }
.header-link:hover, .header-link:focus-visible { color: white; background: var(--royal); }
.hero { min-height: max(620px, calc(100svh - 82px)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 76px); padding: 36px clamp(24px, 8vw, 120px); background: var(--royal-deep); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 0; color: white; animation: rise-in .8s both; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 25px; color: #e3c88f; font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; }
.eyebrow::before { width: 31px; height: 1px; background: currentColor; content: ""; }
.hero h1 { max-width: 620px; margin: 0; font-family: var(--serif); font-size: 92px; font-weight: 500; line-height: .86; }
.hero h1 span { display: block; color: #d8e6f4; font-style: italic; }
.hero-subtitle { max-width: 395px; margin: 28px 0 0; color: #edf3f8; font-family: var(--serif); font-size: 27px; line-height: 1.15; }
.hero-date { margin: 25px 0 0; color: #e3c88f; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; }
.button-primary, .submit-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; color: white; background: var(--rose); border: 1px solid var(--rose); text-decoration: none; font-size: 13px; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.button-primary:hover, .button-primary:focus-visible, .submit-button:hover, .submit-button:focus-visible { color: white; background: #18395f; transform: translateY(-2px); }
.submit-button { width: 100%; border: 0; cursor: pointer; }
.submit-button:disabled { cursor: wait; opacity: .7; }
.hero-more { color: #f8edf1; font-size: 13px; text-decoration-color: #e2cbd8; text-underline-offset: 5px; }
.hero-photo { position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: visible; background: transparent; }
.hero-photo img { position: relative; inset: auto; display: block; width: auto; height: min(78svh, 800px); max-width: 100%; object-fit: contain; box-shadow: 0 0 0 1px var(--gold); animation: photo-in 1.1s both; }
.hero-photo::after { display: none; }
.photo-caption { position: absolute; z-index: 1; right: 28px; bottom: 24px; color: white; font-size: 11px; text-align: right; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.photo-caption a { text-underline-offset: 3px; }
.event-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 27px clamp(28px, 8vw, 120px); background: var(--rose-pale); }
.event-item { min-height: 83px; display: flex; flex-direction: column; justify-content: center; padding: 8px 25px; border-right: 1px solid rgba(16,43,80,.16); }
.event-item:first-child { padding-left: 0; }
.event-item:last-child { padding-right: 0; border-right: 0; }
.event-label { color: #61758e; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.event-value { margin-top: 6px; color: var(--royal-deep); font-family: var(--serif); font-size: 25px; font-weight: 600; }
.invitation { padding: 88px 26px 92px; text-align: center; }
.section-kicker { margin: 0 0 13px; color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: 2.1px; text-transform: uppercase; }
.invitation h2, .rsvp-heading h2 { margin: 0; color: var(--royal); font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 1; }
.invitation p:last-child { max-width: 570px; margin: 17px auto 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 25px auto 0; color: var(--gold); }
.ornament::before, .ornament::after { width: 45px; height: 1px; background: var(--gold); content: ""; }
.rsvp-section { padding: 78px clamp(24px, 8vw, 120px) 92px; background: var(--lavender); }
.rsvp-layout { max-width: 1100px; display: grid; grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.2fr); gap: clamp(40px, 8vw, 118px); margin: 0 auto; }
.rsvp-heading { align-self: start; padding-top: 9px; }
.rsvp-heading h2 { max-width: 370px; font-size: 56px; line-height: .97; }
.rsvp-heading p:not(.section-kicker) { max-width: 350px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.countdown { display: flex; align-items: baseline; gap: 10px; margin-top: 30px; color: var(--royal); }
.countdown strong { color: var(--rose); font-family: var(--serif); font-size: 40px; font-weight: 600; }
.countdown span { font-size: 12px; }
.rsvp-form { width: 100%; }
.form-field { margin-bottom: 23px; }
.attendance-fieldset { margin-right: 0; margin-left: 0; padding: 0; border: 0; }
.form-field label, .field-label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.form-field input, .form-field select { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #c5d2e1; border-radius: 0; }
.form-field input:focus, .form-field select:focus { border-color: var(--royal); outline: 2px solid rgba(30,71,120,.18); }
.presence-options { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c5d2e1; }
.presence-option { position: relative; }
.presence-option + .presence-option { border-left: 1px solid #c5d2e1; }
.presence-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.presence-option label { min-height: 48px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 10px; color: var(--royal); background: white; cursor: pointer; font-size: 12px; font-weight: 600; text-align: center; }
.presence-option input:checked + label { color: white; background: var(--royal); }
.presence-option input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: -3px; }
.companions-field[hidden], [hidden] { display: none !important; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-alert { margin: 0 0 22px; padding: 15px 17px; color: var(--royal-deep); background: white; border-left: 3px solid var(--royal); font-size: 13px; line-height: 1.55; }
.form-alert.error { color: #7b2628; border-left-color: #b54b50; }
.confirmation-dialog { width: min(520px, calc(100vw - 32px)); margin: auto; padding: 30px 26px 24px; color: var(--royal-deep); background: var(--paper); border: 1px solid var(--gold); text-align: center; box-shadow: 0 18px 60px rgba(16,43,80,.24); }
.confirmation-dialog::backdrop { background: rgba(16,43,80,.58); backdrop-filter: blur(2px); }
.confirmation-dialog p { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.35; }
.confirmation-dialog .confirmation-ornament { margin-bottom: 12px; color: var(--gold); font-size: 20px; }
.confirmation-close { min-height: 42px; margin-top: 22px; padding: 0 18px; color: white; background: var(--royal); border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.confirmation-close:hover, .confirmation-close:focus-visible { background: var(--royal-deep); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.response-frame { width: 0; height: 0; position: absolute; overflow: hidden; border: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px clamp(22px, 5vw, 76px); color: #edf3f8; background: var(--royal-deep); font-size: 11px; }
.site-footer p { margin: 0; }
.site-footer a { color: #e0c18b; text-underline-offset: 3px; }
.footer-mark { color: #e0c18b; font-family: var(--serif); font-size: 18px; }

/* Attendance page */
.list-page .site-header { min-height: 82px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .header-link { padding: 0; border: 0; }
.print-button { min-height: 42px; padding: 0 15px; color: white; background: var(--rose); border: 0; cursor: pointer; font-size: 12px; font-weight: 600; }
.print-button:hover, .print-button:focus-visible { background: #18395f; }
.page-intro { padding: 43px clamp(20px, 5vw, 74px) 39px; color: white; background: var(--royal-deep); }
.intro-inner { max-width: 1260px; margin: 0 auto; }
.page-intro .eyebrow { margin-bottom: 12px; }
.page-intro h1 { margin: 0; font-family: var(--serif); font-size: 54px; font-weight: 500; line-height: 1; }
.event-line { margin: 12px 0 0; color: #f2dfe7; font-size: 13px; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 clamp(20px, 5vw, 74px); background: var(--rose-pale); }
.summary-item { min-height: 100px; display: flex; flex-direction: column; justify-content: center; padding: 15px 24px; border-right: 1px solid rgba(16,43,80,.15); }
.summary-item:first-child { padding-left: 0; }
.summary-item:last-child { border-right: 0; }
.summary-value { color: var(--royal-deep); font-family: var(--serif); font-size: 35px; font-weight: 600; line-height: 1; }
.summary-label { margin-top: 8px; color: #61758e; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.list-page main { max-width: 1400px; margin: 0 auto; padding: 45px clamp(20px, 5vw, 74px) 80px; }
.table-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 17px; }
.table-title { margin: 0; color: var(--royal); font-family: var(--serif); font-size: 33px; font-weight: 600; }
.filter-controls { display: flex; align-items: end; gap: 12px; }
.filter-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.filter-field input, .filter-field select { min-height: 39px; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 0; font: inherit; font-size: 12px; }
.filter-field input { width: 210px; }
.filter-field input:focus, .filter-field select:focus { border-color: var(--royal); outline: 2px solid rgba(30,71,120,.16); }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.list-page table { width: 100%; min-width: 680px; border-collapse: collapse; }
.list-page th, .list-page td { padding: 14px 16px; text-align: left; }
.list-page th { color: white; background: #244a75; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.list-page td { color: var(--ink); border-top: 1px solid var(--line); font-size: 13px; }
.list-page tbody tr:nth-child(even) { background: #f7f9fb; }
.list-page tbody tr:hover { background: #edf3f8; }
.guest-name { color: var(--royal-deep); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.status-yes { color: #6c7c53; }
.status-no { color: #8b5a5e; }
.empty-state, .list-alert, .no-results { padding: 24px; color: var(--muted); background: var(--lavender); font-size: 13px; line-height: 1.6; }
.list-alert { margin-bottom: 20px; }
.list-alert.error { color: #7b2628; background: #f9e8e8; }
.no-results { text-align: center; }
.table-foot { display: flex; justify-content: space-between; gap: 15px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-in { from { opacity: .65; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr); min-height: max(560px, calc(100svh - 74px)); }
  .hero-copy { padding: 40px 0; }
  .hero h1 { font-size: 72px; }
  .rsvp-layout { gap: 42px; }
}
@media (max-width: 760px) {
  .summary { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .summary-item { min-height: 83px; padding: 12px 16px; border-bottom: 1px solid rgba(16,43,80,.15); }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(3), .summary-item:nth-child(4) { border-bottom: 0; }
  .summary-item:first-child { padding-left: 16px; }
  .summary-value { font-size: 30px; }
  .list-page main { padding-top: 34px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-controls { width: 100%; align-items: end; }
  .filter-field { flex: 1; }
  .filter-field input, .filter-field select { width: 100%; }
}
@media (max-width: 680px) {
  .site-header { min-height: 74px; padding: 12px 18px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy span { font-size: 9px; }
  .hero { min-height: auto; display: flex; flex-direction: column; gap: 0; padding: 20px 20px 48px; }
  .hero-copy { align-items: center; padding: 36px 8px 0; text-align: center; }
  .hero-photo { width: 100%; }
  .hero-photo img { height: min(70svh, 720px); max-width: 100%; }
  .eyebrow::before { display: none; }
  .hero h1 { font-size: 66px; }
  .hero-subtitle { font-size: 24px; }
  .hero-actions { justify-content: center; }
  .hero-date { line-height: 1.6; text-align: center; }
  .event-strip { grid-template-columns: 1fr; padding: 12px 25px; }
  .event-item, .event-item:first-child, .event-item:last-child { min-height: 70px; padding: 12px 0; border-right: 0; border-bottom: 1px solid rgba(16,43,80,.16); }
  .event-item:last-child { border-bottom: 0; }
  .event-value { font-size: 23px; }
  .invitation { padding: 70px 24px 72px; }
  .invitation h2 { font-size: 42px; }
  .rsvp-section { padding: 66px 24px 74px; }
  .rsvp-layout { grid-template-columns: 1fr; gap: 32px; }
  .rsvp-heading h2 { font-size: 49px; }
  .countdown { margin-top: 19px; }
  .list-page .site-header { min-height: 74px; padding: 12px 18px; }
  .header-actions { gap: 12px; }
  .header-actions .header-link { font-size: 11px; }
  .print-button { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .page-intro { padding-top: 35px; padding-bottom: 32px; }
  .page-intro h1 { font-size: 45px; }
  .summary { padding-right: 14px; padding-left: 14px; }
  .summary-item, .summary-item:first-child { padding-right: 10px; padding-left: 10px; }
  .summary-label { font-size: 9px; letter-spacing: .6px; }
  .list-page main { padding-right: 14px; padding-left: 14px; }
  .filter-controls { align-items: stretch; flex-direction: column; }
  .filter-field input, .filter-field select { width: 100%; }
  .list-page th, .list-page td { padding: 12px; }
  .table-foot { flex-direction: column; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: white; }
  .site-header, .filter-controls, .site-footer, .table-foot, .page-intro { display: none !important; }
  .summary { padding: 0; background: white; border-bottom: 1px solid #aaa; }
  .summary-item { min-height: 70px; }
  .list-page main { max-width: none; padding: 15px 0; }
  .table-toolbar { margin-bottom: 10px; }
  .table-title { color: black; }
  .table-wrap { overflow: visible; border-color: #999; }
  .list-page table { min-width: 0; }
  .list-page th { color: black; background: #eee !important; print-color-adjust: exact; }
  .list-page td { font-size: 11px; }
}
