@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #272343;
  --teal: #00AAB6;
  --teal-deep: #00808A;
  --plum: #673962;
  --lav: #D3B3D6;
  --mint: #A2D7B9;
  --white: #FFFFFF;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
  scrollbar-color: var(--lav) var(--ink);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font: 400 16px/1.45 "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; border-radius: 10px; }

.topbar { height: 10px; background: var(--teal); }
.page { max-width: 460px; margin: 0 auto; padding: 16px 22px 56px; }

/* ---------- top: logo and photo ---------- */
.logo { display: block; width: 144px; margin: 0 auto 12px; }

.photo { position: relative; margin: 0; text-align: center; }
/* a square photo, centered, with a lavender block peeking out behind it */
.pic { position: relative; width: min(58vw, 228px); margin: 0 auto; }
.shot {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--lav);
}
.plane {
  position: absolute; right: -32px; top: -24px;
  width: 54px; height: auto;
  transform: rotate(10deg);
  pointer-events: none;
}
.photo figcaption {
  margin-top: 26px;
  font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- the trail ---------- */
.trail { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 30px; }

.stop { position: relative; }

.card {
  --tab: var(--teal);
  --tab-ink: var(--ink);
  --act: var(--teal-deep);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(10, 8, 28, .38);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.s2 .card { --tab: var(--lav); --act: var(--plum); }
.s3 .card { --tab: var(--plum); --tab-ink: var(--white); --act: var(--plum); }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(10, 8, 28, .45); }
.card:active { transform: translateY(1px); }

.num {
  position: absolute; top: -13px; left: -9px; z-index: 1;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lav); color: var(--ink);
  font-weight: 700; font-size: 15px; line-height: 1;
  box-shadow: 0 0 0 3px var(--ink);
}

.text { display: grid; align-content: center; gap: 10px; padding: 20px 14px 18px 22px; }
.title { margin: 0; font-size: 16px; line-height: 1.26; font-weight: 700; text-wrap: balance; }
.desc { font-size: 13.5px; line-height: 1.45; }
.act {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 14px; color: var(--act);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}

.tab {
  display: grid; align-content: center; justify-items: center; gap: 8px;
  padding: 14px 8px;
  background: var(--tab); color: var(--tab-ink);
  border-radius: 0 18px 18px 0;
}
.tab img { width: 54px; height: auto; max-height: 66px; object-fit: contain; }

/* the Inner Circle is the biggest stop */
.s3 .text { gap: 10px; padding-block: 22px 20px; }
.s3 .title { font-size: 18px; }
.act.pill {
  justify-self: start;
  min-height: 44px; padding: 0 18px; margin-top: 4px;
  border-radius: 12px;
  background: var(--plum); color: var(--white);
  text-decoration: none;
}
.s3 .tab img { width: 44px; max-height: 74px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 2px -4px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .logo { animation: rise .6s var(--ease) both; }
  .js .photo { animation: rise .65s var(--ease) .08s both; }
  .js .stop { animation: rise .65s var(--ease) both; animation-delay: calc(.22s + var(--i) * .13s); }
  .float { animation: hover 3.4s ease-in-out infinite; }
  .paused .float, .float.off { animation-play-state: paused; }
}

/* ---------- laptop ---------- */
@media (min-width: 900px) {
  .page { max-width: 580px; padding-top: 56px; }
  .logo { width: 210px; margin-bottom: 20px; }
  .pic { width: 300px; }
  .shot { border-radius: 24px; box-shadow: 12px 12px 0 var(--lav); }
  .plane { width: 72px; top: -34px; right: -42px; }
  .photo figcaption { font-size: 15px; margin-top: 32px; }
  .trail { margin-top: 44px; gap: 36px; }
  .card { grid-template-columns: 1fr 108px; border-radius: 20px; }
  .tab { border-radius: 0 20px 20px 0; }
  .tab img { width: 64px; max-height: 76px; }
  .s3 .tab img { width: 52px; max-height: 88px; }
  .text { padding: 24px 18px 22px 26px; }
  .title { font-size: 19px; }
  .s3 .title { font-size: 21px; }
  .desc { font-size: 15px; }
  .act { font-size: 15px; }
  .num { width: 36px; height: 36px; top: -15px; left: -11px; font-size: 16px; }
}
