/* ==========================================================================
   Travlounge Application Directory
   Light theme. Type: Overpass (after Highway Gothic) + Overpass Mono.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper: #f5f3ee;
  --paper-2: #ece9e2;
  --surface: #ffffff;

  /* Ink */
  --ink: #15181c;
  --ink-2: #454b53;
  --ink-3: #6a7077;
  --ink-4: #8e939a;

  /* Lines */
  --line: #e2ded5;
  --line-strong: #cdc8bd;

  /* Accent: Travlounge yellow (from the logo). Fills use --accent;
     thin strokes and small marks use --accent-deep so they read on paper. */
  --accent: #ffc905;
  --accent-deep: #f0b400;
  --signal: #ffc905;
  --mark: #ffeb99;
  --select: #ffd84a;

  --font-sans: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4vw, 72px);
  --bleed: 20px;

  --glider-shadow:
    0 1px 1px rgb(21 24 28 / 0.03),
    0 2px 6px -2px rgb(21 24 28 / 0.06),
    0 24px 48px -30px rgb(21 24 28 / 0.32);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--select);
  color: var(--ink);
}

p {
  margin: 0;
}

button {
  font: inherit;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 1px 6px 0;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font: 500 12px/1 var(--font-mono);
}

mark {
  padding: 0 1px;
  border-radius: 3px;
  background: var(--mark);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Full-width layout: content spans the viewport, inset by the gutter. */
.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgb(245 243 238 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

@media (min-width: 720px) {
  .site-header__inner {
    height: 72px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}

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

.brand__logo {
  display: block;
  width: auto;
  height: 26px;
}

@media (min-width: 720px) {
  .brand__logo {
    height: 30px;
  }
}

@media (min-width: 1440px) {
  .brand__logo {
    height: 34px;
  }
}

.site-header__hint {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 13px;
}

@media (min-width: 720px) and (hover: hover) {
  .site-header__hint {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(48px, 9vw, 112px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 30px);
  color: var(--ink-3);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 1.1rem + 5.2vw, 6.25rem);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em 0.12em;
  margin-block: -0.08em -0.12em;
}

.line > span {
  display: inline-block;
}

.hero__dot {
  color: var(--accent-deep);
}

.hero__foot {
  display: grid;
  gap: 28px;
  margin-top: clamp(28px, 4vw, 48px);
}

@media (min-width: 900px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    align-items: end;
    gap: 56px;
  }
}

.hero__lede {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(17px, 0.5vw + 14px, 19px);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search {
  position: relative;
}

.search__field {
  position: relative;
}

.search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--ink-4);
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 0.25s ease;
}

.search input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 58px;
  padding: 2px 56px 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: 450 17px/1 var(--font-sans);
  letter-spacing: -0.005em;
  box-shadow:
    0 1px 0 rgb(21 24 28 / 0.03),
    0 12px 30px -20px rgb(21 24 28 / 0.24);
  transition:
    border-color 0.25s ease,
    box-shadow 0.4s var(--ease-out);
}

.search input::placeholder {
  color: var(--ink-4);
  opacity: 1;
}

.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search input:hover {
  border-color: #bdb7ab;
}

.search input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow:
    0 0 0 4px rgb(255 201 5 / 0.45),
    0 16px 36px -22px rgb(21 24 28 / 0.35);
}

.search__field:focus-within .search__icon {
  color: var(--ink);
}

.search__kbd,
.search__clear {
  position: absolute;
  top: 50%;
  right: 14px;
  transition:
    opacity 0.2s ease,
    transform 0.35s var(--ease-out),
    background-color 0.2s ease,
    color 0.2s ease;
}

.search__kbd {
  transform: translateY(-50%);
  pointer-events: none;
}

.search__field:focus-within .search__kbd,
.has-query .search__kbd {
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
}

/* Keyboard hints mean nothing on touch screens */
@media (hover: none) {
  .search__kbd {
    display: none;
  }

  .search input {
    padding-right: 48px;
    font-size: 16px;
  }
}

.search__clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) scale(0.5) rotate(-90deg);
  pointer-events: none;
}

.search__clear svg {
  width: 14px;
  height: 14px;
}

.has-query .search__clear {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0);
  pointer-events: auto;
}

.search__clear:hover {
  background: var(--ink);
  color: var(--paper);
}

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

.search__hint {
  position: absolute;
  top: calc(100% + 12px);
  left: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 13.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.4s var(--ease-out);
  pointer-events: none;
}

.search__hint.is-on {
  opacity: 1;
  transform: none;
}

.search__hint strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
}

.search__hint kbd {
  flex: none;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Route — quick index of every application
   -------------------------------------------------------------------------- */

.route {
  --count: 13;
  --at: 0;
  margin-top: clamp(64px, 8vw, 104px);
}

.route__rail {
  position: relative;
}

.route__line,
.route__fill {
  position: absolute;
  top: 8px;
  left: calc(50% / var(--count));
  right: calc(50% / var(--count));
  height: 2px;
  border-radius: 2px;
  transform-origin: left center;
}

.route__line {
  background: var(--line-strong);
}

.route__fill {
  top: 7px;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.7s var(--ease-out);
}

.route.has-active .route__fill {
  transform: scaleX(calc(var(--at) / (var(--count) - 1)));
}

.route__halo {
  position: absolute;
  top: 9px;
  left: calc((var(--at) + 0.5) * 100% / var(--count));
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid var(--accent-deep);
  border-radius: 50%;
  background: rgb(255 201 5 / 0.14);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition:
    left 0.6s var(--ease-out),
    opacity 0.3s ease,
    transform 0.5s var(--ease-out);
}

.route.has-active .route__halo {
  opacity: 1;
  transform: scale(1);
}

.route.no-glide .route__halo {
  transition:
    opacity 0.3s ease,
    transform 0.5s var(--ease-out);
}

.route__stops {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.route__stops > li {
  display: flex;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.route__stops > li.is-dim {
  opacity: 0.28;
}

.stop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 0 4px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: 500 11px/1 var(--font-mono);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stop:focus-visible {
  outline: none;
}

.stop__dot {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  transition:
    border-color 0.3s ease,
    transform 0.45s var(--ease-spring);
}

.stop__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.45s var(--ease-spring);
}

.stop__num {
  transition: color 0.3s ease;
}

.stop:hover .stop__dot,
.stop.is-active .stop__dot {
  border-color: var(--accent-deep);
}

.stop.is-active .stop__dot::after {
  transform: scale(1);
}

.stop.is-active .stop__num {
  color: var(--ink);
}

.stop:focus-visible .stop__num {
  color: var(--ink);
  text-decoration-color: var(--accent-deep);
  text-decoration-thickness: 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stop__tip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  z-index: 3;
  padding: 7px 11px 6px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font: 550 12.5px/1.2 var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  transform: translate(var(--tip-x, -50%), 6px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.4s var(--ease-out);
}

.stop__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--caret-x, 50%);
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

.stop__tip b {
  margin-right: 6px;
  color: var(--ink-4);
  font: 500 11px/1 var(--font-mono);
}

.stop[data-align="start"] .stop__tip {
  --tip-x: -14px;
  --caret-x: 14px;
}

.stop[data-align="end"] .stop__tip {
  --tip-x: calc(-100% + 14px);
  --caret-x: calc(100% - 14px);
}

.stop.is-active .stop__tip,
.stop:focus-visible .stop__tip {
  opacity: 1;
  transform: translate(var(--tip-x, -50%), 0);
}

/* --------------------------------------------------------------------------
   Directory
   -------------------------------------------------------------------------- */

.directory {
  padding-top: clamp(24px, 4vw, 40px);
}

.directory__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.directory__title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.directory__count {
  color: var(--ink-3);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
}

.directory__num {
  display: inline-block;
  color: var(--ink);
}

.directory__num.tick {
  animation: tick 0.45s var(--ease-out);
}

@keyframes tick {
  from {
    opacity: 0;
    transform: translateY(70%);
  }
}

.apps-wrap {
  position: relative;
}

.apps__glider {
  position: absolute;
  top: 0;
  left: calc(var(--bleed) * -1);
  right: calc(var(--bleed) * -1);
  z-index: 0;
  height: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--glider-shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s var(--ease-out),
    height 0.5s var(--ease-out),
    opacity 0.3s ease,
    box-shadow 0.3s ease;
}

.apps__glider.is-on {
  opacity: 1;
}

.apps__glider.is-focus {
  box-shadow:
    var(--glider-shadow),
    0 0 0 2px var(--ink),
    0 0 0 6px rgb(255 201 5 / 0.55);
}

.apps__glider.is-ping {
  animation: ping 1.2s var(--ease-out) 0.45s;
}

@keyframes ping {
  0% {
    box-shadow:
      var(--glider-shadow),
      0 0 0 2px var(--ink),
      0 0 0 2px rgb(255 201 5 / 0.85);
  }
  100% {
    box-shadow:
      var(--glider-shadow),
      0 0 0 2px var(--ink),
      0 0 0 18px rgb(255 201 5 / 0);
  }
}

.apps__glider.no-anim {
  transition:
    opacity 0.3s ease,
    box-shadow 0.3s ease;
}

.apps {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Collapse animation for filtered rows */
.app {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows 0.55s var(--ease-out),
    opacity 0.35s ease;
}

.app.is-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
}

.app__clip {
  min-height: 0;
  overflow: hidden;
  /* Extra room at the sides so the number pill isn't clipped */
  margin-inline: calc(var(--bleed) * -1);
  padding-inline: var(--bleed);
}

/* Row — mobile first */
.app__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "num actions"
    "main main"
    "meta meta";
  align-items: center;
  gap: 10px 16px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.app.is-first .app__row,
.app.is-current .app__row,
.app.is-current + .app .app__row {
  border-top-color: transparent;
}

.app__num {
  grid-area: num;
  justify-self: start;
  position: relative;
  z-index: 0;
  color: var(--ink-3);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* Yellow pill that pops in behind the number; the digits never move. */
.app__num::before {
  content: "";
  position: absolute;
  inset: -8px -11px -6px;
  z-index: -1;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    inset 0 -1px 0 rgb(0 0 0 / 0.06),
    0 6px 14px -8px rgb(240 180 0 / 0.9);
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.2s ease,
    transform 0.5s var(--ease-spring);
}

.app.is-current .app__num {
  color: var(--ink);
  font-weight: 600;
}

.app.is-current .app__num::before {
  opacity: 1;
  transform: none;
}

.app__main {
  grid-area: main;
  min-width: 0;
}

.app__name {
  margin: 0;
  font-size: clamp(20px, 0.8vw + 15px, 25px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.app__link {
  color: var(--ink);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Whole row is the link */
.app__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.app__name-text {
  display: inline-block;
  transition: transform 0.55s var(--ease-out);
}

.app.is-current .app__name-text {
  transform: translateX(4px);
}

.app__prefix {
  color: var(--ink-3);
  font-weight: 450;
}

.app__desc {
  max-width: 62ch;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

.app__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  min-width: 0;
  margin-top: 4px;
}

.app__cat {
  color: var(--ink-2);
  font: 600 11.5px/1.35 var(--font-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app__cat::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  vertical-align: 0.12em;
  transition:
    background-color 0.3s ease,
    transform 0.45s var(--ease-spring);
}

.app.is-current .app__cat::before {
  background: var(--accent-deep);
  transform: scale(1.25);
}

.app__host {
  min-width: 0;
  color: var(--ink-3);
  font: 450 13px/1.4 var(--font-mono);
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.app.is-current .app__host {
  color: var(--ink);
}

.app__actions {
  grid-area: actions;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none; /* clicks fall through to the row link… */
}

.app__copy {
  pointer-events: auto; /* …except the copy button */
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  opacity: 0;
  transform: translateX(10px);
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.3s ease,
    transform 0.5s var(--ease-out),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.app.is-current .app__copy,
.app__copy:focus-visible,
.app__copy.is-copied {
  opacity: 1;
  transform: none;
}

.app__copy:hover {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.app__copy:active {
  transform: scale(0.92);
}

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

.app__copy svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition:
    opacity 0.2s ease,
    transform 0.4s var(--ease-spring);
}

.app__copy .i-check {
  opacity: 0;
  transform: scale(0.4);
}

.app__copy.is-copied {
  background: var(--accent);
  color: var(--ink);
}

.app__copy.is-copied .i-copy {
  opacity: 0;
  transform: scale(0.4);
}

.app__copy.is-copied .i-check {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .app__copy::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 5px 8px 4px;
    border-radius: 7px;
    background: var(--ink);
    color: var(--paper);
    font: 550 11.5px/1.2 var(--font-sans);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.3s var(--ease-out);
  }

  .app__copy:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 0.25s;
  }
}

@media (hover: none) {
  .app__copy {
    opacity: 1;
    transform: none;
  }
}

.app__go {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition:
    background-color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.app__go svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  transition: transform 0.55s var(--ease-out);
}

.app__go svg:last-child {
  transform: translate(-160%, 160%);
}

.app.is-current .app__go {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.app.is-current .app__go svg:first-child {
  transform: translate(160%, -160%);
}

.app.is-current .app__go svg:last-child {
  transform: none;
}

.app__row:active .app__go {
  transform: scale(0.93);
}

/* Tablet */
@media (min-width: 640px) {
  .app__row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "num main actions"
      ".   meta actions";
    align-items: baseline;
    column-gap: 20px;
    row-gap: 14px;
    padding: 28px 0 30px;
  }

  .app__actions {
    align-self: center;
  }

  .app__meta {
    margin-top: 0;
  }
}

/* Desktop */
@media (min-width: 1080px) {
  .app__row {
    grid-template-columns: 56px minmax(0, 1fr) 270px 96px;
    grid-template-areas: "num main meta actions";
    column-gap: 28px;
    padding: 32px 0 34px;
  }

  .app__meta {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }
}

/* Wide screens: category and address get their own columns to use the full width */
@media (min-width: 1440px) {
  .app__row {
    grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 96px;
    grid-template-areas: "num main cat host actions";
    column-gap: 32px;
  }

  .app__meta {
    display: contents;
  }

  .app__cat {
    grid-area: cat;
  }

  .app__host {
    grid-area: host;
    font-size: 13.5px;
  }
}

@media (max-width: 639px) {
  :root {
    --bleed: 12px;
  }
}

/* Empty state */
.empty {
  padding: 72px 0 24px;
  text-align: center;
}

.empty:not([hidden]) {
  animation: rise-in 0.6s var(--ease-out) 0.2s both;
}

.empty__title {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.empty__text {
  margin-bottom: 24px;
  color: var(--ink-2);
}

.btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 12px 18px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s var(--ease-out);
}

.btn:hover {
  border-color: var(--ink);
}

.btn:active {
  transform: scale(0.97);
}

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

.noscript {
  padding: 48px 0;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 40px;
  color: var(--ink-3);
  font-size: 13.5px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.site-footer__meta > span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.25em;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 11px 18px 10px 12px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  box-shadow: 0 20px 40px -18px rgb(21 24 28 / 0.55);
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  pointer-events: none;
  transition:
    transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1),
    opacity 0.3s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.toast__icon svg {
  width: 13px;
  height: 13px;
}

.toast__text {
  overflow: hidden;
  padding-top: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast__text span {
  margin-left: 4px;
  color: #a7adb4;
  font: 450 12.5px/1 var(--font-mono);
}

/* --------------------------------------------------------------------------
   Entrance motion (only when motion is allowed and JS is running)
   -------------------------------------------------------------------------- */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.motion.is-ready [data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out) var(--delay, 0ms),
    transform 1s var(--ease-out) var(--delay, 0ms);
}

.motion .line > span {
  transform: translateY(110%);
}

.motion.is-ready .line > span {
  transform: none;
  transition: transform 1.15s var(--ease-out) var(--delay, 0ms);
}

.motion .route__line {
  transform: scaleX(0);
}

.motion.is-ready .route__line {
  animation: draw 1.3s cubic-bezier(0.55, 0, 0.3, 1) 0.6s both;
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.motion .stop {
  opacity: 0;
}

.motion.is-ready .stop {
  animation: stop-in 0.7s var(--ease-spring) both;
  animation-delay: calc(640ms + var(--i) * 95ms);
}

@keyframes stop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.motion .app__row {
  opacity: 0;
  transform: translateY(22px);
}

.motion .app.is-in .app__row {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0ms),
    transform 0.9s var(--ease-out) var(--d, 0ms),
    border-color 0.3s ease;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
