/* Start page (index.html) and 404.html. Owned by slice 0. */

.start { min-height: 100dvh; display: flex; flex-direction: column; padding-block: var(--s-4) var(--s-5); }
.start .subjects { display: grid; grid-template-columns: repeat(2, minmax(max-content, 1fr)); gap: var(--s-3); }

/* the choices: big rows, whole row is the link, "Start" is always visible (no hover-only affordance) */
.choices { margin-top: auto; padding-top: var(--s-6); container: choices / inline-size; }
.choice {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "d" "go"; row-gap: var(--s-2);
  padding-block: var(--s-4); border-top: var(--rule) solid var(--text); text-decoration: none;
}
.choice:last-child { border-bottom: var(--rule) solid var(--text); }
.choice .t {
  grid-area: t; font-family: var(--font-display); font-weight: 500; line-height: 0.98; letter-spacing: -0.025em;
  font-size: min(var(--t-hero), 10.4cqi);
  transition: transform var(--dur-3) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.choice .d { grid-area: d; max-width: 44ch; font-size: var(--t-lead); line-height: 1.35; color: var(--text-muted); }
.choice .go { grid-area: go; justify-self: start; min-width: 8.5rem; margin-top: var(--s-2); }
.choice:active .go { transform: translateY(1px) scale(0.98); }

@container choices (min-width: 40rem) {
  .choice { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "d go"; column-gap: var(--s-5); align-items: center; }
  .choice .go { margin: 0; }
}

/* tall tablet screens: keep the choices near the middle instead of the bottom edge */
@media (min-width: 600px) and (orientation: portrait) { .choices, .lost { margin-bottom: auto; } }

@media (hover: hover) {
  .choice:hover .t { transform: translateX(0.08em); }
  .choice:hover .go { --btn-bg: var(--text-muted); --btn-bd: var(--text-muted); }
  .choices:has(.choice:hover) .choice:not(:hover) .t { color: var(--text-muted); }
}

/* 404 */
.lost { margin-top: auto; padding-top: var(--s-4); border-top: var(--rule) solid var(--text); }
.lost .lead { margin-top: var(--s-4); }
