:root {
    --bg: #f8f3ee;
    --bg-alt: #efe6dd;
    --text: #3a2f2a;
    --muted: #7a6a62;
    --accent: #b88b6a;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        url("/static/images/Oslo.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
}

.sub-hero {
    background: linear-gradient(to bottom, #eadfd4, #f8f3ee);
    border-bottom: 1px solid rgba(122, 106, 98, 0.15);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.35));
}

.navbar,
.hero-content {
    position: relative;
    z-index: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 48px;
    gap: 20px;
}

.logo {
    font-size: 1.4rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.brand-logo-image {
    width: 50px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-content {
    text-align: center;
    padding: 80px 20px 120px;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    margin-bottom: 16px;
}

.hero-date {
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.section {
    padding: 90px 20px;
}

.page-section {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
    text-align: center;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.page-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400;
    margin-bottom: 24px;
}

.lead {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 28px;
}

.countdown-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
}

.countdown-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 400;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

#countdown div {
    min-width: 110px;
    background: var(--bg);
    border-radius: 20px;
    padding: 22px 16px;
    box-shadow: var(--shadow);
}

#countdown span {
    display: block;
    font-size: 2rem;
    margin-bottom: 6px;
}

#countdown small {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.content-card {
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: left;
    margin-top: 18px;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.placeholder-box {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: linear-gradient(135deg, #d8c2b0, #f4ece5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.footer {
    text-align: center;
    padding: 32px 20px;
    background: #e8ddd2;
    color: var(--text);
}

.footer p {
    margin-bottom: 10px;
}

@media (max-width: 960px) {
    .navbar {
        padding: 20px 24px;
        flex-direction: column;
    }

    .nav-links {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .placeholder-grid {
        grid-template-columns: 1fr;
    }

    #countdown div {
        min-width: 90px;
    }
}

.gallery-board {
    position: relative;
    min-height: 780px;
    margin-top: 36px;
}

.memory-photo {
    position: absolute;
    width: 280px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.14))
            drop-shadow(0 28px 45px rgba(0, 0, 0, 0.12));
}

.memory-photo img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    box-shadow:
        0 2px 3px rgba(255, 255, 255, 0.22) inset,
        0 -1px 2px rgba(0, 0, 0, 0.03) inset;
}

.memory-photo:hover {
    transform: scale(1.035) translateY(-4px);
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.14))
            drop-shadow(0 30px 45px rgba(0, 0, 0, 0.12));
    z-index: 20;
}

.gallery-board {
    position: relative;
    min-height: 900px;
    margin-top: 36px;
}

.gallery-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 40% 80%, rgba(184, 139, 106, 0.08), transparent 30%);
    pointer-events: none;
}

.memory-photo::before,
.memory-photo::after {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 42%;
    height: 24px;
    background: rgba(0, 0, 0, 0.32);
    filter: blur(12px);
    z-index: 1;
}

.memory-photo::before {
    left: 8px;
    transform: rotate(-8deg);
    transform-origin: left center;
}

.memory-photo::after {
    right: 8px;
    transform: rotate(8deg);
    transform-origin: right center;
}

.photo-1 {
    top: 10px;
    right: 500px;
    width: 600px;
    transform: rotate(-5deg);
    z-index: 4;
}

.photo-2 {
    top: 400px;
    right: 450px;
    width: 600px;
    transform: rotate(5deg);
    z-index: 3;
}

.photo-3 {
    top: 120px;
    left: 100px;
    width: 400px;
    transform: rotate(-2deg);
    z-index: 2;
}

.photo-4 {
    top: 450px;
    left: 500px;
    width: 600px;
    transform: rotate(-6deg);
    z-index: 5;
}

.photo-5 {
    top: 20px;
    left: 540px;
    width: 600px;
    transform: rotate(7deg);
    z-index: 6;
}

@media (max-width: 900px) {
    .gallery-board {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .memory-photo {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        right: auto;
    }

    .photo-1,
    .photo-2,
    .photo-3,
    .photo-4,
    .photo-5 {
        transform: rotate(0deg);
    }
}

@media (max-width: 600px) {
    .gallery-board {
        grid-template-columns: 1fr;
    }

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

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 38px;
    align-items: start;
    margin-top: 36px;
}

.contact-image-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
    min-height: 685px;
    background: #e9dfd6;
}

.contact-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 685px;
    object-fit: cover;
}

.contact-info-panel {
    display: grid;
    gap: 20px;
}

.contact-intro-card,
.contact-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(184, 139, 106, 0.16);
    border-radius: 24px;
    padding: 26px 26px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
    text-align: left;
}

.contact-intro-card h2,
.contact-card h3 {
    font-weight: 400;
    margin-bottom: 12px;
}

.contact-intro-card h2 {
    font-size: 1.8rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--text);
}

.contact-person {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 18px;
}

.contact-person:first-of-type {
    margin-top: 6px;
}

.contact-icon {
    color: var(--accent);
    font-size: 1rem;
    line-height: 1.6;
    padding-top: 2px;
}

.contact-name {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 139, 106, 0.35);
}

.contact-card a:hover {
    border-bottom-color: rgba(184, 139, 106, 0.8);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
}

.contact-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.location-line {
    font-weight: 600;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-image-card,
    .contact-image-card img {
        min-height: 380px;
    }
}

.program-intro {
    max-width: 640px;
    margin: 0 auto 36px;
    text-align: center;
    color: var(--muted);
}

.timeline-elegant {
    position: relative;
    max-width: 780px;
    margin: 10px auto 0;
    padding-left: 36px;
}

.timeline-elegant::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(184, 139, 106, 0.15),
        rgba(184, 139, 106, 0.65),
        rgba(184, 139, 106, 0.15)
    );
}

.timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: start;
    margin-bottom: 28px;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(184, 139, 106, 0.14);
}

.timeline-time {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--accent);
    padding-top: 12px;
    text-align: right;
    white-space: nowrap;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(184, 139, 106, 0.14);
    border-radius: 22px;
    padding: 20px 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
    text-align: left;
}

.timeline-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.timeline-card p {
    color: var(--muted);
}

.highlight-event .timeline-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95),
        rgba(248, 243, 238, 0.95)
    );
    border: 1px solid rgba(184, 139, 106, 0.26);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
}

.highlight-event .timeline-dot {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 8px rgba(184, 139, 106, 0.18);
}

@media (max-width: 700px) {
    .timeline-elegant {
        padding-left: 28px;
    }

    .timeline-event {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-time {
        text-align: left;
        padding-top: 0;
    }

    .timeline-dot {
        left: -22px;
        top: 10px;
    }
}

.secret-hotspot {
    position: absolute;
    top: 32.25%;
    left: 54.92%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    z-index: 3;
    background: rgba(255, 180, 90, 0.18);
    box-shadow: 0 0 8px rgba(255, 180, 90, 0.22);
    display: block;
}

.secret-hotspot:hover {
    background: rgba(255, 180, 90, 0.35);
    box-shadow: 0 0 12px rgba(255, 180, 90, 0.35);
}

.gift-page-content {
    margin-top: 30px;
}

.gift-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 26px 0 24px;
}

.gift-shelf-image {
    display: block;
    max-width: 420px;
    width: 100%;
    height: auto;
}

.gift-note {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    color: var(--text);
}