:root {
  --ink: #242321;
  --muted: #716b64;
  --paper: #fbfaf7;
  --cream: #f3eee5;
  --rose: #b98272;
  --rose-dark: #936153;
  --sage: #7d8a73;
  --line: rgba(36,35,33,.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Montserrat, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.invitation-body { background-image: radial-gradient(circle at 20% 10%, rgba(185,130,114,.06), transparent 30%), linear-gradient(#fbfaf7, #f7f2e9); }
.invitation-section { position: relative; overflow: hidden; padding: 96px max(24px, calc((100vw - 1120px)/2)); }
.eyebrow { margin: 0 0 14px; font: 500 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .28em; color: var(--rose-dark); }
.fine-rule { width: 72px; height: 1px; margin: 24px auto; background: var(--rose); }
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(185,130,114,.16); border-radius: 50%; }
.hero::before { top: -160px; left: -80px; }.hero::after { right: -120px; bottom: -150px; }
.hero-inner { width: min(760px, 100%); }
.couple-art { width: min(480px, 90vw); margin: 4px auto 18px; filter: drop-shadow(0 16px 22px rgba(63,43,34,.08)); }
.hero h1, .simple-page h1 { margin: 0; font: 500 clamp(52px, 9vw, 102px)/.92 var(--serif); letter-spacing: -.035em; }
.hero h1 span, footer p span, .simple-page h1 span { font-style: italic; font-weight: 400; color: var(--rose-dark); }
.date-line { margin: 20px 0 0; font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { height: 56px; width: 1px; margin: 34px auto -44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; width: 1px; height: 20px; background: var(--rose-dark); animation: scroll 2s infinite; }
@keyframes scroll { from { top: -20px } to { top: 56px } }
.welcome { text-align: center; padding-top: 130px; padding-bottom: 130px; }
.welcome h2, .rsvp h2 { margin: 0; font: 500 clamp(42px, 7vw, 72px)/1 var(--serif); }
.lead { max-width: 650px; margin: auto; font: 400 clamp(22px, 3vw, 30px)/1.45 var(--serif); }
.events { background: #f2ece3; text-align: center; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.events-grid:has(.event-card:only-child) { grid-template-columns: minmax(0, 560px); justify-content: center; }
.event-card { position: relative; padding: 54px 42px 44px; border: 1px solid rgba(97,79,68,.25); background: rgba(255,255,255,.58); }
.event-number { margin: 0; font: 500 80px/.8 var(--serif); color: var(--rose-dark); }
.event-date { display: flex; justify-content: center; gap: 10px; margin: 12px 0 34px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event-card h3 { margin: 0; font: 500 36px/1 var(--serif); }
.event-time { margin: 10px 0 26px; color: var(--rose-dark); letter-spacing: .15em; }
.event-card > p:last-of-type { min-height: 78px; line-height: 1.75; color: var(--muted); }
.event-card strong { color: var(--ink); font-weight: 600; }
.outline-button, .primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--rose-dark); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 600; text-decoration: none; cursor: pointer; transition: .25s ease; }
.outline-button:hover { background: var(--rose-dark); color: #fff; }
.event-notes { margin: 36px auto 0; max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.event-notes p { margin: 6px; }
.countdown { text-align: center; padding-top: 110px; padding-bottom: 110px; }
.countdown-grid { display: flex; justify-content: center; gap: clamp(18px,5vw,68px); }
.countdown-grid div { display: grid; min-width: 70px; }
.countdown-grid strong { font: 400 clamp(48px,7vw,78px)/1 var(--serif); }
.countdown-grid span { margin-top: 8px; text-transform: uppercase; letter-spacing: .2em; font-size: 9px; color: var(--muted); }
.rsvp { background: #ebe5da; }
.rsvp-card { max-width: 720px; margin: auto; padding: 60px 70px; text-align: center; background: var(--paper); border: 1px solid var(--line); }
.rsvp-card > img { width: 180px; height: 180px; object-fit: contain; margin: -130px auto 8px; }
.rsvp-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.rsvp-form { margin-top: 34px; text-align: left; }
.rsvp-form fieldset { padding: 0; margin: 0 0 28px; border: 0; }
.rsvp-form legend { width: 100%; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 20px/1.2 var(--serif); }
.rsvp-form fieldset label { display: inline-block; margin: 0 16px 8px 0; cursor: pointer; }
.rsvp-form input[type=radio] { position: absolute; opacity: 0; }
.rsvp-form input[type=radio] + span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); font-size: 12px; }
.rsvp-form input[type=radio]:checked + span { border-color: var(--rose-dark); background: var(--rose-dark); color: #fff; }
.note-label { display: grid; gap: 9px; font: 500 18px/1.2 var(--serif); }
.note-label span { font: 400 10px var(--sans); color: var(--muted); }
textarea, .admin-body input, .admin-body select { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 14px; color: var(--ink); background: #fff; resize: vertical; outline: none; }
textarea:focus, .admin-body input:focus, .admin-body select:focus { border-color: var(--rose-dark); box-shadow: 0 0 0 3px rgba(185,130,114,.1); }
.primary-button { width: 100%; margin-top: 20px; border: 0; background: var(--ink); color: #fff; }
.primary-button:hover { background: var(--rose-dark); }
.flash { padding: 13px 16px; margin: 18px 0; border-left: 3px solid var(--sage); background: rgba(125,138,115,.12); font-size: 12px; line-height: 1.5; }
.flash.error { border-color: #a65353; background: rgba(166,83,83,.1); }
footer { padding: 74px 24px; text-align: center; background: var(--ink); color: #eee6db; }
footer img { width: 105px; height: 105px; object-fit: contain; margin: auto; filter: grayscale(.15); opacity: .85; }
footer p { margin: 12px 0 5px; font: 500 34px/1 var(--serif); }
footer small { letter-spacing: .18em; text-transform: uppercase; font-size: 9px; opacity: .7; }
.simple-page { min-height: 100svh; display: grid; place-content: center; justify-items: center; padding: 28px; text-align: center; }
.simple-page p:last-child { max-width: 520px; line-height: 1.7; color: var(--muted); }
.simple-bouquet { width: 210px; height: 210px; object-fit: contain; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Admin */
.admin-body { background: #f5f2ed; color: #292724; }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 24px max(24px,calc((100vw - 1180px)/2)); background: #fff; border-bottom: 1px solid var(--line); }
.admin-header h1 { margin: 0; font: 500 36px/1 var(--serif); }
.admin-header .eyebrow { margin-bottom: 5px; }
.admin-header nav { display: flex; gap: 18px; font-size: 12px; }
.admin-main { max-width: 1180px; margin: 30px auto; padding: 0 24px 60px; display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.admin-main > .flash { grid-column: 1 / -1; margin: 0; }
.admin-panel { padding: 26px; background: #fff; border: 1px solid var(--line); }
.admin-panel h2 { margin: 0 0 22px; font: 500 28px/1 var(--serif); }
.guest-form { display: grid; gap: 16px; }
.guest-form > label { display: grid; gap: 7px; font-size: 11px; font-weight: 600; }
.guest-form fieldset { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; font-size: 12px; }
.guest-form legend { margin-bottom: 8px; font-size: 11px; font-weight: 600; }
.guest-form input[type=checkbox] { width: auto; }
.form-hint { margin: 0; padding: 12px 14px; background: var(--cream); color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-actions { display: flex; align-items: center; gap: 18px; }
.form-actions .primary-button { width: auto; margin: 0; }.form-actions a { font-size: 11px; }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; }.panel-heading span { color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th,td { padding: 15px 12px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
td { font-size: 12px; }td strong { display: block; font-weight: 600; }td small { color: var(--muted); line-height: 1.5; }
.copy-button, .row-actions button { border: 0; padding: 0; background: none; color: var(--rose-dark); text-decoration: underline; cursor: pointer; font-size: 11px; }
.row-actions { display: flex; gap: 10px; }.row-actions a { color: var(--rose-dark); font-size: 11px; }.row-actions form { display: inline; }
.admin-login-wrap { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(420px,100%); padding: 46px; background: #fff; border: 1px solid var(--line); }
.admin-login-card img { width: 110px; height: 110px; object-fit: contain; margin: -18px auto 5px; }
.admin-login-card h1 { margin: 0 0 24px; text-align: center; font: 500 38px/1 var(--serif); }.admin-login-card .eyebrow { text-align: center; }
.admin-login-card label { display: grid; gap: 7px; margin-top: 15px; font-size: 11px; font-weight: 600; }

@media (max-width: 760px) {
  .invitation-section { padding: 76px 20px; }
  .hero { min-height: 94svh; }
  .couple-art { width: min(390px,94vw); margin-left: -2vw; }
  .hero h1 { font-size: clamp(48px,17vw,74px); }
  .events-grid { grid-template-columns: 1fr; }.event-card { padding: 44px 22px 36px; }
  .countdown-grid { gap: 12px; }.countdown-grid div { min-width: 54px; }.countdown-grid strong { font-size: 44px; }
  .rsvp { padding-top: 120px; }.rsvp-card { padding: 48px 22px; }.rsvp-card > img { width: 150px; height: 150px; margin-top: -115px; }
  .rsvp-form fieldset label { display: block; margin-right: 0; }.rsvp-form input[type=radio] + span { width: 100%; text-align: center; }
  .admin-header { align-items: flex-start; padding: 20px 16px; gap: 18px; }.admin-header h1 { font-size: 30px; }.admin-header nav { flex-direction: column; gap: 8px; text-align: right; white-space: nowrap; }
  .admin-main { grid-template-columns: minmax(0,1fr); margin-top: 18px; padding: 0 12px 40px; gap: 16px; }.admin-panel { min-width: 0; padding: 20px 16px; }
  .admin-main > .flash { width: 100%; }
  .guest-form-panel { order: 0; }
  .guest-form .primary-button { width: 100%; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tr { display: block; padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
  td { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border: 0; }
  td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  td + td { border-top: 1px solid rgba(36,35,33,.08); }
  .row-actions { display: flex; gap: 10px; justify-content: flex-start; }
  .row-actions > form { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; }.scroll-cue { display: none; } }
