@import url("./variables.css");
@import url("./reset.css");

html {
  color-scheme: dark;
  background: var(--color-bg);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(217, 255, 69, 0.025), transparent 28rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  width: 100%;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 132px);
}

.section--compact {
  padding-block: clamp(50px, 6vw, 84px);
}

.section--surface {
  background: var(--color-bg-soft);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(34px, 4.5vw, 60px);
}

.section-header__copy {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6.4vw, 6.6rem);
}

h2 {
  font-size: clamp(2.35rem, 4.4vw, 4.8rem);
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.lead {
  max-width: 660px;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.muted {
  color: var(--color-muted);
}

.accent {
  position: relative;
  display: inline-block;
  color: var(--color-text);
}

.accent::after {
  position: absolute;
  right: -2%;
  bottom: -0.1em;
  left: -2%;
  height: 0.08em;
  content: "";
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.2s;
}

.is-visible .accent::after,
.accent.is-visible::after {
  transform: scaleX(1);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--color-accent);
  color: #0b0c0b;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

[hidden] {
  display: none !important;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

code {
  color: var(--color-accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}
