/* The Content Batch Masterclass -- registration page.

   Built only from tokens.css, the same way the Make It Make Sense page is:
   every colour, size, weight and radius is a token; the raw numbers are
   layout and nothing else.

   The thread is the mark: lime strokes ending in a round counter. It shows
   up once, as what the workshop covers -- five points on one route that ends
   in the counter.

   Grounds, top to bottom: deep, white, mist, deep, white, mist, teal. */

.mc{
  --wrap-x:clamp(20px,5vw,40px);
  --hero-pad:clamp(56px,7vw,96px);
  --overlap:clamp(96px,12vw,176px);   /* how far the card runs into the next band */
  --nav-h:76px;
  background:var(--mist);
}
.mc .wrap{padding-inline:var(--wrap-x)}
/* no base.css on this page, so the shared chrome needs its one reset */
.mc .mmonav a,.mc .footer a{text-decoration:none}
.mc [hidden]{display:none !important}

/* Links in running text on light grounds. Lime cannot be text there, so the
   rule under the link carries it, and the focus ring goes teal. */
.mc .inline{
  color:var(--teal);font-weight:var(--w-med);text-decoration:none;
  border-bottom:2px solid var(--lime);padding-bottom:1px;
  transition:border-color var(--dur) var(--ease);
}
.mc .inline:hover{border-bottom-color:var(--teal)}
.mc .inline:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:2px;box-shadow:none}

/* ---------------------------------------------------------------- hero */
.mc-hero{position:relative;z-index:2;padding-block:clamp(48px,7vw,104px) var(--hero-pad)}
.mc-hero .grid{display:grid;gap:clamp(22px,2.4vw,32px) clamp(40px,5vw,72px);align-items:start}
.mc-hero .card{margin-top:8px}
.mc-hero .kicker{font-size:var(--t-small);font-weight:var(--w-med);color:var(--sage-lift)}
.mc-hero h1{margin-top:clamp(20px,2.4vw,28px);color:var(--white);font-size:clamp(40px,6.6vw,88px)}
.mc-hero h1 span{display:block;color:var(--lime)}
.mc-hero .lede{max-width:34em;color:var(--sage-lift)}
.mc-hero .details{
  margin-top:clamp(28px,3.2vw,40px);padding-top:20px;border-top:1px solid var(--border-dark);
  display:flex;flex-direction:column;gap:6px;
  font-size:var(--t-small);font-weight:var(--w-med);color:var(--mist);
}
.mc-hero .details span{display:inline-flex;align-items:center}
.mc-hero .details span::before{
  content:"";flex:none;width:7px;height:7px;margin:0 14px 0 4px;border-radius:50%;background:var(--lime);
}
@media (min-width:700px){
  /* room for one row: the dot becomes the separator */
  .mc-hero .details{flex-direction:row;flex-wrap:wrap;gap:6px 0}
  .mc-hero .details span:first-child::before{display:none}
  .mc-hero .details span + span::before{margin-inline:14px}
}

/* ---------------------------------------------------------------- card */
/* The card hangs below the hero by exactly --overlap, whatever the copy
   height: it sits at the bottom of its row, and the negative margin takes the
   band's bottom padding plus the overlap out of the row's height. */
.mc-hero .card{
  align-self:end;
  margin-bottom:calc(-1 * (var(--hero-pad) + var(--overlap)));
  background:var(--mist);color:var(--teal);
  border:1px solid var(--border);border-radius:var(--r-lg);
  padding:clamp(24px,3vw,36px);
  scroll-margin-top:calc(var(--nav-h) + 16px);
}
.mc-hero .card:focus{outline:none}
.mc .card-h{
  font-size:clamp(26px,2.6vw,32px);font-weight:var(--w-head);letter-spacing:var(--ls-tight);
  line-height:var(--lh-head);color:var(--teal);
}
.mc .card-h:focus,.mc .card-h:focus-visible{outline:none;box-shadow:none}
.mc .card-sub{margin-top:10px;font-size:var(--t-small);color:var(--teal-600);max-width:30em}
.mc .card-sub .who{color:var(--teal);font-weight:var(--w-med);overflow-wrap:anywhere}
.mc .bring{margin-top:16px;font-weight:var(--w-med);color:var(--teal)}

.mc .reg{margin-top:clamp(18px,2vw,24px)}
.mc .field + .field{margin-top:16px}
.mc .field label{display:block;margin-bottom:6px;font-size:var(--t-small);font-weight:var(--w-med);color:var(--teal)}
.mc .field .opt{font-weight:var(--w-body);color:var(--teal-600)}
.mc .field textarea{resize:vertical;min-height:84px}
.mc .field [aria-invalid="true"]{border-color:var(--alert)}
.mc .field .error{margin-top:6px}
.mc .field .error:empty{display:none}
.mc .fail{margin-top:16px;font-size:var(--t-small);line-height:var(--lh-body)}
.mc .fail a{color:inherit}
.mc .trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.mc .card .btn{width:100%;margin-top:22px;line-height:1.35;text-align:center}
.mc .card .btn[disabled]{filter:saturate(.6);cursor:progress;transform:none}
.mc .card .under{margin-top:14px;font-size:var(--t-fine);line-height:1.5;color:var(--teal-600)}
.mc .state--done .under{font-size:var(--t-small)}

/* -------------------------------------------------------- recognition */
.mc-recog{position:relative;z-index:1;padding-top:calc(var(--overlap) + var(--band))}
.mc-recog .grid{display:grid;gap:clamp(24px,4vw,64px)}
.mc-recog h2{max-width:12ch}
.mc-recog .body p{font-size:var(--t-lede);line-height:var(--lh-lede);color:var(--teal-600);max-width:32em}
.mc-recog .body p + p{margin-top:20px}
.mc-recog .body .turn{
  margin-top:clamp(28px,3vw,40px);max-width:22ch;
  font-size:clamp(24px,2.6vw,32px);font-weight:var(--w-btn);letter-spacing:var(--ls-snug);line-height:1.25;
  color:var(--teal);
}

/* -------------------------------------------------------------- route */
.mc-hour h2{max-width:16ch}
.mc-hour .intro{margin-top:18px;max-width:34em;font-size:var(--t-lede);line-height:var(--lh-lede);color:var(--teal-600)}
.mc-hour .route{position:relative;margin-top:clamp(44px,6vw,72px)}
.mc-hour .route ol{list-style:none;margin:0;padding:0;position:relative}
.mc-hour .route li{position:relative;padding:0 0 clamp(30px,4vw,40px) 48px}
.mc-hour .route h3{font-size:var(--t-h3);color:var(--teal)}
.mc-hour .route p{margin-top:8px;max-width:34em;color:var(--teal-600)}
/* The points are teal; the counter at the end is the lime one. On mist the
   lime needs its deeper edge to hold its shape. */
.mc-hour .pt{
  z-index:1;position:absolute;left:12px;top:.72em;width:12px;height:12px;border-radius:50%;
  background:var(--teal);transform:translate(-50%,-50%);
}
.mc-hour li:last-child .pt{width:30px;height:30px;background:var(--lime);box-shadow:inset 0 0 0 2px var(--lime-deep)}
/* phone and tablet: the route runs straight down, one stroke between points */
.mc-hour .route li:not(:last-child)::after{
  content:"";position:absolute;left:11px;top:.72em;bottom:-.72em;width:2px;background:var(--lime-deep);
}
.mc-hour .after{
  margin-top:clamp(16px,2vw,24px);max-width:22ch;
  font-size:var(--t-h2);font-weight:var(--w-head);letter-spacing:var(--ls-tight);line-height:var(--lh-head);
  color:var(--teal);text-wrap:balance;
}

@media (min-width:900px){
  /* desktop: the heading holds the left column while the route runs down
     the right one at a readable measure, ending in the counter */
  .mc-hour .grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(44px,6vw,96px);align-items:start}
  .mc-hour .route{margin-top:6px}
  .mc-hour .after{margin-top:clamp(40px,4vw,56px)}
}

/* ------------------------------------------------------------- Amanda */
.mc-amanda .grid{display:grid;gap:clamp(36px,6vw,96px)}
.mc-amanda h2{color:var(--white);max-width:12ch}
.mc-amanda .story p{margin-top:clamp(20px,2.4vw,28px);max-width:30em;color:var(--sage-lift)}
.mc-amanda .quote{margin:0}
.mc-amanda blockquote{margin:0}
.mc-amanda blockquote p{
  font-size:clamp(22px,2.5vw,31px);font-weight:var(--w-med);letter-spacing:-.01em;line-height:1.4;
  color:var(--mist);text-wrap:pretty;
}
.mc-amanda figcaption{margin-top:clamp(22px,2.4vw,30px);font-size:var(--t-small);color:var(--sage-lift)}
.mc-amanda figcaption span{display:block}
.mc-amanda figcaption span:first-child{font-weight:var(--w-med)}
@media (min-width:900px){
  .mc-amanda .grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start}
  .mc-amanda .quote{padding-top:6px}
}

/* -------------------------------------------------------------- Alex */
/* The portrait stands on the band's bottom edge. */
.mc-alex{padding-bottom:0}
.mc-alex .grid{display:grid;gap:clamp(36px,5vw,72px)}
.mc-alex .text{order:-1}
.mc-alex .portrait{margin:0;max-width:300px}
.mc-alex .portrait img{width:100%;height:auto;border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--mist)}
.mc-alex .text p{margin-top:20px;max-width:36em;color:var(--teal-600)}
.mc-alex .text h2 + p{margin-top:clamp(24px,3vw,32px)}
.mc-alex .facts{
  list-style:none;margin:clamp(32px,4vw,44px) 0 0;padding:0;
  display:grid;gap:0;border-top:1px solid var(--border);
}
.mc-alex .facts li{padding:16px 0;border-bottom:1px solid var(--border);display:flex;align-items:baseline;gap:16px}
.mc-alex .facts b{
  flex:none;min-width:3.4em;font-size:var(--t-h3);font-weight:var(--w-head);letter-spacing:var(--ls-tight);
  color:var(--teal);font-variant-numeric:tabular-nums;
}
.mc-alex .facts span{font-size:var(--t-small);font-weight:var(--w-med);color:var(--teal-600)}
@media (min-width:700px){
  .mc-alex .facts{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px;border-top:0}
  .mc-alex .facts li{flex-direction:column;gap:6px;border-bottom:0;border-top:2px solid var(--teal);padding-top:18px}
  .mc-alex .facts b{font-size:var(--t-h2)}
}
@media (min-width:900px){
  .mc-alex .grid{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);align-items:end}
  .mc-alex .text{order:0;padding-bottom:var(--band)}
  .mc-alex .portrait{max-width:360px}
}

/* ----------------------------------------------------------- details */
.mc-details .grid{display:grid;gap:clamp(44px,6vw,96px)}
.mc-details dl{margin:clamp(24px,3vw,36px) 0 0;border-top:1px solid var(--border)}
.mc-details dl div{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:16px;padding:16px 0;border-bottom:1px solid var(--border)}
.mc-details dt{font-weight:var(--w-med);color:var(--teal)}
.mc-details dd{margin:0;color:var(--teal)}
.mc-details .qa h3{font-size:var(--t-h4);color:var(--teal)}
.mc-details .qa h3 + p{margin-top:8px;color:var(--teal-600);max-width:34em}
.mc-details .qa p + h3{margin-top:clamp(28px,3vw,36px)}
@media (min-width:900px){
  .mc-details .grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  /* the questions start level with the first row of the list */
  .mc-details .qa{padding-top:calc(var(--t-h2) * var(--lh-head) + clamp(24px,3vw,36px) + 16px)}
}

/* -------------------------------------------------------------- close */
.mc-close .grid{display:grid;gap:clamp(28px,4vw,48px);align-items:end}
.mc-close h2{font-size:clamp(34px,4.4vw,56px);color:var(--white);max-width:20ch}
.mc-close .line{margin-top:18px;font-size:var(--t-lede);color:var(--sage-lift)}
.mc-close .btn{justify-self:start}
.mc-close .ask{
  margin-top:clamp(48px,6vw,80px);padding-top:clamp(22px,2.4vw,28px);border-top:1px solid var(--border-hair);
  font-size:var(--t-small);color:var(--sage-lift);
}
@media (max-width:699px){.mc-close .btn{width:100%}}
@media (min-width:900px){
  .mc-close .grid{grid-template-columns:minmax(0,1fr) auto}
  .mc-close .btn{justify-self:end}
}

/* ------------------------------------------------------- wide layout */
/* Desktop is mostly people arriving from a Facebook post on a laptop, with a
   window 650 to 800px tall. So the first screen has to hold the whole ask:
   the card sits beside the headline from the top of the hero, and the button
   lands inside 680px. The card no longer hangs into the next band here (it
   still does on phones), which also lets every band below start on its own
   heading instead of waiting under the card. Bands are a little tighter so a
   scroll always brings the next section's heading into view. */
@media (min-width:900px){
  .mc{--band:clamp(64px,6.4vw,92px)}
  .mc-hero{padding-block:clamp(36px,3.6vw,56px) clamp(48px,4.6vw,72px)}
  .mc-hero .grid{
    grid-template-columns:minmax(0,1.3fr) minmax(360px,.7fr);
    grid-template-areas:"head card" "copy card";grid-template-rows:auto 1fr;align-content:start;
  }
  .mc-hero .head{grid-area:head}
  .mc-hero .copy{grid-area:copy}
  /* sized so "Come back booked." holds one line beside the card */
  .mc-hero h1{font-size:clamp(40px,4.4vw,58px)}
  .mc-hero h1 span{white-space:nowrap}
  .mc-hero .copy{align-self:start}
  /* the four details hold one row beside the card */
  .mc-hero .details{font-size:14px}
  .mc-hero .details span + span::before{margin-inline:10px}
  .mc-hero .card{
    grid-area:card;align-self:start;margin:0;
    max-width:420px;justify-self:end;width:100%;
    padding:clamp(22px,2.2vw,30px);
  }
  .mc .card-h{font-size:clamp(24px,2.2vw,28px)}
  .mc .reg{margin-top:16px}
  .mc .field + .field{margin-top:12px}
  .mc .field input{padding-block:11px}
  .mc .field textarea{min-height:64px}
  .mc .card .btn{margin-top:18px;padding-block:14px 13px}

  .mc-recog{padding-top:var(--band)}
  .mc-recog .grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
}
.mc .join{margin-top:14px;font-weight:var(--w-med);color:var(--teal)}
.mc .join + .bring{margin-top:6px}
.mc .join span{display:block;font-size:var(--t-fine);font-weight:var(--w-med);color:var(--teal-600)}
.mc .join a{overflow-wrap:normal}
.mc .join a b{font-weight:inherit;white-space:nowrap}

/* ------------------------------------------------------- hero photo */
/* Alex in the van. Phones and tablets: the photo leads and the headline rises
   onto its faded bottom edge. From 1200px: the photo fills the hero, the copy
   sits over the dark seat on the left, the card keeps the right edge, and the
   photo is widened so she lands in the open space between them. */
.mc-hero{overflow:visible}
.mc-hero .photo{position:relative;display:block;margin-top:calc(-1 * clamp(48px,7vw,104px))}
.mc-hero .photo img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 30%}
.mc-hero .photo::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(33,57,57,0) 40%,rgba(33,57,57,.8) 70%,var(--teal-900) 94%)}
.mc-hero .wrap{position:relative;z-index:1;margin-top:-34vw}
.mc-hero.band--deep{background:var(--teal-900)}
@media (max-width:899px){
  .mc-hero h1{font-size:clamp(30px,8.6vw,52px)}
  .mc-hero h1 span{white-space:nowrap}
}
@media (min-width:768px) and (max-width:1199px){
  .mc-hero .photo{margin-top:calc(-1 * clamp(36px,3.6vw,56px))}
  .mc-hero .photo img{aspect-ratio:21/9;object-position:50% 30%}
  .mc-hero .wrap{margin-top:-9vw}
}
@media (min-width:1200px){
  .mc-hero{overflow:hidden}
  .mc-hero .photo{position:absolute;inset:0 auto 0 0;width:115%;margin:0}
  .mc-hero .photo img{width:100%;height:100%;aspect-ratio:auto;object-position:50% 40%}
  .mc-hero .photo::after{background:
    linear-gradient(90deg,rgba(33,57,57,.96) 0%,rgba(33,57,57,.9) 32%,rgba(33,57,57,.55) 44%,rgba(33,57,57,0) 56%),
    linear-gradient(0deg,rgba(33,57,57,.55) 0%,rgba(33,57,57,0) 30%)}
  .mc-hero .wrap{margin-top:0;max-width:1680px;padding-inline:clamp(40px,5.5vw,120px)}
  .mc-hero .grid{grid-template-columns:minmax(0,540px) 1fr minmax(320px,360px);grid-template-areas:"head . card" "copy . card"}
  .mc-hero .details span + span::before{margin-inline:8px}
  .mc-hero .card{max-width:360px;box-shadow:0 18px 40px rgba(0,0,0,.22)}
}
