@font-face {
    font-family: 'Tangerine';
    src: url('../fonts/Tangerine-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'CormorantGaramond';
    src: url('../fonts/CormorantGaramond-Regular.ttf') format('truetype');
}

/* Theme — tweak the whole site's look from here */
:root {
    --ivory: #fbf8f3;
    --ivory-dark: #f4eee5;
    --ink: #3f3a37;
    --ink-soft: #756c66;
    --accent: #722f37;        /* deep wine */
    --accent-dark: #561f27;
    --hairline: #e4d9cb;
    --serif: 'CormorantGaramond', Georgia, serif;
    --sans: 'Segoe UI', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--ivory);
}

a {
    text-decoration: none;
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

::selection {
    background: var(--accent);
    color: #fff;
    text-shadow: none;
}

/* Small uppercase tracked labels — the signature Knot detail */
.section-eyebrow,
.detail-label,
.countdown,
.knot-navbar .nav-link,
.btn-custom,
.footer-date {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

/* Masthead */

.masthead {
    padding: 5.5rem 1.5rem 4.5rem;
    background-color: var(--ivory);
}

.masthead-photo {
    display: block;
    width: min(300px, 70vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 999px 999px 0 0; /* arched top, Knot-style */
    margin: 0 auto 2.5rem;
}

.masthead-compact {
    padding: 3.5rem 1.5rem 2.5rem;
}

.masthead-compact .monogram {
    margin-bottom: 1rem;
}

.couple-names-sm {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.monogram {
    font-family: 'Tangerine', cursive;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 2rem;
}

.couple-names {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.couple-names .amp {
    font-style: italic;
    color: var(--accent);
}

.wedding-meta {
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}

.countdown {
    font-size: 0.85rem;
    color: var(--accent);
    min-height: 1.5em;
    margin-bottom: 0;
}

/* Navigation */

.knot-navbar {
    background-color: var(--ivory);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 0.75rem 0;
}

.knot-navbar .nav-link {
    color: var(--ink) !important;
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem !important;
}

.knot-navbar .nav-link:hover {
    color: var(--accent) !important;
}

.knot-navbar .navbar-toggler {
    border-color: var(--hairline);
}

/* Compact RSVP button that lives in the navbar; stays visible on mobile
   because it sits outside the collapsing menu */
.btn-rsvp-nav {
    font-size: 0.7rem;
    padding: 0.55rem 1.4rem;
}

/* Hero Photo */

.hero-photo {
    height: 80vh;
    min-height: 320px;
    background-image: url('../images/banner2.jpg');
    background-size: cover;
    background-position: center;
}

/* Second banner, shown after the Contact Us section */
.hero-photo-2 {
    background-image: url('../images/banner.jpg');
}

/* Sections */

.knot-section {
    padding: 5.5rem 0;
    scroll-margin-top: 70px;
}

.knot-section-alt {
    background-color: var(--ivory-dark);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.section-eyebrow {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    margin: 0 auto 1.5rem;
}

.section-lead {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--ink-soft);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-flourish {
    max-width: 260px;
    opacity: 0.9;
}

/* Love Story */

.story-photo {
    width: min(340px, 80vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 999px 999px 0 0; /* arched top to match the masthead photo */
}

@media (min-width: 768px) {
    #love-story .divider-start {
        margin-left: 0;
    }

    #love-story .section-lead {
        margin-left: 0;
    }
}

/* Wedding Party */

.party-card {
    padding: 0.5rem 0.5rem;
}

/* side heading with flanking hairlines, e.g. ——— THE BRIDE'S SIDE ——— */
.party-side-heading {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 440px;
    margin: 0 auto 2.75rem;
}

.party-side-heading::before,
.party-side-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--hairline);
}

.party-side-heading span {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    color: var(--accent);
    white-space: nowrap;
}

/* extra breathing room before the groom's side */
.party-side-heading-groom {
    margin-top: 4rem;
}

/* small prompt so guests know the bubbles are interactive */
/* flower/herb photo in a wine ring, Knot-style */
.party-initial {
    position: relative;
    overflow: hidden;
    width: min(170px, 60vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* ivory gap + wine ring, Knot-style */
    box-shadow: 0 0 0 2px var(--ivory), 0 0 0 5px var(--accent), 0 8px 22px rgba(86, 31, 39, 0.15);
}

/* monogram letter no longer used — the flower is shown instead */
.party-initial span {
    display: none;
}

.party-initial .party-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.party-name {
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.party-role {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
    margin-bottom: 0;
}

/* Event Details */

.detail-block {
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--hairline);
    background-color: #fff;
    height: 100%;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.detail-time {
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.detail-venue {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.detail-address {
    color: var(--ink-soft);
    margin-bottom: 0;
}

/* Photo Gallery */

.photo-strip {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* gallery thumbnail buttons — click to open the lightbox */
.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    /* soft rounded-rectangle photo, Knot-style */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(86, 31, 39, 0.12);
}

.photo-strip img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
    transform: scale(1.05);
    opacity: 0.92;
}

.gallery-thumb:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.party-hint-tap {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

/* Photo lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    /* deep wine-tinted backdrop over the ivory site */
    background: rgba(46, 16, 21, 0.92);
    padding: 3.5rem 1rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(251, 248, 243, 0.25), 0 18px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: none;
    border: none;
    color: var(--ivory);
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    opacity: 1;
}

.lightbox-close {
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2.5rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    padding: 0 1rem;
}

.lightbox-prev {
    left: 0.5rem;
}

.lightbox-next {
    right: 0.5rem;
}

/* RSVP Form */

.rsvp-form .form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.rsvp-form .required-mark {
    color: var(--accent);
}

.rsvp-form .form-control {
    border: 1px solid var(--hairline);
    border-radius: 0;
    background-color: #fff;
    padding: 0.75rem 1rem;
    color: var(--ink);
}

.rsvp-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: none;
}

.rsvp-form textarea {
    resize: vertical;
    max-height: 200px;
}

/* Checkboxes / radios in wine accent */
.rsvp-form .form-check-label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0;
}

.rsvp-form .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.rsvp-form .form-check-input:focus {
    border-color: var(--accent);
    box-shadow: none;
}

/* "Add a guest" party list */
.guest-row .guest-name {
    flex: 1 1 auto;
}

.guest-row .guest-remove {
    padding: 0.45rem 0.8rem;
    letter-spacing: normal;
    line-height: 1;
}

.form-note {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Edit RSVP modal (Knot style) */

.knot-modal .modal-content {
    background-color: var(--ivory);
    border: 1px solid var(--hairline);
    border-radius: 0;
    color: var(--ink);
}

.knot-modal .modal-header,
.knot-modal .modal-footer {
    border-color: var(--hairline);
}

.knot-modal .modal-title {
    font-family: var(--serif);
    color: var(--accent);
    font-size: 1.7rem;
    margin: 0;
}

/* Buttons (shared with confirmation / summary pages) */

.btn-custom {
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.9rem 2.5rem;
}

.btn-custom:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-outline-custom {
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 0;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 0.9rem 2rem;
}

.btn-outline-custom:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Contact */

.contact-link {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--ink);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--accent);
}

/* Footer (shared with confirmation page) */

.footer-custom {
    background-color: var(--ivory);
    border-top: 1px solid var(--hairline);
    color: var(--ink);
}

.footer-names {
    font-family: var(--serif);
    font-size: 1.6rem;
}

.footer-date {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.footer-credit {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
}

.footer-credit a:hover {
    border-bottom-color: var(--accent);
}

/* Shared section background (confirmation / summary pages) */

.section-bg {
    background-color: var(--ivory-dark);
}

/* RSVP Summary Table */

.knot-table-scroll {
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--hairline);
    -webkit-overflow-scrolling: touch;
}

.knot-table {
    background-color: #fff;
    color: var(--ink);
    margin-bottom: 0;
}

.knot-table-scroll .knot-table {
    border: none;
}

.knot-table thead th {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background-color: var(--ivory-dark);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.knot-table td {
    border-color: var(--hairline);
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.knot-spinner {
    color: var(--accent);
}

.btn-table-edit,
.btn-table-delete {
    border-radius: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
}

.btn-table-edit {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-table-edit:hover {
    background-color: var(--accent);
    color: #fff;
}

.btn-table-delete {
    background-color: transparent;
    border: 1px solid var(--ink-soft);
    color: var(--ink-soft);
}

.btn-table-delete:hover {
    background-color: var(--ink-soft);
    color: #fff;
}

/* Error Pages */

.error-code {
    font-family: var(--serif);
    font-size: clamp(8rem, 24vw, 15rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: var(--accent);
    filter: drop-shadow(6px 6px 0 var(--hairline));
    margin-bottom: 0.5rem;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .error-code {
        background: linear-gradient(160deg, var(--accent) 20%, var(--accent-dark) 80%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.notice-box {
    background-color: var(--ivory-dark);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--accent);
    color: var(--ink);
    padding: 1.25rem 1.5rem;
    text-align: left;
}

/* Responsive Design */

@media (max-width: 768px) {
    .masthead {
        padding: 3.5rem 1.25rem 3rem;
    }

    .masthead-photo {
        margin-bottom: 1.75rem;
    }

    .monogram {
        margin-bottom: 1.25rem;
    }

    .hero-photo {
        height: 55vh;
        min-height: 260px;
    }

    .knot-section {
        padding: 3.5rem 0;
    }

    .knot-navbar .nav-link {
        padding: 0.4rem 0 !important;
        text-align: center;
    }

    .photo-strip img {
        height: 300px;
    }
}
