:root {
    --page-bg: #eee3d0;
    --paper: rgba(255, 252, 246, 0.94);
    --paper-solid: #fffaf2;
    --ink: #2f2922;
    --muted: #746757;
    --line: rgba(77, 61, 45, 0.18);
    --gold: #a7834f;
    --gold-dark: #7a5a30;
    --error: #8f2f2f;
    --success: #376b4b;
    --shadow: 0 28px 80px rgba(71, 50, 28, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ink);
    background: var(--page-bg);
}

.page-shell {
    width: min(960px, calc(100% - 28px));
    margin: 0 auto;
    padding: 42px 0 60px;
    position: relative;
}

.wide-shell {
    width: min(1240px, calc(100% - 28px));
}

.content-card {
    border: 1px solid var(--line);
    background: var(--paper);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-card {
    text-align: center;
    padding: 36px 26px 20px;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--gold-dark);
}

.small-hero {
    padding: 34px 24px 22px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-dark);
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 34px;
    height: 1px;
    background: var(--gold);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
}


.hero-ornament {
    display: block;
    width: min(260px, 72vw);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.98;
}

.hero-ornament-top {
    margin-top: 6px;
    margin-bottom: 20px;
}

.hero-ornament-bottom {
    margin-top: 20px;
    margin-bottom: 16px;
}

.brand-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
    color: var(--gold-dark);
    font-family: Didot, 'Didot Regular', 'Bodoni 72', 'Bodoni 72 Smallcaps', 'Bodoni MT', 'Times New Roman', serif;
    font-weight: 400;
    line-height: 0.86;
    text-transform: uppercase;
}

.brand-name {
    display: block;
    font-size: clamp(58px, 10vw, 118px);
    font-weight: 400;
    letter-spacing: 0.075em;
}

.brand-connector {
    display: grid;
    grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr);
    align-items: center;
    width: min(560px, 76%);
    gap: 28px;
    color: var(--gold-dark);
    font-size: clamp(34px, 3vw, 58px);
    font-style: italic;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.brand-connector::before,
.brand-connector::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--gold-dark);
    opacity: 0.9;
}

h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 400;
    margin-bottom: 14px;
}

h3 {
    font-size: 23px;
    font-weight: 400;
    margin-bottom: 18px;
}

.hero-subtitle,
.lead-text {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-subtitle {
    margin-bottom: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.content-card {
	padding: clamp(26px, 5vw, 54px);
	border-radius: 0 0 34px 34px;
	margin-top: 3rem;
}

.access-card {
	max-width: 640px;
	margin: 0 auto;
	margin-top: 2rem;
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.text-link {
    color: var(--gold-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(122, 90, 48, 0.35);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.field-group,
.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    color: var(--gold-dark);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font: 17px/1.45 Arial, sans-serif;
    padding: 15px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 96px;
}

input:focus,
textarea:focus {
    border-color: rgba(167, 131, 79, 0.72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(167, 131, 79, 0.13);
}

.events-section {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.event-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.event-date {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-choice strong {
    font-size: 22px;
    font-weight: 400;
}

.radio-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 132px;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
    font-size: 15px;
    cursor: pointer;
}

.radio-row input {
    width: auto;
    padding: 0;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    background: var(--gold-dark);
    color: #fffaf2;
    padding: 15px 28px;
    font: 700 13px/1 Arial, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #6c4f2a;
}

.btn-primary:disabled {
    opacity: 0.62;
    cursor: progress;
    transform: none;
}

.btn-wide {
    width: 100%;
    margin-top: 24px;
}

.message {
    margin: 22px 0 0;
    padding: 15px 16px;
    border-radius: 16px;
    font: 15px/1.45 Arial, sans-serif;
}

.message-success {
    background: rgba(55, 107, 75, 0.1);
    color: var(--success);
    border: 1px solid rgba(55, 107, 75, 0.22);
}

.message-error {
    background: rgba(143, 47, 47, 0.09);
    color: var(--error);
    border: 1px solid rgba(143, 47, 47, 0.22);
}

.message-neutral {
    background: rgba(167, 131, 79, 0.09);
    color: var(--gold-dark);
    border: 1px solid rgba(167, 131, 79, 0.2);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.56);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font: 14px/1.35 Arial, sans-serif;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: rgba(167, 131, 79, 0.11);
    color: var(--gold-dark);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.status-yes {
    color: var(--success);
    background: rgba(55, 107, 75, 0.12);
}

.status-no {
    color: var(--error);
    background: rgba(143, 47, 47, 0.1);
}

@media (max-width: 760px) {
	
	.hero-ornament {
    display: block;
    width: min(160px, 72vw);
    height: auto;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.98;
}
	
	
    .page-shell {
        padding-top: 20px;
    }

    .content-card {
        border-radius: 24px;
    }

    .hero-card {
        margin-bottom: 14px;
    }

    .brand-name {
        letter-spacing: 0.045em;
    }

    .brand-connector {
        width: min(360px, 84%);
        gap: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .event-choice {
        align-items: flex-start;
        flex-direction: column;
    }

    .radio-row {
        justify-content: flex-start;
        width: 100%;
    }

    .radio-row label {
        flex: 1;
        min-width: 126px;
    }
}

/* V1.5 - compact private access card with click-to-expand behaviour */
.access-collapsible {
    max-width: 500px;
    padding: 26px clamp(24px, 4vw, 38px);
    border-radius: 28px;
    cursor: pointer;
    transition: max-width 0.35s ease, padding 0.35s ease, border-radius 0.35s ease, transform 0.25s ease;
}

.access-collapsible:hover {
    transform: translateY(-1px);
}

.access-collapsible.is-expanded,
.access-collapsible:focus-within {
    max-width: 640px;
    padding: clamp(30px, 5vw, 54px);
    border-radius: 0 0 34px 34px;
    cursor: default;
}

.access-summary {
    text-align: center;
}

.access-summary h2 {
    margin-bottom: 8px;
}

.access-intro {
    margin-bottom: 0;
    font-size: 16px;
}

.access-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.42s ease, opacity 0.28s ease, transform 0.32s ease, margin-top 0.32s ease;
}

.access-collapsible.is-expanded .access-panel,
.access-collapsible:focus-within .access-panel {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 22px;
}

.access-collapsible.is-expanded .access-intro,
.access-collapsible:focus-within .access-intro {
    display: none;
}

.field-note {
    margin: -2px 0 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    font-style: italic;
}

@media (max-width: 760px) {
    .access-collapsible,
    .access-collapsible.is-expanded,
    .access-collapsible:focus-within {
        max-width: 100%;
        border-radius: 24px;
    }
}

/* V1.7 - simplified guest information form */
.form-intro {
    max-width: 720px;
    margin-bottom: 4px;
}

.guest-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.compact-form-grid {
    margin-top: 30px;
}

.simple-admin-table {
    min-width: 720px;
}
