/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Italianno";
  src: url("/fonts/italianno.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --forest: #233c2b;
  --ivory: #fffdf6;
  --muted: #637360;
  --line: #c9cdbe;
  --script: "Italianno", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  color: var(--forest);
  background: var(--ivory);
  font-family: var(--serif);
  font-size: 20px;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b57a35; outline-offset: 5px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
p { line-height: 1.45; }
p + p { margin-top: 1rem; }
h2 { font-size: clamp(2.8rem, 6.8vw, 4.5rem); line-height: .94; text-transform: uppercase; letter-spacing: -.035em; }
h3 { font-size: 1.6rem; }
button, input[type="submit"] { cursor: pointer; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--ivory); }
.skip-link:focus { top: 1rem; }

.hero { min-height: 780px; height: 100svh; max-height: 1100px; position: relative; display: grid; place-items: center; color: white; overflow: hidden; background: var(--forest) url("/forest.jpg") center / cover; }
.hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { background: linear-gradient(180deg, #071b0d40, #0b211766 48%, #09140ba8); }
.hero__content { position: relative; padding: 3rem 1rem 4rem; text-align: center; animation: arrive 1.3s ease-out both; }
.hero h1 { font-family: var(--script); font-size: clamp(5.5rem, 12vw, 9rem); line-height: .77; font-weight: 400; }
.hero h1 > span { display: block; }
.hero h1 .hero__ampersand { font-size: .48em; margin: .2em 0 .1em; }
.hero__announcement { margin-top: 1.7rem; font-size: 1.9rem; text-transform: uppercase; letter-spacing: .22em; }
.hero__date { display: block; margin: .6rem 0 1.3rem; font-size: 1.1rem; letter-spacing: .025em; }
.hero::after { content: ""; position: absolute; bottom: -1px; width: 100%; height: 55px; background: var(--ivory); clip-path: polygon(0 48%,2% 60%,3% 55%,5% 68%,7% 59%,9% 65%,11% 47%,13% 53%,15% 30%,16% 35%,17% 24%,19% 32%,21% 49%,23% 42%,25% 60%,27% 57%,29% 74%,31% 63%,33% 73%,35% 50%,36% 52%,38% 28%,40% 38%,42% 25%,44% 40%,46% 24%,48% 37%,50% 31%,52% 46%,54% 21%,56% 28%,58% 17%,60% 26%,62% 9%,64% 20%,66% 15%,68% 32%,70% 28%,72% 48%,74% 38%,76% 52%,78% 42%,80% 67%,82% 61%,84% 74%,86% 64%,88% 73%,90% 64%,92% 73%,94% 65%,96% 72%,98% 60%,100% 64%,100% 100%,0 100%); }
.hero__scroll { position: absolute; bottom: 4rem; left: calc(50% - 12px); padding: 12px; }
.hero__scroll span { display: block; width: 12px; height: 12px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }

.section { padding: 5.5rem 1.5rem; }
.section__inner { width: min(100%, 1080px); margin-inline: auto; }
.section--paper { background: var(--ivory); color: var(--forest); }
.section--forest { background: var(--forest); color: var(--ivory); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 5rem); align-items: center; }
.centered { text-align: center; }
.reading-width { max-width: 600px; margin-inline: auto; }
.eyebrow { font-family: Arial, sans-serif; font-size: .55rem; letter-spacing: .19em; text-transform: uppercase; line-height: 1.7; margin-bottom: 1.5rem; }
.signature { font-family: var(--script); font-size: 2.7rem; line-height: 1.1; }
.script-title { font-family: var(--script); font-size: 2.6rem; line-height: 1.2; }
.pending { font-size: .85rem; opacity: .78; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .35rem 1.6rem .45rem; border: 1px solid var(--forest); border-radius: 50px; background: var(--forest); color: var(--ivory); text-decoration: none; font-family: var(--script); font-size: 1.65rem; line-height: 1.2; transition: background-color .2s, color .2s, transform .2s; }
.button:hover { background: #365641; transform: translateY(-2px); }
.button--outline { border-color: #fffdf6c0; background: #0e221b30; color: var(--ivory); }
.button--outline:hover { background: var(--ivory); color: var(--forest); }
.illustration { display: block; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.centered > .illustration { margin: 2rem auto 1.8rem; max-width: 340px; }

.invitation { padding-top: 4.5rem; }
.invitation h2 { margin-bottom: 1.8rem; }
.invitation__opening { margin-bottom: 1.8rem; }
.invitation__copy p { max-width: 440px; }
.invitation__copy .signature { margin-top: 1.7rem; }
.couple-photo { aspect-ratio: 4 / 5; padding: 1.2rem; background: #e6e6dc; box-shadow: 12px 14px 0 #ecebe1; }
.couple-photo__frame { position: relative; height: 100%; border: 1px solid #83907b; overflow: hidden; }
.couple-photo__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.celebration { color: #302e28; padding-top: 3rem; }
.celebration h2 { font-size: clamp(2.8rem, 7.5vw, 5rem); letter-spacing: -.025em; }
.celebration__journey { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; min-height: 570px; }
.celebration__path { position: absolute; top: 0; left: 0; width: 100%; height: 520px; color: #6e6255; pointer-events: none; }
.celebration__ceremony, .celebration__reception, .celebration__couple { position: relative; }
.celebration__ceremony > .celebration__artwork { width: 210px; margin: 0 0 1rem; }
.celebration__details { font: .85rem/1.7 Arial, sans-serif; letter-spacing: .055em; }
.celebration__details p + p { margin-top: .15rem; }
.celebration__details h3 { font: inherit; margin: .3rem 0; }
.celebration__details .celebration__venue { font: italic 1.25rem/1.3 var(--serif); letter-spacing: 0; }
.celebration__couple { position: absolute; width: 210px; top: 105px; left: 51%; }
.celebration__artwork { display: block; width: 100%; max-width: 100%; }
.celebration__artwork > img { display: block; width: 100%; height: auto; }
.celebration__reception { grid-column: 2; padding-top: 255px; padding-left: 20%; }
.celebration__reception > .celebration__artwork { width: 150px; margin: 0 0 1rem auto; }
.map-placeholder { display: inline-flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .5rem .8rem; border: 1px dashed #a9a594; color: #686555; font: .75rem/1.5 Arial, sans-serif; letter-spacing: .035em; }
.map-pin { width: 17px; height: 21px; border: 1px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); flex-shrink: 0; }
.dress-code p { margin-top: 1.8rem; }
.dress-code .script-title { margin-top: 1.7rem; }
.dress-code__guidelines { padding-left: 1.1rem; margin: 1.3rem 0 0; line-height: 1.45; }
.dress-code__guidelines li + li { margin-top: 1rem; }
.extras .script-title { margin: 1.3rem 0 .8rem; }
.extras__qr { width: min(100%, 318px); margin-inline: auto; padding: .5rem; background: white; border: 1px solid var(--line); }
.extras__qr img { display: block; width: 100%; height: auto; }
.extras__button { margin: 1.5rem 0 1rem; }
.rsvp-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.faq h2, .faq__reminder { text-align: center; }
.faq__entries { margin-top: 2.5rem; }
.faq__entry { padding: 1.8rem 0; border-bottom: 1px solid #fffdf645; }
.faq__entry h3 { margin-bottom: 1rem; }
.faq__reminder { margin-top: 2.5rem; }
.rsvp-intro h2 { font-size: clamp(2.5rem, 4.5vw, 3rem); overflow-wrap: anywhere; }
.rsvp-intro__message { margin-top: 1.5rem; }
.rsvp-flourish { display: block; margin-top: 2.5rem; font: 4rem var(--script); color: #9bA48e; }
.rsvp-form { padding: 2rem; border: 1px solid var(--line); background: #f8f7ef; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.3rem; min-width: 0; }
.form-field label, .attendance-field legend { display: block; font-size: .9rem; margin-bottom: .4rem; }
.form-field input { width: 100%; min-height: 46px; border: 1px solid #a7b09c; background: var(--ivory); border-radius: 0; color: var(--forest); padding: .5rem .65rem; font-family: Arial, sans-serif; font-size: .75rem; }
.form-field input[aria-invalid="true"] { border-color: #943f2d; }
.field-hint, .field-error { display: block; font-size: .7rem; margin-top: .4rem; line-height: 1.4; }
.field-hint { color: var(--muted); }
.field-error { color: #8c3023; }
.attendance-field { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.attendance-options { display: flex; flex-direction: column; gap: .5rem; }
.attendance-options label { display: flex; gap: .55rem; align-items: center; min-height: 44px; cursor: pointer; }
.attendance-options input { width: 18px; height: 18px; accent-color: var(--forest); flex-shrink: 0; }
.privacy-note { font-size: .75rem; color: var(--muted); margin-bottom: 1.1rem; }
.button--submit { width: 100%; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { border-left: 3px solid #943f2d; background: #f3e9df; color: #762c22; padding: .8rem; margin-bottom: 1.3rem; font-size: .85rem; }
.form-errors h4 { font-size: 1.1rem; }
.form-errors ul { margin: .5rem 0 0; padding-left: 1rem; }
.gifts .illustration { max-width: 230px; }
.gift-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 800px; margin: 2.5rem auto 0; }
.gift-account { padding: 1.5rem; border: 1px solid #fffdf64a; overflow-wrap: anywhere; }
.gift-account h3 { font-size: 1.3rem; text-transform: uppercase; }
.gift-account p { margin-top: .8rem; }
.closing { border-top: 1px solid #fffdf62e; margin-top: 4rem; padding-top: 3rem; }
.closing span { display: block; }
.closing .signature { font-size: 3.4rem; margin-bottom: .7rem; }
.closing p { font-size: .85rem; margin-top: 1rem; }
.site-footer { text-align: center; font-size: .65rem; padding: 1.1rem; letter-spacing: .05em; }

.confirmation { min-height: 100svh; padding: 3rem 1rem; display: grid; place-items: center; background: var(--forest) url("/forest.jpg") center / cover; }
.confirmation__card { background: var(--ivory); padding: clamp(1.5rem, 5vw, 4rem); max-width: 640px; text-align: center; box-shadow: 0 10px 70px #0004; }
.confirmation__mark { display: grid; place-items: center; margin: 1.5rem auto; border: 1px solid var(--line); width: 48px; height: 48px; border-radius: 50%; }
.confirmation h1 { font: 4.7rem var(--script); }
.confirmation h2 { font-size: 1.6rem; text-transform: none; line-height: 1.2; margin-bottom: 1rem; }
.confirmation time { display: block; margin: 1.6rem 0; }
.confirmation .field-hint { margin-top: 1rem; }

.organizer { max-width: 1200px; margin: 0 auto; padding: 3rem 1rem; }
.organizer h1 { font-size: clamp(2rem, 5vw, 3rem); }
.organizer header p { margin-top: .5rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.stat { padding: 1.2rem; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; font-weight: 400; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #eeefe5; font-weight: 400; }
.status { white-space: nowrap; padding: .2rem .6rem; border-radius: 30px; border: 1px solid var(--line); }
.status--attending { background: #e4eada; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.empty-state { padding: 4rem 1rem; text-align: center; border: 1px dashed var(--line); }

@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  :root { font-size: 19px; }
  .hero { min-height: 680px; max-height: 950px; }
  .hero h1 { font-size: clamp(5.7rem, 20vw, 8rem); }
  .hero__announcement { font-size: 1.4rem; }
  .hero__content { padding-bottom: 4.5rem; }
  .hero__date { font-size: .95rem; }
  .hero .button { font-size: 1.45rem; }
  .section { padding: 3.5rem 1.3rem; }
  .split, .rsvp-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .invitation__copy p { max-width: none; }
  .couple-photo { max-width: 440px; width: 100%; margin: 0 auto; }
  .celebration h2 { font-size: clamp(2.5rem, 11vw, 4rem); text-align: center; }
  .celebration__journey { display: flex; flex-direction: column; min-height: 0; gap: 1.5rem; }
  .celebration__path { display: none; }
  .celebration__ceremony, .celebration__reception { text-align: center; }
  .celebration__ceremony > .celebration__artwork { width: min(100%, 210px); margin: 0 auto 1rem; }
  .celebration__reception > .celebration__artwork { margin: 0 auto 1rem; }
  .celebration__couple { position: static; width: min(100%, 191px); margin: 0 auto; }
  .celebration__reception { padding: 0; }
  .celebration__details { font-size: .8rem; }
  .illustration { max-width: 330px; margin-inline: auto; }
  .dress-code > .illustration { grid-row: 2; }
  .extras__qr { grid-row: 2; }
  .gift-accounts { grid-template-columns: 1fr; }
  .faq h2 { font-size: clamp(2.2rem, 10vw, 4rem); }
  .rsvp-form { padding: 1.3rem; }
  .rsvp-flourish { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats { gap: .5rem; }
  .stat { padding: .7rem; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__video { display: none; }
}

