/* Authentic Vintage Charm Theme */
:root {
    --paper-bg: #FDFBF7;
    --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    --ink-black: #2b2b2b;
    --faded-ink: #555555;
    --aged-gold: #c5a065;
    --burgundy: #742a2a;
    --sepia-overlay: rgba(112, 66, 20, 0.1);

    --font-display: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', serif;

    --border-frame: 10px solid var(--ink-black);
}

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

body {
    background-color: var(--paper-bg);
    background-image: var(--paper-texture);
    color: var(--ink-black);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Vintage Paper Effect Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(139, 69, 19, 0.1) 100%);
    pointer-events: none;
    z-index: 999;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--aged-gold);
}

.script-accent {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--aged-gold);
    text-transform: none;
    display: block;
    margin-bottom: -15px;
}

/* Layout Container - Like a physical card/letter */
.paper-container {
    max-width: 900px;
    margin: 60px auto;
    background: #fff;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0dcd3;
    position: relative;
}

/* Ornamental Corners */
.ornament-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--aged-gold);
    pointer-events: none;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 2px double var(--faded-ink);
    margin-bottom: 60px;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 2px;
}

.lang-switch button {
    background: none;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
    color: var(--faded-ink);
    padding: 5px 10px;
    transition: 0.3s;
}

.lang-switch button.active,
.lang-switch button:hover {
    border-color: var(--aged-gold);
    color: var(--ink-black);
}

/* Hero Section */
.hero-content {
    text-align: center;
    padding: 40px 0;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background: var(--ink-black);
    margin: 30px auto;
}

.wedding-date {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--burgundy);
    margin-top: 20px;
}

/* Sections */
section {
    margin-bottom: 80px;
    text-align: center;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.drop-cap {
    float: left;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 10px;
    margin-top: 5px;
    color: var(--burgundy);
}

/* Photo Frames */
.vintage-photo {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s;
    margin: 20px auto;
    max-width: 100%;
}

.vintage-photo:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 10;
}

.vintage-photo img {
    width: 100%;
    filter: sepia(0.3) contrast(1.1);
    display: block;
}

.photo-tape {
    width: 100px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Details Grid */
.details-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--aged-gold);
    border-bottom: 1px solid var(--aged-gold);
    padding: 30px 0;
}

.detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--burgundy);
}

/* RSVP Form - Styled like a postcard */
.rsvp-card {
    background: #fdfdfd;
    border: 1px solid #ccc;
    padding: 40px;
    position: relative;
    text-align: left;
}

.stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 70px;
    border: 2px dotted var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    font-size: 0.8rem;
    transform: rotate(5deg);
    opacity: 0.7;
}

.form-row {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.form-row label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--faded-ink);
    margin-right: 10px;
}

.form-row input,
.form-row select,
.form-row textarea {
    background: transparent;
    border: none;
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--ink-black);
    width: 100%;
    outline: none;
    padding: 5px 0;
}

.form-row input::placeholder {
    color: #ccc;
    font-family: var(--font-body);
}

.btn-submit {
    background: var(--ink-black);
    color: #fff;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--burgundy);
}

/* Language Visibility */
[data-lang="pl"] .lang-en {
    display: none;
}

[data-lang="en"] .lang-pl {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .paper-container {
        padding: 30px 20px;
        margin: 20px auto;
        width: 95%;
    }

    .details-list {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ornament-corner {
        width: 30px;
        height: 30px;
    }

    h1 {
        font-size: 3.5rem;
    }
}