/* ==========================================================================
   MEM PATISSERIE — STORY PAGE STYLES
   Who MEM is · Kilimanjaro backdrop · Timeline · Marquee
   ========================================================================== */

/* ==========================================================================
   1. STORY HERO
   ========================================================================== */

.story-hero {
  min-height: 80vh;
  background-color: var(--dark-brown);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: var(--space-32) var(--space-8) var(--space-16);
}

/* Kilimanjaro silhouette — SVG/image positioned at bottom */
.story-hero__mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.12;
  pointer-events: none;
}

.story-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.story-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  color: var(--text-light);
  line-height: 1;
}

.story-hero__sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 50ch;
  line-height: 1.8;
}

/* ==========================================================================
   2. MARQUEE — Craft Daily strip
   ========================================================================== */

.story-marquee {
  background-color: var(--dark-brown-2);
  border-top: 1px solid var(--copper-dim);
  border-bottom: 1px solid var(--copper-dim);
  overflow: hidden;
  padding: var(--space-4) 0;
}

.story-marquee__inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.story-marquee__text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--copper);
  padding: 0 var(--space-12);
  flex-shrink: 0;
  opacity: 0.7;
}

.story-marquee__text em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 1.125rem;
  vertical-align: middle;
  padding: 0 var(--space-4);
}

/* ==========================================================================
   3. WHO WE ARE
   ========================================================================== */

.story-about {
  background-color: var(--cream);
  padding: var(--space-32) var(--space-8);
}

.story-about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.story-about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.story-about__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--text-dark);
  line-height: 1.1;
}

.story-about__body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-muted-light);
  line-height: 1.85;
  max-width: 55ch;
}

.story-about__visual {
  position: relative;
  height: 500px;
  background-color: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder when no image */
.story-about__placeholder {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--border);
}

/* ==========================================================================
   4. TIMELINE — Ingredient → Baker → Product
   ========================================================================== */

.story-timeline {
  background-color: var(--dark-brown);
  padding: var(--space-32) var(--space-8);
}

.story-timeline__header {
  text-align: center;
  margin-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.story-timeline__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--text-light);
  line-height: 1.1;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--copper), transparent);
  transform: translateX(-50%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-12);
}

/* Alternate left/right positioning */
.timeline__item:nth-child(odd) .timeline__content {
  text-align: right;
  grid-column: 1;
}

.timeline__item:nth-child(odd) .timeline__spacer {
  grid-column: 3;
}

.timeline__item:nth-child(even) .timeline__content {
  grid-column: 3;
  text-align: left;
}

.timeline__item:nth-child(even) .timeline__spacer {
  grid-column: 1;
}

.timeline__dot {
  grid-column: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--copper);
  border: 2px solid var(--dark-brown);
  box-shadow: 0 0 0 3px var(--copper-dim);
  flex-shrink: 0;
}

.timeline__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline__step {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.timeline__desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ==========================================================================
   5. PULL QUOTE
   ========================================================================== */

.story-quote {
  background-color: var(--warm-white);
  padding: var(--space-24) var(--space-8);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-quote__text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-dark);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto var(--space-6);
}

.story-quote__attr {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
  .story-about__inner {
    grid-template-columns: 1fr;
  }

  .story-about__visual {
    height: 280px;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline__item {
    grid-template-columns: auto 1fr;
  }

  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    grid-column: 2;
    text-align: left;
  }

  .timeline__item:nth-child(odd) .timeline__spacer,
  .timeline__item:nth-child(even) .timeline__spacer {
    display: none;
  }

  .timeline__dot {
    grid-column: 1;
  }
}
