:root {
  color-scheme: light;
  --background: #F8EEEA;
  --paper: #FDF8F5;
  --ink: #4A2E33;
  --muted: #6E5257;
  --accent: #9C4F5E;
  --line: #E2C5C8;
  --heading: "Cormorant Garamond", Georgia, serif;
  --body: "Mulish", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 300 17px/1.65 var(--body); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3, p, a { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--heading); font-weight: 300; font-style: italic; }
h2 { font-size: clamp(42px, 5vw, 62px); line-height: 1; }
section { scroll-margin-top: calc(var(--invitation-preview-height, 0px) + 24px); }
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.eyebrow { color: var(--accent); font: 600 13px/1.6 var(--body); letter-spacing: 0.24em; text-transform: uppercase; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { padding-block: 20px; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.site-header a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.hero { padding: 48px 64px 96px; }
.hero-content { position: relative; max-width: 1026px; margin-inline: auto; padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 72px); background: var(--paper); border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -14px; text-align: center; }
.hero-content > :not(svg) { position: relative; }
.hero-flower { position: absolute; width: 220px; height: 220px; pointer-events: none; }
.hero-flower--start { left: -50px; top: -60px; transform: rotate(-20deg); }
.hero-flower--end { right: -50px; bottom: -60px; width: 200px; height: 200px; transform: rotate(160deg); }
.hero-bud { position: absolute; left: 120px; top: -30px; width: 54px; height: 90px; transform: rotate(18deg); }
h1 { margin-top: 20px; font-size: clamp(72px, 10vw, 132px); line-height: 0.95; }
.hero-conjunction { font-size: 0.45em; font-style: normal; color: var(--accent); }
.hero-details { margin-top: 28px; }
.wedding-date { display: block; font: 28px/1.3 var(--heading); letter-spacing: 0.08em; }
.hero-location { display: block; margin-top: 4px; color: var(--muted); }
.countdown { margin-top: 24px; color: var(--muted); font-size: 15px; }
.countdown strong { color: var(--ink); font-weight: 600; }
.countdown-part + .countdown-part::before { content: ", "; }
.countdown-part:last-child::before { content: " și "; }
.countdown-number { font-variant-numeric: tabular-nums; }
.hero-button { display: inline-flex; align-items: center; min-height: 50px; margin-top: 28px; padding: 10px 30px; border-radius: 999px; background: var(--accent); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; }
.hero-button:hover { color: var(--paper); filter: brightness(0.9); }
.hero-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; max-width: 1048px; padding-bottom: 104px; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 260px 260px 8px 8px; }
.hero-photo:nth-child(2) { margin-top: 60px; }
.couple-section { padding-block: 104px; background: var(--paper); text-align: center; }
.couple-section .container { max-width: 1048px; }
.couple-portraits { display: grid; grid-template-columns: minmax(0, 260px) 110px minmax(0, 260px); justify-content: center; align-items: start; gap: 56px; margin-top: 56px; }
.person--bride { grid-column: 1; }
.person--groom { grid-column: 3; }
.portrait-flower { grid-column: 2; grid-row: 1; align-self: center; width: 110px; height: 110px; }
.portrait { max-width: 248px; margin-inline: auto; padding: 8px; border: 1px solid var(--line); border-radius: 50%; }
.portrait img { width: 100%; height: auto; aspect-ratio: 230 / 300; object-fit: cover; object-position: top; border-radius: 50%; }
.person figcaption { margin-top: 22px; }
.person h3 { font-size: 38px; }
.person figcaption p { color: var(--muted); }
.family-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 64px; max-width: 680px; margin: 64px auto 0; }
.family-group { min-width: 0; }
.family-godparents { grid-column: 1 / -1; grid-row: 1; }
.family-group:only-child { grid-column: 1 / -1; }
.family-pair + .family-pair { margin-top: 24px; }
.family-pair p { font: 26px/1.3 var(--heading); }
.family-pair h3 { margin-top: 2px; color: var(--muted); font-size: 13px; letter-spacing: 0.18em; }
.family-godparents h3 { color: var(--accent); letter-spacing: 0.24em; }
.family-godparents p { margin-top: 8px; font-size: 40px; font-style: italic; line-height: 1.1; }
.story-section { max-width: 1148px; padding-block: 104px; text-align: center; }
.story-bud { width: 40px; height: 66px; }
.story-heading h2 { margin-top: 12px; }
.story-message { max-width: 640px; margin: 24px auto 0; font: 25px/1.5 var(--heading); }
.story-message p + p { margin-top: 16px; }
.story-signature { margin-top: 16px; font: italic 26px/1.4 var(--heading); }
.story-video { margin-top: 16px; }
.story-photos .invitation-story-gallery { max-width: none; margin-top: 56px; }
.story-photos .invitation-story-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.story-photos .invitation-story-gallery__photo { aspect-ratio: 3 / 4; border-radius: 8px; }
.events-section { padding-block: 104px; background: var(--paper); }
.events-section .container { max-width: 1208px; }
.events-section h2, .events-date { text-align: center; }
.events-date { margin-top: 10px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; margin-top: 56px; }
.event-card { min-width: 0; padding: 12px 12px 30px; border: 1px solid var(--line); text-align: center; }
.event-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.event-time { display: block; margin-top: 22px; color: var(--accent); font: 44px/1 var(--heading); }
.event-card h3 { margin-top: 8px; font-size: 28px; font-weight: 400; }
.event-date { margin-top: 6px; color: var(--muted); font-size: 14px; }
.event-location, .event-address, .event-description { margin: 6px 16px 0; color: var(--muted); }
.event-card .invitation-navigation { justify-content: center; gap: 12px 24px; margin-top: 14px; font-size: 15px; font-weight: 600; }
.event-card .invitation-navigation a { padding: 0; border: 0; border-radius: 0; font: inherit; text-decoration: underline; }
.rsvp-section { padding: 120px 64px 72px; }
.rsvp-card { position: relative; max-width: 744px; margin-inline: auto; padding: clamp(28px, 6vw, 52px); background: var(--paper); border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -12px; text-align: center; }
.rsvp-flower { position: absolute; right: -40px; top: -60px; width: 160px; height: 160px; transform: rotate(25deg); pointer-events: none; }
.rsvp-card h2 { position: relative; font-size: clamp(42px, 4.5vw, 56px); }
.rsvp-intro, .rsvp-deadline, .guest-greeting { max-width: 440px; margin: 14px auto 0; color: var(--muted); }
.attendance-field { display: flex; gap: 12px; margin: 28px 0 0; padding: 0; border: 0; }
.attendance-field label { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 16px; text-align: center; cursor: pointer; }
.attendance-field label:has(input:checked) { background: var(--ink); color: var(--paper); }
.attendance-field input { flex-shrink: 0; margin: 0; accent-color: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; text-align: left; }
.form-field { display: flex; flex-direction: column; min-width: 0; }
.form-field[hidden] { display: none; }
.form-field--full { grid-column: 1 / -1; }
.form-field > label { color: var(--muted); font: 600 13px/1.6 var(--body); letter-spacing: 0.14em; text-transform: uppercase; }
.form-field input, .form-field textarea { min-width: 0; max-width: 100%; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #D2A9AF; border-radius: 0; background: transparent; color: var(--ink); font: 18px/1.6 var(--body); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 1; }
.form-field textarea { resize: vertical; }
.submit-button { width: 100%; margin-top: 30px; min-height: 54px; padding: 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--paper); font: 600 16px/1.6 var(--body); letter-spacing: 0.06em; }
.submit-button:hover { filter: brightness(0.9); }
.form-status { margin-top: 24px; padding: 16px; border: 1px solid var(--accent); }
.form-status--error { border-color: #a63b30; }
.form-feedback { margin-top: 16px; font-size: 14px; }
.form-feedback:empty { display: none; }

.invitation-footer { padding: 24px 24px 80px; text-align: center; }
.footer-flower { width: 80px; height: 80px; }
.footer-names { margin-top: 8px; font: italic 300 46px/1.1 var(--heading); }
.footer-date { margin-top: 4px; font-size: 14px; letter-spacing: 0.24em; color: var(--muted); }
.footer-note { margin-top: 16px; }
.wedday-credit { display: inline-block; margin-top: 16px; font-size: 12px; }
@media (max-width: 1200px) {
  .hero-flower--start { left: -16px; }
  .hero-flower--end { right: -16px; }
}
@media (max-width: 1000px) {
  .event-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 840px) {
  .hero { padding: 40px 40px 72px; }
  .hero-flower--start { left: -8px; width: 160px; height: 160px; top: -40px; }
  .hero-flower--end { right: -8px; width: 150px; height: 150px; bottom: -40px; }
  .hero-bud { left: 100px; }
  .couple-section, .story-section, .events-section { padding-block: 72px; }
  .hero-photos { padding-bottom: 72px; }
  .couple-portraits { grid-template-columns: minmax(0, 240px) 60px minmax(0, 240px); gap: 20px; }
  .portrait-flower { width: 60px; height: 60px; }
  .story-photos .invitation-story-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsvp-section { padding: 88px 40px 64px; }
  .rsvp-flower { right: -16px; width: 120px; height: 120px; top: -44px; }
}
@media (max-width: 620px) {
  .site-header nav { gap: 4px 18px; font-size: 11px; letter-spacing: 0.1em; }
  .hero { padding-inline: 24px; }
  .hero-content { padding: 64px 24px; }
  .hero-flower--start { left: 6px; }
  .hero-flower--end { right: 6px; }
  .hero-bud { width: 40px; left: 100px; }
  h1 { font-size: clamp(60px, 15vw, 90px); }
  .hero-photos { gap: 16px; }
  .hero-photo:nth-child(2) { margin-top: 32px; }
  .couple-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; position: relative; }
  .person--groom { grid-column: 2; }
  .portrait-flower { position: absolute; grid-column: 1 / -1; grid-row: auto; left: 50%; top: 30%; transform: translateX(-50%); width: 44px; height: 44px; }
  .portrait { padding: 5px; }
  .person h3 { font-size: 30px; }
  .person figcaption p { font-size: 14px; }
  .family-section { gap: 28px 20px; margin-top: 48px; }
  .family-pair p { font-size: 24px; }
  .family-godparents p { font-size: 34px; }
  .family-pair h3 { font-size: 10px; }
  .story-message { font-size: 23px; }
  .story-photos .invitation-story-gallery__grid { gap: 12px; }
  .rsvp-section { padding-inline: 24px; }
  .rsvp-card { padding: 36px 24px; }
  .rsvp-flower { right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .attendance-field { flex-direction: column; gap: 8px; }
  .footer-names { font-size: 36px; }
}
@media (max-width: 360px) {
  .family-section { grid-template-columns: 1fr; }
  .hero-photos { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo:nth-child(2) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
