@font-face {
    font-family: "Snell Roundhand";
    src: url("/Snell-Roundhand-Font/Snell-BT-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Snell Roundhand";
    src: url("/Snell-Roundhand-Font/Snell-BT-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Forum", serif;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.2;
}

/* Utility */

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.script {
    font-family: "Snell Roundhand", "Great Vibes", cursive;
}

.section {
    padding: 80px 0;
}

/* Section headings — two sizes: large (70px) and default (50px) */

.heading-lg {
    font-size: 70px;
    margin-bottom: 30px;
}

.heading-md {
    font-size: 50px;
    margin-bottom: 20px;
}

.heading-sm {
    font-size: 45px;
}

/* Body text block — centered, constrained width */

.body-text {
    max-width: 680px;
    margin: 0 auto;
}

.body-text p + p {
    margin-top: 16px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.header-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
}

.header-name {
    font-family: "Snell Roundhand", "Great Vibes", cursive;
    font-size: 25px;
}

/*.header-nav a {
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 0.6;
}*/

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lang-switch a {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.lang-switch a:hover {
    opacity: 0.7;
}

.lang-switch a.lang-active {
    opacity: 1;
    font-weight: 700;
}

.lang-divider {
    opacity: 0.3;
    margin: 0 2px;
}

/* Hero */

.hero {
    position: relative;
    height: 95vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-title {
    font-family: "Snell Roundhand", "Great Vibes", cursive;
    font-size: 126px;
    line-height: 1;
}

.hero-date {
    font-size: 16px;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Invitation */

.invitation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
}

.invitation-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.invitation-text h2 {
    font-family: "Snell Roundhand", "Great Vibes", cursive;
    font-size: 70px;
    margin-bottom: 30px;
}

.invitation-text p {
    margin-bottom: 30px;
}

.invitation-photo {
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Forum", serif;
    font-size: 15px;
    padding: 10px 20px;
    border: 1px solid #000;
    color: #000;
    background: transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-align: center;
    transition:
        background 0.3s,
        color 0.3s;
}

.btn:hover {
    background: #000;
    color: #fff;
}

.btn svg {
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.btn:hover svg {
    transform: rotate(90deg) translateY(-3px);
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 10px;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Event Details */

.event-details {
    background: #f7f5f2;
}

.event-details p {
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    border: none;
    border-top: 1px solid #ccc;
    width: 60px;
    margin: 30px auto;
}

.venue-image {
    margin: 30px auto 0;
    width: 100%;
    max-width: 500px;
}

/* Schedule */

.schedule-list {
    max-width: 760px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    gap: 40px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

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

.schedule-time {
    flex: 0 0 200px;
    text-align: right;
}

.schedule-time h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.schedule-time p {
    font-weight: 700;
}

/* Dresscode */

.dresscode-details {
    background: #f7f5f2;
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 60px;
}

.swatch {
    position: relative;
    width: 25px;
    height: 150px;
    overflow: hidden;
}

.swatch-rect {
    width: 100%;
    height: 100%;
}

.swatch-black {
    background: #000;
}
.swatch-chocolate {
    background: #5c3d2e;
}
.swatch-beige {
    background: #d5c8b5;
}
.swatch-milk {
    background: #f5f0eb;
    border: 1px solid #e0dcd8;
}

.swatch-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 13px;
    white-space: nowrap;
}

/* Confirm Attendance */

.confirm-attendance {
    background: #f7f5f2;
}

/* Footer */

.site-footer {
    padding: 40px 0 60px;
}

/* Fade-in on scroll */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 768px) {
    .hero-title {
        font-size: 64px;
    }
    .heading-lg {
        font-size: 48px;
    }
    .heading-md {
        font-size: 40px;
    }
    .heading-sm {
        font-size: 36px;
    }

    .invitation-grid {
        grid-template-columns: 1fr;
    }
    .invitation-text {
        padding: 60px 30px;
    }
    .invitation-text h2 {
        font-size: 48px;
    }
    .invitation-photo {
        min-height: 400px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-item {
        flex-direction: column;
        gap: 8px;
    }
    .schedule-time {
        flex: none;
        text-align: left;
    }

    .container {
        padding: 0 24px;
    }

    .swatch {
        width: 25px;
        height: 120px;
    }
    .swatch-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }
    .hero-title {
        font-size: 44px;
    }
    .heading-lg {
        font-size: 36px;
    }
    .heading-md {
        font-size: 32px;
    }
    .heading-sm {
        font-size: 28px;
    }
    .invitation-text h2 {
        font-size: 36px;
    }

    .header-inner {
        padding: 14px 20px;
    }
    .header-name {
        font-size: 20px;
    }
    .header-nav a {
        font-size: 13px;
    }
}
