:root {
    --brown: #281008;
    --brown-2: #3a1c10;
    --gold: #c9a24b;
    --cream: #f8f3ea;
    --ink: #281008;
    --muted: #6e645c;
    --line: #e4d9c6;
    --danger: #a32d2d;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.5;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Header / footer */
.site-header { background: var(--brown); color: #fff; border-bottom: 3px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; }
.brand img { height: 46px; width: auto; }
.brand small { display: block; font-weight: 400; color: var(--gold); font-size: .8rem; }
.site-header nav a { color: #fff; text-decoration: none; margin-left: 18px; font-size: .95rem; }
.site-header nav a:hover { color: var(--gold); }

main.container { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }

.site-footer { background: var(--brown); color: #d9cdbd; padding: 22px 0; font-size: .85rem; text-align: center; }
.site-footer strong { color: var(--gold); }

/* Typography */
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 .4em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--gold); font-weight: 700; margin: 0 0 6px; }
.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: .9rem; }
.label { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--muted); font-weight: 700; margin: 0; }
.label.gold { color: var(--gold); }
.center { text-align: center; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.page-title { margin-bottom: 18px; }

.price-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.price-strip > div { background: var(--brown); color: #fff; border-radius: var(--radius); padding: 14px 16px; }
.price-strip .label { color: var(--gold); }
.price-strip strong { font-size: 1.35rem; font-family: Georgia, serif; }

/* Forms */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
    width: 100%; padding: 10px 12px; border: 1px solid #cfc3ae; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.member-grid { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 2px; }

.mode-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.mode-list li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mode-list label { margin-left: 6px; font-weight: 600; }

.attendee { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; background: #fffdf8; }
.attendee-head { display: flex; justify-content: space-between; align-items: center; }
.link-remove { color: var(--danger); font-size: .85rem; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-primary:hover { background: var(--brown-2); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-ghost:hover { background: rgba(40, 16, 8, .06); }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; margin-top: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .92rem; }
.alert ul { margin: 6px 0 0 18px; padding: 0; }
.alert-error { background: #fbeaea; border: 1px solid #e5b4b4; color: #6b1b1b; }
.alert-warn { background: #fff6dd; border: 1px solid #ecd48a; color: #5e4a07; }

/* Summary */
.summary-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.summary-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-table td:last-child { text-align: right; }
.summary-table tr.total td { font-weight: 700; font-size: 1.15rem; border-bottom: 0; }

/* Ticket (on screen) */
.ticket { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; page-break-inside: avoid; }
.ticket-head { background: var(--brown); color: #fff; padding: 14px 20px; border-bottom: 3px solid var(--gold); }
.ticket-head span { display: block; font-size: .7rem; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.ticket-head strong { font-family: Georgia, serif; font-size: 1.35rem; text-transform: uppercase; }
.ticket-body { display: grid; grid-template-columns: 1fr 240px; m: 0; }
.ticke}
.ticket-main { padding: 18px 20px; }
.ticket-main h2 { font-size: 1.5rem; margin-bottom: 0; }
.ticket-main dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0 0; }
.ticket-main dl .wide { grid-column: 1 / -1; }
.ticket-main dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ticket-main dd { margin: 0; font-weight: 600; }
.ticket-side { border-left: 2px dashed var(--line); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: #fffdf8; }
.ticket-no { font-family: Consolas, monospace; font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; word-break: break-all; }

@media (max-width: 640px) {
    h1 { font-size: 1.6rem; }
    .ticket-body { grid-template-columns: 1fr; }
    .ticket-side { border-left: 0; border-top: 2px dashed var(--line); }
    .site-header nav a { margin-left: 0; margin-right: 14px; }
}

@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
    .ticket { border: 1px solid #999; }
}
