/* --------------------------------------------------------------------------
 * Tokens
 * -------------------------------------------------------------------------- */

:root {
  /* Neutral fallbacks for the wait: applyTheme() swaps in the brand palette
     once the manifest loads. */
  color-scheme: light;
  --ink: #fafafa;
  --ink-2: #f4f4f5;
  --ink-3: #e9e9eb;
  --paper: #18181b;
  --paper-2: #52525b;
  --mute: #71717a;
  --silver: #27272a;
  --white: #09090b;
  --accent: #52525b;
  --line: rgba(24, 24, 27, 0.1);
  --line-2: rgba(24, 24, 27, 0.16);
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Allura", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* A vw slice ignores the scrollbar and knows nothing about a phone's notch,
     so the shared measure is the viewport minus the gutter. */
  --gutter: 1.5rem;
  --col: min(1080px, 100% - 2 * var(--gutter));
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 42%, transparent);
}

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

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* iOS Safari inflates text in landscape unless it's told not to. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(115% 60% at 50% -12%, var(--accent-soft), transparent 55%) no-repeat,
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  /* The small viewport keeps mobile browsers from adding a phantom scroll. */
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent-soft);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
 * Top Bar
 * -------------------------------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar--in {
  width: var(--col);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.bar--brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.bar--logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}

.bar--logo-wide {
  height: 26px;
  max-width: 280px;
  filter: none;
  opacity: 1;
}

.bar--name {
  font-family: var(--title-family, var(--serif));
  font-weight: var(--title-weight, 600);
  font-size: 0.9rem;
  letter-spacing: var(--title-spacing, 0.22em);
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}

.bar--dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-line);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
 * Brand Mark
 * -------------------------------------------------------------------------- */

.mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.mark--dark {
  background: color-mix(in srgb, var(--accent) 20%, #0c0e11);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
}

.mark--light {
  background: #ffffff;
  border: 1px solid rgba(12, 24, 40, 0.12);
}

.mark--tile {
  background: transparent;
  border: 0;
}

.mark--tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mark--mono {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}

.bar .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.bar .mark--mono {
  font-size: 0.88rem;
}

.mark--xs {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  align-self: center;
}

.mark--xs.mark--mono {
  font-size: 0.56rem;
  letter-spacing: 0.02em;
}

.bar--home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bar--home svg {
  width: 1rem;
  height: 1rem;
}

.bar--home:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.bar--all {
  font-size: 0.74rem;
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bar--all:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.bar--find, .bar--close {
  /* Hidden on a laptop, where the field is always in the bar; the phone bar
  swaps them in. */
  display: none;
  align-items: center;
  justify-content: center;
  appearance: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--paper);
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bar--find {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.bar--close {
  position: absolute;
  right: -0.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--mute);
}

.bar--find svg, .bar--close svg {
  width: 1rem;
  height: 1rem;
}

.bar--find:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.bar--close:hover {
  color: var(--accent);
}

.bar--search {
  margin-left: auto;
  position: relative;
  width: min(360px, 42vw);
}

.bar--search input {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 0.45rem 1.6rem 0.45rem 1.5rem;
  transition: border-color 0.2s ease;
}

.bar--search input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.bar--search input::placeholder {
  color: var(--mute);
}

.bar--search svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--mute);
}

.bar--search kbd {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}

/* --------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */

.wrap {
  width: var(--col);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

/* Collections */
.col {
  margin: 0 0 2.75rem;
}

.col--head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.col--title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0;
}

.col--title-soft {
  color: var(--paper-2);
  font-size: 0.78rem;
}

.col--count {
  font-size: 0.72rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.col--meta {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.col--meta code {
  font-family: var(--mono);
  font-size: 0.95em;
  color: var(--paper-2);
}

/* Funnel Groups */
.grp {
  margin: 0 0 1.4rem;
}

.grp--title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 0.35rem 0.2rem;
  border-radius: 7px;
  transition: background 0.14s ease, color 0.14s ease;
}

.grp--title::-webkit-details-marker {
  display: none;
}

.grp--title:hover {
  background: color-mix(in srgb, var(--paper) 4%, transparent);
}

.grp--chev {
  display: inline-flex;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.grp--chev svg {
  width: 0.8rem;
  height: 0.8rem;
}

details[open] > .grp--title .grp--chev {
  transform: rotate(90deg);
}

.grp--count {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.sub--title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1rem 0 0.35rem 0.1rem;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
 * Brand Band
 * -------------------------------------------------------------------------- */

.brand {
  margin-bottom: 1rem;
}

.brand--head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-2);
}

.brand--logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand--name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.brand--count {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--mute);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
 * Brand Picker
 * -------------------------------------------------------------------------- */

/* Below a 280px-wide column the track would keep its floor and push the card
   past the screen edge. */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 0.8rem;
}

.brandcard {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.brandcard:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  border-left-color: var(--accent);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.brandcard--logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brandcard--dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin: 0 0.7rem;
}

.brandcard--body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.brandcard--name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.brandcard:hover .brandcard--name {
  color: var(--white);
}

.brandcard--count {
  font-size: 0.74rem;
  color: var(--mute);
}

.brandcard--go {
  color: var(--mute);
  font-size: 1.15rem;
  transition: transform 0.16s ease, color 0.16s ease;
}

.brandcard:hover .brandcard--go {
  color: var(--accent);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
 * Page Rows
 * -------------------------------------------------------------------------- */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 0.9rem 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.row:hover {
  background: color-mix(in srgb, var(--paper) 3%, transparent);
}

.row:hover::before {
  transform: scaleY(1);
}

.row:last-child {
  border-bottom: 0;
}

.row--link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.row--link .mark--xs {
  margin-right: 0.1rem;
}

.row--name {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--paper);
  letter-spacing: 0.005em;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
}

.row:hover .row--name {
  color: var(--white);
}

.row--slug {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--mute);
  overflow-wrap: anywhere;
}

.row--side {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Collection Badges */
.rtag {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.14rem 0.45rem;
  border-radius: 5px;
  color: var(--paper);
  background: color-mix(in srgb, currentColor 13%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
}

.rtag--landings {
  color: #6faede;
}

.rtag--websites {
  color: #b48ad8;
}

.row--vs {
  display: inline-flex;
  gap: 0.3rem;
}

.row--v {
  font-size: 0.64rem;
  color: var(--mute);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.row--v:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.row--time {
  font-size: 0.7rem;
  color: var(--mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
  text-align: right;
}

.row--acts {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.row--act {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--paper);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  transition: all 0.14s ease;
  font-family: var(--sans);
}

.row--act:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.row--act-i {
  padding: 0.28rem 0.42rem;
}

.row--act-i svg {
  width: 0.85rem;
  height: 0.85rem;
}

.row--act.is-copied {
  color: #fff;
  background: #57b06a;
  border-color: #57b06a;
}

.row--go {
  color: var(--mute);
  font-size: 1rem;
  transition: transform 0.16s ease, color 0.16s ease;
}

.row:hover .row--go {
  color: var(--accent);
  transform: translateX(3px);
}

.row--variant {
  padding-left: 2.1rem;
}

.row--variant::after {
  content: "\21B3";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1;
}

.row--variant .row--name {
  color: var(--paper-2);
  font-size: 0.88rem;
}

.row--ds .row--name {
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
 * States
 * -------------------------------------------------------------------------- */

.state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--mute);
}

.state h3 {
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.state code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
}

.state--reload {
  appearance: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 1.1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--paper);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.state--reload:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.skeleton {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.75;
  }
}

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

.foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.foot--credit {
  color: var(--paper-2);
  transition: color 0.15s ease;
}

.foot--credit:hover {
  color: var(--accent);
}

/* Back To Top */
.btt {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Dark palettes ship no line2, so surface and border mix from --paper: the
  text color is the one token guaranteed to read against the page ground. */
  background: color-mix(in srgb, var(--paper) 8%, color-mix(in srgb, var(--ink) 86%, transparent));
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent);
  color: var(--paper);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.15s ease, border-color 0.15s ease;
}

.btt svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btt.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btt:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* --------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  :root {
    --gutter: 1.25rem;
  }

  .bar--in {
    gap: 1rem;
  }

  .wrap {
    padding-top: 2rem;
  }

  .row {
    gap: 0.7rem;
  }

  .row--time {
    min-width: 4.6rem;
  }

  .brand--head {
    margin-top: 2rem;
  }
}

@media (max-width: 720px) {
  /* On a notched phone in landscape the column would otherwise run under the
     cutout. */
  :root {
    --gutter: max(1.05rem, env(safe-area-inset-left), env(safe-area-inset-right));
  }

  html {
    scroll-padding-top: 84px;
  }

  .bar--in {
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    padding: 0.65rem 0;
  }

  .bar--logo {
    height: 26px;
  }

  .bar--logo-wide {
    height: 22px;
    max-width: min(215px, 54vw);
  }

  .bar--name {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }
  /* Tapping the magnifier swaps the brand out for a full-width field, so the
     bar stays one line instead of permanently two. */
  .bar--find {
    display: inline-flex;
    margin-left: auto;
  }

  .bar--close {
    display: inline-flex;
  }

  .bar--search {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .bar--search kbd {
    display: none;
  }

  .bar.is-searching .bar--brand,
  .bar.is-searching .bar--find,
  .bar.is-searching .bar--home {
    display: none;
  }

  .bar.is-searching .bar--search {
    display: block;
  }

  .bar--search input {
    /* Below 16px iOS Safari zooms the page in when the field takes focus and
    never zooms back out. */
    font-size: 1rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    padding-right: 2.2rem;
  }

  /* The bottom padding clears the floating back-to-top button so it never
     covers the last row. */
  .wrap {
    padding: 1.4rem 0 4.5rem;
  }

  .col {
    margin-bottom: 2rem;
  }

  .col--head {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }
  /* Squeezed against the title, the meta line ran into the screen edge at
     320px. */
  .col--meta {
    width: 100%;
    margin-left: 0;
    white-space: normal;
  }

  .brand--head {
    margin: 1.6rem 0 1.1rem;
    gap: 0.7rem;
  }

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

  .brands {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .brandcard {
    padding: 0.85rem 0.95rem 0.85rem 0.85rem;
    gap: 0.75rem;
  }

  .brandcard--logo, .brandcard > .mark {
    width: 38px;
    height: 38px;
  }

  /* Stacked Row */
  .row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    /* The right padding reserves the lane the open arrow is positioned into. */
    padding: 0.7rem 2.5rem 0.7rem 0.8rem;
  }

  .row--link {
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.1rem;
  }
  /* At basis auto a long title asks for its full content width and wraps to
     the next line, stranding the chip alone above it. */
  .row--name {
    flex: 1 1 0;
    min-width: 0;
  }

  .row--slug {
    flex: 1 0 100%;
  }
  /* Slug hangs under the title, not under the chip. */
  .row--link:has(.mark--xs) .row--slug {
    padding-left: calc(22px + 0.5rem);
  }

  .row--side {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
  }

  .row--time {
    min-width: 0;
    text-align: left;
  }

  .row--acts {
    margin-left: auto;
  }
  /* In the flow the arrow wrapped alone onto a third line, and stretching it
     top to bottom leaves the hover transform free for its slide. */
  .row--go {
    position: absolute;
    right: 0.25rem;
    top: 0;
    bottom: 0;
    width: 2.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .row--variant {
    padding-left: 1.5rem;
  }

  .row--variant::after {
    left: 0.5rem;
  }

  .state {
    padding: 3.5rem 0.5rem;
  }

  .btt {
    width: 36px;
    height: 36px;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .btt svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}

/* The wide tracking on section titles alone ate a third of a 320px line. */
@media (max-width: 420px) {
  .col--title {
    letter-spacing: 0.18em;
  }

  .brand--name {
    letter-spacing: 0.1em;
  }

  .grp--title {
    letter-spacing: 0.16em;
  }

  .sub--title {
    letter-spacing: 0.16em;
  }
}

/* A sticky bar would eat a third of a ~380px-tall viewport in landscape. */
@media (max-height: 520px) and (orientation: landscape) {
  .bar {
    position: static;
  }

  html {
    scroll-padding-top: 0;
  }

  .wrap {
    padding-top: 1.2rem;
  }
}

/* Cursor-sized controls grow to clear the 24px touch minimum, and
   touch-action removes the 300ms tap delay. */
@media (pointer: coarse) {
  .bar--search kbd {
    display: none;
  }

  .bar--home, .bar--find {
    width: 36px;
    height: 36px;
  }

  .row--act {
    min-height: 2.125rem;
  }

  .row--act-i {
    min-width: 2.125rem;
    padding: 0.32rem;
    justify-content: center;
  }

  .row--act-i svg {
    width: 0.92rem;
    height: 0.92rem;
  }

  .row--go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.125rem;
    min-height: 2.125rem;
  }

  .row--v {
    padding: 0.25rem 0.5rem;
  }

  .row--act, .row--go, .bar--home, .bar--find, .bar--close, .btt,
  .state--reload, .grp--title, .brandcard {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* On touch, :hover latches after a tap, so a copied link would keep its
   inverted fill until the next one. */
@media (hover: none) {
  .row:hover {
    background: transparent;
  }

  .row:hover::before {
    transform: scaleY(0);
  }

  .row:hover .row--go, .brandcard:hover .brandcard--go {
    transform: none;
    color: var(--mute);
  }

  .brandcard:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
  }

  .row--act:hover:not(:active):not(.is-copied) {
    color: var(--paper);
    border-color: var(--line-2);
    background: color-mix(in srgb, var(--paper) 6%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
