/* Markets page styles.
   Loaded as a stylesheet asset by each Markets section. Sections are added and
   removed independently in the theme editor, so each one links this file; the
   browser fetches and applies a given stylesheet URL once. */

.epic-markets {
  --em-cream: #fbf4e4;
  --em-paper: #fffaf0;
  --em-espresso: #35271f;
  --em-cocoa: #554033;
  --em-caramel: #b98242;
  --em-wine: #713a34;
  --em-rose: #ead8c6;
  color: var(--em-espresso);
}

.epic-markets * {
  box-sizing: border-box;
}

.epic-markets h2,
.epic-markets h3 {
  margin-top: 0;
  font-family: Ovo, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--em-espresso);
  text-wrap: balance;
}

.epic-markets h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(3.2rem, 4.4vw, 5.2rem);
  line-height: 1.05;
}

.epic-markets h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  line-height: 1.2;
}

.epic-markets p {
  margin-top: 0;
  color: rgba(53, 39, 31, 0.78);
  font-size: 1.5rem;
  line-height: 1.65;
}

.epic-markets__eyebrow {
  margin: 0 0 1.4rem;
  color: var(--em-wine);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.epic-markets__section {
  padding-top: clamp(5rem, 6vw, 8rem);
  padding-bottom: clamp(5rem, 6vw, 8rem);
}

.epic-markets__measure {
  max-width: 68rem;
}

.epic-markets__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  padding: 1.3rem 2.7rem;
  border-radius: 999px;
  background: var(--em-espresso);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.epic-markets__button:hover {
  transform: translateY(-2px);
  background: var(--em-wine);
  color: #fff;
}

.epic-markets a:focus-visible,
.epic-markets__button:focus-visible {
  outline: 0.3rem solid var(--em-caramel);
  outline-offset: 0.3rem;
}

@media (prefers-reduced-motion: reduce) {
  .epic-markets__button {
    transition: none;
  }

  .epic-markets__button:hover {
    transform: none;
  }
}

/* ---------- Intro ---------- */

.epic-markets-intro {
  background: var(--em-cream);
}

.epic-markets-intro .epic-markets-intro__title {
  margin: 0 0 2rem;
  font-family: Ovo, serif;
  font-weight: 400;
  font-size: clamp(3.8rem, 6vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--em-espresso);
  text-wrap: balance;
}

.epic-markets-intro .epic-markets-intro__body p {
  margin-bottom: 1.4rem;
  font-size: clamp(1.6rem, 1.8vw, 1.85rem);
}

.epic-markets-intro .epic-markets-intro__body p:last-child {
  margin-bottom: 0;
}

.epic-markets-intro__figure {
  margin: 3.2rem 0 0;
  max-width: 82rem;
}

/* width:100% + height:auto keeps the photograph at its own proportions, so
   nobody and no branding is cropped at any viewport width. */
.epic-markets-intro .epic-markets-intro__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.8rem;
  background: var(--em-rose);
}

.epic-markets-intro .epic-markets-intro__caption {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
  color: rgba(53, 39, 31, 0.72);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
}

/* The historical note sits under the caption, upright and slightly quieter, so
   it reads as a factual qualifier rather than part of the caption sentence. */
.epic-markets-intro .epic-markets-intro__note {
  color: rgba(53, 39, 31, 0.62);
  font-size: 1.2rem;
  font-style: normal;
}

/* ---------- Schedule ---------- */

.epic-markets-schedule {
  background: var(--em-paper);
}

.epic-markets-schedule__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.epic-markets-schedule__event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 2.4rem;
  border: 1px solid rgba(53, 39, 31, 0.14);
  border-radius: 1.8rem;
  background: var(--em-cream);
}

.epic-markets-schedule .epic-markets-schedule__date {
  margin: 0;
  color: var(--em-wine);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.epic-markets-schedule__venue {
  margin: 0.4rem 0 0;
}

.epic-markets-schedule .epic-markets-schedule__time,
.epic-markets-schedule .epic-markets-schedule__address {
  margin: 0;
  font-size: 1.35rem;
  font-style: normal;
  line-height: 1.55;
}

.epic-markets-schedule__directions {
  margin-top: 1rem;
  color: var(--em-wine);
  font-size: 1.3rem;
  font-weight: 700;
  text-underline-offset: 0.35rem;
}

.epic-markets-schedule .epic-markets-schedule__empty {
  margin: 0;
  padding: 2.4rem;
  border: 1px dashed rgba(113, 58, 52, 0.5);
  border-radius: 1.4rem;
  background: var(--em-cream);
  color: var(--em-wine);
  font-size: 1.55rem;
  font-weight: 700;
}

/* ---------- Feature ---------- */

.epic-markets-feature--cream {
  background: var(--em-cream);
}

.epic-markets-feature--paper {
  background: var(--em-paper);
}

.epic-markets-feature--rose {
  background: var(--em-rose);
}

.epic-markets-feature__intro {
  margin-bottom: 3.2rem;
}

.epic-markets-feature .epic-markets-feature__intro p {
  margin-bottom: 1.2rem;
  font-size: clamp(1.5rem, 1.7vw, 1.7rem);
}

.epic-markets-feature .epic-markets-feature__intro p:last-child {
  margin-bottom: 0;
}

.epic-markets-feature__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2.4rem;
}

/* With no images anywhere the cards read as a text list, not empty media. */
.epic-markets-feature__grid--text {
  grid-template-columns: repeat(auto-fit, minmax(34rem, 1fr));
}

.epic-markets-feature__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(53, 39, 31, 0.14);
  border-radius: 2rem;
  background: var(--em-paper);
}

.epic-markets-feature__grid--text .epic-markets-feature__card {
  border-left: 3px solid var(--em-caramel);
}

.epic-markets-feature__media {
  overflow: hidden;
  background: var(--em-rose);
}

.epic-markets-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Cover fills the frame and may crop; use for photographs. */
.epic-markets-feature__media--cover img {
  object-fit: cover;
}

/* Contain keeps the whole artwork visible, which round sticker designs need.
   The padded, lighter ground makes the letterboxing read as a deliberate mat. */
.epic-markets-feature__media--contain {
  padding: 1.6rem;
  background: var(--em-paper);
}

.epic-markets-feature__media--contain img {
  object-fit: contain;
}

/* Natural keeps the image's own proportions with no fixed frame. */
.epic-markets-feature__media--natural img {
  height: auto;
}

.epic-markets-feature__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2.4rem;
}

.epic-markets-feature .epic-markets-feature__label {
  margin: 0;
  color: var(--em-wine);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.epic-markets-feature__text h3 {
  margin: 0;
}

.epic-markets-feature .epic-markets-feature__text .rte p {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.epic-markets-feature .epic-markets-feature__text .rte p:last-child {
  margin-bottom: 0;
}

.epic-markets-feature .epic-markets-feature__status {
  margin: 0.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(53, 39, 31, 0.12);
  color: var(--em-cocoa);
  font-size: 1.25rem;
  font-weight: 700;
}

.epic-markets-feature .epic-markets-feature__footnote {
  margin: 2.8rem 0 0;
  color: rgba(53, 39, 31, 0.72);
  font-size: 1.35rem;
}

/* ---------- Order CTA ---------- */

.epic-markets-order {
  background: var(--em-espresso);
}

.epic-markets-order__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

/* Two-class selectors so these beat the generic `.epic-markets h2` and
   `.epic-markets p` rules on the dark ground. */
.epic-markets-order .epic-markets-order__heading {
  margin: 0;
  color: #fff;
}

.epic-markets-order .epic-markets-order__body {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.55rem;
}

.epic-markets-order .epic-markets__button {
  margin-top: 0.8rem;
  background: var(--em-cream);
  color: var(--em-espresso);
}

.epic-markets-order .epic-markets__button:hover {
  background: #fff;
  color: var(--em-espresso);
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 749px) {
  .epic-markets-schedule__list {
    grid-template-columns: 1fr;
  }

  .epic-markets-schedule__event,
  .epic-markets-schedule .epic-markets-schedule__empty {
    padding: 1.8rem;
  }

  .epic-markets-feature__grid,
  .epic-markets-feature__grid--text {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .epic-markets-feature__text {
    padding: 1.8rem;
  }

  .epic-markets-order .epic-markets__button {
    width: 100%;
  }
}
