/* Executive Puzzles — landing page
   Mirrors the app's home screen: centered serif title with a copper rule,
   then a two-column grid of cards, each a navy illustration panel above a
   white text block. */

.hero { text-align: center; margin-bottom: 40px; }

.hero h1 { margin-bottom: 12px; }

.tagline {
  font-family: var(--rounded);
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Card grid ---------- */

.card-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card { margin: 0; }

.card a {
  display: block;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(10, 47, 82, 0.07), 0 6px 18px rgba(10, 47, 82, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card a:hover,
.card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(10, 47, 82, 0.10), 0 12px 28px rgba(10, 47, 82, 0.10);
}

/* ---------- Illustration panel ---------- */

.card-art {
  position: relative;
  display: block;
  aspect-ratio: 200 / 124;
  background: var(--navy);
  overflow: hidden;
}

.card-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Play affordance ---------- */

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 47, 82, 0.55);
  border: 1.5px solid rgba(241, 239, 232, 0.6);
  opacity: 0;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6.5px 0 6.5px 11px;
  border-color: transparent transparent transparent var(--cream);
}

.card a:hover .play,
.card a:focus-visible .play {
  opacity: 1;
  background: rgba(193, 121, 59, 0.9);
}

/* Always visible on touch devices, where there is no hover */
@media (hover: none) {
  .play { opacity: 1; background: rgba(10, 47, 82, 0.62); }
}

/* ---------- Card text ---------- */

.card-text {
  display: block;
  padding: 16px 18px 20px;
  text-align: center;
}

.card-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.card-tagline {
  display: block;
  font-family: var(--rounded);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.card a:hover .card-name,
.card a:focus-visible .card-name { color: var(--copper); }

/* ---------- Footnote ---------- */

.footnote {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Focus ---------- */

.card a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

/* ---------- Responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  .card a { transition: none; }
  .card a:hover, .card a:focus-visible { transform: none; }
}

@media (max-width: 560px) {
  .card-grid { gap: 16px; }
  .card-name { font-size: 18px; }
  .card-tagline { font-size: 13px; }
  .card-text { padding: 13px 12px 16px; }
}

@media (max-width: 380px) {
  .card-grid { grid-template-columns: 1fr; }
}
