@import url("./fonts-stc-forward.css");

:root {
  font-size: 16px;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  --font-sans: "STC Forward", "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-synthesis: none;
  background: var(--bg-gradient);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 240ms ease forwards;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 7vw, 88px) 0;
  position: relative;
}

.section.alt {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-500);
}

.eyebrow {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--sage-500);
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-600);
}

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

@keyframes pageFadeIn {
  to {
    opacity: 1;
  }
}

html.is-transitioning body {
  opacity: 0;
  transition: opacity 180ms ease;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    transform: none;
    animation: none;
  }

  html.is-transitioning body {
    transition: none;
  }
}
