:root {
    --ivory: #FDFBF8;
    --wine: #624A44;
    --wine-dark: #4A3733;
    --rose: #D8A0A0;
    --blush: #F7ECE4;
    --sage: #8A9A7E;
    --ink: #4A3733;
    --white: #fffefc;
    --shadow: 0 18px 50px rgba(74, 55, 51, .1);
    --radius: 6px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: "Work Sans", system-ui, sans-serif;
    line-height: 1.65;
}

a { color: inherit; }

h1, h2, h3 {
    margin: 0 0 1rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    line-height: 1.05;
}

p { margin: 0 0 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 6vw;
    background: var(--ivory);
    color: var(--wine);
    border-bottom: 1px solid rgba(98, 74, 68, .14);
}

.monogram {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.45rem;
    text-decoration: none;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wine);
}

.site-nav {
    display: flex;
    gap: 1.3rem;
    align-items: center;
}

.site-nav a,
.eyebrow,
label,
.button,
.meta {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.site-nav a {
    text-decoration: none;
    opacity: .85;
}

.site-nav a:hover { color: var(--sage); }

.nav-toggle,
.nav-button { display: none; }

.hero {
    position: relative;
    min-height: calc(100vh - 74px);
    display: grid;
    place-items: center;
    padding: 7rem 6vw;
    background:
        url('/images/floral-spray-large.png') -60px -40px / 380px auto no-repeat,
        url('/images/floral-spray-small.png') right -40px bottom -60px / 300px auto no-repeat,
        var(--ivory);
    color: var(--wine);
    text-align: center;
    overflow: hidden;
}

.hero-content { position: relative; max-width: 980px; }

.hero-photo {
    width: 168px;
    height: 168px;
    margin: 0 auto 1.6rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    margin: .3rem 0;
    font-size: .3em;
    font-style: italic;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--sage);
}

.hero p {
    font-size: 1.1rem;
    letter-spacing: .04em;
    color: var(--wine);
}

.date-line {
    display: inline-flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1.4rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--wine);
}

.date-line img { width: 46px; }

.section { padding: 5rem 6vw; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 760px; }
.centered { text-align: center; }

.intro-section h2,
.page-hero h1 { font-size: clamp(2.35rem, 8vw, 4.7rem); }

.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); }

.sprig { margin-bottom: 1.3rem; }
.sprig img { width: 92px; max-width: 100%; display: block; margin: 0 auto; }
.sprig.small img { width: 70px; }

.actions,
.centered-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.centered-actions { justify-content: center; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .8rem 1.15rem;
    border: 1px solid var(--wine);
    border-radius: var(--radius);
    background: var(--wine);
    color: var(--ivory);
    text-decoration: none;
    cursor: pointer;
}

.button:hover { background: var(--sage); border-color: var(--sage); }
.button-outline { background: transparent; color: var(--wine); }
.button-light { background: var(--ivory); border-color: var(--ivory); color: var(--wine); }

.text-link {
    color: var(--wine);
    font-weight: 700;
    text-underline-offset: .25em;
}

.blush-band { background: var(--blush); }
.section-heading { margin-bottom: 2rem; }
.eyebrow, .meta { color: var(--wine); margin-bottom: .5rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card,
.panel,
.message-card,
.stat-card {
    border: 1px solid rgba(98, 74, 68, .14);
    border-radius: 8px;
    background: rgba(255, 254, 252, .82);
    box-shadow: var(--shadow);
}

.card { padding: 1.5rem; }
.card h2, .card h3 { font-size: 1.55rem; }

.page-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    min-height: 320px;
    padding: 6rem 6vw 4rem;
    background:
        url('/images/floral-spray-small.png') right -20px top -30px / 220px auto no-repeat,
        var(--ivory);
    color: var(--wine);
    border-bottom: 1px solid rgba(98, 74, 68, .14);
}

.page-hero .eyebrow { color: var(--sage); }

.two-column {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
    gap: 2rem;
    align-items: center;
}

.align-start { align-items: start; }
.panel { padding: 1.5rem; background: var(--white); }

.form-stack,
.form-grid { display: grid; gap: 1rem; }
.form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.form-grid .button { width: 100%; }

label { display: grid; gap: .35rem; color: var(--wine-dark); }

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(98, 74, 68, .28);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: .78rem .85rem;
}

textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(124, 139, 111, .35); }
.honeypot { position: absolute; left: -100vw; width: 1px; height: 1px; }

.flash {
    padding: .9rem 6vw;
    background: var(--sage);
    color: white;
    font-weight: 700;
}
.flash-error { background: var(--wine-dark); }
.field-error { color: var(--wine); font-weight: 700; }

.result-box,
.empty-state,
.muted-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--sage);
    background: var(--blush);
}

.message-list { display: grid; gap: 1rem; }
.message-card { padding: 1.25rem; }
.message-card p { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; }

.article-page h1 { margin-top: .5rem; font-size: clamp(2.4rem, 7vw, 4.5rem); }
.prose { font-size: 1.1rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card { padding: 1.4rem; }
.stat-card span { display: block; font-family: "Fraunces", Georgia, serif; font-size: 3rem; color: var(--wine); line-height: 1; }
.stat-card p { margin: .5rem 0 0; font-weight: 700; }

.admin-grid { display: grid; gap: 1.25rem; }
.admin-panel h2 { font-size: 1.9rem; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-list { display: grid; gap: .65rem; margin-top: 1.2rem; }
.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid rgba(98, 74, 68, .12);
    border-radius: var(--radius);
    background: var(--ivory);
}
.admin-row small { display: block; color: rgba(74, 55, 51, .72); }
.icon-danger {
    border: 1px solid var(--wine);
    border-radius: var(--radius);
    background: transparent;
    color: var(--wine);
    cursor: pointer;
    padding: .45rem .65rem;
    font-weight: 700;
}
.icon-danger:hover { background: var(--wine); color: var(--ivory); }
.muted { color: rgba(74, 55, 51, .7); }

.admin-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.select-all-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.admin-row .row-check { margin-right: .75rem; flex-shrink: 0; width: 20px; }
.confirm-delete-form {
    width: 80px;
}
.admin-row-content {
    width: calc(100% - 100px);
}

dialog#confirm-modal {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    max-width: 360px;
    width: calc(100% - 2rem);
    background: var(--white);
    color: var(--ink);
}
dialog#confirm-modal::backdrop { background: rgba(74, 55, 51, .45); }
dialog#confirm-modal .modal-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; }

nav[role="navigation"] { margin-top: 2rem; }
nav[role="navigation"] > div:first-child { display: none; }
nav[role="navigation"] a,
nav[role="navigation"] span { margin-right: .5rem; color: var(--wine); }

.site-footer {
    padding: 3rem 6vw;
    background: var(--wine-dark);
    color: var(--ivory);
    text-align: center;
}
.site-footer a { color: var(--blush); }

@media (max-width: 900px) {
    .card-grid,
    .stats-grid,
    .two-column { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .site-header { padding: 0 1rem; }
    .nav-button {
        display: grid;
        gap: 5px;
        width: 42px;
        padding: 10px;
        cursor: pointer;
    }
    .nav-button span { height: 2px; background: var(--wine); }
    .site-nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: none;
        padding: 1rem;
        background: var(--wine-dark);
        color: var(--ivory);
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav a { color: var(--ivory); }
    .site-nav a:hover { color: var(--rose); }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .hero { min-height: calc(100svh - 74px); padding: 5rem 1rem; }
    .section, .page-hero { padding-left: 1rem; padding-right: 1rem; }
    .page-hero { min-height: 260px; align-items: end; flex-direction: column; justify-content: end; }
    .admin-row { align-items: flex-start; flex-direction: column; }
    .admin-row form, .admin-row button { width: 100%; }
}
