/* The Consciousness Project: one dark page, the graph, a download, and the Method. */

/* Fonts served by abhaychakra.com itself (SIL Open Font License), so the page makes no third-party requests. */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --space: #05080F;
  --panel: rgba(12, 18, 30, 0.72);
  --ink: #E8EEF4;
  --muted: #9AA9B7;
  --hair: rgba(232, 238, 244, 0.12);
  --gold: #E7C25A;
  --violet: #A99BE0;
  --rest: #6F8AA6;
  --teal: #5FC4A8;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--space); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.6rem; }
h3 { font-size: 1.15rem; font-weight: 500; margin-top: 1.8rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
pre { background: rgba(232, 238, 244, 0.06); border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre; }
code { background: rgba(232, 238, 244, 0.08); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; background: linear-gradient(rgba(5, 8, 15, 0.85), rgba(5, 8, 15, 0)); }
.wordmark { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1rem; letter-spacing: 0.01em; }
.tabs { display: flex; gap: 4px; background: rgba(12, 18, 30, 0.6); border: 1px solid var(--hair); border-radius: 999px; padding: 3px; backdrop-filter: blur(8px); }
.tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.92rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--space); }

/* Life tab */
.life { position: fixed; inset: 0; }
.life canvas { display: block; width: 100%; height: 100%; }
.life-overlay { position: absolute; left: 20px; right: 20px; bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; pointer-events: none; }
.life-overlay > * { pointer-events: auto; }
.definition { max-width: 34ch; font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.1rem, 2.1vw, 1.5rem); line-height: 1.3; color: rgba(232, 238, 244, 0.9); margin: 0; text-shadow: 0 2px 18px rgba(5, 8, 15, 0.9); }
.definition-wrap { display: flex; flex-direction: column; gap: 8px; }
.tagline { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.02em; }
.download { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.button { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: 1px solid var(--hair); background: var(--ink); color: var(--space); }
.button.quiet { background: rgba(12, 18, 30, 0.7); color: var(--ink); backdrop-filter: blur(8px); }
.download small { color: var(--muted); font-size: 0.8rem; max-width: 30ch; }
.tip { position: absolute; background: rgba(12, 18, 30, 0.9); border: 1px solid var(--hair); border-radius: 10px; padding: 6px 10px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink); pointer-events: none; max-width: 320px; }
.tip[hidden] { display: none; }
@media (max-width: 700px) {
  .life-overlay { flex-direction: column; align-items: flex-start; }
  .download { align-items: flex-start; text-align: left; }
  .definition { font-size: 1.05rem; }
  .bar { padding: 10px 14px; }
  .tabs button { padding: 6px 12px; font-size: 0.86rem; }
}

/* Method tab */
.method { position: relative; max-width: 46rem; margin: 0 auto; padding: 96px 20px 80px; }
.method[hidden] { display: none; }
.method .lede { color: var(--muted); font-size: 1.15rem; font-weight: 300; }
.method ol, .method ul { padding-left: 1.3em; }
.method li { margin-bottom: 0.4em; }
.quote { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; color: var(--ink); margin: 0.4rem 0 1.2rem; }
.rule { border: 0; border-top: 1px solid var(--hair); margin: 2.4rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.table-wrap { overflow-x: auto; }
.note { border-left: 2px solid var(--gold); padding-left: 14px; color: var(--muted); font-size: 0.95rem; }
.foot { color: var(--muted); font-size: 0.86rem; margin-top: 3rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none; animation: none; } }
