:root {
    --sage-900: #5f6b57;
    --sage-800: #66725f;
    --sage-700: #74806b;

    --paper: #ffffff;
    --paper-2: #f7f6f2;

    --ink: #1f2a24;
    --muted: #5f6b63;
    --line: #e6e4dc;

    --shadow: 0 18px 60px rgba(0, 0, 0, .18);
    --shadow-soft: 0 14px 42px rgba(0, 0, 0, .10);

    --serif: ui-serif, "Georgia", "Times New Roman", serif;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--sage-900);
}

.page {
    margin: 0 auto;
    position: relative;
}

.columns {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strip {
    background: var(--paper);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 320px at 50% -40%, rgba(95, 107, 87, .08), transparent 60%),
        radial-gradient(700px 320px at 20% 110%, rgba(95, 107, 87, .06), transparent 60%);
    pointer-events: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fade .7s ease forwards;
}

.d1 {
    animation-delay: .10s;
}

@keyframes fade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    margin: 0;
    background: #0b0c0c;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .65) 0%,
            rgba(0, 0, 0, .35) 40%,
            rgba(0, 0, 0, .25) 60%,
            rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.hero__overlay {
    position: relative;
    z-index: 2;
    width: min(900px, 92vw);
    margin: 0 auto;
    margin-top: 300px;
    padding: clamp(44px, 7vh, 86px) 16px 0;
    text-align: center;
    overflow: hidden;
}

.hero__invite {
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 18px;
}

.hero__names {
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
    font-family: var(--serif);
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    text-shadow: 0 18px 50px rgba(0, 0, 0, .60);
}

.name-top,
.name-bottom {
    display: block;
    font-size: clamp(38px, 7vw, 80px);
    letter-spacing: .08em;
}

.and {
    display: block;
    font-family: var(--serif);
    font-size: 34px;
    margin: 8px 0;
    opacity: .9;
}

.hero-divider {
    width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, .6);
    margin: 24px auto 18px;
}

.hero__date {
    margin: 0;
    font-family: var(--serif);
    letter-spacing: .35em;
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .70);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    z-index: 2;
}

.mouse {
    width: 18px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    position: relative;
    opacity: .9;
}

.mouse::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .55);
    animation: wheel 1.25s ease-in-out infinite;
}

@keyframes wheel {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: .6;
    }

    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero__bg {
        object-fit: cover;
        object-position: center top;
    }
}

@media (max-width: 520px) {
    .hero__overlay {
        margin-top: 220px;
        width: 94vw;
        padding-left: 12px;
        padding-right: 12px;
    }

    .name-top,
    .name-bottom {
        font-size: clamp(34px, 10vw, 54px);
        letter-spacing: .05em;
    }

    .and {
        font-size: 18px;
    }

    .hero__invite {
        letter-spacing: .18em;
        font-size: 11px;
    }
}

/* =========================
   INVITE CARD
========================= */

.invite-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.invite-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 340px at 50% -10%, rgba(95, 107, 87, .10), transparent 60%),
        radial-gradient(700px 280px at 20% 120%, rgba(95, 107, 87, .07), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(247, 246, 242, .88));
    pointer-events: none;
}

.invite-inner {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 30px);
    text-align: center;
}

.invite-decor {
    position: absolute;
    width: 220px;
    opacity: .55;
    pointer-events: none;
    filter: saturate(.95);
}

.invite-decor.tl {
    top: -28px;
    left: -24px;
    transform: rotate(-6deg);
}

.invite-decor.br {
    bottom: -30px;
    right: -26px;
    transform: rotate(-6deg);
}

.invite-kicker {
    margin: 0 0 10px;
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    color: rgb(84, 94, 76);
}

.invite-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: .04em;
    color: rgba(95, 107, 87, .85);
}

.invite-divider {
    width: min(260px, 62vw);
    height: 1px;
    margin: 14px auto 12px;
    background: linear-gradient(90deg, transparent, rgba(95, 107, 87, .55), transparent);
}

.invite-text {
    margin: 0 auto;
    max-width: 62ch;
    color: rgba(31, 42, 36, .78);
    font-size: 15px;
    line-height: 1.75;
    text-align: center;
}

.invite-text p {
    margin: 0 0 12px;
}

.invite-sign {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.invite-heart {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(95, 107, 87, .25);
    background: rgba(95, 107, 87, .06);
    color: rgba(95, 107, 87, .85);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    font-size: 18px;
}

@media (max-width: 520px) {
    .invite-decor {
        width: 180px;
        opacity: .50;
    }

    .invite-text {
        font-size: 14.5px;
        line-height: 1.7;
    }
}

/* =========================
   CALENDAR
========================= */

.cal-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.cal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 340px at 50% -10%, rgba(95, 107, 87, .10), transparent 60%),
        radial-gradient(700px 280px at 20% 120%, rgba(95, 107, 87, .07), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(247, 246, 242, .88));
    pointer-events: none;
}

.cal-inner {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 3vw, 28px);
    text-align: center;
    background-color: #76806f;
}

.cal-kicker {
    margin: 0 0 10px;
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 24px;
    color: #fff;
}

.cal-wrap {
    margin: 0 auto;
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid rgba(95, 107, 87, .14);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .06),
        0 6px 18px rgba(0, 0, 0, .04);
    padding: 20px 18px 18px;
}

.cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cal-month {
    font-family: var(--serif);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(31, 42, 36, .85);
}

.cal-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(95, 107, 87, .90);
    letter-spacing: .02em;
}

.cal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(95, 107, 87, .85);
    box-shadow: 0 0 0 4px rgba(95, 107, 87, .14);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.cal-dow {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(95, 107, 87, .55);
    padding: 6px 0 4px;
}

.cal-days {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day {
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(95, 107, 87, .12);
    color: rgba(31, 42, 36, .85);
    font-size: 13px;
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .04);
}

.cal-day.is-empty {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.cal-day.is-today {
    outline: 2px solid rgba(95, 107, 87, .25);
    outline-offset: 2px;
}

.cal-day.is-wedding {
    border-color: rgba(95, 107, 87, .28);
    background:
        radial-gradient(80px 60px at 50% 35%, rgba(95, 107, 87, .18), transparent 70%),
        rgba(255, 255, 255, .9);
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(95, 107, 87, .18);
}

.cal-day.is-wedding::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 1.5px dashed rgba(95, 107, 87, .40);
    pointer-events: none;
}

.cal-day.is-wedding::before {
    content: "♥";
    position: absolute;
    top: -8px;
    right: -4px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(95, 107, 87, .92);
    color: #fff;
    font-size: 11px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.cal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 18px;
}

.cal-datebig {
    margin-left: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(31, 42, 36, .88);
}

.cal-datebig-day {
    font-family: var(--serif);
    font-size: 34px;
    letter-spacing: .06em;
}

.cal-datebig-rest {
    font-family: var(--serif);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(95, 107, 87, .90);
}

/* =========================
   VENUE
========================= */

.venue-card {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(230, 228, 220, .9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.venue-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 340px at 50% -10%, rgba(95, 107, 87, .10), transparent 60%),
        radial-gradient(700px 280px at 20% 120%, rgba(95, 107, 87, .07), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(247, 246, 242, .88));
    pointer-events: none;
}

.venue-inner {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 3vw, 28px);
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.venue-kicker {
    margin: 0 0 10px;
    font-family: var(--serif);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    color: rgba(95, 107, 87, .85);
}

.venue-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(24px, 4vw, 38px);
    letter-spacing: .03em;
    color: #2a352f;
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.venue-divider {
    width: min(240px, 60vw);
    height: 1px;
    margin: 14px auto 18px;
    background: linear-gradient(90deg, transparent, rgba(95, 107, 87, .55), transparent);
}

.venue-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.venue-text {
    max-width: 100%;
    text-align: center;
}

.venue-address {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: clamp(22px, 3.2vw, 30px);
    line-height: 1.15;
    color: #2a352f;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.venue-sub {
    margin: 0;
    color: rgba(31, 42, 36, .72);
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.venue-map-wrap {
    width: min(760px, 100%);
    max-width: 100%;
    margin: 10px auto;
    overflow: hidden;
    border: 1px solid rgba(95, 107, 87, .15);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .08);
}

.venue-map {
    display: block;
    width: 100%;
    height: 455px;
    border: 0;
}

.venue-decor {
    position: absolute;
    width: 210px;
    opacity: .45;
    pointer-events: none;
    filter: saturate(.95);
}

.venue-decor.tl {
    top: -26px;
    left: -18px;
    transform: rotate(-6deg);
}

.venue-decor.br {
    bottom: -26px;
    right: -18px;
    transform: rotate(-6deg);
}

@media (max-width: 640px) {
    .venue-map {
        height: 300px;
    }

    .venue-decor {
        width: 160px;
        opacity: .38;
    }
}

/* =========================
   PROGRAM
========================= */

.program-section {
    padding: 24px 0 30px;
    display: flex;
    justify-content: center;
    width: 100%;
    background: #75806f;
}

.program-stack {
    position: relative;
    width: min(420px, 92vw);
    margin: 0 auto;
}

.program-sheet {
    position: absolute;
    inset: 0;
    background: #ecebe6;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}

.sheet-back-1 {
    transform: rotate(-3deg) translate(-8px, 10px);
    opacity: .85;
}

.sheet-back-2 {
    transform: rotate(2.5deg) translate(8px, 14px);
    opacity: .65;
}

.program-card {
    position: relative;
    background: #75806f;
    color: #f7f5ef;
    padding: 22px 22px 26px;
    min-height: 520px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .16);
    overflow: hidden;
}

.program-date {
    text-align: center;
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: .04em;
    opacity: .92;
    margin-bottom: 14px;
}

.program-title {
    margin: 0 0 26px;
    text-align: center;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.program-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px 32px;
}

.program-item {
    position: relative;
}

.program-time {
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
    color: #fffdf8;
}

.program-time {
    position: relative;
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
    color: #fffdf8;
}

.program-text {
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .92);
}

.program-route {
    position: absolute;
    top: 150px;
    width: calc(100% - 10px);
    height: 200px;
    pointer-events: none;
}

.program-route path {
    fill: none;
    stroke: rgba(255, 255, 255, .45);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 7 10;
}

@media (max-width: 520px) {
    .program-card {
        min-height: 470px;
        padding: 18px 16px 22px;
    }

    .program-title {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .program-grid {
        gap: 46px 18px;
    }

    .program-time {
        font-size: 28px;
    }

    .program-text {
        font-size: 13px;
    }

    .program-route {
        inset: 108px 12px 18px 12px;
        width: calc(100% - 20px);
    }
}