/* Color direction based on the supplied reference image */
:root {
  --navy: #10184a;
  --blue: #22b8e6;
  --purple: #7c20d7;
  --magenta: #d600c9;
  --soft-blue: #eef9fc;
  --muted: #6e7282;
  --line: #e7e8ee;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.page {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

/* Logo section */
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.logo-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue), var(--purple) 65%, var(--magenta));
  box-shadow: 0 10px 24px rgba(16, 24, 74, 0.14);
}

.identity h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.identity p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.identity p span {
  margin: 0 5px;
  color: var(--blue);
}

/* Categories */
.link-section {
  margin-bottom: 52px;
}

.link-section h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 4.5vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Links */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin: 0 0 12px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(16, 24, 74, 0.045);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.link-card::before {
  content: "";
  width: 5px;
  align-self: stretch;
  margin: -16px 15px -16px -19px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--blue), var(--purple), var(--magenta));
}

.link-card .arrow {
  color: var(--purple);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(124, 32, 215, 0.35);
  background: var(--soft-blue);
  box-shadow: 0 10px 28px rgba(16, 24, 74, 0.09);
  transform: translateY(-2px);
  outline: none;
}

.link-card:hover .arrow,
.link-card:focus-visible .arrow {
  transform: translate(2px, -2px);
}

.link-card:active {
  transform: translateY(0);
}

/* Small-screen tuning */
@media (max-width: 480px) {
  .page {
    width: min(100% - 24px, 680px);
    padding-top: 32px;
  }

  .identity {
    margin-bottom: 48px;
  }

  .logo-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .link-section {
    margin-bottom: 42px;
  }

  .link-card {
    min-height: 60px;
    padding: 15px 16px;
  }

  .link-card::before {
    margin: -15px 13px -15px -16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card,
  .link-card .arrow {
    transition: none;
  }
}
