:root {
  --cream: #fbf1e6;
  --cream-light: #fdf6f0;
  --peach: #fdeee2;
  --card: #ffffff;
  --dark: #1a1a1a;
  --text: #5c5c5c;
  --muted: #8a8a8a;
  --orange: #f36f21;
  --orange-dark: #d95f18;
  --white: #ffffff;
  --peach-border: #f3dccb;
  --gray: #6b7280;
  --line-gray: #e5e7eb;
  --placeholder-gray: #9ca3af;
  --gray-dark: #4b5563;
  --gray-darker: #374151;
  --navy: #0f172a;
  --image-bg: #e9e1d5;
  --error: #e01a31;
  --error-bg: #fdecee;
  --success: #069a55;

  --dark-rgb: 26, 26, 26;
  --orange-rgb: 243, 111, 33;
  --overlay-rgb: 15, 23, 42;
  --black-rgb: 0, 0, 0;
  --white-rgb: 255, 255, 255;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5.5vw, 80px);
}

.events-section {
  padding: clamp(56px, 7vw, 100px) 0;
}

.events-heading {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 76px);
}

.events-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.events-heading p {
  margin-top: 20px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-style: italic;
  color: var(--text);
}

.only-mobile {
  display: none;
}

.events-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--orange);
}

.events-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--orange);
  font-size: 14px;
}

.events-icon--lg {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.events-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.events-btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.events-btn--outline {
  background: transparent;
  color: var(--orange);
}

.events-btn--outline:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.events-btn--lg {
  min-width: min(308px, 100%);
  padding: 21px 40px;
  font-size: 14px;
}

.events-tabs-bar {
  background: var(--white);
  padding: clamp(24px, 3vw, 28px) 0 12px;
}

.events-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--peach-border);
  border-radius: 999px;
  background: var(--cream-light);
}

.events-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.events-tab:hover {
  color: var(--dark);
}

.events-tab.is-active {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px -4px rgba(var(--orange-rgb), 0.5);
}

.events-tab:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.events-panel[hidden] {
  display: none;
}

.events-hero {
  background: var(--white);
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
}

.events-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6.7vw, 96px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--dark);
}

.events-hero-text {
  max-width: 720px;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--text);
}

.events-banner {
  margin-top: clamp(40px, 5.5vw, 76px);
  aspect-ratio: 2560 / 1300;
  border-radius: clamp(12px, 1.7vw, 24px);
  overflow: hidden;
  background: var(--image-bg);
  box-shadow: 0 30px 50px -20px rgba(var(--dark-rgb), 0.3);
}

.events-upcoming {
  background: var(--cream);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 52px);
}

.upcoming-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 397px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(var(--dark-rgb), 0.06);
}

.upcoming-card-media {
  background: var(--image-bg);
}

.events-banner picture,
.journey-card-media picture,
.upcoming-card-media picture {
  display: block;
  height: 100%;
}

.upcoming-card-media img {
  object-position: center;
}

.upcoming-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 3.3vw, 48px);
}

.upcoming-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--dark);
}

.upcoming-card-body h3 {
  margin-top: 16px;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.3;
}

.upcoming-card-body p {
  margin: 16px 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.upcoming-card-body p strong,
.upcoming-card-body p span {
  display: block;
}

.upcoming-card-body p span {
  margin-top: 24px;
}

.upcoming-card--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  border: 1.5px dashed var(--peach-border);
  background: rgba(var(--white-rgb), 0.75);
  box-shadow: none;
  text-align: center;
}

.upcoming-card--placeholder h3 {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.4;
}

.upcoming-card--placeholder p {
  max-width: 420px;
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted);
}

.events-journey {
  background: var(--cream-light);
}

.journey-card {
  display: grid;
  grid-template-columns: minmax(0, 556px) minmax(0, 384px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(20px, 4.5vw, 64px);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 20px 40px -24px rgba(var(--dark-rgb), 0.25),
    0 1px 3px rgba(var(--dark-rgb), 0.06);
}

.journey-card-media {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.journey-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.journey-card-body h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.4;
  color: var(--dark);
}

.journey-meta {
  list-style: none;
  display: grid;
  gap: 28px;
  margin: 36px 0 56px;
}

.journey-meta li {
  display: flex;
  align-items: center;
  gap: 20px;
}

.journey-meta-label,
.journey-meta-value {
  display: block;
}

.journey-meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dark);
}

.journey-meta-value {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}

.journey-card-body .events-btn {
  width: 100%;
}

.events-join {
  background: var(--white);
  text-align: center;
}

.events-join p {
  max-width: 820px;
  margin: 28px auto 48px;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text);
}

@media (max-width: 1100px) {
  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-card {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .journey-card {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .journey-card-media {
    width: 100%;
    max-width: 556px;
    margin: 0 auto;
  }

  .journey-meta {
    margin: 28px 0 36px;
  }
}

@media (max-width: 600px) {
  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: inline;
  }

  .events-section {
    padding: 64px 0;
  }

  .events-section h2 {
    font-size: 34px;
  }

  .events-heading {
    margin-bottom: 40px;
  }

  .events-heading p {
    max-width: 300px;
    margin: 16px auto 0;
    font-size: 15px;
  }

  .events-btn {
    width: 100%;
  }

  .events-hero {
    padding: 48px 0 56px;
  }

  .events-hero h1 {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .events-hero-text {
    margin-top: 16px;
    font-size: 17px;
  }

  .events-banner {
    margin-top: 36px;
    aspect-ratio: 1.12 / 1;
    border-radius: 16px;
  }

  .events-banner img {
    object-position: 45% center;
  }

  .upcoming-grid {
    gap: 40px;
  }

  .upcoming-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 12px;
  }

  .upcoming-card-media {
    aspect-ratio: 1.6 / 1;
  }

  .upcoming-card-body {
    padding: 32px 24px 40px;
  }

  .upcoming-card-body h3 {
    margin-top: 12px;
    font-size: 22px;
  }

  .upcoming-card-body p {
    margin: 12px 0 28px;
  }

  .upcoming-card--placeholder {
    padding: 48px 24px;
    border-radius: 12px;
  }

  .upcoming-card--placeholder h3 {
    margin-top: 24px;
    font-size: 18px;
  }

  .upcoming-card--placeholder p {
    margin-top: 8px;
  }

  .events-icon--lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .journey-card {
    gap: 28px;
    padding: 20px 20px 32px;
    border-radius: 12px;
  }

  .journey-card-media {
    border-radius: 12px;
  }

  .journey-card-body {
    padding: 0 4px;
  }

  .journey-card-body h3 {
    margin-top: 16px;
    font-size: 22px;
  }

  .journey-meta {
    gap: 20px;
    margin: 24px 0 32px;
  }

  .journey-meta li {
    align-items: flex-start;
    gap: 14px;
  }

  .journey-meta .events-icon {
    width: auto;
    height: auto;
    background: none;
    font-size: 16px;
    padding-top: 2px;
  }

  .events-join p {
    margin: 20px auto 32px;
    font-size: 17px;
  }
}

button.events-btn {
  font-family: var(--sans);
  cursor: pointer;
}

button.events-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

body.notify-open {
  overflow: hidden;
}

.notify-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notify-modal[hidden] {
  display: none;
}

.notify-modal.is-visible {
  opacity: 1;
}

.notify-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--overlay-rgb), 0.55);
}

.notify-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 30px 60px -20px rgba(var(--dark-rgb), 0.35);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.notify-dialog::-webkit-scrollbar {
  display: none;
}

.notify-modal.is-visible .notify-dialog {
  transform: none;
}

.notify-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-dark);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notify-close:hover {
  background: rgba(var(--black-rgb), 0.06);
}

.notify-head {
  padding: 40px 40px 32px;
  border-bottom: 1px solid var(--peach-border);
  background: var(--cream);
  text-align: center;
}

.notify-logo {
  display: block;
  width: 94px;
  height: auto;
  margin: 0 auto 22px;
}

.notify-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
}

.notify-head p {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.notify-form {
  display: flex;
  flex-direction: column;
  padding: 36px;
}

.notify-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.notify-field label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--dark);
}

.notify-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.notify-optional {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--placeholder-gray);
}

.notify-field input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-gray);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify-field input::placeholder {
  color: var(--placeholder-gray);
}

.notify-field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.15);
}

.notify-field input.is-invalid {
  border-color: var(--error);
}

.notify-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
}

.notify-error:empty {
  display: none;
}

.notify-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.notify-consent input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}

.notify-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--error-bg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--error);
}

.notify-status:empty {
  display: none;
}

.notify-submit {
  width: 100%;
  margin-top: 32px;
  padding: 20px;
  font-size: 15px;
  letter-spacing: 3px;
}

@media (max-width: 600px) {
  .notify-head {
    padding: 36px 24px 24px;
  }

  .notify-head p {
    font-size: 15px;
  }

  .notify-form {
    padding: 28px 24px;
  }

  .notify-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-height: 760px) {
  .notify-head {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .notify-logo {
    margin-bottom: 14px;
  }

  .notify-form {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .notify-field {
    margin-bottom: 14px;
  }

  .notify-field label {
    margin-bottom: 8px;
  }

  .notify-field input {
    height: 46px;
  }

  .notify-submit {
    margin-top: 24px;
    padding: 17px;
  }
}

.notify-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--success);
  box-shadow: 0 12px 30px -10px rgba(var(--overlay-rgb), 0.4);
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notify-toast.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 600px) {
  .notify-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

.events-btn.events-btn--disabled,
.events-btn.events-btn--disabled:hover {
  background: var(--orange);
  border-color: var(--orange);
  opacity: 0.5;
  cursor: not-allowed;
}

.newsletters-section {
  background: var(--cream);
}

.newsletters-heading {
  margin-bottom: 40px;
}

.newsletters-search {
  position: relative;
  max-width: 448px;
  margin: 0 auto 48px;
}

.newsletters-search i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--placeholder-gray);
  pointer-events: none;
}

.newsletters-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line-gray);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletters-search input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletters-search input::placeholder {
  color: var(--placeholder-gray);
}

.newsletters-search input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.15);
}

.newsletters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 33px;
}

.newsletter-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--peach-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}

.newsletter-card[hidden] {
  display: none;
}

.newsletter-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 446 / 237;
  font-size: 48px;
  color: var(--white);
}

.newsletter-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px 34px;
}

.newsletter-card-body h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: var(--dark);
}

.newsletter-card-body p {
  margin: 12px 0 36px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.newsletter-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--orange);
  transition: gap 0.2s ease, color 0.2s ease;
}

.newsletter-link:hover {
  gap: 14px;
  color: var(--orange-dark);
}

.newsletters-empty {
  padding: 40px 0;
  font-style: italic;
  text-align: center;
  color: var(--text);
}

.newsletters-empty[hidden] {
  display: none;
}

.newsletters-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}

.newsletters-count {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
}

.newsletters-count:empty,
.newsletters-more[hidden] {
  display: none;
}

.newsletters-more {
  min-width: 184px;
  padding: 18px 40px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .newsletters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .events-tabs {
    display: flex;
    width: 100%;
  }

  .events-tab {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
  }

  .newsletters-heading {
    margin-bottom: 32px;
  }

  .newsletters-search {
    max-width: none;
    margin-bottom: 36px;
  }

  .newsletters-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .newsletter-card-body {
    padding: 28px 24px 30px;
  }

  .newsletter-card-body h3 {
    font-size: 22px;
  }

  .newsletter-card-body p {
    margin-bottom: 28px;
  }

  .newsletters-footer {
    margin-top: 40px;
    gap: 16px;
  }

  .newsletters-more {
    width: 100%;
    background: var(--peach);
  }
}

.upcoming-card--stacked {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.upcoming-card--stacked .upcoming-card-media {
  aspect-ratio: 614 / 173;
}

.upcoming-card--stacked .upcoming-card-body {
  justify-content: flex-start;
  padding: 32px 40px 40px;
}

.upcoming-card--stacked .events-eyebrow {
  font-size: 11px;
  font-weight: 700;
}

.upcoming-card--stacked .upcoming-card-body h3 {
  margin-top: 12px;
  font-size: 30px;
  font-style: italic;
  color: var(--navy);
}

.upcoming-card--stacked .upcoming-card-text {
  margin: 10px 0 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-dark);
}

.upcoming-card-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 32px;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-darker);
}

.upcoming-card-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.upcoming-card-meta i {
  width: 12px;
  font-size: 11px;
  text-align: center;
  color: var(--orange);
}

@media (max-width: 600px) {
  .upcoming-card--stacked .upcoming-card-body {
    padding: 28px 24px 32px;
  }

  .upcoming-card--stacked .upcoming-card-body h3 {
    font-size: 24px;
  }

  .upcoming-card--stacked .events-btn {
    width: 100%;
  }
}

main *:not(i),
.notify-modal *:not(i),
.notify-toast {
  font-family: var(--sans);
}
