/* ECHOE — standalone landing page. Self-contained: nothing here is
   shared with other project folders on purpose. */

:root {
  --page-bg: #0d0b12;
  --shell-bg: #1e1b26;
  --titlebar: #262230;
  --border: #34304a;
  --border-soft: #2a2636;
  --text: #e9e4f5;
  --text-dim: #ab9fd4;
  --text-faint: #6f6690;
  --accent: #c084fc;
  --accent-soft: rgba(192, 132, 252, 0.12);
  --safe: #f783ac;
  --safe-soft: rgba(247, 131, 172, 0.12);
  --warn: #f0a500;
  --warn-soft: rgba(240, 165, 0, 0.12);
  --green: #7ee787;
  --font-mono: 'Cascadia Code', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% -10%, #241f33 0%, transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, #2a1f33 0%, transparent 55%),
    var(--page-bg);
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1.65;
  padding: 2.5rem 1rem 4rem;
  -webkit-font-smoothing: antialiased;
}

.editor-shell {
  max-width: 880px;
  margin: 0 auto;
  background: var(--shell-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- titlebar ---------- */
.titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--titlebar);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.titlebar .win-title {
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-faint);
  transform: translateX(-16px);
}

/* ---------- tab bar ---------- */
.tabbar { display: flex; background: var(--titlebar); border-bottom: 1px solid var(--border); }
.tab {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tab.active {
  color: var(--text);
  background: var(--shell-bg);
  border-top: 2px solid var(--accent);
}
.tab .file-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* ---------- content ---------- */
.editor-scroll { padding: 2.2rem 2rem 1rem; }
@media (max-width: 640px) { .editor-scroll { padding: 1.5rem 1.1rem 0.5rem; } }

.md-hash { color: var(--accent); opacity: 0.8; margin-right: 0.35rem; }
h1.md-title { font-size: clamp(1.8rem, 6vw, 2.4rem); margin: 0 0 0.5rem; color: var(--text); }
.tagline {
  color: var(--text-dim);
  font-style: italic;
  border-left: 3px solid var(--border-soft);
  padding-left: 0.9rem;
  margin: 0 0 2.5rem;
}

section.md-section { margin-bottom: 2.6rem; }
h2.md-heading { font-size: 1.15rem; margin: 0 0 1rem; color: var(--text); }
.md-section p { color: var(--text-dim); margin: 0 0 0.9rem; max-width: 68ch; }
.md-section p:last-child { margin-bottom: 0; }

/* ---------- fenced code blocks ---------- */
.code-fence {
  background: #17141f;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.code-fence .fence-lang {
  font-size: 0.72rem;
  color: var(--text-faint);
  padding: 0.4rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}
.code-fence .fence-body { display: flex; }
.code-fence .gutter {
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  color: #4a4460;
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--border-soft);
  font-size: 0.82rem;
}
.code-fence .gutter div { min-width: 1.4em; }
.code-fence .lines { padding: 0.75rem 1rem; font-size: 0.85rem; overflow-x: auto; flex: 1; }
.code-fence .lines div { white-space: pre; min-height: 1.5em; }

.tok-key { color: var(--accent); }
.tok-val { color: var(--green); }
.tok-punct { color: var(--text-faint); }
.tok-comment { color: var(--text-faint); font-style: italic; }
.tok-check { color: var(--green); }
.tok-box { color: var(--text-faint); }

/* ---------- decision list rendered as checklist ---------- */
.decision-line { color: var(--text-dim); }
.decision-line strong { color: var(--text); }

/* ---------- whiteboard photo frame ---------- */
.board-frame {
  position: relative;
  margin: 1.4rem auto 0.6rem;
  max-width: 620px;
  background: #fff;
  padding: 10px 10px 10px;
  border-radius: 2px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.1deg);
}
.board-frame img { display: block; width: 100%; height: auto; border-radius: 1px; }
.board-frame .tape {
  position: absolute;
  width: 70px;
  height: 22px;
  background: rgba(255, 255, 200, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.board-frame .tape.tl { top: -10px; left: -14px; transform: rotate(-40deg); }
.board-frame .tape.tr { top: -10px; right: -14px; transform: rotate(40deg); }
.board-caption {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  font-style: italic;
  margin: 1rem 0 0;
}

/* ---------- links ---------- */
.link-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.5rem; }
.link-pill {
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.link-pill:hover { background: var(--accent); color: #17141f; text-decoration: none; }
.link-pill.todo {
  border: 1px dashed var(--warn);
  background: var(--warn-soft);
  color: var(--warn);
  cursor: not-allowed;
}
.link-pill.todo:hover { background: var(--warn-soft); color: var(--warn); text-decoration: none; }

/* ---------- status bar ---------- */
.statusbar {
  background: var(--accent);
  color: #1a1522;
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

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

@media (max-width: 640px) {
  body { padding: 1rem 0.5rem 2.5rem; }
  .board-frame { transform: rotate(0deg); }
}
