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

:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --hairline: rgba(255, 255, 255, 0.08);
  --accent: #ff4d1a;
  --max-prose: 36rem;

  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 150ms ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Landing ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.wordmark {
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
}

.tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 32rem;
}

.tagline .dot {
  color: var(--accent);
}

.section {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section + .section {
  padding-top: 0;
}

.section h2 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.section p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.contact-link {
  display: inline-block;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-prose);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

footer a {
  color: var(--muted);
}

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

/* ---------- Prose (legal pages) ---------- */

.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.back-link:hover {
  color: var(--fg);
  text-decoration: none;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.prose .updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 3rem;
}

.prose h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 2.5rem 0 0.75rem;
  color: var(--fg);
}

.prose p {
  margin: 0 0 1rem;
  color: #d4d4d4;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose ul {
  margin: 0 0 1rem;
  padding: 0 0 0 1.25rem;
  color: #d4d4d4;
}

.prose ul li {
  margin: 0.25rem 0;
}

.prose ul li::marker {
  color: var(--muted);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 3rem 0;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 1.25rem 3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .prose {
    padding-top: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
