/* Track your Légoe Heritage order: the tracking page's layout and cards, in Légoe Heritage's own palette and hand. */

@font-face {
  font-family: "Inter";
  src: url("assets/inter-var-latin.woff2?v=3100e775e8") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2?v=4aaed7c031") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* their palette, read off their theme stylesheet */
  --ink: #151615; /* brand-off-black, their text and every hairline */
  --mute: #666666; /* text-secondary */
  --page: #f9f8f3; /* brand-light-beige, their page */
  --sand: #eee8dd; /* brand-dark-beige-50 */
  --clay: #8f7b66; /* brand-light-brown */
  --grey: #b8b8b1; /* brand-grey */
  --bad: #960707; /* their field error */
  --good: #2c4525; /* the deep green of their focus ring */
  /* tints of those for the cards */
  --card: #fffefb;
  --line: #e2ded3;
  --line-strong: #cfc9ba;
  --good-fill: #e8ecdf;
  --good-line: #d3dac6;
  --good-track: #cdd5bf;
  --num: #666666;
  --dots: #b8b8b1;
  --underline: #b8b8b1;
  --hover: rgba(21, 22, 21, 0.04);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --gap: 24px;
  --maxw: 1240px;
  --header: 73px;

  /* motion: a critically damped spring, interruptible because every move is a CSS transition */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --move: 620ms;
  --move-layout: 300ms;
  --fade: 240ms;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.0329, 0.1097, 0.207, 0.3101, 0.4103, 0.5029, 0.5855, 0.6575, 0.7191, 0.771, 0.8144, 0.8503, 0.8797, 0.9037, 0.9232, 0.9389, 0.9515, 0.9616, 0.9697, 0.9761, 0.9812, 0.9852, 0.9884, 0.9909, 0.9929, 0.9945, 0.9957, 0.9966, 0.9974, 0.998, 0.9984, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --move: 0ms;
    --move-layout: 0ms;
    --fade: 160ms;
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

p,
h1,
h2,
h3,
ol,
ul,
blockquote {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* the address #example works with no script: an empty mark at the top of the page that the view rules below follow */
.anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.is-booting *,
.is-booting *::before,
.is-booting *::after {
  transition: none !important;
}

/* the display hand: their italic headline, in the open face nearest it. Drawn without hinting, as hinted (Chrome on
   Windows, Android and Linux) a display serif snaps wide and opens gaps inside words */
.find-h,
.eta,
.band-quote,
.footer-h {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-rendering: geometricPrecision;
}

/* the small capitals line above a headline, as on their site */
.kicker {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- the two views: the search screen, and the example shipment ---------- */

.track {
  display: none;
}

.is-track .landing {
  display: none;
}

.is-track .track {
  display: block;
}

html:not(.js) #example:target ~ main .landing {
  display: none;
}

html:not(.js) #example:target ~ main .track {
  display: block;
}

/* the header names the page on the journey; the search screen says it in its own heading */
html:not(.is-track) .header-sub {
  visibility: hidden;
}

html:not(.js) #example:target ~ .site-header .header-sub {
  visibility: visible;
}

/* with no script the box cannot answer, so the search screen offers the example alone */
html:not(.js) .find-box,
html:not(.js) .find-help,
html:not(.js) .stage-toggle,
html:not(.js) .order-another {
  display: none;
}

/* and with no press to open them, every card shows its checkpoints */
html:not(.js) .stage-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

html:not(.js) .stage-panel-in {
  opacity: 1;
}

html:not(.js) .stage-prog {
  padding-bottom: 14px;
}

/* the times are written in the shopper's own zone as the page opens; they never show in another one first */
.js:not(.is-zoned) [data-t],
.js:not(.is-zoned) .journey-note {
  visibility: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  background: var(--page);
  border-bottom: 1px solid var(--ink);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  width: 98px;
  height: 40px;
}

.header-sub {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: -6px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .header-sub:hover {
    text-decoration: underline;
    text-decoration-color: var(--ink);
    text-underline-offset: 4px;
  }
}

/* ---------- the search screen: their picture, the whole width, and the box beside her ---------- */

.landing-hero {
  position: relative;
  height: max(560px, min(calc(100vh - var(--header)), 62.5vw));
  height: max(560px, min(calc(100svh - var(--header)), 62.5vw));
  background: linear-gradient(#d9e6ec 0%, #cfe0e7 38%, #a9c3d0 46%, #dfe0e3 62%, #e8e4dd 100%);
}

.landing-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.landing-in {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 48px;
}

.find-panel {
  width: 100%;
  max-width: 400px;
  padding: 30px 32px 28px;
  border: 1px solid var(--ink);
  background: var(--page);
  text-align: center;
}

.find-h {
  margin-top: 8px;
  font-size: 48px;
  line-height: 54px;
  color: var(--ink);
}

.find-h:focus,
.eta:focus {
  outline: none;
}

.find {
  margin-top: 22px;
}

.find-box {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--card);
}

.find-box:focus-within {
  box-shadow: 0 0 0 1px var(--ink);
}

.find.is-invalid .find-box {
  border-color: var(--bad);
  box-shadow: 0 0 0 1px var(--bad);
}

.find-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  -webkit-appearance: none;
  appearance: none;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  outline: none;
}

.find-input::placeholder {
  color: var(--mute);
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 1;
}

.find-go {
  flex: none;
  min-width: 88px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--page);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .find-go:hover {
    background: var(--ink);
    opacity: 0.86;
  }
}

/* a message opens under the box and the lines below glide down with it. Both messages are in the page from the
   start; a link carrying another number shows its note from the first frame, so nothing moves on load */
.find-msg {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear var(--move-layout);
}

.find.is-invalid .find-msg,
.find.is-note .find-msg {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear 0s;
}

.is-noting .find-msg {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: none;
}

.find-msg-in {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--fade) ease;
}

.find.is-invalid .find-msg-in,
.find.is-note .find-msg-in,
.is-noting .find-msg-in {
  opacity: 1;
}

.find-error--blank,
.find-error--note {
  display: none;
}

.find.is-invalid .find-error--blank,
.find.is-note .find-error--note,
.is-noting .find-error--note {
  display: block;
}

.find-error {
  padding-top: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--bad);
  text-wrap: balance;
}

/* a number that is not the example: not a mistake, so a calm note rather than an error */
.find-error--note {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--sand);
  color: var(--ink);
}

/* each sentence holds together: a message too long for one line breaks between its sentences */
.find-error-part {
  display: inline-block;
}

.find-help {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--mute);
  text-wrap: balance;
}

.find-alt {
  margin-top: 18px;
}

.find-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.find-example-ic {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--clay);
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .find-example:hover {
    background: var(--ink);
    color: var(--page);
  }

  .find-example:hover .find-example-ic {
    color: var(--page);
  }
}

/* ---------- the example: headline and status ---------- */

.hero {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 28px;
}

.eta {
  margin-top: 4px;
  font-size: 44px;
  line-height: 50px;
  color: var(--ink);
}

.pill {
  margin-bottom: 8px;
  margin-left: auto;
  padding: 6px 14px;
  border: 1px solid var(--good-line);
  background: var(--good-fill);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

/* ---------- the order: the product, its number, the route, and the way to another order ---------- */

.order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "photo text route another";
  align-items: center;
  column-gap: 16px;
  margin-top: 16px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  background: var(--card);
}

.order-img {
  grid-area: photo;
  width: 72px;
  height: 108px;
  background: var(--sand);
}

.order-text {
  grid-area: text;
  min-width: 0;
}

.order-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}

.order-items {
  margin-top: 1px;
  font-size: 13px;
  line-height: 19px;
}

.order-no {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 17px;
  color: var(--mute);
}

/* the number holds together; the small tag after it takes the next line if it must */
.order-number {
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-tag {
  padding: 0 6px;
  background: var(--sand);
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
}

.order-route {
  grid-area: route;
  margin-right: 8px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--mute);
  white-space: nowrap;
}

.order-leg {
  white-space: nowrap;
}

.order-another {
  grid-area: another;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .order-another:hover {
    background: var(--ink);
    color: var(--page);
  }
}

/* ---------- the journey: six cards ---------- */

.journey-wrap {
  margin-top: 16px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px var(--gap);
  /* the step rows: one column for the mark, then the label over a quieter line with the place and time */
  --mark: 14px;
  --mark-gap: 7px;
  --tick: 9px;
  --row-pad: 9px;
  --lab-size: 12px;
  --lab-lh: 16px;
  --meta-size: 11.5px;
  --meta-lh: 15px;
  --drop-pad: 10px;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* the dotted connector between cards, on the icon line */
.stage::before {
  content: "";
  position: absolute;
  top: 52px;
  left: calc(var(--gap) / -2 - 7px);
  width: 14px;
  height: 3px;
  background: radial-gradient(circle, var(--dots) 1.1px, transparent 1.4px) 0 0 / 5px 3px repeat-x;
}

.stage:first-child::before {
  display: none;
}

/* the card: its summary, then its details inside the same border, growing downward */
.stage-card {
  --sep: var(--line);
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.25s ease;
}

.stage-sum {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 14px 0;
  text-align: center;
}

.stage-no {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--num);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--good-fill);
}

.badge-tick {
  width: 17px;
  height: 17px;
  color: var(--good);
}

.stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: var(--ink);
}

.stage-icon .ic {
  width: 28px;
  height: 28px;
}

.stage-mark {
  width: 56px;
  height: 17px;
}

/* the title block is as tall as the longest title at the card's width: an invisible copy of that title shares its
   cell. So every card's bar, status line and Details press sit on the same line, in one row and across the grid. */
.stage-head {
  display: grid;
  margin-top: 14px;
}

.stage-head > * {
  grid-area: 1 / 1;
  align-self: start;
}

.stage-fit {
  visibility: hidden;
}

.stage-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--ink);
  text-wrap: balance;
}

.flag {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 6px;
  box-shadow: 0 0 0 1px rgba(21, 22, 21, 0.14);
}

.flag-au {
  width: 19px;
  height: 9.5px;
}

.flag-us {
  width: 18px;
  height: 9.5px;
}

.stage-prog {
  padding-top: 14px;
}

.segs {
  display: flex;
  gap: 4px;
  max-width: 132px;
  margin-inline: auto;
}

.seg {
  flex: 1;
  height: 3px;
  background: var(--good);
}

.stage-status {
  min-height: 16px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
  text-wrap: balance;
}

.stage-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% + 28px);
  min-height: 44px;
  margin: 12px -14px 0;
  padding: 11px 14px 12px;
  border: 0;
  border-top: 1px solid var(--sep);
  background: transparent;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* the whole summary is the press; its name stays "Details for <stage>" */
.stage-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
}

.stage.is-open .stage-toggle {
  color: var(--ink);
}

@media (hover: hover) {
  .stage-toggle:hover {
    background: var(--hover);
    color: var(--ink);
  }

  .stage-card:hover {
    border-color: var(--line-strong);
  }
}

.stage-toggle:focus-visible {
  outline-offset: -3px;
}

.chev {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform var(--move) var(--spring);
}

.stage.is-open .chev {
  transform: rotate(180deg);
}

/* the last card, delivered: their green's tint, its tick a solid circle */
.stage--final .stage-card {
  --sep: var(--good-line);
  border-color: var(--good-line);
  background: var(--good-fill);
}

.stage--final .badge {
  background: var(--good);
}

.stage--final .badge-tick {
  color: var(--page);
}

@media (hover: hover) {
  .stage--final .stage-card:hover {
    border-color: var(--good-track);
  }
}

/* ---------- the details, inside the card ---------- */

.stage-panel {
  display: grid;
  grid-template-rows: 0fr;
  min-width: 0;
  visibility: hidden;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear var(--move-layout);
}

.stage.is-open .stage-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear 0s;
}

.stage-panel-in {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--fade) ease;
}

.stage.is-open .stage-panel-in {
  opacity: 1;
}

.steps {
  margin: 0;
  padding: 0 var(--drop-pad);
  border-top: 1px solid var(--sep);
  text-align: left;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--mark) minmax(0, 1fr);
  column-gap: var(--mark-gap);
  align-items: start;
  padding: var(--row-pad) 0;
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--sep);
}

.step-mark {
  display: grid;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  margin-top: calc((var(--lab-lh) - var(--mark)) / 2);
  border-radius: 50%;
  background: var(--good-fill);
}

.stage--final .step-mark {
  background: var(--card);
}

.step-tick {
  width: var(--tick);
  height: var(--tick);
  color: var(--good);
}

/* the row's text block decides, by its own width, whether the place and time share one line */
.step-body {
  min-width: 0;
  container: step / inline-size;
  font-size: var(--meta-size);
}

.step-title {
  font-size: var(--lab-size);
  font-weight: 500;
  line-height: var(--lab-lh);
  color: var(--ink);
  text-wrap: balance;
}

.step-meta {
  margin-top: 2px;
  font-size: var(--meta-size);
  line-height: var(--meta-lh);
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.step-place,
.step-when {
  display: block;
  white-space: nowrap;
}

.step-sep {
  display: none;
}

.no-place .step-sep {
  display: none !important;
}

/* a row wide enough keeps its place and time on one line */
@container step (min-width: 19em) {
  .step-place,
  .step-when {
    display: inline;
  }

  .step-sep {
    display: inline;
    margin: 0 0.42em;
  }
}

.journey-foot {
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--mute);
}

/* ---------- the note: their picture, and their founder's words ---------- */

.band {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  border-top: 1px solid var(--ink);
}

.track .band {
  margin-top: 48px;
}

.band-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 760px;
  overflow: hidden;
  background: linear-gradient(#d9e6ec 0%, #cfe0e7 38%, #a9c3d0 46%, #dfe0e3 62%, #e8e4dd 100%);
}

.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.band-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px clamp(32px, 6vw, 96px);
  border-left: 1px solid var(--ink);
}

.band-quote {
  margin-top: 16px;
  font-size: clamp(30px, 1.4vw + 18px, 42px);
  line-height: 1.16;
  color: var(--ink);
  text-wrap: pretty;
}

.band-by {
  margin-top: 18px;
  font-size: 13px;
  line-height: 18px;
}

.band-link {
  margin-top: 10px;
}

.band-link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 5px;
}

.band-link .arrow {
  width: 13px;
  height: 13px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--page);
}

.footer-in {
  padding-top: 32px;
}

.footer-logo {
  width: 78px;
  height: 32px;
}

.footer-h {
  margin-top: 20px;
  font-size: 28px;
  line-height: 34px;
}

.footer-p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.32em;
  margin-top: 2px;
  font-size: 14px;
  line-height: 20px;
  color: var(--mute);
}

.footer-p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 4px;
}

.footer-base {
  margin-top: 14px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
}

.footer-base p {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- widths ---------- */

/* a very wide window: the panel keeps its place in the picture, on the wall to the right of the lamp, whatever the page's
   column does: its left edge stays at 73.5% of the width */
@media (min-width: 1700px) {
  .landing-in {
    max-width: none;
    padding-right: calc(26.5vw - 400px);
    padding-bottom: 64px;
  }
}

/* the narrowest window that still has the box beside her: a slimmer panel, clear of the hem */
@media (max-width: 1099.98px) {
  .find-panel {
    max-width: 372px;
    padding-inline: 26px;
  }
}

/* six across below the full page width: a little less gap, so the step rows keep their room */
@media (max-width: 1239.98px) {
  :root {
    --gap: 20px;
  }
}

/* three across, two rows */
@media (max-width: 1159.98px) {
  .journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --mark: 16px;
    --mark-gap: 8px;
    --tick: 10px;
    --row-pad: 10px;
    --lab-size: 12.5px;
    --meta-size: 12px;
    --drop-pad: 12px;
  }

  .stage:nth-child(3n + 1)::before {
    display: none;
  }
}

/* under 1000 px the picture has the width to itself and the box sits under it */
@media (max-width: 999.98px) {
  .landing-hero {
    height: auto;
    background: none;
  }

  /* the picture gives way on a short screen (a phone with its browser bars showing), so the box and the example's press
     stay on the first screen; 292 px is what stands under it */
  .landing-pic {
    position: relative;
    display: block;
    height: min(66.667vw, max(240px, calc(100vh - var(--header) - 292px)));
    height: min(66.667vw, max(240px, calc(100svh - var(--header) - 292px)));
    background: linear-gradient(#d9e6ec 0%, #cfe0e7 38%, #a9c3d0 46%, #dfe0e3 62%, #e8e4dd 100%);
  }

  .landing-in {
    display: block;
    height: auto;
    padding-bottom: 0;
  }

  .find-panel {
    max-width: 560px;
    margin-inline: auto;
    padding: 36px 0 44px;
    border: 0;
    background: transparent;
  }
}

/* the note stacks: the picture over the words, the whole width */
@media (max-width: 899.98px) {
  .band {
    grid-template-columns: minmax(0, 1fr);
  }

  .band-text {
    padding: 36px max(clamp(16px, 4vw, 40px), env(safe-area-inset-right)) 40px max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}

@media (max-width: 767.98px) {
  :root {
    --gap: 16px;
  }
}

/* phones: their square frame of the picture, and the six stages as a vertical journey where each card opens on its own */
@media (max-width: 699.98px) {
  :root {
    --header: 61px;
  }

  .header-in {
    min-height: 60px;
    padding-block: 8px;
  }

  .brand-logo {
    width: 78px;
    height: 32px;
  }

  .landing-pic {
    height: min(100vw, max(240px, calc(100vh - var(--header) - 292px)));
    height: min(100vw, max(240px, calc(100svh - var(--header) - 292px)));
  }

  .band-media {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .find-panel {
    padding: 28px 0 40px;
  }

  .find-h {
    font-size: 44px;
    line-height: 48px;
  }

  .find {
    margin-top: 18px;
  }

  .find-go {
    padding: 0 18px;
  }

  .hero {
    gap: 8px 10px;
    padding-top: 22px;
  }

  .eta {
    flex-basis: 100%;
    font-size: 40px;
    line-height: 46px;
  }

  .eta-words {
    flex-basis: 100%;
  }

  .pill {
    margin-bottom: 0;
    margin-left: 0;
  }

  /* the order card on a phone: the way to another order sits under the words, as a quiet link */
  .order {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "photo text" "photo another";
    column-gap: 14px;
    padding: 8px 14px 4px 8px;
  }

  .order-img {
    align-self: start;
    width: 80px;
    height: 120px;
  }

  .order-text {
    align-self: end;
  }

  .order-route {
    display: none;
  }

  .order-another {
    align-self: start;
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: var(--ink);
    text-underline-offset: 4px;
  }

  .journey {
    display: flex;
    flex-direction: column;
    gap: 14px;
    --mark: 16px;
    --mark-gap: 12px;
    --tick: 10px;
    --row-pad: 11px;
    --lab-size: 14px;
    --lab-lh: 19px;
    --meta-size: 12.5px;
    --meta-lh: 17px;
    --drop-pad: 16px;
  }

  .stage {
    display: block;
  }

  .stage-sum {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 14px 16px 0;
    text-align: left;
  }

  /* the connector turns and runs down the icon line */
  .stage::before,
  .stage:nth-child(3n + 1)::before {
    display: block;
    top: -14px;
    left: 43.5px;
    width: 3px;
    height: 14px;
    background: radial-gradient(circle, var(--dots) 1.1px, transparent 1.4px) 0 0 / 3px 5px repeat-y;
  }

  .stage:first-child::before {
    display: none;
  }

  .stage-no {
    position: static;
    grid-column: 2;
    grid-row: 1;
  }

  .badge {
    top: 12px;
    right: 12px;
  }

  .stage-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 56px;
    height: 40px;
    margin-top: 2px;
  }

  .stage-icon .ic {
    width: 26px;
    height: 26px;
  }

  .stage-head {
    grid-column: 2;
    margin-top: 1px;
    padding-right: 36px;
  }

  .stage-fit {
    display: none;
  }

  .stage-title {
    font-size: 15px;
    line-height: 20px;
    text-wrap: pretty;
  }

  .stage-prog {
    grid-column: 2;
    padding-top: 10px;
  }

  .segs {
    max-width: 176px;
    margin-inline: 0;
  }

  .stage-status {
    min-height: 17px;
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 17px;
  }

  .stage-toggle {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: calc(100% + 32px);
    margin: 12px -16px 0;
    padding: 13px 16px 13px 84px;
  }

  /* the steps line up under the card: marks on the icon line, words on the title's edge */
  .step {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .step-mark {
    justify-self: center;
  }

  .band-quote {
    font-size: 32px;
    line-height: 37px;
  }
}

/* the narrowest phones: Track goes under the box's input */
@media (max-width: 359.98px) {
  .find-h {
    font-size: 40px;
    line-height: 44px;
  }

  .find-box {
    flex-wrap: wrap;
  }

  .find-input {
    flex-basis: 100%;
  }

  .find-go {
    flex: 1 1 100%;
  }
}

/* no motion asked for: nothing slides or springs, the details only fade */
@media (prefers-reduced-motion: reduce) {
  .stage-panel,
  .find-msg {
    transition: grid-template-rows 0s linear var(--fade), visibility 0s linear var(--fade);
  }

  .stage.is-open .stage-panel,
  .find.is-invalid .find-msg,
  .find.is-note .find-msg {
    transition: none;
  }
}

@media (forced-colors: active) {
  .badge,
  .step-mark {
    border: 1px solid CanvasText;
  }

  .seg {
    background: Highlight;
  }

  .find.is-invalid .find-box {
    outline: 2px solid Highlight;
  }

  .step + .step::before {
    background: GrayText;
  }
}
