/* ─────────────────────────────────────────────────────────────────────────
   The landing screen: a prompt and a row of cards, centred in the viewport.
   It is the only page with no footer bar, so it fills the screen exactly.
   ───────────────────────────────────────────────────────────────────────── */
.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  gap: 2rem;
  padding: 2rem var(--page-pad-x);
  box-sizing: border-box;
}

.prompt-symbol,
.prompt-text {
  color: var(--fg);
}

.landing-prompt {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--fg);
  text-shadow: 0 0 8px rgba(var(--fg-rgb), 0.6);
}

.landing-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1500px;
}

.landing-card {
  position: relative;
  width: clamp(160px, 16.5vw, 260px);
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(var(--fg-rgb), 0.35);
  background-color: rgba(var(--fg-rgb), 0.03);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.landing-card:is(:hover, .is-hover),
.landing-card.highlighted {
  border-color: var(--fg);
  background-color: rgba(var(--fg-rgb), 0.07);
  box-shadow: 0 0 18px rgba(var(--fg-rgb), 0.35), inset 0 0 10px rgba(var(--fg-rgb), 0.06);
  transform: scale(1.04);
}

.landing-card.selected {
  background-color: rgba(var(--fg-rgb), 0.2);
  transform: scale(0.97);
  box-shadow: 0 0 30px rgba(var(--fg-rgb), 0.6);
}

.landing-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.card-icon {
  display: block;
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}

.landing-card-tag {
  font-size: clamp(0.6rem, 0.75vw, 0.85rem);
  letter-spacing: 0.2em;
  color: rgba(var(--fg-rgb), 0.6);
  margin-bottom: 0.15rem;
}

.landing-card-title {
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  color: var(--fg);
  text-shadow: 0 0 12px rgba(var(--fg-rgb), 0.5);
  line-height: 1;
  text-transform: uppercase;
}

.landing-card-sub {
  font-size: clamp(0.65rem, 0.85vw, 0.95rem);
  letter-spacing: 0.2em;
  color: rgba(var(--fg-rgb), 0.7);
  text-transform: uppercase;
}

.landing-card-divider {
  width: 40%;
  height: 1px;
  background: rgba(var(--fg-rgb), 0.3);
  margin: 0.5rem 0;
}

.landing-card-desc {
  font-size: clamp(0.62rem, 0.8vw, 0.88rem);
  letter-spacing: 0.04em;
  color: rgba(var(--fg-rgb), 0.8);
  line-height: 1.4;
}

.landing-card-arrow {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(var(--fg-rgb), 0.4);
  transition: color 0.2s ease;
}


/* Five cards need to reflow before they get unreadably small. */
@media (max-width: 1100px) {
  .landing-card {
    width: clamp(150px, 28vw, 230px);
  }
}

@media (max-width: 620px) {
  /* The cards no longer have to fit one screen on a phone; the page scrolls
     and the body unlocks so nothing is cut off below the fold. */
  body.landing {
    overflow-y: auto;
  }

  .landing-container {
    min-height: 100svh;
    padding: 2.5rem var(--page-pad-x) 3rem;
  }

  .landing-cards {
    gap: 0.9rem;
  }

  .landing-card {
    width: clamp(130px, 42vw, 200px);
  }
}
