:root {
  --cream: #ffffff;
  --cream-deep: #f2f2f2;
  --ink: #0a0a0a;
  --ink-soft: #525252;
  --ink-faint: #8a8a8a;
  --accent: #0a0a0a;
  --accent-deep: #000000;
  --accent-soft: #f2f2f2;
  --accent-mid: #404040;
  --card: #ffffff;
  --border: #d4d4d4;
  --border-soft: #e5e5e5;
  --radius: 10px;
  --shadow: none;
  /* Shared site width — matches the Netlifinds About page container
     (max-width 1440px, side padding clamp(16px, 4vw, 40px)). Every page's
     header, main and footer use .wrap, so edges line up across pages. */
  --site-max: 1440px;
  --pad: clamp(16px, 4vw, 40px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

.wrap {
  /* Content box: (--site-max minus 2×--pad) wide,
     inset --pad from each edge. Done with width+margin so per-page padding
     shorthands (e.g. .dg-main { padding: 1.5rem 0 3rem }) can't zero it out. */
  width: min(calc(var(--site-max) - 2 * var(--pad)), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* Sticky compact header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.7rem 0;
  padding-top: max(0.7rem, var(--safe-top));
  background: #ffffff;
  
  -webkit-
  border-bottom: 1px solid #d4d4d4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-mark {
  font-family: Inter, system-ui, sans-serif; letter-spacing: -0.02em;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  flex-shrink: 0;
}

.header-links a {
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header-links a:hover {
  color: var(--accent);
}

.launch-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  box-shadow: none;
}

.launch-link:hover {
  background: var(--accent-deep);
  color: #fff !important;
}


.scroll-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--ink-soft) !important;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.scroll-footer-btn:hover {
  color: var(--accent) !important;
  border-color: var(--accent);
  background: #fff;
}

.scroll-footer-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* Hero — tight, mobile-first */
.hero {
  padding: 1.75rem 0 1.1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.hero h1 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif; letter-spacing: -0.02em;
  font-size: clamp(2.35rem, 9vw, 3.35rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--accent);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.subtitle {
  margin: 0.7rem 0 0;
  max-width: 32rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* Controls */
.controls {
  padding: 0.15rem 0 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: #a3a3a3;
  color: var(--accent);
}

.chip.active {
  background: var(--accent-soft);
  border-color: #a3a3a3;
  color: var(--accent-deep);
}

.feed-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0.85rem 0 0;
}

.count,
.last-refreshed {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.count::after {
  content: "·";
  margin-left: 0.75rem;
  color: var(--ink-faint);
  opacity: 0.7;
}

/* Magazine feed — single column */
.feed {
  padding-bottom: 3rem;
}

.money-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem 1.15rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid #d4d4d4;
}

.money-total[hidden] {
  display: none !important;
}

.money-total-amount {
  font-family:  Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.money-total-label {
  margin-top: 0.2rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--ink-soft);
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  align-items: start;
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: none;
  min-width: 0;
  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-category {
  background: var(--accent-soft);
  color: var(--accent-deep);
}


.card h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.card-blurb {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Tweet embeds — never blow out width */
.tweet-embed {
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tweet-embed .twitter-tweet {
  margin: 0 !important;
  max-width: 100% !important;
}

.tweet-embed iframe {
  max-width: 100% !important;
}

.tweet-placeholder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px dashed #bdbdbd;
}

.tweet-view-btn {
  appearance: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  min-height: 2.5rem;
  cursor: pointer;
  box-shadow: none;
}

.tweet-view-btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.tweet-view-btn:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

.tweet-view-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.tweet-view-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 0 3rem;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 1.35rem 0 calc(2rem + var(--safe-bottom));
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.01em;
}

.site-footer .site-visits {
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.site-footer .site-visits[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .hero {
    padding: 2.35rem 0 1.35rem;
  }

  .card {
    padding: 1.4rem 1.45rem 1.5rem;
  }

  .grid {
    gap: 1.5rem;
  }
}

/* ——— Hero CTAs (stacked) ——— */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-ctas .find-cta {
  margin-top: 0;
  text-decoration: none;
}

.find-cta--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}

.find-cta--secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: none;
}

/* ——— Find your use case CTA ——— */
.find-cta {
  appearance: none;
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.find-cta:hover {
  background: #262626;
  border-color: #262626;
  box-shadow: none;
}

.find-cta:active {
  transform: translateY(1px);
}

.find-cta:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 3px;
}

.find-cta-label {
  line-height: 1;
}

.find-cta-arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  animation: cta-arrow-nudge 1.2s ease-in-out infinite;
}

@keyframes cta-arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (max-width: 540px) {
  .hero-ctas {
    width: 100%;
    align-items: stretch;
  }

  .find-cta {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    min-height: 3.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .find-cta-arrow {
    animation: none;
  }

  .finder-backdrop,
  .finder-panel {
    animation: none !important;
  }
}

/* ——— Finder modal / bottom sheet ——— */
.finder-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.5);
  animation: finder-fade 0.2s ease;
}

/* Desktop: centered modal */
.finder-panel {
  position: fixed;
  z-index: 70;
  left: 50%;
  top: 50%;
  /* Keep transform ONLY on desktop — mobile sheet overrides fully */
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 1.5rem));
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  animation: finder-pop 0.22s ease;
}

.finder-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: none;
  overflow: hidden;
}

.finder-header {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.35rem;
  background: var(--card);
}

.finder-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.finder-title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif; letter-spacing: -0.02em;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}

.finder-close {
  appearance: none;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.finder-close:hover {
  background: var(--cream-deep);
  color: var(--ink);
}

.finder-progress {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem 0;
  flex-shrink: 0;
}

.finder-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.2s ease, width 0.2s ease;
}

.finder-dot.active {
  width: 1.15rem;
  background: var(--accent);
}

.finder-dot.done {
  background: var(--accent-mid);
}

.finder-step-label {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.finder-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.85rem 1.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.finder-question {
  margin: 0 0 0.95rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.finder-options {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.finder-option {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  min-height: 3rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finder-option:hover {
  border-color: #a3a3a3;
  background: var(--accent-soft);
}

.finder-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--accent-deep);
}

.finder-option:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

.finder-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem 1.2rem;
  border-top: 1px solid var(--border-soft);
  background: #ffffff;
}

.finder-btn {
  appearance: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.72rem 1.3rem;
  min-height: 2.75rem;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.finder-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.finder-btn-ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
}

.finder-btn-ghost:hover:not(:disabled) {
  background: var(--cream-deep);
  color: var(--ink);
}

.finder-btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  margin-left: auto;
}

.finder-btn-primary:hover:not(:disabled) {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Results */
.finder-results-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.finder-results-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.finder-result {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--border-soft);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.finder-result:first-of-type {
  border-top: none;
  padding-top: 0.15rem;
}

.finder-result-rank {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-mid);
}

.finder-result h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.finder-result .card-blurb {
  font-size: 0.86rem;
}

.finder-result .tweet-embed {
  max-width: 100%;
  overflow: hidden;
}

.finder-prompt {
  margin-top: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px dashed #bdbdbd;
  min-width: 0;
  overflow: hidden;
}

.finder-prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.finder-prompt-label span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.finder-copy {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  min-height: 2.2rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.finder-copy:hover {
  background: var(--accent-soft);
  border-color: #a3a3a3;
}

.finder-copy.copied {
  background: #f2f2f2;
  border-color: #a3a3a3;
  color: #0a0a0a;
}

.finder-prompt-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finder-restart {
  width: 100%;
  margin-top: 0.35rem;
}

body.finder-open {
  overflow: hidden;
}

@keyframes finder-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes finder-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile bottom sheet — reset desktop transform completely */
@media (max-width: 540px) {
  .finder-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(94dvh, 100%);
    /* Critical: kill desktop translate so sheet animation isn't conflicted */
    transform: none;
    animation: finder-sheet 0.28s ease;
  }

  .finder-shell {
    border-radius: 20px 20px 0 0;
    max-height: inherit;
    height: 100%;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }

  .finder-header {
    padding: 1.1rem 1.1rem 0.3rem;
    padding-top: max(1.1rem, calc(var(--safe-top) * 0.25 + 0.85rem));
  }

  .finder-body {
    padding: 0.75rem 1.1rem 1rem;
  }

  .finder-footer {
    padding: 0.85rem 1.1rem calc(1rem + var(--safe-bottom));
  }

  .finder-option {
    padding: 1.05rem 1.1rem;
    font-size: 1rem;
  }

  .finder-btn {
    min-height: 2.9rem;
    font-size: 0.95rem;
  }

  .finder-close {
    width: 2.75rem;
    height: 2.75rem;
  }

  @keyframes finder-sheet {
    from {
      opacity: 0.6;
      transform: translateY(18%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* ——— Surprise me page ——— */
.surprise-page .surprise-main {
  padding: 1.25rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: calc(100vh - 8rem);
}

.surprise-nav {
  margin-bottom: 0.85rem;
}

.surprise-home {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.surprise-home:hover {
  color: var(--accent);
}

.surprise-header {
  margin-bottom: 0.75rem;
}

.surprise-title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
}

.surprise-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}



.surprise-embed {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  min-height: 120px;
}

.surprise-embed .twitter-tweet {
  margin-left: auto !important;
  margin-right: auto !important;
}

.surprise-loading,
.surprise-error {
  margin: 1rem 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.surprise-fallback {
  display: block;
  text-align: center;
  margin: 1.25rem 0;
  font-weight: 600;
}

.surprise-actions {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 1rem;
  padding-bottom: var(--safe-bottom);
}

.surprise-actions .find-cta {
  margin-top: 0;
}

@media (max-width: 540px) {
  .surprise-actions {
    width: 100%;
  }

  .surprise-actions .find-cta {
    width: 100%;
  }
}

/* Digest nav link */
.header-links .nav-pages a {
  font-weight: 600;
  color: var(--ink);
}

.header-links a[aria-current="page"] {
  color: var(--accent) !important;
}

.header-links .nav-pages {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Header actions + mobile hamburger menu */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: none;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
  .header-actions { gap: 0.55rem; }
  .nav-toggle { display: inline-flex; }
  .header-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    font-size: 1rem;
  }
  .nav-open .header-links { display: flex; }
  .header-links .nav-pages { flex-direction: column; align-items: stretch; gap: 0; }
  .header-links .nav-pages a {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .header-links .launch-link {
    margin-top: 0.85rem;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
}

/* ——— Editor's Picks (cards with editorsPick: true) ——— */
.badge-pick {
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid #0a0a0a;
  letter-spacing: 0.04em;
}
.card--pick {
  border: 1.5px solid #0a0a0a;
  background: var(--card);
  box-shadow: none;
}
.card--featured {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 550px);
    grid-auto-rows: min-content;
    column-gap: 2rem;
    row-gap: 0.65rem;
    align-items: start;
  }
  .card--featured > :not(.tweet-embed):not(.card-thread) {
    grid-column: 1;
  }
  .card--featured > .tweet-embed,
  .card--featured > .card-thread {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin-top: 0;
  }
  .card--featured h2 {
    font-size: 1.5rem;
  }
  .card--featured .card-blurb {
    font-size: 1.02rem;
  }
}
.editors-picks {
  margin-bottom: 1.5rem;
}
.editors-picks[hidden] { display: none; }
.picks-label {
  margin: 0 0 0.6rem;
  font-family:  Inter, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}


/* ——— Bot Usecases: flat black, gray, white ——— */
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.card {
  border: 1px solid var(--border);
}
.card:hover {
  border-color: #8a8a8a;
}
.card--pick,
.card--pick:hover {
  border: 1.5px solid var(--ink);
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.subtitle {
  max-width: 40rem;
}
.subtitle a {
  color: var(--ink);
  font-weight: 600;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.search {
  display: block;
  margin: 0 0 0.75rem;
}
.search-input {
  width: 100%;
  max-width: 34rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  -webkit-appearance: none;
}
.search-input:focus {
  border-color: var(--ink);
}
.card-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
}
.card-media {
  position: relative;
  display: block;
  margin: 0.1rem 0 0.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 16 / 10;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.media-tag {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #ffffff;
  background: #0a0a0a;
  border-radius: 4px;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.card-link {
  display: inline-block;
  max-width: 100%;
  padding: 0.22rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: #f2f2f2;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
}
.card-author {
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 0;
}
.card-author:hover .author-handle {
  text-decoration: underline;
}
.author-name {
  font-weight: 600;
}
.author-handle {
  color: var(--ink);
  font-weight: 600;
}
.card-likes {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.card-reply {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}
.card-reply:hover {
  color: #525252;
}
.picks-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.picks-grid .card--featured,
.picks-grid .card--featured:hover {
  display: flex;
  grid-column: auto;
  align-items: stretch;
}
.finder-result .card {
  margin-top: 0.4rem;
}
.site-footer p + p {
  margin-top: 0.3rem;
}
.surprise-card {
  max-width: 560px;
  margin: 1.25rem auto 0;
}

/* =========================================================
   Redesign layer: quiet, sharp, black / gray / white.
   One accent (ink). Hairlines instead of boxes. Media first.
   ========================================================= */
:root {
  --site-max: 1240px;
  --ink: #0a0a0a;
  --ink-soft: #5c5c5c;
  --ink-faint: #8f8f8f;
  --line: #e8e8e8;
  --line-strong: #d0d0d0;
  --fill: #f5f5f5;
  --radius: 12px;
  --header-h: 56px;
}
body {
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.006em;
}

/* Header: thinner, quieter */
.site-header {
  padding: 0;
  padding-top: var(--safe-top);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.header-inner { min-height: var(--header-h); }
.brand { gap: 0.55rem; }
.brand img { width: 24px; height: 24px; }
.brand-mark { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.header-links { font-size: 0.85rem; gap: 1.4rem; }
.header-links .nav-pages { gap: 1.4rem; }
.header-links .nav-pages a { font-weight: 500; color: var(--ink-soft); }
.header-links .nav-pages a:hover { color: var(--ink); }
.launch-link {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: var(--ink);
  font-weight: 500;
}
.scroll-footer-btn {
  width: 2rem; height: 2rem;
  border-radius: 8px;
  border-color: var(--line);
}

/* Hero: one statement, one line of support, one row of actions */
.hero { padding: 4.5rem 0 2.5rem; }
.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ink);
  max-width: 14ch;
}
.subtitle {
  margin-top: 1.1rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.subtitle a { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.subtitle a:hover { border-bottom-color: var(--ink); }
.hero-ctas {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.9rem;
}
.find-cta,
.hero-ctas .find-cta {
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 0.5rem;
}
.find-cta-arrow { animation: none; font-size: 1em; transition: transform 0.15s ease; }
.find-cta:hover .find-cta-arrow { transform: translateX(3px); }
.hero-ctas .find-cta--secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.hero-ctas .find-cta--secondary:hover {
  background: var(--fill);
  color: var(--ink);
  border-color: var(--line-strong);
}

/* Toolbar: chips and search on one line, sticky under the header */
.controls {
  position: sticky;
  top: calc(var(--header-h) + var(--safe-top));
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "chips search" "info info";
  align-items: center;
  column-gap: 1.5rem;
  padding: 0.75rem 0 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.controls::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--pad));
  background: #ffffff;
  z-index: -1;
}
.search { grid-area: search; position: relative; margin: 0; }
.search-input {
  max-width: none;
  height: 2.35rem;
  padding: 0 2.2rem 0 2.15rem;
  font-size: 0.875rem;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 0.7rem center;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.search-input::placeholder { color: var(--ink-faint); }
.search-input:focus { background-color: #ffffff; border-color: var(--ink); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-kbd {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  font: 500 0.72rem/1.4 Inter, system-ui, sans-serif;
  color: var(--ink-faint);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  pointer-events: none;
}
.search-input:focus + .search-kbd,
.search-input:not(:placeholder-shown) + .search-kbd { display: none; }

.chips {
  grid-area: chips;
  flex-wrap: nowrap;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -0.2rem;
  padding: 0 0.2rem;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 2.1rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
}
.chip:hover { background: var(--fill); color: var(--ink); }
.chip.active { background: var(--ink); color: #ffffff; }

.feed-info {
  grid-area: info;
  margin: 0;
  padding: 0.65rem 0 0.7rem;
  gap: 0.75rem;
}
.count, .last-refreshed { font-size: 0.78rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.count { color: var(--ink); font-weight: 500; }
.count::after { margin-left: 0.75rem; color: var(--line-strong); opacity: 1; }

/* Feed + grid */
.feed { padding-bottom: 5rem; }
.grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2.75rem 1.75rem;
}

/* Section heading */
.editors-picks {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.picks-label {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-faint);
}
.picks-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 2.75rem 1.75rem; }

/* Card: no box. Image, meta, title, line, author. */
.card,
.card:hover,
.card--pick,
.card--pick:hover {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.card-media {
  order: -1;
  margin: 0 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fill);
  aspect-ratio: 16 / 10;
}
.card-media img { transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.015); }
.card:hover .card-media { border-color: var(--line-strong); }
.media-tag {
  left: auto; right: 0.6rem; bottom: auto; top: 0.6rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.66rem; font-weight: 500;
  background: rgba(10, 10, 10, 0.82);
  border-radius: 5px;
}

/* Text only replies get a quiet panel in place of the image so the grid stays even */
.card:not(.card--media) {
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fill);
}
.card:not(.card--media):hover { border-color: var(--line-strong); }

.card-top { order: 0; justify-content: flex-start; gap: 0.5rem; margin-bottom: 0.35rem; }
.card-badges { display: inline-flex; }
.badge, .badge-category {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}
.card-date { font-size: 0.75rem; color: var(--ink-faint); }
.card-date::before { content: "·"; margin-right: 0.5rem; color: var(--line-strong); }

.card h2 {
  order: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.card-blurb {
  order: 2;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-links { order: 3; margin-top: 0.55rem; gap: 0.25rem 0.9rem; }
.card-link {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.card-link:hover { text-decoration-color: var(--ink); }
.card-foot {
  order: 4;
  margin-top: 0.85rem;
  padding-top: 0;
  border-top: 0;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.author-name { font-weight: 500; }
.author-handle { color: var(--ink); font-weight: 500; }
.card-likes { color: var(--ink-faint); }
.card-reply {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.card-reply::after { content: " ↗"; }
.card-reply:hover { color: var(--ink); }

/* Picks: bigger media, larger title */
.picks-grid .card h2 { font-size: 1.2rem; letter-spacing: -0.02em; }
.picks-grid .card-blurb { font-size: 0.95rem; }

.empty { padding: 4rem 0; color: var(--ink-faint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.25rem 0 calc(2.5rem + var(--safe-bottom)); }
.site-footer p { font-size: 0.78rem; color: var(--ink-faint); }
.site-footer .site-visits { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 0.6rem; }
.site-footer a { color: var(--ink-soft); }

/* Finder modal: match the new radius and buttons */
.finder-shell { border-radius: 16px; border-color: var(--line-strong); }
.finder-option { border-width: 1px; border-color: var(--line-strong); border-radius: 10px; }
.finder-btn { border-radius: 10px; font-weight: 500; }
.finder-title { font-weight: 600; letter-spacing: -0.03em; }

/* Tablet */
@media (max-width: 900px) {
  .controls { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "chips" "info"; row-gap: 0.6rem; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-h: 52px; }
  .hero { padding: 2.5rem 0 1.75rem; }
  .hero h1 { font-size: 2.35rem; letter-spacing: -0.04em; }
  .subtitle { font-size: 1rem; margin-top: 0.85rem; }
  .hero-ctas { margin-top: 1.4rem; flex-wrap: nowrap; width: 100%; }
  .hero-ctas .find-cta { flex: 1 1 0; width: auto; min-height: 2.75rem; font-size: 0.92rem; padding: 0 0.75rem; }
  .controls { position: static; margin-bottom: 1.5rem; padding-top: 0.25rem; }
  .search-kbd { display: none; }
  .chips { margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .grid, .picks-grid { gap: 2.25rem; }
  .editors-picks { margin-bottom: 2.5rem; padding-bottom: 2.5rem; }
  .header-links .launch-link { border-radius: 10px; }
}

/* Refinements */
.find-cta-label { white-space: nowrap; }
@media (min-width: 901px) {
  .controls { align-items: start; grid-template-columns: minmax(0, 1fr) 280px; }
  .chips { flex-wrap: wrap; overflow: visible; row-gap: 0.25rem; margin: 0; padding: 0; }
  .chip { height: 2rem; padding: 0 0.7rem; }
  .search-input { height: 2.1rem; }
}
@media (max-width: 640px) {
  .hero-ctas .find-cta { font-size: 0.875rem; gap: 0.35rem; }
}

/* =========================================================
   v3 layer, informed by Mobbin references:
   Mobbin Community collections (centered hero), FLORA Editor's
   Choice (four across picks row with a one line description),
   Mobbin Sites and Rive Community (uniform tiles, avatar + name
   + count meta row), Character AI and Substack (single chip row,
   swipeable featured row on mobile).
   ========================================================= */

/* Hero: centered, compact */
.hero { padding: 4rem 0 2.75rem; text-align: center; }
.hero h1 { margin-inline: auto; max-width: 16ch; font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.subtitle { margin-inline: auto; max-width: 36rem; }
.hero-ctas { justify-content: center; }

/* Toolbar: one row. Categories scroll, search on the right */
.controls {
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "chips search";
  align-items: center;
  padding: 0.6rem 0;
  margin-bottom: 2.75rem;
}
.chips-wrap { grid-area: chips; position: relative; min-width: 0; }
.chips { flex-wrap: nowrap !important; overflow-x: auto !important; margin: 0 !important; padding: 0 !important; scroll-behavior: smooth; }
.chips-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  font: 500 1.15rem/1 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 6px #ffffff;
}
.chips-arrow:hover { border-color: var(--ink); }
.chips-arrow[hidden] { display: none; }
.chips-arrow--prev { left: 0; }
.chips-arrow--next { right: 0; }

/* Section heads: title, one line of context, meta on the right */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0 0 1.25rem;
}
.picks-label {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-sub { margin: 0; flex-basis: 100%; font-size: 0.875rem; color: var(--ink-faint); }
.section-meta { margin: 0; display: flex; gap: 0.75rem; align-items: baseline; }
.section-meta .count { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.section-meta .count::after { content: none; }
.section-meta .last-refreshed { font-size: 0.8rem; color: var(--ink-faint); }
.section-meta .last-refreshed::before { content: "·"; margin-right: 0.75rem; color: var(--line-strong); }

/* Editor's picks: four across, same anatomy as the grid */
.editors-picks { margin-bottom: 3.25rem; padding-bottom: 3.25rem; }
.picks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 1.5rem !important; }
.picks-grid .card h2 { font-size: 1rem; }
.picks-grid .card-blurb { font-size: 0.875rem; -webkit-line-clamp: 2; }
.picks-grid .card-media { aspect-ratio: 4 / 3; }

/* Grid: denser, every card the same anatomy */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2.5rem 1.5rem; }

/* Media tile: flat fill frame, no outline */
.card-media { border: 0; background: var(--fill); margin-bottom: 0.9rem; }
.card:hover .card-media { border: 0; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

/* Text replies: the reply itself becomes the tile, so rows line up */
.card.card--text,
.card.card--text:hover {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.card-quote {
  order: -1;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  margin: 0 0 0.9rem;
  padding: 1.25rem 1.3rem;
  background: var(--fill);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.15s ease;
}
.card-quote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-quote p::before { content: "\201C"; }
.card-quote p::after { content: "\201D"; }
.card-quote:hover { background: #ececec; color: var(--ink); }

/* Meta row: avatar, name, likes, reply */
.card-author { display: inline-flex; align-items: center; gap: 0.45rem; }
.avatar {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
}
.card-author .author-name,
.card-author .author-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-author .author-handle { min-width: 0; }
.card-foot { margin-top: 0.75rem; }

/* Tablet */
@media (max-width: 1100px) {
  .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .controls { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "chips"; row-gap: 0.6rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: 2.25rem 0 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .controls { margin-bottom: 1.75rem; padding: 0.25rem 0 0.75rem; }
  .chips-wrap { margin: 0 calc(-1 * var(--pad)); }
  .chips { padding: 0 var(--pad) !important; }
  .chips-arrow { display: none !important; }
  .chip { border: 1px solid var(--line-strong); border-radius: 999px; height: 2.1rem; }
  .chip.active { border-color: var(--ink); }
  /* Picks: a swipeable row so the feed starts sooner */
  .editors-picks { margin-bottom: 2.25rem; padding-bottom: 2.25rem; }
  .picks-grid {
    display: grid;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 1rem !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad);
    scroll-padding-inline: var(--pad);
  }
  .picks-grid::-webkit-scrollbar { display: none; }
  .picks-grid .card { scroll-snap-align: start; }
  .section-meta .last-refreshed { display: none; }
  .card-quote p { font-size: 1rem; }
}

/* v3 fixes */
.hero h1 { max-width: 22ch; text-wrap: balance; }
.subtitle { text-wrap: pretty; }
.picks-grid .card-author { flex: 1 1 0; }
@media (max-width: 640px) { .hero h1 { max-width: 12ch; } }
.card-quote { align-items: center; }
@media (max-width: 640px) { .hero h1 { max-width: none; } }


/* ——— Finder: phone full-height sheet (v3 mobile fix) ——— */
@media (max-width: 640px) {
  .finder-backdrop { background: rgba(0, 0, 0, 0.6); }
  .finder-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    height: 92vh;
    height: 92dvh;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    animation: finder-sheet 0.28s ease;
  }
  .finder-shell {
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--line-strong, #d4d4d4);
    border-bottom: none;
    background: #ffffff;
    overflow: hidden;
  }
  .finder-header {
    position: static;
    padding: 0.9rem 1rem 0.25rem;
    align-items: center;
  }
  .finder-eyebrow { font-size: 0.66rem; margin-bottom: 0.15rem; }
  .finder-title { font-size: 1.375rem; line-height: 1.15; }
  .finder-close { width: 2.5rem; height: 2.5rem; font-size: 1.4rem; }
  .finder-progress { padding: 0.4rem 1rem 0; }
  .finder-step-label { margin-top: 0.3rem; }
  .finder-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 0.85rem 1rem 1rem;
  }
  .finder-question { font-size: 1.15rem; margin-bottom: 0.8rem; }
  .finder-options { flex-wrap: nowrap; gap: 0.5rem; }
  .finder-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  .finder-footer {
    position: static;
    flex-shrink: 0;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line, #e5e5e5);
    background: #ffffff;
  }
  .finder-btn { min-height: 48px; padding: 0.7rem 1.2rem; }
  .finder-btn-ghost { border-color: var(--line-strong, #d4d4d4); color: var(--ink); }
}

/* Desktop modal: let the body size to its content (was collapsing to ~30px) */
@media (min-width: 641px) {
  .finder-shell { flex: 1 1 auto; }
  .finder-body { flex: 1 1 auto; }
}

/* Touch screens: no sticky hover highlight on options after a tap */
@media (hover: none) {
  .finder-option:hover:not(.selected) { background: #ffffff; border-color: var(--line-strong, #d4d4d4); }
}

/* =========================================================
   About page (flat, black/gray/white)
   ========================================================= */
.about-main { max-width: 760px; padding-top: 3rem; padding-bottom: 4rem; }
.about-hero { margin-bottom: 2.5rem; }
.about-title { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.about-lede { color: var(--ink-soft); font-size: 1.125rem; margin: 0; }
.about-section { padding: 2rem 0; border-top: 1px solid var(--border-soft); }
.about-section p { margin: 0 0 0.85rem; font-size: 1rem; line-height: 1.65; }
.about-section p:last-child { margin-bottom: 0; }
.about-h { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 1rem; }
.about-notice { border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--cream); }
.about-quote { margin: 1.25rem 0 0; padding: 1.5rem 1.5rem 1.25rem; background: var(--cream-deep); border-left: 3px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; }
.about-quote blockquote { margin: 0; }
.about-quote blockquote p { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 0.75rem; }
.about-quote figcaption { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline; color: var(--ink-soft); font-size: 0.9rem; }
.about-quote figcaption a { color: var(--ink-soft); }
.about-quote-name { font-weight: 600; color: var(--ink); }
.about-stack { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.about-layer { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: start; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--card); }
.about-layer:first-child { background: var(--cream-deep); }
.about-layer-name { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); padding-top: 0.2rem; }
.about-layer p { font-size: 0.95rem; color: var(--ink-soft); }
.about-section code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em; background: var(--cream-deep); border: 1px solid var(--border-soft); border-radius: 4px; padding: 0.05em 0.3em; }
.about-layer:first-child code { background: var(--cream); }
@media (max-width: 640px) {
  .about-main { padding-top: 2rem; }
  .about-layer { grid-template-columns: 1fr; gap: 0.35rem; }
  .about-quote { padding: 1.25rem 1.1rem 1rem; }
}

/* ——— Submit page ——— */
.header-links .launch-link[aria-current="page"] { color: #fff !important; }
.submit-main { max-width: 640px; }
.submit-form { display: grid; gap: 1.35rem; border-top: 1px solid var(--border-soft); padding-top: 2rem; }
.sf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sf-legend { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.sf-req { color: var(--ink); font-weight: 700; }
.sf-opt { margin-left: 0.35rem; font-size: 0.75rem; font-weight: 500; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.sf-field { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.sf-field > label, .sf-field > legend { font-size: 0.95rem; font-weight: 600; color: var(--ink); padding: 0; }
.sf-field > legend { margin-bottom: 0.4rem; }
.sf-field input[type="text"], .sf-field input[type="email"], .sf-field input[type="url"], .sf-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.85rem; box-shadow: none;
  transition: border-color 0.15s ease;
}
.sf-field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.sf-field input::placeholder, .sf-field textarea::placeholder { color: var(--ink-faint); }
.sf-field input:focus, .sf-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sf-field [aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.sf-hint { margin: 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.45; }
.sf-err { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.sf-err::before { display: inline-block; width: 1.1rem; height: 1.1rem; margin-right: 0.35rem; border-radius: 999px; background: var(--ink); color: #fff; text-align: center; font-size: 0.75rem; line-height: 1.1rem; content: "!"; }
.sf-file { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 0.75rem; border: 1px dashed var(--border); border-radius: var(--radius); padding: 0.7rem 0.85rem; background: var(--cream-deep); cursor: pointer; }
.sf-field > label.sf-file { padding: 0.7rem 0.85rem; font-size: inherit; }
.sf-file + .sf-file { margin-top: 0.5rem; }
.sf-file-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.sf-file input[type="file"] { font: inherit; font-size: 0.85rem; color: var(--ink-soft); min-width: 0; max-width: 100%; }
.sf-file input[type="file"]::file-selector-button { font: inherit; font-size: 0.85rem; font-weight: 600; margin-right: 0.75rem; padding: 0.45rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; }
.sf-actions { display: grid; gap: 0.75rem; padding-top: 0.5rem; }
.sf-actions .sf-submit { margin-top: 0; width: 100%; min-height: 3rem; border-radius: var(--radius); }
.sf-actions .sf-submit:disabled { opacity: 0.6; cursor: progress; }
.sf-note { margin: 0; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.45; }
.sf-thanks-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sf-thanks-actions .find-cta { margin-top: 0; border-radius: var(--radius); }
@media (max-width: 640px) {
  .submit-form { padding-top: 1.5rem; gap: 1.2rem; }
  .sf-file { grid-template-columns: 1fr; gap: 0.4rem; }
  .sf-thanks-actions .find-cta { flex: 1 1 100%; }
}
/* Submitted cards */
.badge-submitted { background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
