:root {
  --bg: #000;
  --fg: #fff;
  --dim: #4a4a4a;
  --muted: #8a8a8a;

  --font-title: "Londrina Solid", system-ui, sans-serif;
  --font-logo: "Londrina Sketch", "Londrina Solid", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 22ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

/* ---------- Header / logo ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 1.25rem var(--gutter) 2.5rem;
  background: linear-gradient(to bottom, var(--bg) 40%, transparent);
  pointer-events: none;
}

.logo {
  pointer-events: auto;
  font-family: var(--font-logo);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  position: relative;
}

.hero-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-align: center;
}

.hero-hint {
  position: absolute;
  bottom: 2rem;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------- Manifesto text ---------- */

.manifesto {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10vh var(--gutter) 40vh;
}

.reveal {
  margin: 0 0 0.9em;
  font-size: clamp(2rem, 5.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--dim);
  text-wrap: pretty;
}

[data-reveal] .word {
  color: var(--dim);
  transition: color 0.3s ease;
}

[data-reveal] .word.is-lit {
  color: var(--fg);
}

/* "just ai" written in running text, styled like the logo */
.logo-inline {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.15em;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  /* the sketch "j" curls left; give it room so it doesn't eat the space */
  padding-left: 0.12em;
}

/* Smaller follow-up text after the main manifesto */
.note {
  max-width: 46rem;
  margin-top: 10vh;
}

.divider {
  width: 3rem;
  height: 2px;
  margin: 0 0 2.5rem;
  border: 0;
  background: var(--fg);
}

.note-text {
  margin: 0 0 1.4em;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--dim);
}

.section-title {
  margin: 1.4em 0 0.5em;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1;
  color: var(--fg);
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4rem var(--gutter) 3rem;
  border-top: 1px solid #1a1a1a;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 1.75rem;
  color: var(--fg);
}

.site-footer p {
  max-width: 26rem;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
}

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

/* ---------- Reduced motion: show everything ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-hint { animation: none; }
  .reveal,
  .note-text,
  [data-reveal] .word { color: var(--fg); transition: none; }
}

/* ---------- 404 page ---------- */

.not-found-text {
  margin: 2rem 0 0;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  color: var(--muted);
  text-align: center;
}

.not-found-text a {
  color: var(--fg);
}
