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

/* Design tokens */
:root {
    /* Colors */
    --color-bg: #F7F5F2;           /* Light linen */
    --color-surface: #FFFFFF;      /* Cards */
    --color-text: #2F2A2A;         /* Rich dark */
    --color-muted: #6E6464;        /* Muted text */
    --color-primary: #7A5C61;      /* Mauve */
    --color-primary-600: #6C5155;  /* Hover */
    --color-accent: #C49A6C;       /* Soft gold */
    --color-accent-100: #F2E6D6;   /* Accent tint */
    --color-border: #E6E1DC;       /* Subtle borders */

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --font-display: 'Playfair Display', Georgia, "Times New Roman", Times, serif;
    --fs-base: 16px;
    --lh-base: 1.7;

    /* Radii & effects */
    --radius-sm: 8px;
    --radius-md: 14px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
}

html { font-size: var(--fs-base); }

body {
    font-family: var(--font-body);
    line-height: var(--lh-base);
    color: var(--color-text);
    background: radial-gradient(1200px 600px at 20% -10%, var(--color-accent-100), transparent 60%),
                radial-gradient(1000px 500px at 110% 10%, #efe9e1, transparent 55%),
                var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    background: color-mix(in oklab, var(--color-surface) 85%, transparent);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

header nav ul li {
    margin: 0 1.5rem;
}

header nav ul li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.25s ease, transform 0.25s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--color-primary);
}

/* Hero Section with Blurred Background */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/wedding-photo.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2.5rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
}

.hero-content .subtitle {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Container for content pages */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 6rem 2rem 3.25rem;
}

.container article {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.container h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-primary);
    text-align: center;
}

.content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-text);
}

.content h2 {
    font-family: var(--font-display);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.content ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in oklab, var(--color-primary), transparent 65%);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.content a:hover {
    color: var(--color-primary-600);
    border-color: color-mix(in oklab, var(--color-primary-600), transparent 55%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #fff;
    border: 1px solid color-mix(in oklab, var(--color-primary), black 10%);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 0 color-mix(in oklab, var(--color-primary), black 10%);
}
.btn:hover { background: var(--color-primary-600); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Footer */
footer {
    background: linear-gradient(180deg, color-mix(in oklab, var(--color-primary), black 8%), color-mix(in oklab, var(--color-primary), black 14%));
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}
footer p { opacity: 0.95; }

/* Responsive Design */

/* Tablets and smaller */
@media (max-width: 1024px) {
    .container {
        padding: 5.5rem 1.5rem 3rem;
    }

    .container h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.3rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-content .subtitle {
        font-size: 1.15rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    header { position: sticky; }

    header nav ul {
        flex-wrap: wrap;
        padding: 0.75rem 0.5rem;
        justify-content: space-around;
    }

    header nav ul li {
        margin: 0.5rem 0.75rem;
    }

    header nav ul li a {
        font-size: 0.95rem;
    }

    .container { padding: 5rem 1rem 2rem; }

    .container article { padding: 2rem 1.25rem; }

    .container h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .content { font-size: 1rem; }

    .content h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .content ul {
        margin-left: 1.5rem;
    }

    footer { padding: 1.5rem; margin-top: 3rem; font-size: 0.9rem; }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle { font-size: 1rem; }

    header nav ul li {
        margin: 0.4rem 0.5rem;
    }

    header nav ul li a { font-size: 0.9rem; }

    .container article { padding: 1.5rem 1rem; }

    .container h1 { font-size: 1.75rem; }

    .content { font-size: 0.95rem; }

    .content h2 { font-size: 1.3rem; }
}

/* Large screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1100px;
    }

    .hero-content h1 { font-size: 4.5rem; }

    .hero-content .subtitle { font-size: 1.7rem; }
}

/* Slideshow (photos) */
.slideshow {
    position: relative;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    background: var(--color-surface);
}

.slideshow-track {
    display: flex;
    transition: transform 450ms ease;
    will-change: transform;
}

.slideshow-slide {
    min-width: 100%;
    height: 420px;
    display: grid;
    place-items: center;
    background: color-mix(in oklab, var(--color-accent-100), white 45%);
}
.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slideshow .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--color-primary), black 10%);
    background: color-mix(in oklab, var(--color-primary), white 10%);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, background .2s ease;
    user-select: none;
    z-index: 2; /* ensure arrows sit above slides */
}
.slideshow .nav:hover { transform: translateY(-50%) scale(1.05); }
.slideshow .nav:active { transform: translateY(-50%) scale(0.98); }
.slideshow .nav.prev { left: 0.75rem; }
.slideshow .nav.next { right: 0.75rem; }

.slideshow .nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.slideshow-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.slideshow-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: color-mix(in oklab, var(--color-primary), white 60%);
    opacity: .6;
}
.slideshow-dots button[aria-current="true"] {
    background: var(--color-primary);
    opacity: 1;
}

@media (max-width: 768px) {
    .slideshow-slide { height: 300px; }
}
