:root {
  color-scheme: dark;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050505;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 0, 0.075), transparent 38%),
    #050505;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1280px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) 24px 40px;
}

.brand-image {
  width: min(82vw, 1120px);
  aspect-ratio: 1916 / 616;
  background-image: url("./assets/cstu-logo.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.tool-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: 18px;
  width: min(100%, 820px);
  margin-top: clamp(28px, 5vh, 52px);
}

.tool-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 214, 0, 0.58);
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.78);
  color: #ffd600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.tool-button span {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.tool-button small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tool-button:hover {
  transform: translateY(-2px);
  border-color: #ffd600;
  background: rgba(255, 214, 0, 0.1);
  box-shadow: 0 15px 38px rgba(255, 214, 0, 0.1);
}

.tool-button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(255, 214, 0, 0.72);
  outline-offset: 4px;
}

.site-footer {
  padding: 16px 20px 22px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-align: center;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: rgba(255, 214, 0, 0.8);
}

@media (max-width: 620px) {
  .home {
    justify-content: center;
    padding: 40px 20px 28px;
  }

  .brand-image {
    width: 100%;
  }

  .tool-links {
    grid-template-columns: 1fr;
    width: min(100%, 340px);
    margin-top: 38px;
  }

  .tool-button {
    min-height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-button,
  .site-footer a {
    transition: none;
  }
}
