@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #18181b;
  --muted: #71717a;
  --brand: #31aa40;
  --cta-bg: #18181b;
  --cta-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #fafafa;
    --muted: #a1a1aa;
    --cta-bg: #fafafa;
    --cta-fg: #0a0a0a;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family:
    "Lexend",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1;
  color: inherit;
}

.wordmark-i {
  position: relative;
  display: inline-block;
}

.wordmark-i-letter {
  display: inline-block;
  /* clip the natural dot off the lowercase i so the green dot replaces it */
  clip-path: inset(0.32em 0 0 0);
}

.wordmark-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.05em;
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--brand);
}

.tagline {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--cta-bg);
  color: var(--cta-fg);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  transition: opacity 0.15s ease;
}

.cta:hover {
  opacity: 0.85;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer-links {
  display: inline-flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

/* Legal pages (terms, privacy) */

.legal {
  background: var(--bg);
  color: var(--fg);
}

.legal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
}

.wordmark-small {
  font-size: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.legal-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  width: 100%;
}

.legal-main h1 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-main h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.legal-main p,
.legal-main ul {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.legal-main ul {
  padding-left: 1.25rem;
}

.legal-main li {
  margin-bottom: 0.25rem;
}

.legal-main a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-main code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95em;
  padding: 0.05em 0.3em;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border-radius: 4px;
}

.legal-meta {
  margin-bottom: 2rem !important;
  font-size: 0.875rem;
}

.legal-footer {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--fg);
}
