/* Magnolia & Oak: shared styles for the guest site and staff portal */
:root {
  --black: #000000; --ink: #0c0a08; --panel: #15110c;
  --gold: #ab8846; --gold-light: #d3b878; --cream: #cfc0a9; --cream-lt: #e9e1d1; --muted: #8a7e6c;
  --line: rgba(171, 136, 70, 0.28); --line-soft: rgba(171, 136, 70, 0.16);
  --danger: #e08a7a; --ok: #9cc58a;
  --serif: 'Playfair Display', Georgia, serif; --italic: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--cream-lt); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-light); }
a:hover { color: var(--cream-lt); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--cream-lt); margin: 0; }
h1 em, h2 em { font-weight: 500; color: var(--gold-light); }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }
.eyebrow { font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); }
.lede { font-family: var(--italic); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--cream); }
.muted { color: var(--cream); }
.small { font-size: 14px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(171, 136, 70, 0.12); color: var(--cream-lt); }
.btn.primary { background: var(--gold); color: var(--black); font-weight: 600; }
.btn.primary:hover { background: var(--gold-light); color: var(--black); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 12px; letter-spacing: 0.12em; }
.btn.plain { text-transform: none; letter-spacing: 0; font-size: 15px; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); font-family: var(--sans); font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }

/* Forms */
label.field { display: flex; flex-direction: column; gap: 8px; }
label.field > span, .field-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 0; color: var(--cream-lt); font-family: var(--sans); font-size: 16px; }
textarea { line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--cream); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.notice { padding: 14px 16px; border: 1px solid var(--line); background: var(--ink); color: var(--cream); font-size: 15px; }
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice.ok { border-color: var(--ok); color: var(--ok); }

/* Header & footer */
.site-header { border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.monogram { width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: 17px; flex-shrink: 0; }
.monogram img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-name { font-family: var(--serif); font-size: 22px; color: var(--cream-lt); letter-spacing: 0.03em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.site-nav a { color: var(--cream); text-decoration: none; }
.site-nav a:hover { color: var(--cream-lt); }
@media (max-width: 720px) { .site-nav { gap: 16px; } .site-nav a:not(.btn) { font-size: 12px; } }
.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; color: var(--cream); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer .links a { color: var(--cream); }
.site-footer .legal { margin-top: 28px; text-align: center; font-size: 12px; }

/* Sections */
section.band { padding: 96px 0; }
section.band.alt { background: var(--ink); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 5vw, 44px); }
@media (max-width: 640px) { section.band { padding: 64px 0; } }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; padding: 80px 0 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(40px, 7vw, 62px); line-height: 1.08; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.photo { position: relative; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--cream); font-size: 14px; overflow: hidden; }
.photo img, .photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .label { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .photo { min-height: 520px; }
@media (max-width: 640px) { .hero { padding: 48px 0 64px; gap: 36px; } .hero .photo { min-height: 320px; } }

/* Experience cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card { background: var(--black); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .photo { height: 230px; border: 0; border-bottom: 1px solid var(--line-soft); }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card-body h3 { font-weight: 500; font-size: 26px; }
.card-body p { font-size: 15px; line-height: 1.65; color: var(--cream); }
.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 24px; color: var(--gold-light); }
.tag { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.skeleton { min-height: 380px; background: linear-gradient(90deg, var(--ink), var(--panel), var(--ink)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line-soft); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

/* Gallery */
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.gallery-head h2 { font-size: clamp(32px, 5vw, 44px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 240px; gap: 14px; }
.gallery-grid .photo.tall { grid-row: span 2; }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); font-size: 13px; text-align: left; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { border-top: 1px solid var(--gold); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold-light); }
.step h3 { font-weight: 500; font-size: 22px; }
.step p { color: var(--cream); font-size: 15px; line-height: 1.65; }
.pay-line { margin-top: 40px; text-align: center; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); }

/* RSVP */
.rsvp { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

/* Booking page */
.book-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding: 48px 0 88px; }
.book-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.book-side { flex: 1 1 340px; min-width: 0; border: 1px solid var(--gold); background: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
@media (max-width: 960px) { .book-side { position: static; } }
.panel { border: 1px solid var(--line); background: var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-head h2 { font-weight: 500; font-size: 22px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); color: var(--gold-light); font-size: 18px; cursor: pointer; }
.cal-nav button:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cal-day { height: 50px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #6b6152; border: 1px solid transparent; background: transparent; font-family: var(--sans); }
button.cal-day { cursor: pointer; color: var(--black); background: var(--gold); font-weight: 600; }
button.cal-day[aria-pressed="true"] { background: var(--cream-lt); outline: 2px solid var(--gold-light); outline-offset: 2px; }
button.cal-day.soldout { background: transparent; border-color: var(--line); color: var(--muted); text-decoration: line-through; cursor: not-allowed; font-weight: 400; }
.times { display: flex; flex-wrap: wrap; gap: 10px; }
.counter { display: flex; align-items: center; border: 1px solid var(--line); }
.counter button { width: 52px; height: 52px; background: transparent; border: 0; color: var(--gold-light); font-size: 22px; cursor: pointer; }
.counter button:disabled { opacity: 0.3; cursor: default; }
.counter output { flex-grow: 1; text-align: center; font-size: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--cream); }
.summary-row strong { color: var(--cream-lt); font-weight: 500; }
.summary-total { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-total .price { font-size: 30px; }
.banner { padding: 14px 18px; border: 1px solid var(--gold); background: rgba(171,136,70,0.1); color: var(--cream-lt); }

/* Confirmation */
.confirm { max-width: 640px; margin: 0 auto; padding: 96px 0; display: flex; flex-direction: column; gap: 20px; text-align: center; align-items: center; }
.confirm h1 { font-size: clamp(34px, 6vw, 48px); }
.confirm dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; text-align: left; border: 1px solid var(--line); padding: 22px 26px; margin: 8px 0 0; }
.confirm dt { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding-top: 3px; }
.confirm dd { margin: 0; }

/* ---------------- Staff portal ---------------- */
.portal { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--ink); }
.portal-nav { flex: 1 1 230px; max-width: 100%; background: var(--black); border-right: 1px solid var(--line-soft); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.portal-nav .brand { padding: 0 8px 22px; }
.portal-nav .brand-name { font-size: 17px; }
.portal-nav .monogram { width: 40px; height: 40px; font-size: 14px; }
.portal-nav a { padding: 11px 12px; color: var(--cream); text-decoration: none; font-size: 15px; border: 1px solid transparent; }
.portal-nav a:hover { color: var(--cream-lt); }
.portal-nav a[aria-current="page"] { background: rgba(171,136,70,0.16); border-color: rgba(171,136,70,0.4); color: var(--cream-lt); }
.portal-nav .me { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--cream); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 800px) { .portal-nav { flex-direction: row; flex-wrap: wrap; align-items: center; } .portal-nav .brand { width: 100%; padding-bottom: 8px; } .portal-nav .me { margin-top: 0; width: 100%; } }
.portal-main { flex: 999 1 640px; min-width: 0; padding: 30px 34px 60px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .portal-main { padding: 22px 16px 48px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.page-head h1 { font-size: 30px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.toolbar label.field { min-width: 220px; }
.role-badge { padding: 4px 10px; border: 1px solid var(--gold); color: var(--gold-light); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; align-self: flex-start; }
.box { background: var(--black); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.box h2 { font-size: 20px; font-weight: 500; }
.split { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.split > * { flex: 1 1 400px; min-width: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--black); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th { text-align: left; padding: 14px 14px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
table.data td { padding: 13px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: rgba(171,136,70,0.06); }
.badge { display: inline-block; padding: 4px 9px; border: 1px solid var(--cream); color: var(--cream); font-size: 12px; white-space: nowrap; }
.badge.gold { border-color: var(--gold-light); color: var(--gold-light); }
.badge.solid { background: var(--gold); border-color: var(--gold); color: var(--black); }
.badge.dashed { border-style: dashed; }
.badge.red { border-color: var(--danger); color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { border: 1px solid var(--line); background: var(--black); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat .v { font-family: var(--serif); font-size: 30px; color: var(--gold-light); }
.stat .k { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); }
.bar { height: 10px; background: var(--gold); min-width: 2px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-buttons button { min-height: 40px; padding: 0 12px; background: rgba(171,136,70,0.12); border: 1px solid var(--line); color: var(--gold-light); font-family: var(--sans); font-size: 13px; cursor: pointer; }
iframe.preview { width: 100%; height: 640px; border: 1px solid var(--gold); background: #000; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.media-tile { border: 1px solid var(--line); background: var(--black); display: flex; flex-direction: column; }
.media-tile .photo { height: 160px; border: 0; }
.media-tile .meta { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.media-tile input { min-height: 40px; font-size: 14px; }
.list { display: flex; flex-direction: column; }
.list > button { text-align: left; padding: 14px 16px; background: transparent; border: 0; border-top: 1px solid var(--line-soft); color: var(--cream-lt); font-family: var(--sans); font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.list > button:first-child { border-top: 0; }
.list > button[aria-current="true"] { background: rgba(171,136,70,0.14); }
dialog { background: var(--black); color: var(--cream-lt); border: 1px solid var(--gold); padding: 0; width: min(520px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,0.7); }
dialog form { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
dialog h2 { font-size: 22px; font-weight: 500; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 380px; padding: 14px 18px; background: var(--black); border: 1px solid var(--gold); color: var(--cream-lt); box-shadow: 0 8px 30px rgba(0,0,0,0.6); }
.toast.error { border-color: var(--danger); color: var(--danger); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login .box { width: min(440px, 100%); padding: 32px; gap: 18px; }
.qr { background: #fff; padding: 12px; width: 220px; align-self: center; }
code.secret { word-break: break-all; padding: 10px; background: var(--ink); border: 1px solid var(--line); font-size: 14px; color: var(--gold-light); }

/* Logo */
.brand .logo { height: 76px; width: auto; display: block; }
.site-footer .logo-sm { height: 64px; width: auto; }
.hero-logo { display: flex; align-items: center; justify-content: center; }
.hero-logo img { width: 100%; max-width: 560px; height: auto; }
.portal-nav .brand .logo { height: 64px; }
.login .brand { justify-content: center; }
.login .brand .logo { height: 120px; }
@media (max-width: 640px) { .brand .logo { height: 60px; } .hero-logo img { max-width: 360px; } }
