/* Invitation Site Styles — burgundy/elegant theme matching the save-the-date */

:root {
    --burgundy: #431a14;
    --burgundy-light: #52211A;
    --cream: #F5F0EB;
    --sand: #E8DDD5;
    --taupe: #8B7B6B;
    --gold: #d4a574;

    /* Six-step type scale. Everything on the invitation pages picks a step
       from here rather than inventing its own size. */
    --t-hero: 64px;      /* home page couple line */
    --t-display: 44px;   /* page titles */
    --t-title: 28px;     /* section headings */
    --t-lead: 20px;      /* subtitles, pull quotes, card headings */
    --t-body: 16px;      /* body copy */
    --t-small: 14px;     /* secondary copy, form labels */
    --t-label: 12px;     /* tracked uppercase micro-labels only */
}

body.invite-page {
    background: var(--cream);
    color: var(--burgundy);
    font-family: 'Inter', sans-serif;
    font-size: var(--t-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Editorial type: Instrument Serif for display, Inter for everything else.
   Scoped to invite pages — the save-the-date page keeps Gotu + EB Garamond.
   Instrument Serif ships in one weight, so hierarchy comes from size, italic
   and color rather than from weight. */
body.invite-page h1,
body.invite-page h2,
body.invite-page h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* Reserved for small micro-labels. Tracked uppercase reads as hierarchy at
   12px; at heading or button size it just reads as dated. */
.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: var(--t-label);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--taupe);
}

body.invite-page input,
body.invite-page textarea,
body.invite-page select,
body.invite-page button {
    font-family: 'Inter', sans-serif;
}

body.invite-page .submit-btn {
    border-radius: 0;
}

/* Navigation — sits on the page background rather than in a bar of its own.
   The fill stays opaque (not transparent) because the nav is sticky and content
   scrolls underneath it. No bottom border: the nav should read as part of the
   page, not as a bar. */
.navigation {
    background: var(--cream);
    padding: 22px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
}

/* Burgundy on cream is roughly 12:1 contrast, so the resting state can sit at
   70% and still clear WCAG AA comfortably. */
.nav-link {
    color: var(--burgundy);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.2px;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.nav-link:hover {
    opacity: 1;
}

/* Gold read fine against burgundy but is far too pale on cream — the current
   page is marked with the text colour itself instead. */
.nav-link.active {
    opacity: 1;
    border-bottom-color: var(--burgundy);
}

/* Page layout */
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 70px 20px 90px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: var(--t-display);
    letter-spacing: -1.2px;
    line-height: 1.05;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.page-header .header-divider {
    width: 44px;
    height: 1px;
    background: var(--taupe);
    opacity: 0.5;
    margin: 0 auto 16px;
}

/* Serif italic rather than small sans — the same move as the home hero. */
.page-header .page-subtitle {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: var(--t-lead);
    line-height: 1.4;
    color: var(--taupe);
}

.section-block {
    margin-bottom: 70px;
}

.section-block h2 {
    text-align: center;
    font-size: var(--t-title);
    letter-spacing: -0.4px;
    margin-bottom: 30px;
}

/* Cards */
.info-card {
    background: var(--sand);
    border-radius: 0;
    padding: 36px 32px;
    text-align: center;
    margin-bottom: 28px;
}

.info-card h3 {
    font-size: 26px;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

/* Micro-label — one of the few places tracked uppercase still earns its keep. */
.info-card .card-label {
    font-size: var(--t-label);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 14px;
}

.info-card p {
    font-size: var(--t-small);
    line-height: 1.75;
    margin: 4px 0;
}

.info-card .card-note {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.5;
    color: var(--taupe);
    margin-top: 14px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card-grid .info-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.card-grid .info-card .btn-row {
    margin-top: auto;
    padding-top: 22px;
}

/* Timeline */
.timeline {
    margin: 0 auto;
    max-width: 520px;
}

.timeline-item {
    display: flex;
    align-items: baseline;
    gap: 28px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(67, 26, 20, 0.15);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    flex: 0 0 110px;
    text-align: right;
    font-family: 'Instrument Serif', serif;
    font-size: 20px;
    color: var(--taupe);
    letter-spacing: 0;
}

.timeline-event {
    font-size: var(--t-body);
}

.timeline-event a {
    color: var(--burgundy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Clarifying line between a section heading and its cards. */
.section-note {
    max-width: 560px;
    margin: -10px auto 26px;
    text-align: center;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: var(--taupe);
}

/* Same hairline as the one under the page title, reused to close off a note
   before the cards it introduces. */
.section-divider {
    width: 44px;
    height: 1px;
    background: var(--taupe);
    opacity: 0.5;
    margin: 0 auto 34px;
}

/* Sits under the schedule timeline. Had no rule of its own before, so it fell
   back to raw body defaults. */
.timeline-note {
    max-width: 520px;
    margin: 34px auto 0;
    text-align: center;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: var(--taupe);
}

.timeline-event .event-sub {
    display: block;
    font-size: 13px;
    color: var(--taupe);
    margin-top: 4px;
    line-height: 1.6;
}

/* FAQs — a plain question/answer list rather than cards. Hairline rules between
   items give the same rhythm as the schedule timeline without boxing every
   answer in sand. */
.faq-list {
    max-width: 620px;
    margin: 0 auto;
}

.faq-item {
    padding: 26px 0;
    border-bottom: 1px solid rgba(67, 26, 20, 0.15);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 22px;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 10px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-item a {
    color: var(--burgundy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .faq-item h3 {
        font-size: 20px;
    }
}

/* Buttons */
.btn-solid,
.btn-outline {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--burgundy);
}

.btn-solid {
    background: var(--burgundy);
    color: var(--cream);
}

.btn-solid:hover {
    background: var(--burgundy-light);
}

.btn-outline {
    background: transparent;
    color: var(--burgundy);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--cream);
}

.btn-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

/* Forms (RSVP) */
.invite-form .form-section-block {
    margin-bottom: 50px;
}

.invite-form .form-section-block h2 {
    text-align: center;
    font-size: var(--t-title);
    letter-spacing: -0.4px;
    margin-bottom: 28px;
}

.invite-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--burgundy);
}

.invite-form select {
    width: 100%;
    padding: 10px 6px;
    border: none;
    border-bottom: 1px solid var(--burgundy);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--burgundy);
}

.invite-form select:focus {
    outline: none;
}

.rsvp-message {
    display: none;
    text-align: center;
    margin-top: 40px;
    padding: 26px 20px;
    background: var(--sand);
    border-radius: 0;
}

.rsvp-message p {
    font-size: 15px;
    line-height: 1.7;
}

.rsvp-message.success {
    border: 1px solid var(--burgundy);
    padding: 40px 28px;
}

.rsvp-message .rsvp-confirm-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 26px;
    letter-spacing: 0.5px;
    color: var(--burgundy);
    margin-bottom: 18px;
}

.rsvp-message .rsvp-confirm-footer {
    margin-top: 22px;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 17px;
    color: var(--burgundy);
}

.rsvp-message.error {
    border: 1px solid var(--gold);
}

.rsvp-message.error p:first-child {
    font-weight: 500;
    margin-bottom: 10px;
}

.form-hint {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.5;
    color: var(--taupe);
    margin-bottom: 32px;
    text-align: center;
}

/* Checkbox inputs (guest checklist) */
.invite-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 0;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--burgundy);
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

/* Additional guests */
.add-guest-btn {
    background: transparent;
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    padding: 10px 24px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: var(--t-small);
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.add-guest-btn:hover {
    background: var(--burgundy);
    color: var(--cream);
}

/* One block per guest: name on top, their own attending checkbox underneath.
   The hairline rule keeps two people from reading as one entry. */
.guest-entry {
    padding: 22px 0;
    border-bottom: 1px solid rgba(67, 26, 20, 0.15);
}

.guest-entry:first-child {
    padding-top: 0;
}

.guest-entry:last-child {
    border-bottom: none;
}

.guest-entry .form-group {
    margin-bottom: 14px;
}

.guest-entry .form-group label {
    margin-bottom: 6px;
}

.guest-entry .form-group input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--burgundy);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--burgundy);
}

.guest-entry .form-group input:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

/* Checkbox left, Remove right — Remove is secondary, so it never sits in the
   reading path between the name and the answer. */
.guest-answer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.remove-guest-btn {
    background: transparent;
    border: 1px solid var(--taupe);
    color: var(--taupe);
    padding: 8px 12px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 60px;
}

.remove-guest-btn:hover {
    background: var(--taupe);
    color: var(--cream);
}

/* Password gate */
.gate-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #431a14 0%, #52211A 50%, #431a14 100%);
    padding: 20px;
}

.gate-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    color: var(--cream);
}

.gate-card h1 {
    font-size: 46px;
    letter-spacing: -1px;
    line-height: 1.08;
    margin-bottom: 14px;
}

.gate-card .gate-sub {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: var(--t-lead);
    opacity: 0.85;
    margin-bottom: 40px;
}

.gate-card input[type="password"] {
    width: 100%;
    padding: 0 0 12px 0;
    border: none;
    border-bottom: 1px solid var(--cream);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--cream);
    text-align: center;
    margin-bottom: 30px;
}

.gate-card input[type="password"]::placeholder {
    color: rgba(245, 240, 235, 0.6);
}

.gate-card input[type="password"]:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.gate-card .gate-btn {
    padding: 13px 50px;
    background: transparent;
    border: 1px solid var(--cream);
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gate-card .gate-btn:hover {
    background: var(--cream);
    color: var(--burgundy);
}

.gate-error {
    display: none;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gold);
}

/* Invitation home hero */
.invite-hero {
    position: relative;
    text-align: center;
    padding: 90px 20px 70px;
    overflow: hidden;
}

.invite-hero .hero-inner {
    position: relative;
    z-index: 2;
}

/* ── Cycling photo panel ─────────────────────────────────────────────────────
   The photos are portrait (roughly 2:3), so they sit in a frame of the same
   proportion rather than being stretched across a wide hero. Nothing is
   cropped and nothing is scaled past its native size.

   The frame is collapsed by default and only opens once a photo has loaded,
   which keeps a missing or misnamed file from leaving a hole in the page. */
.invite-hero .hero-frame {
    display: none;
}

.invite-hero.has-photos .hero-frame {
    display: block;
    position: relative;
    width: min(430px, 86vw);
    aspect-ratio: 2 / 3;
    margin: 0 auto 34px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

/* Slides stack and cross-fade by opacity. Fading between two absolutely
   positioned layers avoids the white flash you get from swapping a single
   element's background-image. */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

/* The heading sits directly above the frame, so it needs less space beneath. */
.invite-hero.has-photos h1 {
    margin-bottom: 26px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

.invite-hero h1 {
    font-size: var(--t-hero);
    letter-spacing: -1.6px;
    line-height: 1.02;
    margin-bottom: 30px;
}

/* Second line of the heading: same serif, italic, dropped to taupe. The two
   lines read as one sentence at two levels rather than as title + subtitle. */
.invite-hero .hero-sub {
    display: block;
    font-style: italic;
    color: var(--taupe);
}

.invite-hero .hero-date {
    font-family: 'Instrument Serif', serif;
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 14px;
}

.invite-hero .hero-venue {
    font-size: var(--t-label);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 6px;
}

.invite-hero .hero-address {
    font-size: 13px;
    color: var(--taupe);
    opacity: 0.8;
}

.invite-hero .btn-row {
    margin-top: 34px;
}

.invite-hero .hero-message {
    max-width: 540px;
    margin: 40px auto 0;
    font-size: var(--t-body);
    line-height: 1.8;
}

/* Venue photo (Schedule & Travel cards) */
.info-card .venue-photo {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 24px;
}

/* Aerial shot — bias the crop downward so the mansion and the pavement
   below it stay in frame */
.info-card .venue-photo[src="woodlands-aerial.jpg"] {
    height: 320px;
    object-position: center 80%;
}

.info-card .card-note a,
.info-card h3 a {
    color: var(--burgundy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The venue name is a link, but it's still a heading first — the underline sits
   further out so it doesn't crowd the serif descenders. */
.info-card h3 a {
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

@media (max-width: 600px) {
    .info-card .venue-photo {
        height: 180px;
    }
}

/* Funds page */
.funds-intro {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 60px;
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    line-height: 1.55;
}

.fund-card {
    background: var(--sand);
    border-radius: 0;
    padding: 44px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.fund-card .btn-row {
    margin-top: auto;
    padding-top: 26px;
}

.fund-card .fund-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 24px;
}

.fund-card .fund-photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fund-card .fund-photo-pair .fund-photo {
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .fund-card .fund-photo-pair {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fund-card .fund-photo-pair .fund-photo {
        margin-bottom: 14px;
    }
}

.fund-card h2 {
    font-size: 30px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.fund-card p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 420px;
    margin: 0 auto;
    flex-grow: 1;
}

/* Footer */
.footer {
    background: var(--burgundy);
    color: var(--cream);
    text-align: center;
    padding: 44px 20px;
}

.footer p {
    font-size: var(--t-small);
    letter-spacing: 0;
    margin: 4px 0;
}

.footer .footer-quote {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 17px;
    opacity: 0.75;
}

/* Standalone venue guidance linked from the FAQ. */
.document-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    text-align: center;
}

.document-page img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 12px 36px rgba(67, 26, 20, 0.12);
}

.document-page .back-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--burgundy);
    text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 600px) {
    .navigation ul {
        gap: 6px 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .page-content {
        padding: 50px 20px 70px;
    }

    /* Instrument Serif is high-contrast — its hairlines get thin and fragile
       when scaled straight down, so the display steps drop harder than the
       body steps rather than shrinking proportionally. */
    .page-header h1 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .invite-hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .invite-hero .hero-date {
        font-size: 21px;
    }

    .gate-card h1 {
        font-size: 34px;
    }

    .info-card h3 {
        font-size: 23px;
    }

    .fund-card h2 {
        font-size: 26px;
    }

    .funds-intro {
        font-size: 19px;
    }

    .timeline-item {
        gap: 18px;
    }

    .timeline-time {
        flex-basis: 84px;
        font-size: 17px;
    }

    .timeline-event {
        font-size: 15px;
    }
}
