/* Shared styles for the crawler.exa.ai pages. */

@font-face {
  font-family: "ABC Diatype";
  src: url("/fonts/ABCDiatypePlusVariable.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Arizona Flare";
  src: url("/fonts/ABCArizonaFlareVariable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: oblique 0deg 14deg;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMonoVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --foreground: oklch(14.08% 0.0044 285.82);
  --muted: oklch(55.17% 0.0138 285.94);
  --soft-muted: oklch(44.19% 0.0146 285.79);
  --accent: oklch(48.51% 0.2577 265.37);
  --warm: oklch(96.5% 0.003 285.9);
  --rule: oklch(91.97% 0.004 286.32);
  --white: oklch(100% 0 0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--foreground);
  font-family: "ABC Diatype", system-ui, sans-serif;
  font-size: 16px;
  line-height: 26px;
}

.page {
  width: min(100% - 48px, 720px);
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 96px 0;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  pointer-events: none;
  content: "";
  transform: translateX(-50%);
}

.hero::before {
  z-index: -3;
  background: oklch(99.2% 0.001 286);
}

.hero-glyphs {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -2;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero::after {
  z-index: -1;
  top: auto;
  height: 128px;
  background: linear-gradient(to top, var(--white), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--foreground);
  font-family: "ABC Diatype", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.brand svg {
  width: auto;
  height: 32px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--foreground);
  font-family: "ABC Arizona Flare", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 800px;
  font-size: 64px;
  line-height: 70px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.015em;
}

h3 {
  font-family: "ABC Diatype", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.015em;
}

.prose {
  display: grid;
  gap: 24px;
}

.prose > h3 {
  margin-top: 24px;
}

.prose > .section-intro + h3 {
  margin-top: 0;
}

.caption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-intro {
  display: grid;
  max-width: 760px;
  gap: 24px;
}

.section-intro p,
.prose p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

code,
pre {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 22px;
}

code {
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--warm);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: 4px;
  background: var(--warm);
  white-space: pre-wrap;
}

.verification-link {
  overflow-wrap: anywhere;
}

.behavior-grid {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

.behavior-label {
  margin: 0;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.behavior-description {
  margin: 0;
  color: var(--soft-muted);
}

.contact {
  padding-bottom: 96px;
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 32px, 720px);
  }

  .hero {
    padding: 48px 0;
  }

  .hero {
    padding-bottom: 0;
    gap: 20px;
  }

  h1 {
    font-size: 44px;
    line-height: 50px;
  }

  .prose > h3 {
    margin-top: 8px;
  }

  .behavior-grid {
    margin-top: 8px;
  }

  .contact {
    padding-bottom: 48px;
  }
}
