@import "./var.css";

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--generic-text-color);
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, 0.18), transparent 24%),
    radial-gradient(circle at right center, rgba(255, 165, 0, 0.14), transparent 28%),
    linear-gradient(160deg, var(--sidebar-background) 0%, var(--sidebar-select) 50%, var(--background-color) 100%);
}

.contact-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem 1.25rem;
  text-align: center;
}

.contact-header h1 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--highlighted-text-color);
}

.contact-header p {
  max-width: 62ch;
  margin: 1rem auto 0;
  color: var(--generic-text-color);
  opacity: 0.84;
  font-size: 1.05rem;
  line-height: 1.8;
}

hr {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sidebar-text-highlight), var(--warning-text-color), transparent);
}

main {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 1.5rem auto 0;
  padding: 0 0 3rem;
}

main section {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.6rem;
  border: 1px solid rgba(224, 224, 224, 0.16);
  background: linear-gradient(145deg, var(--sidebar-background), var(--sidebar-select));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

main section h2 {
  margin: 0 0 0.85rem;
  color: var(--highlighted-text-color);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

main section p {
  margin: 0 0 1rem;
  color: var(--generic-text-color);
  opacity: 0.9;
  line-height: 1.8;
}

main section strong {
  color: var(--highlighted-text-color);
}

main section a:not(.button) {
  color: var(--sidebar-text-highlight);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

main section a:not(.button):hover,
main section a:not(.button):focus-visible {
  color: var(--highlighted-text-color);
}

@media (max-width: 700px) {
  .contact-header {
    padding-top: 2rem;
  }

  main,
  hr {
    width: min(100% - 1rem, 1120px);
  }

  main section {
    border-radius: 1.1rem;
  }

  main section a.button {
    width: 100%;
  }
}
