:root {
  --bg: #fafafa;
  --text: #171717;
  --muted: #525252;
  --faint: #737373;
  --border: rgba(0, 0, 0, 0.1);
  --accent: #1e3a8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #ededed;
    --muted: #a3a3a3;
    --faint: #8a8a8a;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #93c5fd;
  }
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  height: 4rem;
  display: flex;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

main {
  flex: 1;
}

/* Home */
.hero {
  max-width: 42rem;
  margin: 0 auto;
  padding: 7rem 1rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

/* Home: ventures list under the main sentence */
.hero .ventures {
  margin-top: 2.5rem;
}

.hero .ventures h2 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.home .hero .ventures p {
  font-size: 1rem;
  line-height: 1.5;
}

.hero .ventures a {
  color: #fff;
  font-weight: 600;
}

/* Short pages (story, careers, press) */
.simple {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  text-align: center;
}

.simple h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.simple p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

/* Legal pages (privacy, terms) */
.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.legal h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.legal .updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--faint);
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
}

.legal p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer p {
  margin: 0;
  color: var(--faint);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

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

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

@media (max-width: 640px) {
  .site-footer .wrap {
    flex-direction: column;
  }
}

/* Colorful theme, used on every page. Redefining the color tokens here
   makes headings, body text, links and borders all switch to white. */
.colorful {
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.9);
  --faint: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.25);
  --accent: #fff;
  position: relative;
  overflow-x: hidden;
  min-height: 100dvh; /* follows the space left by Safari's bars; 100vh doesn't */
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 30%, #db2777 65%, #f59e0b 100%);
  background-attachment: fixed;
}

.colorful .site-header,
.colorful main,
.colorful .site-footer {
  position: relative;
  z-index: 1;
}

.colorful .brand {
  letter-spacing: 0.04em;
}

.colorful .site-footer a:hover {
  text-decoration: underline;
}

/* Soft floating color blobs behind the content */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blobs span {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.blobs span:nth-child(1) { background: #22d3ee; top: -12vmax; left: -10vmax; }
.blobs span:nth-child(2) { background: #f472b6; bottom: -14vmax; right: -8vmax; animation-delay: -6s; }
.blobs span:nth-child(3) { background: #facc15; top: 40%; left: 55%; width: 26vmax; height: 26vmax; animation-delay: -12s; }
.blobs span:nth-child(4) { background: #a3e635; bottom: -10vmax; left: 5%; width: 24vmax; height: 24vmax; opacity: 0.35; animation-delay: -3s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vmax, 4vmax) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .blobs span { animation: none; }
}

/* Home page: sentence centered, whole page fits one phone screen */
.home main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .hero {
  padding: 5rem 1rem;
}

.home .hero p {
  color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .colorful .site-header .wrap {
    height: 3.25rem;
  }

  .colorful .site-footer .wrap {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    gap: 0.375rem;
  }

  .home .hero {
    padding: 1.25rem 1rem;
  }

  .home .hero p {
    font-size: 1.2rem;
  }
}
