/* =========================================================
   Mirjam & Marvin — Editorial Edition
   Palette & type inspired by the mood board (olive / ivory,
   Didone display, script accents, fine rules, pill buttons)
   ========================================================= */
:root {
    --olive: #3a4027;
    --olive-deep: #2c3120;
    --olive-soft: #4a5033;
    --paper: #f1ecdd;
    --paper-deep: #e9e1cd;
    --paper-soft: #ece5d2;
    --ink: #373a29;
    --ink-soft: #5b5d47;
    --muted: #85836c;
    --line: rgba(55,58,41,0.22);
    --line-light: rgba(236,229,210,0.26);
    --gold: #9c8d5f;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --display: 'Bodoni Moda', 'Times New Roman', serif;
    --script: 'Pinyon Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ---------- Shared type ---------- */
.kicker {
    font-family: var(--script);
    font-size: 30px;
    line-height: 1;
    color: var(--gold);
    margin: 0 0 10px;
}
.kicker--light { color: #cbb988; }

.headline {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 1.04;
    font-size: clamp(32px, 5vw, 58px);
    margin: 0;
}

.lede {
    font-size: clamp(19px, 2.1vw, 23px);
    line-height: 1.75;
    color: var(--ink-soft);
    font-style: italic;
    margin: 0 auto;
    max-width: 640px;
}

.rule {
    width: 64px;
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 22px auto;
}
.rule--light { background: var(--line-light); }
.rule--left { margin-left: 0; margin-right: 0; }

/* ---------- Buttons ---------- */
.pill {
    display: inline-block;
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    color: var(--ink);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pill:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.pill--light {
    border-color: rgba(236,229,210,0.55);
    color: var(--paper-soft);
}
.pill--light:hover { background: var(--paper-soft); border-color: var(--paper-soft); color: var(--olive-deep); }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(44,49,32,0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-light);
}
.nav__brand {
    font-family: var(--script);
    font-size: 32px;
    line-height: 1;
    color: var(--paper-soft);
    text-decoration: none;
}
.nav__links {
    display: flex;
    gap: 30px;
}
.nav__links a {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper-soft);
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.2s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__rsvp {
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper-soft);
    text-decoration: none;
    padding: 9px 22px;
    border: 1px solid rgba(236,229,210,0.5);
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}
.nav__rsvp:hover { background: var(--paper-soft); color: var(--olive-deep); }

/* ---------- Bands ---------- */
.band { padding: clamp(84px, 12vw, 150px) 40px; }
.band--dark { background: var(--olive); color: var(--paper-soft); }
.band--deep { background: var(--olive-deep); color: var(--paper-soft); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--tone { background: var(--paper-deep); color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap--narrow { max-width: 720px; margin: 0 auto; }
.center { text-align: center; }

.band--dark .kicker { color: #cbb988; }
.band--deep .kicker { color: #cbb988; }
.band--dark .lede,
.band--deep .lede { color: var(--paper-soft); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: calc(100svh - 24px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(440px, 1fr);
    align-items: center;
    padding: 80px 0 0;
    color: var(--ink);
    background: var(--paper);
    overflow: hidden;
}
.hero__media {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0;
    padding: clamp(26px, 4vw, 64px) 0 clamp(22px, 3vw, 46px) clamp(18px, 3vw, 52px);
    background: var(--paper);
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    filter: brightness(1.04) contrast(1.01) sepia(0.04);
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(48px, 7vw, 110px) clamp(24px, 3vw, 46px);
    text-align: center;
}
.hero__eyebrow {
    font-family: var(--serif);
    font-size: clamp(16px, 1.6vw, 19px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
}
.hero__names {
    font-family: var(--script);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
    font-size: clamp(46px, 5.15vw, 74px);
    white-space: nowrap;
    margin: 0;
}
.hero__amp {
    display: inline-block;
    margin: 0 0.035em;
}
.hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 24px 0 0;
    font-family: var(--serif);
    font-size: clamp(16px, 1.6vw, 19px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.hero__place {
    font-family: var(--serif);
    font-size: clamp(16px, 1.6vw, 19px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 20px 0 0;
}
@media (min-width: 861px) {
    .hero__inner {
        padding-top: clamp(72px, 8vw, 124px);
        padding-right: clamp(14px, 1.5vw, 24px);
        padding-bottom: clamp(72px, 8vw, 124px);
        padding-left: clamp(14px, 1.5vw, 24px);
    }
    .hero__eyebrow {
        font-size: clamp(20px, 1.55vw, 22px);
        margin-bottom: 28px;
    }
    .hero__names { font-size: clamp(70px, 5.9vw, 86px); }
    .hero__meta {
        margin-top: 38px;
        font-size: clamp(20px, 1.55vw, 22px);
    }
    .hero__place {
        margin-top: 30px;
        font-size: clamp(20px, 1.55vw, 22px);
    }
}
.hero__scroll {
    position: absolute;
    left: calc(72.5% + 14%);
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.hero__scroll span {
    position: absolute; top: 8px; left: 50%;
    width: 3px; height: 7px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 13px); }
}

/* ---------- Intro ---------- */
.intro__signature {
    font-family: var(--script);
    font-size: 46px;
    line-height: 1;
    color: var(--ink);
    margin: 30px 0 0;
}
.intro__body { margin: 0 auto; max-width: 640px; }
.intro__body p { margin: 0 0 18px; }

/* ---------- Countdown ---------- */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 6vw, 72px);
    margin: 44px 0 0;
}
.countdown__num {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(46px, 7vw, 78px);
    line-height: 1;
}
.countdown__label {
    display: block;
    margin-top: 12px;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #cbb988;
}

/* ---------- Schedule rows ---------- */
.section-head { margin-bottom: clamp(48px, 7vw, 86px); }

.day {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin-bottom: clamp(60px, 9vw, 118px);
}
.day:last-child { margin-bottom: 0; }
.day--reverse { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.day--reverse .day__media { order: 2; }
.day--solo {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.day--solo .timeline {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}
.day__media {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: var(--paper);
}
.day__media img {
    width: 100%;
    height: clamp(450px, 58vw, 680px);
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: brightness(0.76) contrast(2.15) sepia(0.04);
}
.day__media--pool img {
    object-position: center bottom;
    filter: brightness(0.74) contrast(2.3) sepia(0.04);
}
.day__index {
    font-family: var(--script);
    font-size: 30px;
    color: var(--gold);
    margin: 0 0 4px;
}
.day__title {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(28px, 3.6vw, 42px);
    margin: 0 0 6px;
}
.day__sub {
    font-style: italic;
    color: var(--muted);
    margin: 0 0 24px;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__time {
    font-family: var(--display);
    font-size: 22px;
    color: var(--olive);
}
.timeline__what {
    display: block;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
}
.timeline__desc {
    font-style: italic;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.5;
}
.timeline__desc > span { display: block; }
.day__note {
    font-style: italic;
    color: var(--ink-soft);
    margin: 18px 0 0;
}

/* ---------- Full-bleed divider ---------- */
.fullbleed {
    position: relative;
    height: clamp(320px, 52vw, 620px);
    overflow: hidden;
}
.fullbleed img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.55) sepia(0.24) saturate(0.82) contrast(1.03) brightness(1.03);
}
.fullbleed__quote {
    position: absolute; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(30,34,20,0.28), rgba(30,34,20,0.44));
    color: var(--paper-soft);
}
.fullbleed__quote p {
    font-family: var(--script);
    font-size: clamp(30px, 5vw, 60px);
    margin: 0;
    text-shadow: 0 2px 26px rgba(20,24,12,0.4);
}

/* ---------- Location / Details ---------- */
.details {
    max-width: 640px;
    margin: clamp(40px, 6vw, 72px) auto 0;
    text-align: center;
}
.details__label {
    font-family: var(--script);
    font-size: 28px;
    color: var(--gold);
    margin: 0 0 6px;
}
.details__label + .details__label { margin-top: 30px; }
.details__text { margin: 0 0 8px; color: var(--ink-soft); }
.details__text strong { color: var(--ink); font-weight: 600; }
.details .pill {
    margin-top: 30px;
    background: var(--olive);
    border-color: var(--olive);
    color: var(--paper);
}
.details .pill:hover {
    background: var(--paper-deep);
    border-color: var(--olive);
    color: var(--olive);
}

/* ---------- Room booking ---------- */
.room-booking {
    border-bottom: 1px solid var(--line);
}
.room-booking__button {
    margin-top: 30px;
    background: var(--olive);
    border-color: var(--olive);
    color: var(--paper);
}
.room-booking__button:hover {
    background: var(--paper-deep);
    color: var(--olive);
}

/* ---------- Booking access ---------- */
body.modal-open { overflow: hidden; }
.access-modal[hidden] { display: none; }
.access-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(44,49,32,0.36);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}
.access-modal__dialog {
    position: relative;
    width: min(480px, 100%);
    padding: 52px 48px 42px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 70px rgba(44,49,32,0.24);
    text-align: center;
}
.access-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
.access-modal__title {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.08;
    text-transform: uppercase;
}
.access-modal__copy {
    max-width: 360px;
    margin: 20px auto 26px;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.55;
}
.access-modal__form { display: grid; gap: 12px; text-align: left; }
.access-modal__form label {
    color: var(--ink-soft);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.access-modal__form input {
    width: 100%;
    height: 52px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: var(--paper-soft);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: 0.3em;
    text-align: center;
}
.access-modal__form input:focus { border-color: var(--olive); }
.access-modal__submit {
    width: 100%;
    margin-top: 4px;
    background: var(--olive);
    border-color: var(--olive);
    color: var(--paper);
    cursor: pointer;
}
.access-modal__submit:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.access-modal__message {
    min-height: 24px;
    margin: 0;
    color: var(--olive-deep);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

/* ---------- Two-column info ---------- */
.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 70px);
    margin-top: clamp(40px, 6vw, 68px);
    text-align: left;
}
.col__title {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 26px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.col p { margin: 0 0 14px; color: var(--ink-soft); }
.col ul { list-style: none; margin: 0 0 14px; padding: 0; }
.col li {
    padding: 10px 0 10px 20px;
    position: relative;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}
.col li:first-child { border-top: 0; }
.col li::before {
    content: "";
    position: absolute; left: 0; top: 19px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
}
.col li strong { color: var(--ink); font-weight: 600; }

/* ---------- Dresscode ---------- */
.dress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    margin-top: clamp(40px, 6vw, 68px);
}
.dress__card {
    border: 1px solid var(--line);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
    background: var(--paper);
}
.dress__day {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 28px;
    margin: 0;
}
.dress__code {
    font-family: var(--script);
    font-size: 26px;
    color: var(--gold);
    margin: 6px 0 26px;
}
.dress__intro {
    max-width: 420px;
    margin: -8px auto 24px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.55;
}
.dress__lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    text-align: left;
    border-top: 1px solid var(--line);
    padding-top: 26px;
}
.dress__label {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 12px;
}
.dress__list { list-style: none; margin: 0; padding: 0; }
.dress__list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    color: var(--ink-soft);
    font-size: 17px;
}
.dress__list li::before {
    flex: 0 0 14px;
    font-size: 13px;
    line-height: inherit;
}
.dress__list--do li::before { content: "\2713"; color: var(--olive); }
.dress__list--dont li::before { content: "\2715"; color: #a2705f; }

/* ---------- RSVP ---------- */
.rsvp {
    position: relative;
    text-align: center;
    color: var(--paper-soft);
    padding: clamp(96px, 14vw, 168px) 24px;
    background: var(--olive);
}
.rsvp .wrap--narrow { position: relative; z-index: 2; }
.rsvp .lede { color: var(--paper-soft); }
.rsvp .pill { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--paper);
    color: var(--ink);
    text-align: center;
    padding: 70px 24px;
}
.footer__names {
    font-family: var(--script);
    font-size: 34px;
    margin: 0 0 8px;
    color: var(--ink);
}
.footer__meta {
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav { padding: 12px 20px; }
    .nav__links { display: none; }
    .band { padding: 78px 22px; }
    .day { grid-template-columns: 1fr; gap: 26px; }
    .day--reverse .day__media { order: 0; }
    .details { grid-template-columns: 1fr; }
    .cols { grid-template-columns: 1fr; }
    .dress { grid-template-columns: 1fr; }
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 68px;
    }
    .hero__media {
        left: 50vw;
        transform: translateX(-50%);
        width: 100vw;
        aspect-ratio: 3 / 2;
        padding: 18px 12px 0;
    }
    .hero__inner {
        left: 50vw;
        transform: translateX(-50%);
        width: 100vw;
        max-width: none;
        padding: 42px 22px 74px;
    }
    .hero__scroll { left: 50%; bottom: 8px; }
}
@media (max-width: 540px) {
    .access-modal {
        padding: 8px 14px;
        overflow-y: auto;
    }
    .access-modal__dialog {
        max-height: calc(100dvh - 16px);
        padding: 30px 20px 14px;
        overflow-y: auto;
    }
    .access-modal__close {
        top: 4px;
        right: 4px;
        width: 34px;
        height: 34px;
        font-size: 28px;
    }
    .access-modal__dialog .kicker {
        margin-bottom: 5px;
        font-size: 25px;
    }
    .access-modal__title { font-size: 29px; }
    .access-modal__copy {
        margin: 10px auto 14px;
        font-size: 16px;
        line-height: 1.4;
    }
    .access-modal__form { gap: 7px; }
    .access-modal__form label { font-size: 12px; }
    .access-modal__form input {
        height: 44px;
        font-size: 21px;
    }
    .access-modal__submit {
        margin-top: 2px;
        padding: 11px 28px;
    }
    .access-modal__message {
        min-height: 19px;
        font-size: 14px;
        line-height: 1.35;
    }
    .dress__lists { grid-template-columns: 1fr; gap: 18px; }
    .hero__meta { gap: 12px; letter-spacing: 0.24em; }
    .day { gap: 12px; }
    .day__media { height: min(106vw, 400px); }
    .day__media img {
        height: 100%;
        object-fit: contain;
    }
}
