/* Focused homepage redesign. All selectors are home-scoped to protect legacy pages. */
.home-page {
  --home-max: 1160px;
  --home-red: #c91d28;
  --home-red-dark: #9f1520;
  --home-ink: #151515;
  --home-muted: #626262;
  --home-line: rgba(21, 21, 21, 0.12);
  --home-paper: #fbf8f2;
  background: var(--home-paper) !important;
}

.home-page > nav.site-nav .nav-inner {
  min-height: 74px;
}

.home-page > nav.site-nav .logo-img {
  height: 43px !important;
  max-height: 43px !important;
  max-width: min(174px, 36vw) !important;
}

.home-page main {
  overflow: hidden;
}

.home-hero {
  width: min(var(--home-max), calc(100% - 40px));
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) 0 clamp(64px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 0.86fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
}

.home-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--home-red-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-updated::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--home-red);
  box-shadow: 0 0 0 6px rgba(201, 29, 40, 0.1);
}

.home-hero h1 {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--home-ink);
  font-size: clamp(3.2rem, 6.7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.068em;
  line-height: 0.92;
  text-wrap: balance;
}

.home-hero-copy > p {
  max-width: 600px;
  margin: 25px 0 0;
  color: var(--home-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.62;
}

.home-hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.home-primary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--home-ink);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.home-primary-action:hover {
  background: var(--home-red);
  transform: translateY(-2px);
}

.home-instagram-action {
  gap: 9px;
  background: linear-gradient(135deg, #7b2fc3 0%, #d62461 54%, #f07b3f 100%);
  box-shadow: 0 16px 34px rgba(177, 38, 104, 0.26);
}

.home-instagram-action:hover {
  background: linear-gradient(135deg, #6825aa 0%, #bd1f55 54%, #db6630 100%);
}

.home-text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.home-text-link:hover {
  color: var(--home-red-dark);
  text-decoration-color: currentColor;
}

.home-instagram-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #171719;
  color: #fff;
  box-shadow: 0 24px 70px rgba(36, 26, 17, 0.2);
}

.home-instagram-panel-heading {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 1px 3px 13px;
}

.home-instagram-panel-heading p {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-instagram-panel-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.home-instagram-panel-heading > a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.home-instagram-panel-heading > a:hover {
  border-color: #fff;
  background: #fff;
  color: #171719;
}

.home-instagram-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
  border-radius: 17px;
  list-style: none;
  background: #0e0e10;
}

.home-instagram-grid[hidden],
.home-instagram-fallback[hidden] {
  display: none;
}

.home-instagram-item {
  min-width: 0;
}

.home-instagram-post,
.home-instagram-fallback {
  position: relative;
  overflow: hidden;
  display: block;
  background: #252528;
}

.home-instagram-post {
  aspect-ratio: 1;
}

.home-instagram-post img,
.home-instagram-fallback img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease, opacity 240ms ease;
}

.home-instagram-post::after {
  content: "Open on Instagram ↗";
  position: absolute;
  inset: auto 0 0;
  padding: 26px 10px 9px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
  opacity: 0;
  transition: opacity 180ms ease;
}

.home-instagram-type {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(15, 15, 17, 0.76);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.home-instagram-fallback {
  aspect-ratio: 1;
  border-radius: 17px;
}

.home-instagram-fallback picture {
  width: 100%;
  height: 100%;
  display: block;
}

.home-instagram-post:focus-visible,
.home-instagram-fallback:focus-visible,
.home-instagram-panel-heading > a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.home-instagram-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(5, 5, 7, 0.86));
}

.home-instagram-fallback > span {
  position: absolute;
  right: 22px;
  bottom: 21px;
  left: 22px;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 1.72rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.home-instagram-fallback b {
  margin-left: 4px;
}

@media (hover: hover) {
  .home-instagram-post:hover img,
  .home-instagram-fallback:hover img {
    transform: scale(1.035);
    opacity: 0.9;
  }

  .home-instagram-post:hover::after {
    opacity: 1;
  }
}

.home-calendar-section {
  padding: clamp(70px, 8vw, 100px) max(20px, calc((100% - var(--home-max)) / 2));
  background: #fff;
  border-block: 1px solid var(--home-line);
}

.home-calendar-layout {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.72fr);
  align-items: start;
  gap: 24px;
}

.home-calendar,
.home-agenda {
  min-width: 0;
  border: 1px solid var(--home-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(25, 21, 17, 0.07);
}

.home-calendar {
  padding: clamp(16px, 3vw, 28px);
}

.home-calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.home-calendar-toolbar h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.home-calendar-nav,
.home-calendar-today {
  min-height: 44px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: #fff;
  color: var(--home-ink);
  cursor: pointer;
  font-weight: 850;
}

.home-calendar-nav {
  width: 44px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.home-calendar-today {
  padding: 0 15px;
}

.home-calendar-nav:hover,
.home-calendar-today:hover {
  border-color: var(--home-ink);
  background: var(--home-ink);
  color: #fff;
}

.home-calendar-weekdays,
.home-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.home-calendar-weekdays {
  margin-bottom: 7px;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.home-calendar-day,
.home-calendar-blank {
  min-width: 0;
  aspect-ratio: 1;
}

.home-calendar-day {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #faf9f6;
  color: var(--home-ink);
  cursor: pointer;
  font-weight: 800;
}

.home-calendar-day:hover {
  border-color: rgba(201, 29, 40, 0.4);
  background: #fff4f3;
}

.home-calendar-day.is-past:not(.is-selected) {
  color: #858585;
  background: #fafafa;
}

.home-calendar-day.has-events:not(.is-selected) {
  border-color: rgba(201, 29, 40, 0.2);
  background: #fff8f7;
}

.home-calendar-day[aria-current="date"] {
  outline: 2px solid var(--home-red);
  outline-offset: 2px;
}

.home-calendar-day.is-selected {
  border-color: var(--home-ink);
  background: var(--home-ink);
  color: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.16);
}

.home-calendar-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--home-red);
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
}

.home-calendar-day.is-selected .home-calendar-count {
  background: #fff;
  color: var(--home-ink);
}

.home-agenda {
  padding: 24px;
}

.home-agenda-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-line);
}

.home-agenda-heading h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-agenda-heading > p:last-child {
  margin-top: 10px;
  color: var(--home-muted);
  font-size: 0.88rem;
}

.home-agenda-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.home-agenda-event {
  padding: 17px;
  border: 1px solid var(--home-line);
  border-radius: 17px;
  background: #fbfaf7;
}

.home-agenda-event-topline,
.home-agenda-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-agenda-event-topline {
  color: var(--home-muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-agenda-event-topline span {
  color: var(--home-red-dark);
}

.home-agenda-event h4 {
  margin: 11px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.18;
}

.home-agenda-event > p {
  margin-top: 7px;
  color: var(--home-muted);
  font-size: 0.88rem;
}

.home-agenda-event-footer {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--home-line);
  font-size: 0.82rem;
}

.home-agenda-event-footer strong {
  color: var(--home-red-dark);
}

.home-agenda-event-footer a {
  font-weight: 900;
}

.home-agenda-event-footer a:hover {
  color: var(--home-red-dark);
}

.home-agenda-empty {
  padding: 24px 4px 8px;
  color: var(--home-muted);
}

.home-agenda-empty strong {
  color: var(--home-ink);
  font-size: 1.05rem;
}

.home-agenda-empty p {
  margin-top: 8px;
}

.home-agenda-empty a {
  color: var(--home-red-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.home-section-kicker {
  margin: 0 0 10px;
  color: var(--home-red-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-section-heading h2,
.home-newsletter h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.home-section-heading > div > p:last-child {
  margin-top: 13px;
  color: var(--home-muted);
  font-size: 1.04rem;
}

.home-events-toolbar {
  margin: 34px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-filter {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: #fff;
  color: #3d3d3d;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-filter:hover {
  border-color: rgba(21, 21, 21, 0.34);
}

.home-filter.is-active {
  border-color: var(--home-ink);
  background: var(--home-ink);
  color: #fff;
}

.home-result-count {
  flex: 0 0 auto;
  color: var(--home-muted);
  font-size: 0.9rem;
}

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

.home-event-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-line);
  border-radius: 21px;
  background: #fff;
  color: var(--home-ink);
  box-shadow: 0 8px 30px rgba(25, 21, 17, 0.06);
}

.home-event-card .home-event-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eee7dc;
}

.home-event-card .home-event-media img,
.home-event-card .current-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-event-card .home-event-media img {
  object-fit: cover;
  transition: transform 300ms ease;
}

.home-event-card:hover .home-event-media img {
  transform: scale(1.025);
}

.home-event-status {
  position: absolute;
  left: 13px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--home-ink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.home-image-credit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(15, 15, 15, 0.7);
  color: #fff;
  font-size: 0.61rem;
  line-height: 1.2;
  backdrop-filter: blur(8px);
}

.home-event-content {
  min-height: 0;
  padding: 19px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-event-card h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.home-event-meta {
  margin: 15px 0 0;
  display: grid;
  gap: 8px;
  color: var(--home-muted);
  font-size: 0.91rem;
}

.home-event-meta span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.home-event-meta strong {
  color: var(--home-ink);
  font-weight: 800;
}

.home-event-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-event-price {
  color: var(--home-red-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.home-event-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--home-ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.home-event-link:hover {
  color: var(--home-red-dark);
}

.home-loading-state,
.home-event-grid .empty-state {
  grid-column: 1 / -1;
  padding: 44px 24px;
  border: 1px dashed rgba(21, 21, 21, 0.2);
  border-radius: 20px;
  background: #fbfaf7;
  color: var(--home-muted);
  text-align: center;
}

.home-loading-state a {
  color: var(--home-red-dark);
  font-weight: 850;
  text-decoration: underline;
}

.home-newsletter {
  width: min(var(--home-max), calc(100% - 40px));
  margin: clamp(72px, 9vw, 112px) auto;
  padding: clamp(30px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
  border-radius: 28px;
  background: #111;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.home-newsletter .home-section-kicker {
  color: #ff9da4;
}

.home-newsletter h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
}

.home-newsletter-copy > p:not(.home-section-kicker):not(.home-submit-prompt) {
  max-width: 570px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.home-submit-prompt {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.home-submit-prompt a,
.home-newsletter-form small a {
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-newsletter-form {
  display: grid;
  gap: 10px;
}

.home-newsletter-form > label {
  color: #fff;
  font-size: 0.83rem;
  font-weight: 800;
}

.home-newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.home-newsletter-fields input {
  min-width: 0;
  min-height: 49px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.home-newsletter-fields input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.home-newsletter-fields button {
  min-height: 49px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--home-red);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.home-newsletter-fields button:hover {
  background: #e32b36;
}

.home-newsletter-form small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.home-page > footer {
  margin-top: 0 !important;
}

@media (max-width: 920px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
    gap: 42px;
  }

  .home-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-calendar-layout {
    grid-template-columns: 1fr;
  }

  .home-newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-page > nav.site-nav .nav-inner {
    min-height: 70px;
  }

  .home-page > nav.site-nav .logo-img {
    height: 38px !important;
    max-height: 38px !important;
    max-width: min(158px, 48vw) !important;
  }

  .home-hero {
    width: min(var(--home-max), calc(100% - 28px));
    min-height: 0;
    padding: 46px 0 66px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
    letter-spacing: -0.058em;
  }

  .home-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .home-primary-action {
    width: 100%;
  }

  .home-instagram-panel {
    padding: 12px;
    border-radius: 22px;
  }

  .home-calendar-section {
    padding-inline: 14px;
  }

  .home-section-heading,
  .home-events-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-section-heading > .home-text-link {
    margin-top: 2px;
  }

  .home-events-toolbar {
    margin-top: 28px;
    gap: 14px;
  }

  .home-filter-row {
    width: 100%;
  }

  .home-filter {
    min-height: 40px;
    padding-inline: 13px;
  }

  .home-event-grid {
    grid-template-columns: 1fr;
  }

  .home-calendar {
    padding: 13px;
    border-radius: 19px;
  }

  .home-calendar-toolbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    margin-bottom: 20px;
  }

  .home-calendar-today {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 3px;
  }

  .home-calendar-weekdays,
  .home-calendar-days {
    gap: 4px;
  }

  .home-calendar-weekdays {
    font-size: 0.61rem;
  }

  .home-calendar-day {
    min-height: 43px;
    border-radius: 11px;
    font-size: 0.83rem;
  }

  .home-calendar-count {
    top: 3px;
    right: 3px;
    min-width: 15px;
    height: 15px;
    font-size: 0.52rem;
  }

  .home-agenda {
    padding: 20px;
    border-radius: 19px;
  }

  .home-newsletter {
    width: calc(100% - 28px);
    border-radius: 22px;
  }

  .home-newsletter-fields {
    grid-template-columns: 1fr;
  }

  .home-newsletter-fields button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-instagram-post img,
  .home-instagram-fallback img,
  .home-event-card .home-event-media img {
    transition: none;
  }

  .home-instagram-post:hover img,
  .home-instagram-fallback:hover img,
  .home-event-card:hover .home-event-media img,
  .home-primary-action:hover {
    transform: none;
  }
}
