/* ---------------------------------------------------------------------------
 * The workshops page.
 *
 * It used to live in its own route group with its own document, its own
 * stylesheet and hand-built Header and Footer components that imitated the
 * website's. It is part of the website now — same document, same header, same
 * footer — so what is left here is only what is particular to the page: the
 * hero, the timeline of sessions, and the two buttons on them.
 *
 * The tokens it used are mapped onto the site's own at the top, so the colours
 * are one set of colours rather than two that happen to agree.
 * ------------------------------------------------------------------------- */

.alex-ateliers {
  --container: 1040px;
  --pad: 24px;
  --ink: #000;
  --text-strong: var(--alex-ink);
  --text: var(--alex-ink-2);
  --purple: var(--alex-purple);
  --purple-hover: #5a4dff;
  --green: #61c378;
  --line: var(--alex-hairline);
  --btn-border: #00000013;

  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

/* The site's stylesheet underlines links; this page's did not, and its two
   buttons are links. */
.alex-ateliers a {
  color: inherit;
  text-decoration: none;
}

.alex-ateliers .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ------------------------------------------------------------------ Hero */
.hero {
  text-align: center;
  padding: 96px 0 0;
}

.alex-ateliers .hero-visual {
  position: relative;
  display: inline-block;
  margin: 0 auto 44px;
}

.alex-ateliers .hero-product {
  display: block;
  width: 230px;
  height: auto;
  border-radius: 11px;
  box-shadow: 0 24px 48px -20px rgba(16, 6, 78, 0.22),
    0 4px 12px rgba(16, 6, 78, 0.06);
}

.alex-ateliers .hero-avatar {
  position: absolute;
  left: -36px;
  bottom: -18px;
  width: 78px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 10px 22px -8px rgba(16, 6, 78, 0.32);
}

.alex-ateliers .hero-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}

.alex-ateliers .hero-subtitle {
  max-width: 462px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
}

.alex-ateliers .hl {
  white-space: nowrap;
  font-weight: 500;
}

.alex-ateliers .hl-purple {
  color: var(--purple);
}

.alex-ateliers .hl-green {
  color: var(--green);
}

/* Every inline icon gets the same box, so they read as one set. The box is
   sized so the tallest glyph lands on the font's cap height; each icon then
   fills its own share of it (--inline-ic-ink, see components/icons.tsx), which
   keeps a wide-and-short glyph like the camera from being blown up to match a
   tall one. Trimmed viewBoxes put every icon on the baseline automatically. */
.inline-ic {
  --inline-ic-box: 0.82em;
  height: calc(var(--inline-ic-box) * var(--inline-ic-ink, 1));
  width: auto;
  vertical-align: baseline;
  margin-right: 0.18em;
}

/* -------------------------------------------------------------- Timeline */
.timeline {
  padding-top: 116px;
}

.alex-ateliers .events {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--pad) 150px;
}

.alex-ateliers .events::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 40px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    var(--line) 0%,
    var(--line) 74%,
    rgba(43, 44, 48, 0) 100%
  );
}

.alex-ateliers .event {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 78px;
}

.alex-ateliers .event + .event {
  margin-top: 64px;
}

.alex-ateliers .event-left {
  text-align: right;
}

/* The date is alone in the left column; the title heads the right one. */
.event-date {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
}

.alex-ateliers .event-date.is-purple {
  color: var(--purple);
}

.alex-ateliers .event-date.is-muted {
  color: var(--text);
}

.alex-ateliers .event-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
}

.alex-ateliers .event-dot {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.alex-ateliers .event-dot.is-purple {
  background: var(--purple);
}

.alex-ateliers .event-dot.is-muted {
  background: var(--text);
}

.alex-ateliers .event-body {
  text-align: left;
}

.alex-ateliers .event-desc {
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
  margin: 0 0 24px;
}

/* Shown instead of the CTA when an atelier has no link to point at, so the
   timeline keeps its rhythm without offering a button that does nothing. */
.event-pending {
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
  opacity: 0.7;
  font-style: italic;
  margin: 0;
}

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.alex-ateliers .btn:active {
  transform: translateY(1px);
}

.alex-ateliers .btn-primary {
  background: var(--purple);
  color: #fdfdfe;
  border: 1px solid var(--btn-border);
}

.alex-ateliers .btn-primary:hover {
  background: var(--purple-hover);
  box-shadow: 0 12px 26px -10px rgba(104, 91, 255, 0.55);
}

.alex-ateliers .btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
}

.alex-ateliers .btn-outline:hover {
  background: rgba(104, 91, 255, 0.06);
}

@media (max-width: 980px) {
.alex-ateliers .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px 16px;
  }

.alex-ateliers .footer-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
.alex-ateliers .site-footer {
    padding-top: 56px;
  }

.alex-ateliers .footer-container {
    grid-template-columns: 1fr;
  }

/* The three icon links do not fit one line on a phone. */
  .footer-about {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

.alex-ateliers .footer-newsletter {
    padding-right: 16px;
  }

.alex-ateliers .footer-copy {
    margin-right: 0;
  }
}

@media (max-width: 820px) {
.alex-ateliers .hero {
    padding-top: 72px;
  }

.alex-ateliers .hero-title {
    font-size: 31px;
  }

.alex-ateliers .timeline {
    padding-top: 80px;
  }

.alex-ateliers .events {
    padding-bottom: 110px;
  }

.alex-ateliers .events::before {
    left: calc(var(--pad) + 6px);
  }

.alex-ateliers .event {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding-left: 40px;
  }

.alex-ateliers .event-left {
    text-align: left;
  }

/* dot is positioned relative to .event (whose left edge sits at the
     .events content edge), so 6px here lines it up with the ::before line
     at calc(var(--pad) + 6px) relative to .events. */
  .event-dot {
    left: 6px;
    top: 6px;
  }
}

@media (max-width: 560px) {
.alex-ateliers .nav {
    display: none;
  }
}

