/* The home page of the Édito design (pages.LandingPage): the hero in
   Newsreader with its search, the spotted-early proof, the popular topics and
   their #1, every topic by category, the collections, and the Monday digest's
   band with a digest that went out. */

.h-main { display: block; }

/* Hero */
.h-hero { padding: clamp(40px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.h-hero__title {
  max-width: 18ch; margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(clamp(34px, 5.6vw, 68px) * var(--display-scale)); line-height: 1.06; letter-spacing: var(--display-tracking);
}
.h-hero__title span, .h-hero__title em { display: block; }
.h-hero__title em { color: var(--muted); font-style: var(--display-em); }
.h-hero__sub { max-width: 56ch; margin: 24px 0 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; }
/* The hero's two actions, in view without scrolling on a computer and a phone
   (owner, 2026-11-07); on a phone each takes the whole width. */
.h-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
@media (max-width: 559.98px) { .h-hero__ctas .btn { flex: 1 1 100%; } }
.h-search { position: relative; max-width: 560px; margin: 28px 0 0; }
.h-hero__ctas + .h-search { margin-top: 20px; }
.h-search__icon { position: absolute; left: 15px; top: 15px; line-height: 0; color: var(--muted); pointer-events: none; }
.h-search__input { width: 100%; min-height: 48px; padding-left: 42px; font-size: 16px; }
.h-hero__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.h-hero__why { margin-top: 4px; }
.h-hero__why a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.h-hero .freshness:not(.freshness--stale) { display: none; }

/* The first screen's projects (owner, 2026-11-20): beside the hero on a
   computer, under it on a phone. Each gives its topic and rank, its name, our
   one-line summary, its figures and, when Upstar spotted it early, the proof.
   No picture and two lines of summary at most, so nothing moves once drawn. */
@media (min-width: 1100px) {
  .h-top--picks { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .h-top--picks .h-hero__title { font-size: calc(clamp(34px, 4.4vw, 58px) * var(--display-scale)); }
  .h-top--picks .h-picks { padding-top: clamp(40px, 8vw, 104px); }
}
@media (max-width: 1099.98px) {
  .h-top--picks .h-hero { padding-bottom: 28px; }
}
.h-picks { padding-bottom: 8px; }
.h-picks__title {
  margin: 0 0 4px; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(20px * var(--display-scale-sm)); letter-spacing: var(--display-tracking-sm); line-height: 1.2;
}
.h-pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 0; border-top: 1px solid var(--border); }
.h-pick__kicker { margin: 0; font-size: 12px; color: var(--muted); }
.h-pick__kicker a { color: inherit; text-decoration: none; }
.h-pick__kicker a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.h-pick__name { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.h-pick__name > .avatar { margin-top: -1px; }
.h-pick__name a { min-width: 0; color: var(--text); text-decoration: none; }
.h-pick__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-pick__owner { font-weight: 400; color: var(--muted); }
.h-pick__lead {
  margin: 0; font-size: 14px; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.h-pick__figs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.h-pick__gain .num { margin-right: 2px; font-size: 15px; font-weight: 500; color: var(--rise-text); }
.h-pick__fact .num { color: var(--text); }
.h-pick__spot { display: flex; align-items: center; gap: 5px; margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: var(--spot); }
.h-pick__spot svg { flex: none; }

/* Sections */
.h-sec { padding: 24px 0 48px; }
.h-hero + .h-sec, .h-top + .h-sec { padding-top: 8px; }
.h-sec--last { padding: 8px 0 72px; }
.h-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.h-sec__titles { display: flex; flex-direction: column; gap: 2px; }
.h-sec__title {
  margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(20px * var(--display-scale-sm)); letter-spacing: var(--display-tracking-sm); line-height: 1.2;
}
.h-sec__sub { font-size: 13px; color: var(--muted); }
.h-sec__link { font-size: 14px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Cards */
.h-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; box-sizing: border-box;
  color: var(--text); text-decoration: none; background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--border);
}
.h-card:hover { color: var(--text); background: var(--hover); box-shadow: 0 0 0 1px var(--border-strong); }

/* Popular topics */
.h-feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h-feat__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.h-feat__head svg { flex: none; color: var(--muted); }
.h-feat__name { font-size: 16px; font-weight: 600; }
.h-feat__top { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h-feat__kicker { font-size: 11px; color: var(--muted); }
.h-feat__repo { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.h-feat__repo-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-feat__spot { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; line-height: 1.3; color: var(--spot); }
.h-feat__gain { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.h-feat__num { font-family: var(--font-mono); font-size: 20px; line-height: 1; font-weight: 500; color: var(--rise-text); }
.h-feat__unit { font-size: 12px; color: var(--muted); }
.h-feat__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Every topic, by category */
.h-cats { columns: 150px; column-gap: 32px; }
.h-sec__head + .h-cats { margin-top: 4px; }
.h-cat { break-inside: avoid; padding-bottom: 20px; }
.h-cat__name {
  display: flex; align-items: center; gap: 10px; padding: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.h-cat__name:hover { color: var(--text); }
.h-cat__rule { width: 16px; height: 1px; flex: none; background: var(--border-strong); }
.h-cat__topic { display: block; padding: 4px 0; font-size: 14px; color: var(--text); text-decoration: none; }
.h-cat__topic:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Collections */
.h-colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.h-coll { gap: 8px; }
.h-coll__kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-coll__name { font-size: 16px; font-weight: 600; }
.h-coll__desc { flex: 1; font-size: 13px; color: var(--muted); }
.h-coll__meta { font-size: 12px; color: var(--muted); }

/* The Monday digest */
.h-band { scroll-margin-top: 64px; background: var(--surface); box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border); }
.h-band__in { padding-block: clamp(40px, 6vw, 64px); }
.h-band__title {
  max-width: 26ch; margin: 0; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: calc(clamp(24px, 3vw, 32px) * var(--display-scale-sm)); letter-spacing: var(--display-tracking-sm); line-height: 1.15; text-wrap: balance;
}
.h-band__sub { max-width: 52ch; margin: 12px 0 0; color: var(--muted); }
.h-band__member { margin: 24px 0 0; }
.h-band__member .btn { min-height: 44px; padding: 0 18px; }
.h-band__sample { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Spotted early: the band under the hero */
.h-proof__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 32px; align-items: center; padding: 20px 24px;
  background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--border);
}
.h-proof__label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--spot); }
.h-proof__fig { display: flex; align-items: baseline; gap: 10px; margin: 0; white-space: nowrap; }
.h-proof__then { font-size: 20px; color: var(--muted); }
.h-proof__arrow { font-size: 16px; color: var(--muted); }
.h-proof__now { font-size: 32px; line-height: 1; font-weight: 500; color: var(--rise-text); }
.h-proof__unit { font-size: 13px; color: var(--muted); }
.h-proof__text { max-width: 60ch; margin: 0; font-size: 15px; line-height: 1.5; }
.h-proof__text a { color: var(--text); text-underline-offset: 3px; }
.h-proof__stat { max-width: 60ch; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--muted); }
.h-proof__stat .num { color: var(--text); }
.h-proof__more { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* The Monday digest beside the form: a real one, sent */
.h-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; }
.h-mail { padding: 18px 20px; background: var(--bg); border-radius: 8px; box-shadow: 0 0 0 1px var(--border); }
.h-mail__from { margin: 0; font-size: 12px; color: var(--muted); }
.h-mail__slug { white-space: nowrap; }
.h-mail__subj { margin: 4px 0 12px; font-size: 15px; font-weight: 600; }
.h-mail__list { margin: 0; padding: 0; list-style: none; }
.h-mail__row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.h-mail__rank { font-size: 13px; color: var(--muted); }
.h-mail__repo { min-width: 0; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.h-mail__desc { grid-column: 2 / 4; overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.h-mail__gain { font-size: 13px; color: var(--rise-text); }
.h-mail__more { margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.h-mail__link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 959.98px) {
  .h-band__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 719.98px) {
  .h-proof__card { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .h-proof__now { font-size: 28px; }
  .h-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-cat__topic { padding: 10px 0; }
}
