/* D-036 (board 26 Luggage tag, refining D-032) for the D-033 public page: board K10 Traveler (warm paper, ink, Archivo condensed, Plex Mono labels,
   the koala, the boarding pass, the itinerary) with E20 wayfinding pictograms (bold single-colour icons in rounded
   squares, "gates" for steps, a departures-board row for servers). Every colour is a token below. Phone width first. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/archivo-latin-wdth-normal.e3a28eade2.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/ibm-plex-mono-latin-500-normal.01d2854474.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/ibm-plex-mono-latin-600-normal.0d1f0b8d07.woff2') format('woff2');
}

:root {
  --paper: #f2eadb;
  --sheet: #fbf6ec;
  --ink: #1b1916;
  --on-ink: #f2eadb;
  --muted: #5e574c;
  --line: #d9cdb6;
  --perf: #c4b497;
  --ok: #2f6b4f;
  --on-ok: #fbf6ec;
  --tan: #c9a77c;
  --code: #e2c79f;
  --board-row: #2b2824;
  --shadow: rgba(27, 25, 22, 0.16);
  --shadow-edge: rgba(27, 25, 22, 0.45);
  --k-line: #1b1916;
  --tag: #ffc72c;
  --tag-ink: #1b1916;
  --tag-hole: #fbf6ec;
  --kraft: #c9a77c;
  --dash: #a39d94;

  --sans: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: 16px;
  --r-card: 20px;
  --r-tile: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1b17;
    --sheet: #2a2621;
    --ink: #f2eadb;
    --on-ink: #1b1916;
    --muted: #bdb3a2;
    --line: #3e3830;
    --perf: #6b604f;
    --ok: #7cc39f;
    --on-ok: #13201a;
    --code: #6e5531;
    --board-row: #e3d8c4;
    --shadow: rgba(0, 0, 0, 0.45);
    --shadow-edge: rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

.label,
.eyebrow,
.tag {
  font-family: var(--mono);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Header: the wordmark (no logo yet, D-025) and the testing tag. No links into the app (D-033). */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-block: 20px 56px;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: end;
    gap: 56px;
    padding-block: 32px 72px;
  }
}

.hero-copy {
  display: grid;
  gap: 22px;
  align-content: end;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

h1 {
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(2.75rem, 6.6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  max-width: 31rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

.invite {
  max-width: 31rem;
  padding: 14px 18px;
  border-left: 4px solid var(--ok);
  border-radius: 0 var(--r-tile) var(--r-tile) 0;
  background: var(--sheet);
  font-size: 1rem;
}

.invite b {
  display: block;
  font-weight: 800;
}

/* D-036 hero: the koala beside a kraft suitcase; the yellow luggage tag on the handle holds the switch. The page has
   no script, so the tag is an illustration that plays once (switch to ON, tag swings, the koala's eyes close
   happily). The resting state is ON, so reduced motion and print show the end state. Sizes follow the scene's
   width (container units), so the tag fits from 280 px phones to desktop. */
.hero-art {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.scene-wrap {
  --tw: clamp(min(176px, 66cqi), 44.6cqi, 232px);
  display: grid;
  container-type: inline-size;
}

/* The scene and the tag share one grid cell, so the figure grows to whichever is taller (the tag on phones). */
.scene,
.bagtag-anchor {
  grid-area: 1 / 1;
}

.scene {
  display: block;
  width: 100%;
  height: auto;
}

.s-floor {
  stroke: var(--line);
}

.s-line {
  stroke: var(--k-line);
}

.s-kraft {
  fill: var(--kraft);
}

.s-wheel {
  fill: #5e574c;
}

.k-fur,
.k-arm {
  fill: #a39d94;
  stroke: #a39d94;
}

.k-fur {
  stroke: var(--k-line);
}

.k-arm {
  fill: none;
}

.k-belly {
  fill: #e3dcce;
}

.k-head {
  fill: #b1aba2;
}

.k-ear {
  fill: #ede6d8;
}

.k-ink {
  fill: #1b1916;
}

.k-lid,
.k-smile {
  stroke: #1b1916;
}

.eyes-open {
  opacity: 0;
}

/* The handle's top centre in the 520 x 470 scene: x 340 (65.38 %), y 158 (30.38 % of the width). */
.bagtag-anchor {
  align-self: start;
  justify-self: start;
  width: var(--tw);
  margin-top: 30.38cqi;
  margin-left: calc(65.38cqi - var(--tw) / 2);
}

.bagtag {
  position: relative;
  width: 100%;
  transform-origin: 50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--tag-ink);
}

.strap {
  position: relative;
  z-index: 2;
  width: 3px;
  height: clamp(40px, 10cqi, 52px);
  border-radius: 2px;
  background: var(--tag-ink);
}

.tagbody-shadow {
  width: 100%;
  margin-top: clamp(-24px, -4.6cqi, -18px);
  filter: drop-shadow(0 0 0.5px rgba(27, 25, 22, 0.6)) drop-shadow(0 18px 22px rgba(27, 25, 22, 0.18));
}

.tagbody {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.3cqi, 12px);
  padding: clamp(36px, 8.8cqi, 46px) clamp(14px, 3.8cqi, 20px) clamp(14px, 3.8cqi, 20px);
  border-radius: 0 0 16px 16px;
  background: var(--tag);
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
}

.hole {
  position: absolute;
  left: 50%;
  top: clamp(9px, 2.3cqi, 12px);
  width: clamp(18px, 4.6cqi, 24px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 3px solid var(--tag-ink);
  border-radius: 50%;
  background: var(--tag-hole);
}

.tag-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  font-family: var(--mono);
  font-size: clamp(9px, 2.1cqi, 11px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tag-dest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-bottom: clamp(6px, 1.9cqi, 10px);
  border-bottom: 2px solid var(--tag-ink);
}

.tag-code {
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(34px, 10cqi, 52px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.tag-city {
  min-width: 0;
  font-size: clamp(11px, 2.7cqi, 14px);
  font-weight: 600;
  line-height: 1.3;
}

.tag-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 1.9cqi, 10px);
}

.sw {
  position: relative;
  display: block;
  width: clamp(100px, 29.2cqi, 152px);
  aspect-ratio: 152 / 78;
  border-radius: 999px;
  background: var(--tag-ink);
  box-shadow: inset 0 0 0 2.5px var(--tag-ink);
}

.sw-on,
.sw-off {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: clamp(11px, 3.1cqi, 16px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.sw-on {
  left: 14.5%;
  color: var(--tag);
}

.sw-off {
  right: 12%;
  color: var(--tag-ink);
  opacity: 0;
}

.sw-knob {
  position: absolute;
  top: 11.5%;
  left: 5.9%;
  height: 77%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tag);
  transform: translateX(123.3%);
}

.tag-status {
  display: grid;
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(13px, 3.3cqi, 17px);
  line-height: 1.2;
}

.st-off,
.st-on {
  grid-area: 1 / 1;
}

.st-off {
  opacity: 0;
}

@keyframes tag-swing {
  0% { transform: rotate(0deg); }
  16% { transform: rotate(14deg); }
  36% { transform: rotate(-9deg); }
  56% { transform: rotate(5deg); }
  76% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}
@keyframes sw-track { from { background: var(--tag-hole); } }
@keyframes sw-knob { from { transform: translateX(0); background: var(--tag-ink); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { from { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .bagtag { animation: tag-swing 1150ms cubic-bezier(0.36, 0.07, 0.19, 0.97) 700ms both; }
  .sw { animation: sw-track 380ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms backwards; }
  .sw-knob { animation: sw-knob 420ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms backwards; }
  .sw-on { animation: fade-in 260ms ease 760ms backwards; }
  .sw-off { animation: fade-out 260ms ease 700ms backwards; }
  .eyes-open { animation: fade-out 160ms ease 950ms backwards; }
  .eyes-happy { animation: fade-in 160ms ease 950ms backwards; }
  .st-off { animation: fade-out 200ms ease 950ms backwards; }
  .st-on { animation: fade-in 200ms ease 950ms backwards; }
}

/* The route (D-036): four wayfinding squares joined by a dashed line, ending on "Connected". At rest everything is
   filled in; where the browser has scroll-driven animations (and motion is welcome) each leg fills as it scrolls in. */
.route {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 28px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.leg {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.leg-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2.5px solid currentColor;
  border-radius: 14px;
  background: var(--tag);
  color: var(--tag-ink);
}

.sq svg {
  width: 38px;
  height: 38px;
}

.leg-last .sq svg {
  width: 40px;
  height: 40px;
}

.dash {
  position: relative;
  flex: 1 1 auto;
  min-width: 24px;
  height: 3px;
  border-top: 3px dashed var(--dash);
}

.dash-fill {
  position: absolute;
  left: 0;
  top: -4px;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--ink);
}

.arr {
  display: inline-flex;
  flex: none;
  color: var(--ink);
}

.arr svg {
  width: 24px;
  height: 24px;
}

.chip-c {
  display: inline-grid;
}

.cc-off,
.cc-on {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cc-off {
  box-shadow: inset 0 0 0 2px var(--dash);
  color: var(--muted);
  opacity: 0;
}

.cc-on {
  background: var(--tag);
  color: var(--tag-ink);
}

.leg h3 {
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.4375rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.leg p {
  color: var(--muted);
}

@keyframes sq-on { from { background: var(--sheet); color: var(--ink); } to { background: var(--tag); color: var(--tag-ink); } }
@keyframes fill-on { from { width: 0%; } to { width: 100%; } }
@keyframes arr-on { from { color: var(--dash); } to { color: var(--ink); } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes hide { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .leg .sq,
    .leg .dash-fill,
    .leg .arr,
    .cc-on,
    .cc-off {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
    }
    .leg .sq { animation-name: sq-on; }
    .leg .dash-fill { animation-name: fill-on; }
    .leg .arr { animation-name: arr-on; }
    .cc-on { animation-name: show; }
    .cc-off { animation-name: hide; }
    .leg:nth-child(1) .sq { animation-range: cover 10% cover 16%; }
    .leg:nth-child(1) .dash-fill { animation-range: cover 14% cover 20%; }
    .leg:nth-child(1) .arr { animation-range: cover 19% cover 21%; }
    .leg:nth-child(2) .sq { animation-range: cover 18% cover 24%; }
    .leg:nth-child(2) .dash-fill { animation-range: cover 22% cover 28%; }
    .leg:nth-child(2) .arr { animation-range: cover 27% cover 29%; }
    .leg:nth-child(3) .sq { animation-range: cover 26% cover 32%; }
    .leg:nth-child(3) .dash-fill { animation-range: cover 30% cover 36%; }
    .leg:nth-child(3) .arr { animation-range: cover 35% cover 37%; }
    .leg:nth-child(4) .sq { animation-range: cover 34% cover 40%; }
    .leg:nth-child(4) .cc-on,
    .leg:nth-child(4) .cc-off { animation-range: cover 38% cover 42%; }
  }
}

/* Sections */
section + section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

h2 {
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.what,
.steps {
  padding-block: 32px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0 32px;
}

.facts div {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.facts dd {
  margin-top: 4px;
  color: var(--muted);
}

/* Departures board (E20): servers as board rows. */
.board {
  display: grid;
  gap: 3px;
  max-width: 34rem;
  margin-top: 28px;
  padding: 3px;
  border-radius: var(--r-tile);
  background: var(--ink);
}

.board-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 16px 10px;
  border-radius: 7px;
  background: var(--board-row);
  color: var(--on-ink);
}

.code {
  flex: none;
  width: 3.25rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--code);
}

.board-name {
  flex: 1 1 9rem;
  min-width: 0;
  font-weight: 700;
  font-size: 1.0625rem;
}

.chip {
  flex: none;
  padding: 2px 8px 1px;
  border-radius: 4px;
  box-shadow: 0 0 0 1.5px currentColor inset;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip-solid {
  background: var(--on-ink);
  color: var(--ink);
  box-shadow: none;
}

.pict {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
}

.pict svg {
  width: 38px;
  height: 38px;
}

.p-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-fill {
  fill: currentColor;
}

.why {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 44rem;
  margin-top: 24px;
  color: var(--muted);
}

.pict-sm {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.pict-sm svg {
  width: 26px;
  height: 26px;
}

.invite-block {
  margin-block: 16px 56px;
}

.invite-block > * {
  max-width: 40rem;
}

.invite-block h2 {
  padding: 22px 0 10px;
  border-top: 2px solid var(--ink);
}

.invite-block p {
  font-size: 1.125rem;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 40px;
  /* The rule spans the text column, not the gutters. */
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 0.9375rem;
  color: var(--muted);
}

.foot p:first-child {
  max-width: 40rem;
}

.foot b {
  color: var(--ink);
}

/* 404 */
.lost {
  display: grid;
  gap: 18px;
  padding-block: 48px 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: none;
}
