/* By JTT — shared site chrome (masthead + tab bar + footer + search), used on ALL pages.
 * Mobile-first. The bottom tab bar follows the byjtt-experiments pattern; the masthead
 * adds wordmark + search on every page. All tokens come from main.css.
 */

/* ---- Masthead (site-wide) ----
 * Wordmark + desktop inline nav + theme/search actions. The bottom tab bar
 * remains the persistent navigation on every viewport. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--chrome-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .masthead { background: var(--paper); }
}

/* Centred to the same container as the footer so the wordmark and actions
   sit at the same measure instead of stretching edge to edge. */
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--masthead-height);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.masthead-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.masthead-brand:hover { color: var(--ink); }
.masthead-brand { min-height: 32px; }
.masthead-wordmark { width: 93px; height: 24px; display: block; flex: 0 0 auto; color: var(--ink); }
.masthead-brand:hover { opacity: 0.78; }

/* Desktop inline nav — complements (not replaces) the bottom tab bar. */
.masthead-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  margin-right: auto;
}
.masthead-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease, background 150ms ease;
}
@media (hover: hover) {
  .masthead-link:hover { color: var(--ink); background: var(--chip); }
}
.masthead-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; color: var(--ink); }
.masthead-link.is-active { color: var(--ink); }
.masthead-link.is-active::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--signal-text);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.masthead-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.masthead-search:hover, .masthead-search:focus-visible { color: var(--ink); border-color: var(--ink); }
.masthead-search kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--muted);
  background: var(--paper);
}
/* Compact search above tablet: drop the label and shortcut so the
   inline nav and the search control share the masthead without crowding. */
@media (max-width: 719px) {
  .masthead-search { padding: 8px 11px; }
  .masthead-search > span,
  .masthead-search kbd { display: none; }
}

/* Theme toggle — shows the icon for the state the button switches to.
 * Sized to the 44px minimum recommended touch target (Apple HIG / Google
 * Material) so it's not an easy mis-tap on mobile, while the icon itself
 * stays visually compact inside it. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--ink); border-color: var(--ink); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .icon {
  width: 16px;
  height: 16px;
  grid-area: 1 / 1;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}
.theme-toggle { display: inline-grid; place-items: center; }
.theme-toggle .icon--sun { opacity: 0; transform: rotate(-90deg) scale(0.8); }
.theme-toggle .icon--moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon--sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon--moon { opacity: 0; transform: rotate(90deg) scale(0.8); }

/* ---- Bottom tab bar (site-wide) ----
 * Floating dock: the primary nav on every viewport. Kept clear of the
 * screen edge so it reads as one control, with the active tab filled. */
.tab-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 6px;
  box-sizing: border-box;
  background: var(--chrome-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tab-bar { background: var(--paper); }
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 0 12px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 150ms ease, background 150ms ease, transform 100ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .tab-item:hover { background: var(--chip); color: var(--ink); }
}
.tab-item:focus-visible { color: var(--ink); }
.tab-item.is-active { background: var(--chip); color: var(--signal-text); }
.tab-item.is-active .tab-label { color: var(--ink); }
.tab-item.is-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal-text);
}
.tab-item:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; border-radius: 8px; }
.tab-item:active { transform: scale(0.96); color: var(--ink); }

.tab-item .icon { width: 22px; height: 22px; }
.tab-label { font-size: 11px; line-height: 1; }

/* content padding so nothing hides behind the floating dock — tracks the
   bar height plus its screen-edge offset and the iPhone safe-area inset */
body { padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom) + 28px); }

@media (min-width: 641px) {
  .masthead-nav { display: flex; }
  .tab-bar { left: 50%; right: auto; width: min(400px, calc(100% - 24px)); transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); border-radius: 18px; padding: 4px; }
  .tab-item { min-height: 0; padding: 8px 0 11px; }
}

/* ---- Shared icon sizing in chrome ---- */
.masthead-search .icon { width: 15px; height: 15px; }
.footer-links .icon { width: 16px; height: 16px; }
.footer-bottom .icon { width: 14px; height: 14px; }

/* ---- Back to top (QoL) ---- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tab-height) + env(safe-area-inset-bottom) + 40px);
  z-index: 95;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, visibility 0s linear 180ms, transform 180ms ease, background 150ms ease, color 150ms ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--ink); color: var(--paper); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- Site footer (single close: wordmark + one link row + legal) ----
 * One ending instead of three: a big wordmark grounds the close, every
 * link lives in one wrapped row underneath it, then the legal line. */
.site-footer {
  margin-top: 56px;
  padding: 36px 20px calc(var(--tab-height) + env(safe-area-inset-bottom) + 12px);
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--muted);
}
.footer-close {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-mark { color: var(--ink); width: 40px; height: 40px; }
.footer-mark svg { display: block; width: 100%; height: 100%; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.footer-links a:hover { color: var(--signal-text); }
.footer-links a svg { color: var(--muted); }
.footer-links a:hover svg { color: var(--signal-text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: var(--container);
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.footer-bottom a:hover { color: var(--signal-text); }
.footer-social { display: flex; align-items: center; gap: 16px; }

/* ---- Search modal: macOS-Spotlight-style command palette ----
 * Fixed-width centered panel: large input row, one-line filter chips, a flat
 * result list navigable by arrow keys, and a footer hint row. The input row
 * and chips are static markup (instant focus on open); site.js lazy-loads
 * /pagefind/pagefind.js and renders link-flat rows into .spot-list.
 * Rethemed Pagefind excerpt <mark>s to the vermilion accent. */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}
.search-modal[hidden] { display: none; }

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .search-modal-backdrop { background: light-dark(rgba(60, 55, 50, 0.85), rgba(8, 8, 6, 0.9)); }
}

.search-modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

/* Large input row: icon, borderless field, esc hint. */
.spot-input-row {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.spot-input-icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--muted); }
.spot-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  outline: none;
  padding: 0;
}
.spot-input::placeholder { color: var(--muted); }
.spot-input::-webkit-search-cancel-button { display: none; }
.spot-esc {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.spot-esc:hover, .spot-esc:focus-visible { color: var(--ink); border-color: var(--ink); }

/* One-line filter chips: single-select section filter. */
.spot-filters {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.spot-filters::-webkit-scrollbar { display: none; }
.spot-chip {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.spot-chip:hover { color: var(--ink); border-color: var(--ink); }
.spot-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Result list: flat rows, arrow-key active state, section eyebrow + excerpt. */
.spot-body { overflow-y: auto; padding: 6px; min-height: 0; }
.spot-status {
  margin: 0;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.spot-status:empty { display: none; }
.spot-list { list-style: none; margin: 0; padding: 0; }

/* ---- Search empty state ----
 * Shown before user types, with popular links and helpful hint. */
.spot-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  gap: 8px;
}
.spot-empty-state[hidden] { display: none; }
.spot-empty-icon {
  width: 32px;
  height: 32px;
  color: var(--line-strong);
  margin-bottom: 4px;
}
.spot-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.spot-empty-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.spot-empty-hint kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
  background: var(--paper);
}
.spot-empty-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  align-items: center;
}
.spot-empty-popular-title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.spot-empty-popular a {
  font-size: 13px;
  color: var(--signal-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.spot-empty-popular a:hover { border-bottom-color: var(--signal); }

.spot-empty { padding: 18px 10px; color: var(--muted); font-size: 14px; }
.spot-empty kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--paper);
}
.spot-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
}
.spot-item a:hover { background: var(--chip); }
.spot-item a.is-active { background: var(--chip); outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.spot-item-title { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.spot-item-title mark, .spot-item-excerpt mark {
  background: none;
  color: var(--signal-deep);
  font-weight: 700;
}
.spot-item-section {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.spot-item-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer hints: macOS-style key legend. Hidden on touch/small screens. */
.spot-foot {
  display: flex;
  gap: 16px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.spot-foot kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 4px;
  background: var(--paper);
  color: var(--muted);
}
@media (max-width: 640px) {
  .search-modal { padding: 8px; }
  .search-modal-panel { max-height: calc(100dvh - 16px); }
  .spot-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spot-item a { transition: none; }
}

/* keep body from scrolling behind the modal */
body.search-open { overflow: hidden; }

/* ---- X.com embed ---- */
.x-embed-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
}
.x-embed-wrapper .twitter-timeline { width: 100% !important; }

/* ---- Newsletter / RSS promotion ---- */
.newsletter {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
/* Paper/carbon grain from the artwork system — a whisper of material under
   the panel, not a dominant background. */
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: image-set(url("/artwork/v1.0/shared/light-paper-grain.avif") type("image/avif"), url("/artwork/v1.0/shared/light-paper-grain.webp") type("image/webp"), url("/artwork/v1.0/shared/light-paper-grain.png") type("image/png"));
  background-size: cover;
  opacity: 0.14;
  pointer-events: none;
}
:root[data-theme="dark"] .newsletter::before {
  background-image: image-set(url("/artwork/v1.0/shared/dark-paper-grain.avif") type("image/avif"), url("/artwork/v1.0/shared/dark-paper-grain.webp") type("image/webp"), url("/artwork/v1.0/shared/dark-paper-grain.png") type("image/png"));
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.newsletter-desc { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.newsletter-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.newsletter-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out-expo);
}
.newsletter-link:hover { border-color: var(--signal); }
.newsletter-link svg { width: 14px; height: 14px; }

/* ---- Social sharing ---- */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}
.share-btn:hover { color: var(--ink); border-color: var(--ink); }
.share-btn svg { width: 14px; height: 14px; }

/* ---- Shared interactive X profile popover ---- */
.x-profile {
  --x-profile-card-width: min(280px, calc(100vw - 32px));
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-family: var(--font-mono);
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
}

/* Invisible hover bridge spans the full card width across the visual gap,
   allowing straight or diagonal pointer travel into the interactive card. */
.x-profile::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: var(--x-profile-card-width);
  height: 0.85rem;
}

.x-profile > .x-profile__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.x-profile > .x-profile__trigger:hover .x-profile__name,
.x-profile > .x-profile__trigger:focus-visible .x-profile__name {
  color: var(--signal);
}
.x-profile__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.x-profile__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.x-profile__name {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
}
.x-profile__handle {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
}
.x-profile__card {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: var(--x-profile-card-width);
  min-width: 0;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.25;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 120ms ease 160ms,
    transform 120ms ease 160ms,
    visibility 0s linear 280ms;
}
.x-profile:hover .x-profile__card,
.x-profile:focus-within .x-profile__card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.x-profile__card-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.x-profile__card-meta {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.25;
}
.x-profile__card-name {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
}
.x-profile__card-handle {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
}
.x-profile .x-profile__card-follow {
  margin-left: auto;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--signal);
  color: light-dark(var(--paper), #fff);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}
.x-profile .x-profile__card-follow:hover,
.x-profile .x-profile__card-follow:focus-visible {
  background: var(--ink);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .x-profile__card {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}
