/* =============================================================
   CMDS West Coast — SIMPLE page
   Cover, two event cards, a coarse route. No map, no scroll rig.
   Rides on storybook.css for the palette, type, hero and footer.
   ============================================================= */

/* ========================== COVER ===========================
   The plaque carries two lines now — where, then when — so the
   pill from storybook.css becomes a small card.
   ============================================================ */
.sb-hero__dates {
  border-radius: 14px;
  padding: 0.5em 1.4em 0.6em;
  line-height: 1.35;
}
.sb-hero__dates strong {
  display: block;
  font-family: var(--sb-display);
  font-weight: 400;
  font-size: 0.85em;
  letter-spacing: 0.01em;
  color: var(--sb-red);
}

/* ===================== HIGHLIGHT CARDS ====================== */
.cards {
  background: linear-gradient(180deg, var(--sb-gold) 0%, var(--sb-amber) 100%);
  padding: clamp(3rem, 8vh, 5rem) var(--sb-edge);
}
.cards__head {
  margin: 0 0 clamp(1.6rem, 4vh, 2.4rem);
  text-align: center;
  font-family: var(--sb-display);
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  color: #fffdf7;
  text-shadow: 2px 3px 0 rgba(30, 76, 143, 0.45);
}
.cards__row {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 60rem;
  margin: 0 auto;
}
@media (min-width: 780px) { .cards__row { grid-template-columns: 1fr 1fr; } }

.card {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 var(--paper-edge), 0 14px 30px rgba(20, 50, 40, 0.28);
  transition: transform 0.25s var(--sb-ease), box-shadow 0.25s var(--sb-ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--paper-edge), 0 20px 40px rgba(20, 50, 40, 0.34); }
/* the colored top edge is the event's identity — same coding as the fusion notes */
.card--jazz { border-top: 5px solid var(--sb-gold); }
.card--pkm  { border-top: 5px solid var(--sb-plum); }

.card__art { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: clamp(1.2rem, 4vw, 1.8rem); }
.card__kicker { margin: 0; font-family: var(--sb-hand); font-size: 1.15rem; color: var(--ink-red); }
.card__title {
  margin: 0.05em 0 0;
  font-family: var(--sb-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--sb-cobalt);
  line-height: 1.05;
}
.card__sub {
  margin: 0.35em 0 0;
  font-family: var(--sb-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card__note {
  margin: 0.6rem 0 0;
  font-family: var(--sb-hand);
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  line-height: 1.45;
}
.card__cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45em 1em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fffdf7;
  background: var(--sb-red);
  box-shadow: 0 3px 0 #a32a23;
}

/* ========================= THE ROUTE ========================= */
/* The painting sits on top of the gradient, not instead of it: until
   scenes/route.png exists the layer simply fails to load and the gradient
   below shows through — no broken image, no empty section. */
.plan {
  position: relative;
  background-color: var(--sb-teal);
  background-image:
    url("../img/route.png"),
    radial-gradient(120% 70% at 50% 0%, #cbe7f6 0%, transparent 60%),
    linear-gradient(180deg, var(--sb-sky-deep), var(--sb-teal) 60%, var(--sb-green) 100%);
  background-size: cover, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
  padding: clamp(3rem, 9vh, 5.5rem) var(--sb-edge);
}
/* Whatever the painting turns out to be, the heading and the caveat stay
   readable over it. */
.plan::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 38, 72, 0.42) 0%, rgba(12, 38, 72, 0.16) 45%, rgba(12, 38, 72, 0.42) 100%);
}
.plan__inner { position: relative; z-index: 1; max-width: 40rem; margin: 0 auto; }
.plan__head {
  margin: 0;
  text-align: center;
  font-family: var(--sb-display);
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  color: #fffdf7;
  text-shadow: 2px 3px 0 rgba(30, 76, 143, 0.5);
}
.plan__sub {
  margin: 0.4rem 0 clamp(1.6rem, 4vh, 2.2rem);
  text-align: center;
  font-family: var(--sb-hand);
  font-size: 1.2rem;
  color: #fffdf7;
  text-shadow: 0 1px 3px rgba(12, 38, 72, 0.9);
}

/* One sheet of paper, ruled — the legs are lines written on it. */
.plan__list {
  margin: 0;
  padding: clamp(1.2rem, 4vw, 1.8rem);
  list-style: none;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(30, 76, 143, 0.09) 31px 32px);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--paper-edge), 0 12px 30px rgba(20, 50, 40, 0.24);
}
.leg {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.75rem 0;
}
.leg + .leg { border-top: 1px dashed rgba(30, 76, 143, 0.22); }
.leg__when {
  flex: 0 0 auto;
  width: 8.5rem;
  font-family: var(--sb-hand);
  font-size: 1.15rem;
  color: var(--ink-red);
}
.leg__where {
  font-family: var(--sb-display);
  font-size: clamp(1.15rem, 4.4vw, 1.5rem);
  color: var(--sb-cobalt);
  line-height: 1.1;
}
.leg__where em {
  display: block;
  font-family: var(--sb-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
@media (max-width: 460px) {
  .leg { flex-direction: column; gap: 0.15rem; }
  .leg__when { width: auto; }
}

.plan__caveat {
  margin: 1.4rem 0 0;
  text-align: center;
  font-family: var(--sb-hand);
  font-size: 1.1rem;
  color: #fffdf7;
  text-shadow: 0 1px 3px rgba(12, 38, 72, 0.9);
}
