/* ==========================================================================
   Lyndryss — the hub page (lyndryss.com)
   --------------------------------------------------------------------------
   Theme tokens are shared verbatim with the map and the wiki, so the three
   sites read as one product. Keep them in sync if any one of them changes.
   ========================================================================== */

:root {
  --bg: #14171c;
  --panel: #1d2128;
  --panel-raised: #262b34;
  --border: #333a45;
  --text: #e3e6eb;
  --text-muted: #9aa3b0;
  --accent: #5aa9e6;
  --accent-soft: rgba(90, 169, 230, 0.18);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --ease: 200ms ease;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Amarante", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* A faint glow behind the title, so the page isn't a flat slab of dark. */
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(90, 169, 230, 0.10), transparent 70%);
  background-repeat: no-repeat;
}

/* ---------- Layout ---------- */
.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 20px 32px;
}

/* ---------- Header ---------- */
.hub-header {
  text-align: center;
  margin-bottom: 44px;
}

.hub-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1.1;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

.hub-tagline {
  margin: 0 auto;
  max-width: 34em;
  color: var(--text-muted);
}

/* ---------- Tool cards ---------- */
.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  /* auto-fit + minmax: two cards sit side by side, a third or fourth wraps
     on its own, and everything collapses to one column on a phone. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease),
              transform var(--ease), box-shadow var(--ease);
}

.tool-card:hover,
.tool-card:focus-visible {
  background: var(--panel-raised);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.tool-card__icon {
  display: block;
  margin-bottom: 14px;
}

.tool-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.tool-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Pushed to the bottom so the prompt lines up across cards of unequal
   description length. */
.tool-card__go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.hub-footer {
  margin-top: auto;
  padding-top: 56px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Users who prefer reduced motion get the colour changes, not the lift. */
@media (prefers-reduced-motion: reduce) {
  .tool-card {
    transition: border-color var(--ease), background var(--ease);
  }

  .tool-card:hover,
  .tool-card:focus-visible {
    transform: none;
  }
}
