:root {
  --paper: #f7f4ee;
  --ink: #171410;
  --muted: #33251c;
  --accent: #4b2518;
  --accent-hover: #31170e;
  --line: #7c5a40;
  --input-paper: #fffcf6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.125rem; line-height: 1.65; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.site-shell { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(440px, 1fr); min-height: 100vh; min-height: 100svh; }
.hero { position: relative; min-height: 100%; overflow: hidden; background: #171b15; color: #ffffff; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(15 19 17 / 15%) 63%, rgb(15 19 17 / 65%) 100%); }
.hero-caption { position: absolute; bottom: 42px; left: clamp(24px, 3.6vw, 60px); width: fit-content; max-width: calc(100% - 48px); padding: 24px 26px; background: rgb(13 15 12 / 88%); border-radius: 3px; }
.hero-eyebrow { font-size: 1rem; line-height: 1.6; letter-spacing: .1em; font-weight: 600; }
.hero-caption p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3125rem, 3.6vw, 3.5625rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; margin: 18px 0 24px; }
.hero-rule { display: block; width: 40px; height: 2px; background: #ffffff; }
.invitation-panel { display: flex; flex-direction: column; min-width: 0; padding: 40px clamp(30px, 4.1vw, 72px) 32px; }
.panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 44px; gap: 8px 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 33px; height: 33px; flex-shrink: 0; color: var(--accent); }
.brand span { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; letter-spacing: -.045em; }
.panel-main { width: 100%; max-width: 420px; margin: auto 0; padding: 60px 0 56px; }
.eyebrow { font-size: 1rem; font-weight: 650; letter-spacing: .1em; line-height: 1.6; color: var(--accent); margin: 0 0 25px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(3.5rem, 4.9vw, 4.875rem); letter-spacing: -.068em; line-height: 1.04; margin: 0 0 26px; }
h1 em { font-weight: 400; color: var(--accent); }
.intro { font-size: 1.125rem; line-height: 1.7; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.login-form { margin-top: 32px; }
.login-form label { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.text-input { display: block; width: 100%; border: 2px solid var(--line); border-radius: 3px; background: var(--input-paper); color: var(--ink); padding: 14px 15px; line-height: 1.5; font-size: 1.125rem; min-height: 58px; transition: border-color .15s; }
.text-input::placeholder { color: var(--muted); opacity: 1; }
.text-input:hover { border-color: var(--accent); }
.text-input:focus { outline: 3px solid var(--accent); outline-offset: 3px; border-color: var(--accent); }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 58px; border: 2px solid var(--accent); border-radius: 3px; padding: 14px 16px; margin-top: 14px; background: var(--accent); color: #ffffff; font-size: 1.125rem; font-weight: 600; line-height: 1.5; text-align: left; transition: background .15s; }
.primary-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary-button span { min-width: 0; }
.primary-button svg { width: 24px; height: 24px; flex-shrink: 0; }
.form-help { margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.panel-footer { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.footer-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; align-self: baseline; }
.feedback { border: 2px solid; border-radius: 3px; padding: 14px 15px; font-size: 1.125rem; line-height: 1.65; margin: 0 0 20px; }
.feedback-error { color: #692317; border-color: #692317; background: #f9ece6; }
.feedback-status { display: block; margin-bottom: 6px; font-size: 1rem; font-weight: 650; }
.feedback-notice { color: #243617; border-color: #243617; background: #eef0e5; }
.email-address { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.code-input { font-variant-numeric: tabular-nums; letter-spacing: .45em; font-size: 1.75rem; padding: 12px 15px; line-height: 1.4; }
.secondary-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 22px; font-size: 1rem; color: var(--accent); }
.secondary-actions form { margin: 0; }
.secondary-actions a, .text-button { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.secondary-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.text-button { border: 0; background: transparent; min-height: 44px; padding: 8px 0; color: var(--accent); font-size: inherit; font-weight: 600; }
.text-button:hover, .secondary-actions a:hover { color: var(--accent-hover); }
.logout-form { margin: 0 0 0 auto; flex-shrink: 0; font-size: 1.125rem; }
.account-summary { margin: 16px 0 0; font-size: 1rem; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.account-summary span { display: block; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.event-details { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 26px 0 28px; margin: 34px 0 25px; }
.event-label { font-size: 1rem; letter-spacing: .1em; color: var(--accent); font-weight: 650; }
.event-date { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.875rem, 2.2vw, 2.25rem); letter-spacing: -.04em; line-height: 1.3; margin: 14px 0 10px; }
.event-location, .closing-note { font-size: 1.125rem; line-height: 1.7; color: var(--ink); margin: 0; }
.gala-main > .feedback { margin-top: 24px; }
.error-hero .hero-image { object-position: 52% center; }
.error-main h1 { font-size: clamp(3.3125rem, 4.5vw, 4.5rem); }
.error-main .intro { max-width: 34ch; }
.error-status { font-size: 1rem; font-weight: 650; line-height: 1.65; letter-spacing: .035em; color: var(--accent); margin: 0 0 24px; overflow-wrap: anywhere; }
.error-home { margin-top: 32px; text-decoration: none; }
.skip-link { position: absolute; z-index: 4; top: -120px; left: 16px; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 1.125rem; }
.skip-link:focus { top: 16px; }
@media (min-width: 1600px) {
  .invitation-panel { padding-left: 84px; padding-right: 84px; }
  .panel-main { max-width: 440px; }
  .hero-caption { bottom: 50px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .site-shell { grid-template-columns: minmax(0, 1.15fr) minmax(400px, 1fr); }
  .invitation-panel { padding-left: 30px; padding-right: 30px; }
  .panel-main { padding-top: 50px; padding-bottom: 48px; }
  h1 { font-size: 3.8125rem; }
  .hero-caption { left: 24px; padding: 22px; }
}
@media (max-width: 760px) {
  .site-shell { display: flex; flex-direction: column; min-height: 100svh; }
  .hero { display: flex; align-items: flex-end; min-height: clamp(195px, 26svh, 260px); height: auto; padding: 24px; flex-shrink: 0; }
  .hero-image { object-position: center 48%; }
  .hero-shade { background: linear-gradient(180deg, transparent 5%, rgb(15 19 17 / 10%) 40%, rgb(15 19 17 / 58%) 100%); }
  .hero-caption { position: relative; left: auto; bottom: auto; max-width: 100%; margin-top: 24px; padding: 16px 18px; }
  .hero-caption p { font-size: 2.0625rem; line-height: 1.1; margin: 0; }
  .hero-eyebrow, .hero-rule { display: none; }
  .invitation-panel { padding: 24px 28px 24px; flex: 1; }
  .brand-mark { width: 31px; height: 31px; }
  .panel-main { padding: 34px 0 36px; margin: 0 auto; max-width: 480px; }
  .eyebrow { margin-bottom: 20px; }
  h1 { font-size: 3.5rem; line-height: 1.04; margin-bottom: 22px; }
  .login-form { margin-top: 28px; }
  .panel-footer { max-width: 480px; width: 100%; margin: auto auto 0; }
  .error-main h1 { font-size: 3.375rem; }
  .error-hero .hero-image { object-position: center 49%; }
  .event-details { margin-top: 29px; padding: 24px 0; }
  .event-date { font-size: 2rem; }
  .secondary-actions { margin-top: 20px; }
}
@media (max-width: 360px) {
  .invitation-panel { padding-left: 22px; padding-right: 22px; }
  .panel-header { gap: 4px 14px; }
  h1 { font-size: 3.1875rem; }
  .hero { padding: 18px; }
  .hero-caption p { font-size: 1.9375rem; }
  .error-main h1 { font-size: 3rem; }
  .primary-button { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Signed-in pages share the readable, high-contrast invitation palette. */
.public-session-status { margin: 14px 0 0; font-size: 1rem; font-weight: 600; color: var(--muted); }
.workspace { width: min(calc(100% - 64px), 1180px); margin: 0 auto; }
.workspace-header { padding: 30px 0 25px; }
.workspace-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
.workspace-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; font-size: 1.125rem; }
.workspace-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.workspace-nav form { margin: 0; }
.workspace-header .brand { max-width: 100%; white-space: normal; }
.workspace-header .account-summary { margin-top: 12px; }
.workspace-main { padding-bottom: 44px; }
.workspace-main h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 2rem; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 16px; }
.workspace-main h3 { font-size: 1.125rem; line-height: 1.5; margin: 0 0 10px; }
.event-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 250px; padding: 28px; border-radius: 4px; background: #171b15; color: #ffffff; }
.event-banner > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.event-banner-copy { max-width: 100%; padding: 20px 24px; background: rgb(13 15 12 / 88%); border-radius: 3px; }
.event-banner .eyebrow { color: #ffffff; margin: 0 0 13px; }
.event-banner h1 { color: #ffffff; font-size: clamp(2.75rem, 4.5vw, 4rem); line-height: 1.07; letter-spacing: -.045em; margin: 0; }
.event-banner h1 { overflow-wrap: anywhere; }
.event-banner h1 em { color: #ffffff; }
.workspace-feedback .feedback { margin: 24px 0 0; }
.membership-summary { padding: 24px 28px; margin: 24px 0; border: 2px solid var(--line); border-radius: 4px; background: var(--input-paper); }
.membership-summary-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.membership-summary-title h2 { font-size: 1.75rem; margin: 0; }
.membership-summary p { margin: 14px 0 0; }
.membership-badge { display: inline-block; max-width: 100%; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 3px; font-size: 1rem; font-weight: 650; line-height: 1.5; color: var(--accent); background: var(--paper); }
.membership-approved { color: #243617; border-color: #243617; background: #eef0e5; }
.membership-pending { color: var(--accent); background: #f4e3bd; }
.membership-denied { color: #692317; border-color: #692317; background: #f9ece6; }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 600; color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.notification-status { font-size: 1rem; line-height: 1.65; font-weight: 600; color: var(--accent); }
.rsvp-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: start; gap: 28px; }
.content-card { min-width: 0; padding: 30px; border: 2px solid var(--line); border-radius: 4px; background: var(--input-paper); }
.section-heading .eyebrow, .event-card > .eyebrow, .appeal-card > .eyebrow { margin: 0 0 13px; }
.section-intro { margin: 0 0 26px; }
.saved-status { margin: 0 0 24px; padding: 12px 14px; border-left: 3px solid #243617; background: #eef0e5; color: #243617; font-size: 1rem; font-weight: 600; }
.rsvp-form { margin-top: 26px; }
.attendance-fieldset { padding: 0; margin: 0 0 28px; border: 0; min-width: 0; }
.attendance-fieldset legend { padding: 0; margin-bottom: 12px; font-size: 1.125rem; font-weight: 600; }
.attendance-options { display: flex; flex-wrap: wrap; gap: 12px; }
.attendance-option { flex: 1 1 4.5rem; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 94px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 3px; font-size: 1.125rem; font-weight: 600; cursor: pointer; }
.attendance-option:has(input:checked) { border-color: var(--accent); background: #e8ddd0; }
.attendance-option:hover { border-color: var(--accent); }
.attendance-option input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.form-field { margin-bottom: 26px; }
.form-field label { display: block; margin-bottom: 10px; font-size: 1.125rem; font-weight: 600; }
.form-field label span { font-size: 1rem; font-weight: 400; }
.field-help { margin: 10px 0 0; font-size: 1rem; line-height: 1.65; color: var(--muted); }
textarea.text-input { min-height: 140px; resize: vertical; font-family: inherit; }
textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.rsvp-sidebar { display: grid; gap: 24px; min-width: 0; }
.event-facts { margin: 0; }
.event-facts > div { margin-top: 22px; }
.event-facts dt, .member-rsvp dt { font-size: 1rem; font-weight: 650; color: var(--accent); }
.event-facts dd { margin: 5px 0 0; font-size: 1.125rem; }
.event-card > .field-help { margin-top: 25px; }
.appeal-card > p { margin: 0 0 24px; }
.appeal-card form .form-field { margin-bottom: 18px; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-footer { border-top: 2px solid var(--line); padding: 24px 0 36px; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.workspace-footer p { margin: 0 0 12px; }
.workspace-footer p:first-child { color: var(--accent); font-weight: 600; }
.admin-banner { min-height: 220px; }
.admin-intro { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding: 30px 0 24px; }
.admin-intro h2 { margin-bottom: 10px; }
.admin-intro p { margin: 0; }
.admin-self-status .field-help { margin-top: 10px; }
.member-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.member-card-header .member-email { font-family: inherit; font-size: 1.5rem; font-weight: 650; line-height: 1.45; letter-spacing: -.025em; overflow-wrap: anywhere; margin-bottom: 14px; }
.member-dates { margin: 18px 0 22px; font-size: 1rem; color: var(--muted); }
.member-rsvp { margin: 0; }
.member-rsvp > div { margin-bottom: 18px; }
.member-rsvp dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.appeal-note { padding: 16px; margin: 20px 0; border-left: 3px solid var(--accent); background: var(--paper); }
.appeal-note p { margin: 0; }
.owner-note { padding-top: 18px; border-top: 1px solid var(--line); margin: 22px 0 0; font-size: 1rem; font-weight: 600; color: var(--accent); }
.membership-actions { margin-top: 24px; padding-top: 10px; border-top: 1px solid var(--line); }
.membership-actions form { margin: 0; }
.decision-confirm { margin-top: 14px; }
.decision-confirm summary, .membership-history summary { min-height: 44px; padding: 8px 0; cursor: pointer; font-size: 1.125rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.decision-confirm summary { color: #692317; }
.decision-body { padding: 14px 16px 18px; margin-top: 10px; border: 2px solid #692317; border-radius: 3px; background: #f9ece6; color: #692317; }
.decision-body p { margin: 0 0 18px; overflow-wrap: anywhere; }
.danger-button { display: block; width: 100%; min-height: 58px; padding: 14px 16px; border: 2px solid #692317; border-radius: 3px; background: #692317; color: #ffffff; font-size: 1.125rem; font-weight: 600; line-height: 1.5; text-align: left; }
.danger-button:hover { background: #4b170e; border-color: #4b170e; }
.membership-history { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.membership-history ol { margin: 14px 0 0; padding-left: 24px; }
.membership-history li { margin-bottom: 22px; padding-left: 4px; }
.membership-history li p { margin: 0 0 8px; overflow-wrap: anywhere; }
.membership-history li .field-help { font-size: 1rem; }
.empty-state { grid-column: 1 / -1; }
@media (max-width: 980px) {
  .rsvp-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
  .content-card { padding: 24px; }
  .member-list { gap: 22px; }
}
@media (max-width: 760px) {
  .workspace { width: calc(100% - 48px); }
  .workspace-header { padding: 20px 0; }
  .workspace-header-row { gap: 12px; }
  .workspace-nav { width: 100%; gap: 4px 22px; }
  .workspace-nav form { margin-left: auto; }
  .workspace-header .account-summary { margin-top: 14px; }
  .event-banner { min-height: 220px; padding: 20px; }
  .event-banner-copy { padding: 18px; }
  .event-banner h1 { font-size: 2.75rem; }
  .event-banner .eyebrow { font-size: 1rem; letter-spacing: .065em; }
  .membership-summary { padding: 22px; }
  .membership-summary-title { gap: 14px; }
  .rsvp-layout, .member-list { grid-template-columns: minmax(0, 1fr); }
  .content-card { padding: 24px; }
  .workspace-main h2 { font-size: 1.875rem; }
  .membership-summary-title h2 { font-size: 1.625rem; }
  .admin-intro { padding-top: 25px; }
  .member-card-header .member-email { font-size: 1.375rem; }
}
@media (max-width: 360px) {
  .workspace { width: calc(100% - 32px); }
  .event-banner { padding: 16px; }
  .event-banner-copy { padding: 16px; }
  .event-banner h1 { font-size: 2.5rem; }
  .membership-summary, .content-card { padding: 20px; }
  .attendance-options { gap: 8px; }
  .workspace-nav { gap: 4px 16px; }
}
