/* SASE — brand palette from sase.space, IDE-themed
   ink/panel/line: slate editor grays (#24292d base)
   accent: brand steel-blue — functions, UI chrome
   string/keyword/comment: syntax tokens (string pink sampled
   from the brand venn diagram); signal: the live dot          */
:root {
  --ink: #24292d;
  --panel: #2b3137;
  --line: #3b444c;
  --text: #f2f5f7;
  --muted: #9aa8b2;
  --accent: #70a4d3;
  --accent-dim: rgba(112, 164, 211, 0.14);
  --string: #ee7086;
  --keyword: #c678dd;
  --comment: #8b98a3;
  --signal: #3ecf8e;
  --display: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --body: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.9375rem;
  line-height: 1.7;
}

::selection { background: rgba(112, 164, 211, 0.35); }

a { color: var(--accent); text-decoration-color: rgba(112, 164, 211, 0.4); }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(0.8rem, 2.5vw, 1.6rem); flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--ink) !important; background: var(--accent);
  padding: 0.45rem 0.9rem; border-radius: 4px;
  font-family: var(--mono); font-size: 0.85rem !important; font-weight: 500;
}
.nav-cta:hover { filter: brightness(1.08); }

/* ---------- hero ---------- */
main { max-width: 1060px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 1rem; }
/* eyebrow reads as a source comment */
.eyebrow {
  font-family: var(--mono); font-style: italic; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--comment); margin: 0 0 1.2rem;
}
.eyebrow::before { content: "// "; font-style: normal; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 1.4rem;
}
/* the answer is a string literal, cursor still blinking after it */
h1 em { font-style: normal; color: var(--string); }
h1 em::before, h1 em::after { content: "\""; }
h1 .caret {
  display: inline-block; width: 0.45ch; height: 0.82em;
  margin-left: 0.14em; background: var(--accent);
  vertical-align: -0.06em;
}
.lede { max-width: var(--measure); color: var(--muted); font-size: 1rem; margin: 0 0 2rem; }
.hero-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: 0; }
.btn {
  display: inline-block; background: var(--accent); color: var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 4px; text-decoration: none;
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(112, 164, 211, 0.30);
}
.btn:hover { filter: brightness(1.08); }
.cta-note { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* ---------- hero art: the brand venn diagram in an editor tab ---------- */
.hero-art { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.editor {
  margin: 0; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #23292c; /* matches the PNG background */
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}
.editor-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.55rem 0.9rem;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.editor-dots { display: inline-flex; gap: 6px; }
.editor-dots i { width: 11px; height: 11px; border-radius: 50%; }
.editor-dots i:nth-child(1) { background: #ff5f57; }
.editor-dots i:nth-child(2) { background: #febc2e; }
.editor-dots i:nth-child(3) { background: #28c840; }
.editor-tab {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text);
  background: #23292c; border: 1px solid var(--line); border-radius: 4px;
  padding: 0.25rem 0.7rem;
}
.editor-tab::after { content: " ●"; color: var(--accent); font-size: 0.6rem; }
.editor img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  h1 .caret { animation: blink 1.1s step-end infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- strip: gutter line numbers, like an editor ---------- */
.strip {
  counter-reset: line;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; margin: clamp(1.5rem, 4vw, 3rem) 0;
}
.strip-item { background: var(--panel); padding: 1.6rem 1.5rem; }
.strip-item::before {
  counter-increment: line;
  content: "0" counter(line);
  display: block; font-family: var(--mono); font-size: 0.75rem;
  color: var(--comment); margin-bottom: 0.7rem;
}
.strip-item h2 {
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: 0.02em; margin: 0 0 0.6rem;
}
.strip-item p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- why: the manifesto as an open markdown file ---------- */
.why { padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.why-editor { max-width: 46rem; margin: 0 auto; }
.why-body { padding: 1.6rem clamp(1.2rem, 4vw, 2.2rem) 0.8rem; }
.why-body h2 {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  margin: 0 0 1.2rem;
}
.why-body h2::before { content: "# "; color: var(--accent); }
.why-body p { color: var(--muted); margin: 0 0 1.1rem; }

/* ---------- closer ---------- */
.closer { text-align: center; padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.closer .welcome {
  font-weight: 400; font-size: 0.95rem; color: var(--muted);
  max-width: none; margin: 0 auto 1.8rem;
}
.closer p {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem); line-height: 1.45;
  max-width: 40ch; margin: 0 auto 1.8rem;
}
.closer .or { color: var(--keyword); font-family: var(--mono); font-size: 0.8em; }

/* ---------- content pages ---------- */
.page { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.page h2 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-top: 2.4rem; }
.page h3 { font-family: var(--mono); font-weight: 500; font-size: 1rem; letter-spacing: 0.06em; color: var(--accent); margin-top: 2rem; }
.page p, .page li { max-width: var(--measure); }
.page li { margin-bottom: 0.5rem; }
.page ul { padding-left: 1.2rem; }
.page hr { border: none; border-top: 1px dashed var(--line); margin: 2.5rem 0; }
.page strong { color: var(--text); }
.page code, .notice code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.1em 0.35em; color: var(--string);
}
.page blockquote {
  margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--accent); color: var(--muted); font-style: italic;
}
.notice {
  font-family: var(--mono); font-size: 0.85rem;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem; border-radius: 4px; max-width: var(--measure);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem clamp(1rem, 4vw, 3rem) 2.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.foot-status { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal); margin-right: 0.5rem;
  box-shadow: 0 0 8px var(--signal);
}
.foot-meta { font-size: 0.85rem; color: var(--muted); margin: 0; }
.foot-meta a { color: var(--muted); }
.foot-meta span { margin: 0 0.5rem; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-footer { flex-direction: column; }
}
