/* dojulabs.com — hand-written, no build step.
   Palette shared with dojusystems.com (brand/README.md there):
   bg #06090d, teal #3DDBC4, signal red #FF5F70, blue #4D8DFF. */

:root {
  --bg: #06090d;
  --panel: #0b1117;
  --ink: #dbe4ec;
  --muted: #8a99a8;
  --accent: #3ddbc4;
  --accent-b: #4d8dff;
  --signal: #ff5f70;
  --rule: #1a2430;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}

.container { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: .5rem 1rem;
}
.skip-link:focus { left: 0; z-index: 10; }

/* header ------------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header__inner {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand { font-family: var(--mono); font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .prompt { color: var(--accent); }
.nav a { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-left: 1.2rem; }
.nav a:hover { color: var(--accent); }

/* hero ---------------------------------------------------------------- */

.hero { padding: 5rem 0 3.5rem; }
.hero h1 {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0;
}
.hero h1 .prompt { color: var(--accent); }
.cursor {
  display: inline-block; width: .55em; height: 1.15em;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .tagline {
  font-family: var(--mono); color: var(--muted);
  font-size: clamp(.95rem, 2.6vw, 1.15rem); margin: .8rem 0 0;
}
.hero .standfirst { color: var(--ink); max-width: 60ch; margin-top: 1.6rem; }

/* sections ------------------------------------------------------------ */

section { padding: 2.2rem 0; }
h2 {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600;
  color: var(--accent); letter-spacing: .02em;
  margin: 0 0 1rem;
}
h2::before { content: "## "; color: var(--muted); }
h3 { font-size: 1.02rem; margin: 1.6rem 0 .5rem; }

p { margin: .8rem 0; }
.muted { color: var(--muted); }

/* post list ----------------------------------------------------------- */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  border: 1px solid var(--rule); border-radius: 8px;
  background: var(--panel); padding: 1rem 1.2rem; margin-bottom: .9rem;
}
.post-list .date { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.post-list .title { display: block; font-weight: 600; font-size: 1.05rem; margin: .15rem 0 .3rem; }
.post-list .summary { margin: 0; color: var(--muted); font-size: .95rem; }
.badge {
  font-family: var(--mono); font-size: .72rem; color: var(--bg);
  background: var(--accent); border-radius: 4px; padding: .1rem .45rem;
  vertical-align: middle; margin-left: .5rem;
}
.badge--soon { background: var(--accent-b); color: var(--bg); }

/* rules --------------------------------------------------------------- */

.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding-left: 1.6rem; position: relative; margin: .55rem 0; }
.rules li::before {
  content: "▸"; position: absolute; left: 0; color: var(--accent);
  font-family: var(--mono);
}

/* article (posts) ------------------------------------------------------ */

article header h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.25; margin: 0 0 .4rem;
}
article .meta { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

article pre {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 8px;
  padding: .9rem 1.1rem; overflow-x: auto;
  font: .84rem/1.55 var(--mono); color: var(--ink);
}
article code { font-family: var(--mono); font-size: .88em; color: var(--accent); }
article pre code { color: inherit; }

article table {
  border-collapse: collapse; width: 100%; margin: 1rem 0;
  font-size: .92rem;
}
article th, article td {
  border: 1px solid var(--rule); padding: .45rem .7rem; text-align: left;
}
article th { background: var(--panel); font-family: var(--mono); font-size: .8rem; }

.measured {
  font-family: var(--mono); font-size: .85em;
  color: var(--signal); border: 1px dashed var(--signal);
  border-radius: 4px; padding: 0 .35rem;
}

.note {
  border-left: 3px solid var(--accent-b); background: var(--panel);
  padding: .7rem 1rem; border-radius: 0 8px 8px 0; margin: 1.2rem 0;
  font-size: .95rem;
}

.video-embed { aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--rule); border-radius: 8px; }

/* footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule); margin-top: 3rem;
  padding: 1.6rem 0 2.4rem; font-size: .85rem; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer a:hover { color: var(--accent); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
