:root {
    --bg: #faf8f6;
    --primary: #6b4e3d;
    --accent: #c7a27c;
    --text: #2e2e2e;
    --muted: #777;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

form {
  background: var(--bg);
}

header {
    min-height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url('lightback.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

nav ul {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

section {
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

section p {
    max-width: 36rem;
    margin: 0 auto 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.rsvp {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.07);
    max-width: 100%;
    margin: 0 auto;
}

form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

input, select, textarea, button {
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
}

button {
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 0.9rem;
}

footer {
    text-align: center;
    padding: 1.75rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.dresscode {
  text-align: left;
}

/* TABLET AND UP */
@media (min-width: 768px) {
    header h1 { font-size: 3.2rem; }
    nav ul { justify-content: center; gap: 2rem; }
    section { max-width: 1000px; margin: 0 auto; }
    .details-grid { grid-template-columns: repeat(3, 1fr); }
    .rsvp { max-width: 600px; }
}

/* DESKTOP AND UP */
@media (min-width: 1024px) {
    header { min-height: 100vh; }
    header h1 { font-size: 4rem; }
    section h2 { font-size: 2.3rem; }
}