:root {
  --sand: #f4efe7;
  --sand-strong: #e8ddcf;
  --ink: #2c2927;
  --muted: #73675d;
  --brand: #ee6a1a;
  --brand-deep: #a9521f;
  --gold: #e6b64d;
  --paper: #fffdf9;
  --shadow: 0 22px 60px rgba(101, 61, 22, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Manrope", sans-serif;
}

a {
  color: var(--brand-deep);
}

.page-shell {
  width: min(100% - 32px, 1350px);
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: clamp(320px, 36vw, 760px);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-section {
  position: relative;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
  padding: 56px 0 40px;
}

.content-column {
  width: min(100%, 980px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  text-align: center;
}

.section-copy h1 {
  margin: 0 0 14px;
  color: var(--brand);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 0.94;
  font-weight: 700;
}

.lead-copy {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 1.12;
}

.event-metadata {
  margin-bottom: 24px;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  font-weight: 800;
}

.venue {
  font-size: clamp(1.2rem, 1.9vw, 1.85rem);
  line-height: 1.12;
  margin-bottom: 24px;
}

.program-note {
  margin-bottom: 22px;
  font-size: 1.15rem;
  font-style: italic;
}

.intro-text {
  max-width: 590px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.registration-shell,
.legal-shell,
.admin-login-shell,
.table-shell {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(251, 246, 239, 0.98));
  border: 1px solid rgba(190, 148, 102, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.registration-shell {
  padding: 30px;
}

.form-header span,
.legal-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-header h2,
.legal-shell h1,
.admin-login-shell h1,
.admin-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  line-height: 0.95;
  margin-bottom: 12px;
}

.form-header p {
  color: var(--muted);
  margin-bottom: 22px;
}

.streaming-notice {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: rgba(244, 239, 231, 0.9);
}

.streaming-notice p,
.streaming-form-copy {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.streaming-notice p + p {
  margin-top: 8px;
}

.streaming-form-copy {
  margin-bottom: 22px;
  color: var(--muted);
}

.program-content-column {
  width: min(100%, 980px);
}

.program-header h1 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  line-height: 0.95;
}

.program-image-link {
  display: block;
  width: min(100%, 560px);
  margin: 8px auto 0;
  overflow: hidden;
  border: 1px solid rgba(190, 148, 102, 0.2);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 16px 40px rgba(101, 61, 22, 0.1);
}

.program-image {
  display: block;
  width: 100%;
  height: auto;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.program-actions .btn {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
}

.program-secondary-action {
  border: 1px solid rgba(44, 41, 39, 0.32);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.program-secondary-action:hover,
.program-secondary-action:focus {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.form-control {
  border-radius: 14px;
  border-color: rgba(123, 103, 77, 0.22);
  min-height: 52px;
  padding: 0.9rem 1rem;
}

.form-control:focus,
.form-check-input:focus {
  border-color: rgba(238, 106, 26, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(238, 106, 26, 0.14);
}

textarea.form-control {
  min-height: 136px;
}

.form-label {
  font-weight: 700;
}

.consent-box {
  padding: 16px 18px 16px 42px;
  border-radius: 16px;
  background: rgba(244, 239, 231, 0.7);
}

.btn-register {
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px rgba(169, 82, 31, 0.24);
}

.btn-register:hover,
.btn-register:focus {
  color: #fff;
  background: linear-gradient(135deg, #ff7b2c 0%, #9d4214 100%);
}

.legal-link {
  font-weight: 700;
  text-decoration: none;
}

.brand-strip {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.brand-logo {
  width: min(1000px, 70vw);
  height: auto;
}

.site-footer {
  margin-top: 36px;
  padding: 32px 0;
  color: var(--muted);
  background: var(--sand);
  border-top: 1px solid rgba(190, 148, 102, 0.2);
  text-align: center;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.site-footer-name {
  color: var(--ink);
  font-weight: 800;
}

@media (min-width: 1400px) {
  .hero-section {
    min-height: 540px;
  }

  .registration-shell {
    padding: 26px;
  }

  .section-copy h1 {
    margin-bottom: 10px;
  }

  .lead-copy,
  .event-metadata,
  .venue,
  .program-note {
    margin-bottom: 18px;
  }
}

.success-modal {
  border: 0;
  border-radius: 26px;
  overflow: hidden;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(238, 106, 26, 0.12);
  color: var(--brand-deep);
  font-weight: 800;
  margin-bottom: 18px;
}

.success-modal h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
}

.success-modal p {
  font-size: 1.05rem;
}

.success-modal .secondary {
  color: var(--muted);
}

.legal-page,
.admin-page {
  padding: 56px 0;
}

.legal-shell,
.admin-login-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px;
}

.legal-shell h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.legal-shell p {
  color: #514943;
  line-height: 1.8;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-count {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
}

.table-shell {
  padding: 10px;
}

.admin-table {
  margin: 0;
}

.admin-table thead th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-width: 1px;
}

.admin-table td,
.admin-table th {
  padding: 1rem;
}

.admin-table tbody tr.duplicate-email > * {
  background-color: #f8d7da;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 420px;
  }

  .hero-image {
    object-position: center top;
  }

  .content-column {
    width: min(100%, 860px);
    gap: 30px;
  }

  .section-copy h1,
  .form-header h2,
  .program-header h1,
  .legal-shell h1,
  .admin-login-shell h1,
  .admin-header h1 {
    font-size: 2.75rem;
  }

  .brand-strip-inner {
    justify-content: center;
  }

  .admin-header {
    align-items: start;
    flex-direction: column;
  }

}

@media (max-width: 575.98px) {
  .page-shell {
    width: min(100% - 20px, 1350px);
  }

  .hero-section {
    min-height: 0;
  }

  .hero-image {
    position: relative;
    inset: auto;
    height: auto;
    object-position: center top;
  }

  .intro-section {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 22px;
  }

  .content-column {
    gap: 24px;
  }

  .section-copy h1 {
    font-size: 4.2rem;
  }

  .lead-copy {
    font-size: 1.2rem;
    line-height: 1.12;
    margin-bottom: 20px;
  }

  .event-metadata {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .venue {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 18px;
  }

  .program-note {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .intro-text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .registration-shell,
  .legal-shell,
  .admin-login-shell {
    padding: 22px;
    border-radius: 22px;
  }

  .form-header h2,
  .program-header h1,
  .legal-shell h1,
  .admin-login-shell h1,
  .admin-header h1 {
    font-size: 2.3rem;
  }

  .form-header p {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .program-actions {
    flex-direction: column;
  }

  .program-actions .btn {
    width: 100%;
  }

  .form-label,
  .consent-box,
  .legal-link,
  .btn-register {
    font-size: 0.95rem;
  }

  .lead-copy,
  .event-metadata,
  .venue {
    word-break: normal;
  }
}
