/* Intercontinental · White Altitude for zerodivision.ai.
 * Same tokens as the Atlas site and app. Zero Division stays deliberately
 * simple: black on white, one faint light, ink actions. */
@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --paper: #ffffff;
  --ink: #0a0a0b;
  --ink-2: #33363c;
  --muted: #636974;
  --line: #e3e6eb;
  --line-strong: #c9cdd4;
  --mist: #f6f7f9;
  --green: #0a0a0b; /* legacy accent slot now resolves to ink */
  --electric: #2f6bff;
  --lime: #7fd62a;
  --amber: #ff9f2e;
  --violet: #8a5cff;
  --cyan: #1fd1f0;
  --breeze: cubic-bezier(0.22, 1, 0.36, 1);
  --liquid: cubic-bezier(0.65, 0, 0.35, 1);
  --lift: 0 1px 2px rgb(16 20 32 / 0.06), 0 4px 12px -4px rgb(16 20 32 / 0.06);
  --lift-2: 0 2px 4px rgb(16 20 32 / 0.06), 0 16px 36px -10px rgb(16 20 32 / 0.12);
}
body {
  font-family: Geist, system-ui, sans-serif;
  background: var(--paper);
}
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 4px;
}
.wordmark { font-weight: 500; letter-spacing: -0.03em; }
.eyebrow,
.meta,
.article small,
footer {
  font-family: ui-monospace, "Geist Mono", SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}
h1 {
  font-weight: 300;
  letter-spacing: -0.035em;
}
h1 a { text-decoration-color: var(--line-strong); transition: text-decoration-color 240ms var(--breeze); }
h1 a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Purpose copy: the first line is the exhale, the rest reads plainly. */
.copy { font: 18px/1.6 Geist, system-ui, sans-serif; color: var(--ink-2); }


/* One faint light behind the statement — the only colour on the page. */
.statement { position: relative; isolation: isolate; }
.statement::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 20px;
  right: -8%;
  width: 52%;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(47 107 255 / 0.12), transparent);
  filter: blur(30px);
  pointer-events: none;
}

/* Actions: ink primary lifts with an electric under-glow; secondary fills
 * with liquid ink that inverts per pixel where it spreads. */
.cta {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  min-height: 46px;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 160ms var(--breeze), box-shadow 240ms var(--breeze), background-color 240ms var(--breeze);
}
.cta.secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--lift);
}
.cta.secondary::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: var(--ink-x, 50%);
  top: var(--ink-y, 50%);
  width: var(--ink-d, 240%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 420ms var(--liquid);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .cta:not(.secondary):not(:disabled):hover {
    background: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgb(47 107 255 / 0.75);
  }
  .cta.secondary:hover { background: #fff; }
  .cta.secondary:hover::after { transform: translate(-50%, -50%) scale(1); }
}
.cta:active:not(:disabled) { transform: scale(0.98); }

/* Research & writing */
.writings { border-top-color: var(--line); }
.arrows button {
  border-radius: 8px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  transition: background-color 160ms var(--breeze), border-color 160ms var(--breeze);
}
.arrows button:hover { background: var(--mist); border-color: var(--line-strong); }
.articles { padding: 4px 4px 20px; gap: 20px; }
.article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 22px 22px 26px;
  box-shadow: var(--lift);
  transition: transform 240ms var(--breeze), box-shadow 240ms var(--breeze), border-color 240ms var(--breeze);
  --led: var(--electric);
  flex-basis: calc((100% - 60px) / 4);
}
.article:nth-child(2) { --led: var(--lime); }
.article:nth-child(3) { --led: var(--amber); }
.article:nth-child(n + 4) { --led: var(--violet); }
.article small::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--led);
  box-shadow: 0 0 6px var(--led);
}
@media (hover: hover) and (pointer: fine) {
  .article:hover { transform: translateY(-2px); box-shadow: var(--lift-2); border-color: var(--line-strong); }
  .article:hover h3 { text-decoration: none; }
}
.article h3 { font-weight: 400; letter-spacing: -0.02em; }
.article p, .form-note, .index-entry p, .reading .intro { font-family: Geist, system-ui, sans-serif; color: var(--ink-2); }

/* Demo dialog: glass-white sheet that rises in; backdrop dims softly. */
dialog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--lift-2);
}
dialog[open] { animation: wa-rise 240ms var(--breeze); }
dialog::backdrop { background: rgb(10 10 11 / 0.32); backdrop-filter: blur(4px); animation: wa-fade 240ms var(--breeze); }
.dialog-head h2 { font-weight: 300; letter-spacing: -0.03em; }
.close { border-radius: 8px; transition: background-color 160ms var(--breeze); }
.close:hover { background: var(--mist); }
input, textarea {
  font-family: Geist, system-ui, sans-serif;
  border-radius: 8px;
  border-color: var(--line-strong);
  background: #fff;
  transition: border-color 160ms var(--breeze), box-shadow 240ms var(--breeze);
}
input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgb(47 107 255 / 0.18);
}
.privacy, #result { font-family: Geist, system-ui, sans-serif; }

/* Research pages */
.prose { font-family: Geist, system-ui, sans-serif; font-size: 18px; color: var(--ink-2); }
.prose h2, .prose h3, .index-entry h2 { font-family: Geist, system-ui, sans-serif; font-weight: 400; color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose pre, .prose th { background: var(--mist); }
.prose pre { border-radius: 8px; }
.toc, .back, .reading-end, .prose table { font-family: Geist, system-ui, sans-serif; }

@keyframes wa-rise { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes wa-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 850px) { .article { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .article { flex-basis: 82%; }  }
@media (prefers-reduced-motion: reduce) {
  .cta, .cta.secondary::after, .article, input, textarea { transition: none; }
  dialog[open], dialog::backdrop { animation: none; }
  .cta:hover, .article:hover { transform: none; }
}
@media (forced-colors: active) { .cta.secondary::after, .statement::before { display: none; } }
