/* ─────────────────────────────────────────────
   Elena & Panayiotis · 10.10.2026
   ───────────────────────────────────────────── */

:root {
    --cream: #fdf8f2;
    --cream-deep: #f6ede1;
    --paper: #ffffff;
    --ink: #3a2e2e;
    --ink-soft: #5a4a42;
    --muted: #8a7060;
    --gold: #b8986a;
    --gold-soft: #d8c3a0;
    --gold-faint: #e8ddd0;
    --shadow-sm: 0 2px 12px rgba(58, 46, 46, 0.06);
    --shadow-md: 0 8px 30px rgba(58, 46, 46, 0.1);
    --shadow-lg: 0 18px 50px rgba(58, 46, 46, 0.16);
    --serif: 'EB Garamond', 'Georgia', serif;
    --sans: 'Inter', 'Helvetica Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.nav.scrolled {
    background: rgba(253, 248, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gold-faint), var(--shadow-sm);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.nav-brand {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: 0.12rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    margin-right: 1rem;
}

.nav-brand em {
    font-style: italic;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: clamp(0.9rem, 3vw, 2rem);
}

.nav-links a {
    font-size: 0.74rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.25rem 4.5rem;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(216, 195, 160, 0.35), transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(216, 195, 160, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 8% 95%, rgba(216, 195, 160, 0.18), transparent 70%),
        var(--cream);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(184, 152, 106, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 620px;
    height: 620px;
    top: -280px;
    right: -220px;
}

.hero::after {
    width: 460px;
    height: 460px;
    bottom: -220px;
    left: -180px;
}

.hero-ornament {
    color: var(--gold);
    font-size: 1.15rem;
    letter-spacing: 0.6rem;
    margin-bottom: 1.6rem;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.hero-names {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.6rem, 8.5vw, 5.2rem);
    line-height: 1.12;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.hero-names .amp {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    font-size: 0.72em;
    margin: 0 0.18em;
}

.hero-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.6rem;
    font-size: clamp(0.8rem, 2.4vw, 0.95rem);
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.hero-date::before,
.hero-date::after {
    content: "";
    width: clamp(28px, 8vw, 70px);
    height: 1px;
    background: var(--gold);
}

/* countdown */
.countdown {
    display: flex;
    gap: clamp(0.7rem, 3vw, 1.6rem);
    margin-top: 2.6rem;
}

.count-unit {
    min-width: clamp(64px, 17vw, 92px);
    padding: 0.9rem 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--gold-faint);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.count-unit b {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.count-unit span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.62rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    color: var(--muted);
}

.countdown-done {
    margin-top: 2.4rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2.6rem;
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-solid {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-solid:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    color: var(--ink);
    border: 1px solid var(--gold);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

.scroll-cue {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    text-decoration: none;
    animation: bob 2.2s ease-in-out infinite;
    line-height: 1;
}

.scroll-cue svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes bob {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

/* ── Sections ── */
.section {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(3.2rem, 8vw, 5.5rem) 1.25rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: clamp(1.8rem, 5vw, 2.8rem);
}

.section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.55rem;
}

.section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    color: var(--ink);
}

.section-head .divider {
    width: 72px;
    height: 1px;
    background: var(--gold);
    margin: 1.1rem auto 0;
    position: relative;
}

.section-head .divider::after {
    content: "✦";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cream);
    padding: 0 0.5rem;
    color: var(--gold);
    font-size: 0.7rem;
}

/* ── Invitation card ── */
.invite-card {
    background: var(--paper);
    border: 1px solid var(--gold-faint);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: clamp(2rem, 5vw, 3.2rem) clamp(1.4rem, 5vw, 3rem);
    display: flex;
    gap: clamp(1.4rem, 4vw, 2.4rem);
    position: relative;
    overflow: hidden;
}

.invite-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(184, 152, 106, 0.28);
    border-radius: 12px;
    pointer-events: none;
}

.invite-date-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.invite-date {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.invite-date .nums {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.05;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.invite-date .rule {
    width: 1px;
    background: linear-gradient(var(--gold), var(--ink));
}

.invite-day {
    font-size: 0.68rem;
    letter-spacing: 0.2rem;
    color: var(--muted);
    margin-top: 0.7rem;
}

.invite-text {
    flex: 1;
    text-align: center;
}

.invite-lead {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 1.1rem;
}

.invite-names {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    letter-spacing: 0.2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--ink);
}

.invite-names .and {
    font-style: italic;
    font-weight: 400;
    font-size: 0.72em;
    margin: 0 0.5rem;
    color: var(--gold);
    letter-spacing: 0;
}

.invite-when {
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 1.1rem 0;
    color: var(--ink-soft);
}

.invite-when strong {
    display: block;
    color: var(--ink);
    letter-spacing: 0.05rem;
}

.invite-families {
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 1.3rem 0;
}

.invite-families p+p {
    margin-top: 0.5rem;
}

.invite-families .muted {
    color: var(--muted);
    font-size: 0.8rem;
}

.invite-reception {
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 1.3rem 0 1.1rem;
    color: var(--ink-soft);
}

.invite-times {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    font-size: 0.9rem;
    color: var(--ink);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding-left: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0.4rem 2rem 1.8rem 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding: 0.4rem 0 1.8rem 2rem;
    text-align: left;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0.85rem;
    right: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--gold);
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: -4px;
}

.timeline-time {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.2;
}

.timeline-label {
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-top: 0.15rem;
    line-height: 1.5;
}

.timeline-emoji {
    font-size: 1.3rem;
    line-height: 1;
}

/* ── Location cards ── */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}

.card {
    background: var(--paper);
    border: 1px solid var(--gold-faint);
    border-radius: 16px;
    padding: 1.6rem 1.7rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-soft);
}

.card-tag {
    display: inline-block;
    font-size: 0.64rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-soft);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    margin-bottom: 0.85rem;
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.card .address {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
    line-height: 1.55;
    flex: 1;
}

.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.05rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    transition: background 0.2s, transform 0.2s;
}

.maps-btn:hover {
    background: var(--gold);
    transform: translateY(-1px);
}

.maps-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Photo collage ── */
.scatter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem 1.4rem;
    padding-top: 0.5rem;
}

.polaroid {
    background: #fff;
    padding: 10px 10px 30px;
    border-radius: 3px;
    box-shadow: var(--shadow-md);
    width: 180px;
    cursor: zoom-in;
    border: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.polaroid:nth-child(1) {
    transform: rotate(-6deg);
}

.polaroid:nth-child(2) {
    transform: rotate(4deg) translateY(12px);
}

.polaroid:nth-child(3) {
    transform: rotate(-3deg) translateY(-6px);
}

.polaroid:nth-child(4) {
    transform: rotate(7deg);
}

.polaroid:nth-child(5) {
    transform: rotate(-8deg) translateY(8px);
}

.polaroid:hover,
.polaroid:focus-visible {
    transform: translateY(-8px) rotate(0deg) scale(1.04);
    box-shadow: var(--shadow-lg);
    z-index: 5;
    outline: none;
}

.polaroid .frame {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gold-faint);
    position: relative;
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* placeholder shown when a photo file is missing */
.polaroid .frame::after {
    content: attr(data-n);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-soft);
    pointer-events: none;
    z-index: -1;
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(30, 22, 22, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(92vw, 900px);
    max-height: 84vh;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    background: #fff;
    padding: 10px;
    transform: scale(0.94);
    transition: transform 0.3s ease;
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ── Footer ── */
footer {
    text-align: center;
    margin-top: clamp(3.5rem, 9vw, 6rem);
    padding: 2.8rem 1.25rem 2.4rem;
    background: linear-gradient(transparent, var(--cream-deep));
}

footer .foot-names {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink);
}

footer .foot-note {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.12rem;
    color: var(--gold);
    text-transform: uppercase;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-links a {
        font-size: 0.66rem;
        letter-spacing: 0.08rem;
    }

    .hero-date {
        flex-direction: column;
        gap: 0.7rem;
    }

    .hero-date::before,
    .hero-date::after {
        width: 40px;
    }

    .invite-card {
        flex-direction: column;
        text-align: center;
    }

    .invite-date {
        justify-content: center;
    }

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

    .timeline::before {
        left: 8px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0.3rem 0 1.6rem 2.2rem;
        text-align: left;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 4px;
        right: auto;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .polaroid {
        width: calc(50% - 0.8rem);
        max-width: 165px;
    }

    .polaroid:nth-child(n) {
        transform: rotate(0deg);
    }

    .count-unit {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .nav {
        justify-content: center;
    }

    .nav-brand {
        display: none;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem 1rem;
    }

    .nav-links a {
        font-size: 0.64rem;
        letter-spacing: 0.06rem;
    }

    .invite-times {
        gap: 1rem;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-cue {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
