/* ==========================================================================
   Luke & Laura — elegant, classic wedding site
   Palette: warm cream, deep ink, muted gold, soft sage
   ========================================================================== */

:root {
    --cream:      #f7f2e9;
    --cream-deep: #efe7d8;
    --ink:        #2f2b25;
    --ink-soft:   #5b554c;
    --gold:       #a98b4e;
    --gold-deep:  #8a6f3a;
    --sage:       #6f7c63;
    --line:       #d9cdb6;
    --white:      #fffdf8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 19px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "Cormorant Garamond", "EB Garamond", serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin: 0;
}

a { color: var(--gold-deep); }

.eyebrow, .hero-eyebrow, .stat-label {
    font-family: "EB Garamond", serif;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    color: var(--gold-deep);
}

/* --------------------------------------------------------------- Buttons */

.btn {
    display: inline-block;
    font-family: "EB Garamond", serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--gold);
    padding: 0.85em 2.4em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--gold); color: var(--white); }

.textlink {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1px;
}
.textlink:hover { border-color: var(--gold); }

/* ----------------------------------------------------------------- Hero */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 90% at 50% 0%, var(--white) 0%, var(--cream) 55%, var(--cream-deep) 100%);
    text-align: center;
    padding: 2rem 1.5rem 4rem;
}
.hero-short { min-height: 70vh; }

.topnav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 0.5rem 0 0;
}
.topnav a {
    font-family: "EB Garamond", serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.74rem;
    color: var(--ink-soft);
    text-decoration: none;
}
.topnav a:hover { color: var(--gold-deep); }

.hero-inner {
    margin: auto;
    max-width: 760px;
}
.hero-eyebrow { display: block; margin-bottom: 1.8rem; }

.hero-names {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    line-height: 1.04;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}
.hero-names .amp {
    color: var(--gold);
    font-style: italic;
    font-size: 0.62em;
    font-weight: 400;
    margin: 0.05em 0;
}
.hero-names.small { font-size: clamp(2.4rem, 6vw, 4rem); }

.hero-invite {
    margin: 1.8rem 0 0;
    color: var(--ink-soft);
    font-size: 1.15rem;
    font-style: italic;
}

.hero-meta {
    margin: 2rem 0 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.86rem;
    color: var(--ink);
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
}
.hero-meta .dot { color: var(--gold); }
.hero-btn { margin-top: 0.5rem; }

/* Decorative hairline rule under the hero meta */
.hero-meta::before,
.hero-meta::after {
    content: "";
    display: inline-block;
    width: 48px;
    height: 1px;
    background: var(--line);
}

/* -------------------------------------------------------------- Sections */

.section {
    max-width: 980px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}
.section-alt { background: var(--white); max-width: none; }
.section-alt > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.section-rsvp { background: var(--cream-deep); max-width: none; }
.section-rsvp > * { max-width: 720px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .eyebrow { display: block; margin-bottom: 0.9rem; }
.section-head h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 0.6rem;
}
.lede {
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.08rem;
}

/* -------------------------------------------------------------- Timeline */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 140px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--line);
}
.event {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2.5rem;
    padding: 1.6rem 0 2.6rem;
    position: relative;
}
.event::before {
    content: "";
    position: absolute;
    left: 135px;
    top: 2.05rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--cream);
    border: 1.5px solid var(--gold);
}
.section-alt .event::before { background: var(--white); }

.event-when { text-align: right; padding-top: 0.2rem; }
.event-day {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    color: var(--ink);
}
.event-date { display: block; font-size: 0.85rem; color: var(--ink-soft); }
.event-time {
    display: block;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--gold-deep);
}

.event-body h3 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.event-venue { margin: 0; font-style: italic; color: var(--sage); font-size: 1.1rem; }
.event-address { margin: 0.1rem 0 0.8rem; font-size: 0.92rem; color: var(--ink-soft); }
.event-desc { margin: 0 0 0.9rem; }

/* ----------------------------------------------------------------- Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}
.card {
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 2rem 1.8rem;
    text-align: center;
}
.card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0 0 1rem; }
.travel-note {
    text-align: center;
    font-style: italic;
    color: var(--ink-soft);
    margin-top: 2.6rem;
}

/* ------------------------------------------------------------------ Form */

.rsvp-form {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 2.8rem 2.4rem;
}
.field { margin-bottom: 1.6rem; border: 0; padding: 0; }
.field > label,
.field legend {
    display: block;
    font-family: "EB Garamond", serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    color: var(--ink-soft);
    margin-bottom: 0.55rem;
    padding: 0;
}
.muted { text-transform: none; letter-spacing: 0; color: var(--line); }

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    font-family: "EB Garamond", serif;
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 0.75em 0.9em;
    border-radius: 0;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}
textarea { resize: vertical; }

.radio-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.radio, .check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
}
.check-grid { display: grid; gap: 0.7rem; }
.check span { font-weight: 400; }
.check strong { font-weight: 600; color: var(--ink); }

.rsvp-form .btn { margin-top: 0.6rem; width: 100%; }

.flash {
    max-width: 720px;
    margin: 1.5rem auto -2rem;
    text-align: center;
    color: var(--gold-deep);
    font-style: italic;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--ink);
    color: var(--cream);
}
.site-footer p { margin: 0.2rem 0; font-size: 0.95rem; }
.footer-place {
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.72rem !important;
    color: var(--gold);
}
.monogram {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

/* ----------------------------------------------------------------- Admin */

.admin { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; }
.stats { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.stat {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.4rem 2.2rem;
    text-align: center;
    min-width: 140px;
}
.stat-num { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--gold-deep); }
.stat-label { display: block; margin-top: 0.2rem; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.7rem;
    text-align: left;
    vertical-align: top;
}
.admin-table th {
    background: var(--cream-deep);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 600;
}
.th-sub { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.admin-table .tick { text-align: center; color: var(--sage); font-size: 1.1rem; }
.admin-table .when { white-space: nowrap; color: var(--ink-soft); font-size: 0.8rem; }
.admin-table .msg { max-width: 240px; }
.row-no { color: var(--ink-soft); background: rgba(0,0,0,0.015); }

/* ------------------------------------------------------------ Responsive */

@media (max-width: 640px) {
    body { font-size: 18px; }
    .topnav { gap: 1.4rem; }
    .timeline::before { left: 7px; }
    .event { grid-template-columns: 1fr; gap: 0.4rem; padding-left: 2rem; }
    .event::before { left: 2px; top: 0.5rem; }
    .event-when { text-align: left; }
    .event-day { font-size: 1.2rem; }
    .hero-meta { flex-direction: column; gap: 0.6rem; }
    .hero-meta::before, .hero-meta::after { display: none; }
    .rsvp-form { padding: 2rem 1.3rem; }
}
