/* ==========================================================================
   45Square Base Styles
   Reset, typography, utilities
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: #f4f9f9;
  background-image:
    radial-gradient(at 10% 0%, hsla(140, 60%, 88%, 1) 0px, transparent 50%),
    radial-gradient(at 90% 10%, hsla(190, 80%, 90%, 1) 0px, transparent 50%),
    radial-gradient(at 50% 50%, hsla(210, 100%, 97%, 1) 0px, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: var(--lh-tight);
}

h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: var(--tracking-snug);
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
}

h5 {
  font-size: var(--fs-base);
  font-weight: 600;
}

p {
  max-width: 65ch;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

small,
.text-sm {
  font-size: var(--fs-sm);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: var(--container-wide);
}

section {
  padding: var(--space-24) 0;
  background-color: transparent;
}

.section-alt {
  background-color: #FFFFFF;
}

.section-intro {
  max-width: 640px;
  margin-bottom: var(--space-16);
}

.section-intro h2 {
  margin-bottom: var(--space-4);
}

.section-intro p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
}

/* ---- Responsive Typography ---- */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--fs-4xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--fs-3xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }

  h3 {
    font-size: var(--fs-lg);
  }

  section {
    padding: var(--space-16) 0;
  }

  .container {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--fs-2xl);
  }
}

/* ---- Accessibility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}