﻿:root {
  --bg: #f0ecdf;
  --ink: #121a31;
  --line: rgba(18, 26, 49, 0.2);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "IBM Plex Mono", monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, #ffd68c 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, #8be7dd 0%, transparent 40%),
    var(--bg);
  padding: clamp(14px, 4vw, 38px);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(18, 26, 49, 0.35) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

.grid-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(18, 26, 49, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 26, 49, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 84%);
}

.hub {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.domain {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 10vw, 7.1rem);
  line-height: 0.9;
  text-transform: uppercase;
  max-width: 12ch;
}

.subline {
  margin: 14px 0 26px;
  font-size: clamp(0.98rem, 2.2vw, 1.2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 8px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 26, 49, 0.15);
  transition: transform 200ms ease, box-shadow 200ms ease;
  animation: entrance 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card:nth-child(2) {
  animation-delay: 120ms;
}

.card:nth-child(3) {
  animation-delay: 220ms;
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -30% -44% -30%;
  height: 170px;
  border-radius: 50%;
  z-index: -1;
}

.card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 22px 48px rgba(18, 26, 49, 0.25);
}

.mode {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  line-height: 0.94;
}

.card p {
  margin: 0;
}

.present {
  background: linear-gradient(145deg, #f4fff2 0%, #dcffe6 100%);
}

.present::before {
  background: #38d18e;
}

.away {
  background: linear-gradient(145deg, #eaf0f9 0%, #d6dbe7 100%);
}

.away::before {
  background: #6b7ca1;
}

.mental {
  background: linear-gradient(145deg, #ffeef0 0%, #ffdbe4 100%);
}

.mental::before {
  background: #ff5e96;
}

.hint {
  margin: 20px 0 0;
  font-size: 0.86rem;
  opacity: 0.8;
}

@keyframes entrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .card {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
