/* Journey: a pen rail down the middle, school on its left, work on its right, years written on the rail.
   On a phone the rail moves to the left and every card follows it, the icon saying school or work. */

/* Centred and narrower than the sheet, clear of the glasses on the desk's left. */
.journey { max-width: 50rem; margin: 30px auto 0; }
.journey h1 { margin: 0; font-size: 2.3rem; }

/* Who Thomas is today, in three pen figures before the first year. */
.journey__figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 18px 28px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--paper-muted); font: .9rem/1.4 var(--f-ui); }
.journey__figures strong { display: block; width: max-content; margin-bottom: 2px; rotate: -2deg; color: var(--pen); font-size: 2rem; line-height: 1.1; }

.journey__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.journey__heads,
.journey__step { display: grid; grid-template-columns: 1fr 7rem 1fr; }
.journey__heads { margin-top: 40px; }
.journey__head { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--pen); font: 700 .78rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; }
.journey__head--school { grid-column: 1; justify-self: end; }
.journey__head--work { grid-column: 3; }

.journey__steps { position: relative; margin: 14px 0 0; padding: 0; list-style: none; }
.journey__steps::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 3px; translate: -50% 0; border-radius: 2px; background: var(--pen); }
.journey__step { position: relative; align-items: start; padding-bottom: 30px; }

.journey__when { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; padding: 0 6px; background: var(--paper); rotate: -2deg; color: var(--pen); font-size: 1.05rem; white-space: nowrap; }
.journey__marker { position: relative; display: grid; place-items: center; grid-column: 2; grid-row: 2; justify-self: center; width: 38px; height: 38px; margin-top: 4px; border: 2.5px solid var(--pen); border-radius: 50% 46% 54% 50%; background: var(--paper); color: var(--pen); }

.journey__card { grid-row: 1 / span 3; padding: 14px 18px 16px; background: var(--paper-2); }
.journey__step--school .journey__card { grid-column: 1; border-top: 3px dashed var(--paper-muted); }
.journey__step--work .journey__card { grid-column: 3; border-top: 3px solid var(--paper-ink); }

.journey__what { margin: 0; font-size: 1.3rem; }
.journey__role { margin: .2em 0 0; color: var(--paper-muted); font: .82rem/1.4 var(--f-ui); }
.journey__line,
.journey__extra { margin: .45em 0 0; font: 1.02rem/1.5 var(--f-body); }
.journey__extra { color: var(--paper-muted); font-size: .95rem; }

.journey__skills { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.journey__skills li { padding: 0 8px; border: 1px solid var(--paper-muted); border-radius: 10px; color: var(--paper-muted); font: .72rem/1.6 var(--f-ui); }

/* Several roles in one company: a thinner rail inside the card. */
.journey__stages { margin: 12px 0 0; padding: 0; list-style: none; }
.journey__stage { padding: 2px 0 10px 14px; border-left: 2px solid var(--paper-muted); }
.journey__stage .journey__role { color: var(--paper-ink); font-weight: 700; }
.journey__stage-when { margin-right: 6px; color: var(--pen); font-size: .95rem; font-weight: 500; }
.journey__stage .journey__line { margin-top: .2em; font-size: .98rem; }

/* The turn: a pen note right next to the Le Wagon marker, pointing at it. */
.journey__note { grid-column: 3; grid-row: 2; align-self: center; justify-self: start; margin: 4px 0 0 6px; rotate: -4deg; color: var(--pen); font-size: 1.15rem; white-space: nowrap; }
.journey__note::before { content: "← "; }

.journey__today { width: max-content; margin: 0 auto; padding: 0 6px; color: var(--pen); font-size: 1.15rem; }
.journey__today::before { content: "↓ "; }

.journey__evenings { max-width: 36rem; margin: 40px auto 0; padding: 16px 22px 18px; border: 2px dashed var(--paper-muted); rotate: .6deg; }
.journey__evenings h2 { margin: 0; font-size: 1.3rem; }
.journey__evenings p { margin: .4em 0 0; font: 1.02rem/1.55 var(--f-body); }

.journey__more { margin: 30px 0 0; text-align: center; font: .9rem var(--f-ui); }

@media (max-width: 640px) {
  .journey__heads { display: none; }
  .journey__steps { margin-top: 34px; }
  .journey__steps::before { left: 19px; }
  .journey__step { grid-template-columns: 40px 1fr; column-gap: 12px; }
  .journey__marker { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .journey__when { grid-column: 2; grid-row: 1; justify-self: start; padding: 0; rotate: none; }
  .journey__step--school .journey__card,
  .journey__step--work .journey__card { grid-column: 2; grid-row: 2; margin-top: 6px; }
  .journey__note { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  .journey__today { margin: 0; }
}
