/* The home page's own layout (plans/platform/09-home-page-and-editor.md; src/views/site/home.tsx): what places its
   parts. The elements inside them are the kit's (css/kit-site.css). Every file under css/ loads on every page, so
   every rule here is under a .hm- class. */

/* The line under a form over a picture (the top's, the closing band's): small, and in the full text colour, which
   holds its contrast over the picture's scrim. */
.st .hm-fine { font-size: 13px; line-height: 19px; color: var(--text); max-width: 560px; }

/* The top's row under its form or its buttons: the Discord button (phase E) and, in News, the link to the news. */
.hm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }
.hm-more > .st-hero__more { margin-top: 0; }

/* What it is: the two number tiles with the arrow between them, and the words beside them. */
.hm-core { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hm-core__nums { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.hm-core__to { align-self: center; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--gold-300); }
.hm-core__text { display: flex; flex-direction: column; gap: 14px; }
.hm-core__lead { font-family: var(--font-display); font-size: 20px; line-height: 29px; color: var(--text); }
.st .hm-core__lines { margin: 0; padding-left: 20px; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }

/* The news part's head: the heading at the left, the link to all the news at the right, on the heading's base. */
.hm-pager { align-items: flex-end; margin-bottom: 32px; }
.hm-pager > .st-head2 { margin-bottom: 0; }

/* Run your own realm: the framed row under the columns. */
.hm-ownrow { margin-top: 30px; }

@media (max-width: 760px) {
  .hm-core { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hm-core__nums { gap: 10px; }
  .hm-core__to { font-size: 26px; }
  .hm-core__lead { font-size: 18px; line-height: 27px; }
  .hm-pager { align-items: flex-start; margin-bottom: 18px; }
  .hm-ownrow { margin-top: 22px; }
}

/* Too narrow for the two tiles side by side (the longer figure would leave its tile): one under the other, the arrow
   turned to point down. */
@media (max-width: 370px) {
  .hm-core__nums { grid-template-columns: minmax(0, 1fr); }
  .hm-core__to { justify-self: center; transform: rotate(90deg); }
}
