/* CSVisualizer — home page (index.html). The banner comes from css/baner-additions.css, unchanged. */
html, body { margin: 0; min-height: 100%; }
body.home-page {
  /* v0.9.7: the site design tokens (css/site-header.css), light and dark */
  --ink: var(--csv-ink);
  --muted: var(--csv-ink-2);
  --navy: var(--csv-accent-text);
  --line: var(--csv-line);
  --panel: var(--csv-surface);
  --soft: var(--csv-surface-2);
  background: var(--csv-bg);
  color: var(--ink);
  font-family: var(--csv-font);
  display: flex;
  flex-direction: column;
}

.home { max-width: 1100px; width: 100%; margin: 0 auto; padding: 44px 24px 64px; box-sizing: border-box; }
.home-intro { text-align: start; margin-bottom: 34px; }
.home-title { margin: 0; color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; }
.home-sub { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 820px; }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.home-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px;
  background: var(--panel); border: 1px solid var(--line); border-inline-start: 5px solid var(--accent, var(--navy)); border-radius: 12px;
  color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.home-card:hover, .home-card:focus-visible { box-shadow: 0 10px 28px #0b224a1f; transform: translateY(-2px); outline: none; }
.home-card:focus-visible { box-shadow: 0 0 0 3px #18377544; }
.home-card[data-page="visualizer"] { --accent: #1A7DFF; }
.home-card[data-page="catalog"] { --accent: #00A3C4; }
.home-card[data-page="help"] { --accent: #6D5BD0; }
html[data-csv-theme="dark"] .home-card[data-page="help"] { --accent: #A99BFF; }
html[data-csv-theme="dark"] .home-card[data-page="visualizer"] { --accent: #5CC8FF; }
html[data-csv-theme="dark"] .home-card[data-page="catalog"] { --accent: #22E3F2; }
.home-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--soft); color: var(--accent); }
.home-card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-card-title { font-size: 21px; font-weight: 800; }
.home-card-text { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* v0.3 II-G: start by programming language + the help link */
.home-start { margin-top: 34px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.home-start-title { margin: 0 0 14px; color: var(--ink); font-size: 20px; font-weight: 800; }
.home-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.home-lang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.home-lang-name { min-width: 52px; font: 800 18px var(--csv-mono); color: var(--ink); }
.home-lang-link { padding: 6px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; }
.home-lang-link:hover, .home-lang-link:focus-visible { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px #18377522; }
.home-help { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.home-help-link { color: var(--navy); font-weight: 700; }

@media (max-width: 620px) {
  .home { padding: 28px 16px 48px; }
  .home-title { font-size: 24px; }
}

/* v0.9.7: the "language capabilities" link of each programming language */
.home-lang-link.is-docs { background: transparent; }
