/*
 * ШВИДКА ЗМІНА КОЛЬОРІВ
 * Достатньо змінити значення змінних нижче.
 */
:root {
  --page-bg: #f3f4f6;
  --page-glow: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-hover: #ffffff;
  --text-main: #17191c;
  --text-muted: #686d75;
  --border: rgba(23, 25, 28, 0.1);
  --accent: #202328;
  --accent-soft: #e6e8eb;
  --accent-contrast: #ffffff;
  --shadow: 0 12px 35px rgba(20, 24, 30, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% -10%, var(--page-glow) 0, transparent 42rem),
    var(--page-bg);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 36px, 700px);
  margin-inline: auto;
  padding: clamp(48px, 9vw, 88px) 0 32px;
}

.profile {
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1;
}

.intro {
  max-width: 510px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  line-height: 1.6;
}

.link-groups {
  display: grid;
  gap: 28px;
  margin-top: clamp(42px, 8vw, 62px);
}

.group-title {
  margin: 0 0 11px 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  gap: 14px;
  min-height: 82px;
  padding: 17px;
  overflow: hidden;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 19px;
  box-shadow: var(--shadow);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card:hover {
  z-index: 1;
  background: var(--surface-hover);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 18px 44px rgba(20, 24, 30, 0.1);
  transform: translateY(-3px);
}

.link-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 3px;
}

.link-card.featured {
  grid-column: 1 / -1;
  min-height: 92px;
}

.link-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 14px;
}

.link-icon svg,
.link-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-copy {
  min-width: 0;
}

.link-title,
.link-detail {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.link-detail {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.79rem;
}

.link-arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--text-muted);
  transition: transform 180ms ease;
}

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

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 42px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-dot {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 14px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 24px, 700px);
    padding-top: 42px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 19px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-card.featured {
    grid-column: auto;
    min-height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
