*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 480px at 85% 5%, rgba(2, 132, 199, 0.14), transparent 55%),
    radial-gradient(ellipse 700px 400px at 50% 100%, rgba(219, 234, 254, 0.6), transparent 65%),
    linear-gradient(180deg, #f0f6fc 0%, var(--bg) 24%, var(--bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(11, 28, 45, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 28, 45, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--ink-heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 800;
  max-width: 24ch;
}

h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.025em;
  max-width: 30ch;
}

h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  letter-spacing: -0.018em;
  line-height: 1.25;
  font-weight: 700;
}

h4 {
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 68ch;
}

p.lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.35rem;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

::selection {
  background: rgba(6, 182, 212, 0.25);
  color: var(--ink);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.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;
}
