:root {
  color: #231b18;
  background: #f3eadc;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --wine: #8d0018;
  --wine-dark: #640014;
  --cream: #f8f1e6;
  --ink: #231b18;
  --gold: #dfa516;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f3eadc;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 5%, rgba(255, 255, 255, 0.95), transparent 28rem),
    radial-gradient(circle at 88% 20%, rgba(240, 167, 86, 0.32), transparent 31rem),
    linear-gradient(145deg, #f4ede2 0%, #eee1d0 48%, #f8f1e8 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(69, 45, 35, 0.11) 0.6px, transparent 0.7px);
  background-size: 5px 5px;
  opacity: 0.22;
  content: "";
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.42;
  pointer-events: none;
}

.ambient-one {
  top: -9rem;
  right: 9%;
  background: rgba(255, 198, 140, 0.62);
}

.ambient-two {
  bottom: -11rem;
  left: 18%;
  background: rgba(126, 0, 24, 0.17);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 24px;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 250, 244, 0.6);
  box-shadow:
    0 18px 50px rgba(66, 35, 24, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 11px 15px 11px 22px;
  border-radius: 25px;
}

.producer {
  display: block;
  width: 168px;
  height: 48px;
}

.producer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 24px;
  border-left: 1px solid rgba(65, 45, 38, 0.12);
}

.topbar-copy span,
.eyebrow {
  color: #866d64;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.topbar-copy strong {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.profile {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(141, 0, 24, 0.11);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #a40723, #710014);
  box-shadow: 0 9px 18px rgba(107, 0, 20, 0.2);
  font-size: 0.72rem;
  font-weight: 900;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 4px 22px;
}

.intro > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.intro h1 {
  max-width: none;
  margin: 8px 0 8px;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.intro p {
  margin: 0;
  color: #67554e;
  font-size: 1rem;
}

.active-indicator {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 99px;
  color: #654f47;
  background: rgba(255, 252, 247, 0.55);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.85);
  font-size: 0.77rem;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

.active-indicator i,
.event-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38a464;
  box-shadow: 0 0 0 4px rgba(56, 164, 100, 0.12);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 821px) {
  .intro h1 {
    font-size: clamp(2.1rem, 4.7vw, 4.15rem);
    white-space: nowrap;
  }
}

.event-card {
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(54, 39, 33, 0.2);
  border-radius: 22px;
  box-shadow: none;
  text-decoration: none;
  transition: border-color 160ms ease;
}

.event-card:hover,
.event-card:focus-visible {
  z-index: 1;
  border-color: currentColor;
  outline: 3px solid rgba(141, 0, 24, 0.13);
  outline-offset: 3px;
}

.event-card--pena {
  color: white;
  border-color: #171310;
  background: #292321;
}

.event-card--cata {
  color: var(--wine-dark);
  border-color: rgba(100, 0, 20, 0.26);
  border-top: 6px solid var(--wine);
  background: #f6efe3;
}

.event-card--cata::before {
  content: none;
}

.event-card__head,
.event-card__content,
.event-card__footer {
  position: relative;
  z-index: 1;
}

.event-card__head,
.event-card__footer,
.event-status,
.event-card__content {
  display: flex;
  align-items: center;
}

.event-card__head {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid currentColor;
}

.event-card--pena .event-card__head {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.event-card--cata .event-card__head {
  border-bottom-color: rgba(100, 0, 20, 0.13);
}

.event-status {
  gap: 8px;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.event-card--pena .event-status,
.event-card--pena .event-date {
  color: rgba(255, 255, 255, 0.67);
}

.event-card--cata .event-status,
.event-card--cata .event-date {
  color: rgba(100, 0, 20, 0.62);
}

.event-card .event-status i {
  box-shadow: none;
}

.event-date {
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.event-card__content {
  justify-content: space-between;
  gap: 25px;
  margin: 28px 0 24px;
}

.event-identity {
  display: grid;
  min-width: 0;
  flex: 1;
  place-items: center start;
}

.event-identity img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.event-identity--pena {
  max-width: 285px;
}

.event-identity--cata {
  max-width: 325px;
  padding: 6px 0;
}

.countdown {
  display: grid;
  width: 124px;
  min-width: 124px;
  min-height: 142px;
  place-content: center;
  border: 1px solid currentColor;
  border-radius: 14px;
  text-align: center;
}

.event-card--pena .countdown {
  color: #211a17;
  border-color: #dca91e;
  background: #dca91e;
}

.event-card--cata .countdown {
  color: white;
  border-color: var(--wine);
  background: var(--wine);
}

.countdown span,
.countdown small {
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.countdown strong {
  margin: 0;
  font-size: 3.65rem;
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.countdown--today strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.countdown--past strong {
  font-size: 2.6rem;
}

.countdown--past small {
  max-width: 82px;
  margin: 5px auto 0;
  line-height: 1.25;
}

.event-card__footer {
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
}

.event-card--pena .event-card__footer {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.event-card--cata .event-card__footer {
  border-top-color: rgba(100, 0, 20, 0.11);
}

.event-card__footer > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.event-card__footer span {
  font-size: 0.7rem;
  font-weight: 650;
  opacity: 0.72;
}

.event-card__footer strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-event {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 8px;
  opacity: 1 !important;
}

.event-card--pena .open-event {
  color: #241b17;
  background: #dca91e;
}

.event-card--cata .open-event {
  color: white;
  background: var(--wine);
}

.open-event b {
  font-size: 0.9rem;
  transition: transform 160ms ease;
}

.event-card:hover .open-event b {
  transform: translate(2px, -2px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding-top: 23px;
  color: #826d64;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wine);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 28px, 650px);
    padding-top: 14px;
  }

  .intro {
    align-items: start;
    padding-top: 40px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 9px 10px 9px 16px;
    border-radius: 21px;
  }

  .producer {
    width: 145px;
    height: 44px;
  }

  .topbar-copy {
    display: none;
  }

  .profile {
    width: 42px;
    height: 42px;
  }

  .intro {
    flex-direction: column;
    gap: 18px;
    padding: 36px 2px 22px;
  }

  .intro h1 {
    max-width: 360px;
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .intro p {
    max-width: 340px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .event-card {
    min-height: 380px;
    padding: 20px;
    border-radius: 18px;
  }

  .event-card__content {
    gap: 16px;
    margin: 25px 0 22px;
  }

  .event-identity--pena,
  .event-identity--cata {
    max-width: 210px;
  }

  .countdown {
    width: 102px;
    min-width: 102px;
    min-height: 126px;
    border-radius: 12px;
  }

  .countdown strong {
    font-size: 3.1rem;
  }

  .event-card__footer {
    align-items: end;
  }

  .event-card__footer strong {
    max-width: 175px;
  }

  .open-event {
    width: 43px;
    height: 43px;
    justify-content: center;
    padding: 0;
    font-size: 0 !important;
  }

  .open-event b {
    font-size: 1rem;
  }

  footer {
    flex-wrap: wrap;
    padding-bottom: 10px;
    font-size: 0.59rem;
  }
}

@media (max-width: 390px) {
  .event-card__content {
    align-items: end;
  }

  .event-identity--pena,
  .event-identity--cata {
    max-width: 185px;
  }

  .countdown {
    width: 94px;
    min-width: 94px;
  }
}

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