/*
 * The home page. One page, three bands, no cards.
 *
 * The products used to be two bordered tiles in an auto-fit grid, which is
 * what an app does with a list of things. Here they are entries in a
 * catalogue: numbered in the margin, ruled off from each other, and given
 * enough room that two of them do not look like an empty dashboard.
 */

/* ------------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(4rem, 13vw, 9rem) clamp(3.5rem, 10vw, 7rem);
}

.hero .kicker {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-size: clamp(3.25rem, 11vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}

.hero .lead {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* --------------------------------------------------------------- products */

.band {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
}

.band-label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: work;
}

.work {
  counter-increment: work;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 0;
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule-soft);
}

/* 01, 02 — a catalogue number, not a step in a wizard. Zero-padded because
   a bare "1" beside a heading reads as a footnote marker. */
.work::before {
  content: '0' counter(work);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding-top: 0.85em;
}

.work-body {
  max-width: var(--measure);
}

.work h3 {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.work h3 a {
  text-decoration: none;
}

.work h3 a:hover {
  color: var(--accent);
}

/* "Not released yet" — a fact, set as a marginal note in the label face. It
   was a pill; a pill beside a serif heading is the single most app-like
   object a page like this can have. */
.work .status {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  /* Raised to sit against the cap-height of the display face beside it. */
  vertical-align: 0.55em;
  margin-left: 0.65rem;
}

.work p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.work-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15em;
}

.work-links a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

@media (max-width: 40rem) {
  .work {
    grid-template-columns: 1fr;
  }

  .work::before {
    padding-top: 0;
    margin-bottom: 0.6rem;
  }
}

/* ------------------------------------------------------------------ index */

/*
 * "Where things are" — the site's own contents page.
 *
 * A single-column hanging list, not a grid of tiles. Five items in an auto-fit
 * grid leave an orphan on the last row, and because each cell drew its own
 * bottom rule that orphan ended the block with a line stopping two thirds of
 * the way across the page — which reads as a rendering fault rather than a
 * layout. One column cannot have an orphan, and it matches the label-and-value
 * shape the facts table and the document meta block already use.
 */
.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.index li {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0 2.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule-soft);
}

.index h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
}

.index h3 a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1em;
}

.index h3 a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.index p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 46ch;
  /* Optically aligned to the serif heading beside it rather than to its box. */
  padding-top: 0.35em;
}

@media (max-width: 40rem) {
  .index li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .index p {
    padding-top: 0;
  }
}
