/* e-kat.ca home page
   Visual language borrowed from Snowflake (Nunito + Baloo 2, rainbow header,
   thick rounded cards) so the hub and the sub-sites feel like one place. */

:root {
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee6;
  --surface: #ffffff;
  --page: linear-gradient(160deg, #fff8e1 0%, #e8f4fd 50%, #f3e8ff 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--page);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.site-header {
  background: linear-gradient(135deg, #ff6b9d, #ffa94d, #ffd43b, #69db7c, #4dabf7, #cc5de8);
  background-size: 300% 300%;
  animation: rainbow 8s ease infinite;
  padding: 34px 20px 28px;
  text-align: center;
}

@keyframes rainbow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; }
}

.site-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .18);
  line-height: 1.1;
}

.site-title em { font-style: normal; opacity: .85; }

.site-tagline {
  color: rgba(255, 255, 255, .94);
  font-size: .95rem;
  font-weight: 700;
  margin-top: 6px;
}

/* ---------- layout ---------- */

.wrap {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 16px 44px;
}

.intro { text-align: center; margin-bottom: 22px; }

.intro h1 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800;
}

.intro p {
  color: var(--muted);
  font-size: .95rem;
  max-width: 46ch;
  margin: 8px auto 0;
  line-height: 1.5;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}

.card:active { transform: scale(.985); }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .11);
  }
}

.card:focus-visible {
  outline: 3px solid #4dabf7;
  outline-offset: 3px;
}

.c-snow:hover, .c-snow:active { border-color: #4dabf7; }
.c-ins:hover,  .c-ins:active  { border-color: #f59e0b; }
.c-sta:hover,  .c-sta:active  { border-color: #a855f7; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-icon { font-size: 2.3rem; line-height: 1; }

.badge {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-locked { background: #fff4e6; color: #b45309; border: 1px solid #fcd9a5; }
.badge-open   { background: #e6fcf5; color: #0b7285; border: 1px solid #a5e8dc; }

.card h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.card-sub {
  color: var(--muted);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}

.card-body {
  font-size: .92rem;
  line-height: 1.55;
  color: #3d4a57;
  margin: 12px 0 14px;
}

.card-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-links li {
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
  background: #f4f6f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.card-go {
  margin-top: auto;
  font-weight: 800;
  font-size: .92rem;
  color: #1c7ed6;
}

.c-ins .card-go { color: #e8590c; }
.c-sta .card-go { color: #9333ea; }

/* ---------- status strip (hidden unless something is down) ---------- */

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 16px;
  background: #fff4e6;
  border: 2px solid #fcd9a5;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 700;
  color: #b45309;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  flex: 0 0 auto;
}

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 20px 16px 30px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 700;
}

.site-footer .muted { margin-top: 4px; font-weight: 600; }
.site-footer a { color: #1c7ed6; }
