/* Lisa & James — placeholder theme.
   Colours live in the custom properties below; change them there. */

:root {
    --paper: #f6f1ea;
    --paper-deep: #efe6da;
    --card: #fffdf9;
    --ink: #2f2a26;
    --ink-soft: #6b625a;
    --accent: #8a6f5a;
    --line: #d9cbbb;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1c1916;
        --paper-deep: #24201c;
        --card: #26221e;
        --ink: #f1e9df;
        --ink-soft: #b9ad9f;
        --accent: #d1b49a;
        --line: #4a4038;
    }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(60rem 40rem at 10% -10%, var(--paper-deep), transparent 60%),
        radial-gradient(50rem 36rem at 110% 110%, var(--paper-deep), transparent 60%),
        var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.7;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

/* Navigation (only shown once there is more than one page) */
.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.75rem;
    margin: 0;
    padding: 1.5rem 1rem 0;
    list-style: none;
}
.site-nav a {
    color: var(--ink-soft);
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-nav a.current, .site-nav a:hover { color: var(--ink); }

/* The centred card */
.stage {
    flex: 1;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 4rem) 1rem;
}

.card {
    width: min(100%, 44rem);
    padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 6vw, 4.5rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 24px 60px -30px rgb(60 40 20 / 0.25);
    text-align: center;
    position: relative;
}

/* A thin inner frame, like a printed card */
.card::before {
    content: "";
    position: absolute;
    inset: 0.75rem;
    border: 1px solid var(--line);
    opacity: 0.6;
    pointer-events: none;
}

.names, .page-title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-wrap: balance;
}
.names { font-size: clamp(3rem, 11vw, 5.75rem); }
.page-title { font-size: clamp(2.25rem, 7vw, 3.5rem); }

.amp {
    display: inline-block;
    margin: 0 0.12em;
    font-style: italic;
    color: var(--accent);
}

.flourish {
    margin: 1.75rem auto 1.5rem;
    color: var(--accent);
    opacity: 0.8;
}
.flourish svg { max-width: 100%; height: auto; }

.content {
    max-width: 32rem;
    margin: 0 auto;
    color: var(--ink-soft);
}
.content p { margin: 0 0 1em; }
.content > :last-child { margin-bottom: 0; }
.content h2, .content h3 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.2;
}
.content img { max-width: 100%; height: auto; }

.is-home .content {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.25rem, 3.4vw, 1.5rem);
    line-height: 1.5;
}

/* Forms (login, future RSVP, …) */
.content form { text-align: left; margin-top: 1.5rem; }
.content label { display: block; font-size: 0.875rem; color: var(--ink-soft); }
.content input[type="text"], .content input[type="email"], .content input[type="password"], .content textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.content input[type="submit"], .content button {
    margin-top: 1rem;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--card);
    font: inherit;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.site-footer {
    padding: 0 1rem 1.75rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
    .card { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: none; }
    }
}
