@font-face {
  font-family: "SFEC Cinzel";
  src: url("../css/Cinzel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #090806;
  --panel-2: #15110b;
  --gold: #bf9546;
  --gold-bright: #e4c77f;
  --gold-dark: #814c17;
  --cream: #ede4d2;
  --muted: #c9c0b3;
  --line: rgba(191, 149, 70, 0.48);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.is-embed { background: transparent; }

a { color: inherit; }

.sfec-calendar {
  width: min(1180px, 100%);
  margin: 0 auto;
  background:
    radial-gradient(circle at 16% 0%, rgba(129, 76, 23, 0.23), transparent 34rem),
    linear-gradient(180deg, #080604 0%, #000 33%, #030201 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calendar-header {
  display: grid;
  grid-template-columns: minmax(145px, 230px) 1fr auto;
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.eyebrow,
.event-category {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-copy h1 {
  margin: 0;
  color: var(--gold-bright);
  font-family: "SFEC Cinzel", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 400;
  line-height: 1.04;
}

.header-copy > p:last-child {
  margin: 13px 0 0;
  color: var(--cream);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.book-button,
.event-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--gold-bright);
  color: #170f05;
  background: linear-gradient(135deg, #e2bb58, #bf8422);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.book-button:hover,
.event-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(191, 132, 34, 0.22);
}

.calendar-body { padding: clamp(22px, 4vw, 48px); }

.month-nav {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 0 22px;
  scrollbar-color: var(--gold) transparent;
}

.month-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  text-decoration: none;
}

.month-nav a:hover,
.month-nav a.active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(191, 149, 70, 0.1);
}

.month-section { scroll-margin-top: 18px; }
.month-section + .month-section { margin-top: 44px; }

.month-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 21px;
}

.month-heading span { height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.month-heading span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.month-heading h2 {
  margin: 0;
  color: var(--gold);
  font-family: "SFEC Cinzel", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  font-weight: 400;
}

.event-grid { display: grid; gap: 18px; }

.event-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(0, 170px);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(191,149,70,0.035));
}

.date-block {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--gold);
  background: var(--panel-2);
  text-align: center;
}

.date-month { color: var(--gold-bright); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; }
.date-block strong { color: #fff; font-family: "SFEC Cinzel", Georgia, serif; font-size: 2.6rem; font-weight: 400; line-height: 1; }
.date-block small { color: var(--muted); font-size: 0.72rem; }

.event-content h3 {
  margin: 0;
  color: #fff;
  font-family: "SFEC Cinzel", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.18;
}

.event-date { margin: 10px 0 0; color: var(--gold-bright); font-weight: 700; }
.event-location { margin: 5px 0 0; color: var(--cream); }
.event-description { margin: 13px 0 0; color: var(--muted); line-height: 1.58; }

.event-link {
  min-height: 40px;
  margin-top: 17px;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.event-image {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 14px;
  border-left: 1px solid var(--line);
}

.event-image img { display: block; max-width: 100%; max-height: 112px; object-fit: contain; }

.notice {
  padding: clamp(34px, 7vw, 80px) 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.notice h2 { margin: 0; color: var(--gold-bright); font-family: "SFEC Cinzel", Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.notice p { margin: 13px 0 0; color: var(--cream); }

.calendar-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-footer p { margin: 0; }
.calendar-footer a { color: var(--gold-bright); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

@media (max-width: 780px) {
  .calendar-header { grid-template-columns: 112px 1fr; }
  .book-button { grid-column: 1 / -1; }
  .event-card { grid-template-columns: 88px 1fr; align-items: start; }
  .event-image { grid-column: 1 / -1; min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .event-image img { max-height: 92px; }
  .date-block { min-height: 92px; }
  .date-block strong { font-size: 2rem; }
}

@media (max-width: 480px) {
  .calendar-header { grid-template-columns: 1fr; text-align: center; }
  .brand img { width: 180px; margin: 0 auto; }
  .event-card { grid-template-columns: 1fr; }
  .date-block { grid-template-columns: auto auto auto; justify-content: center; gap: 8px; min-height: 0; }
  .date-block strong { font-size: 1.6rem; }
  .event-image { grid-column: 1; }
  .calendar-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
