:root {
  --bg: #1c092c;
  --header: #180722;
  --panel: #2a143c;
  --line: #4a3066;
  --accent: #9333ea;
  /* Readable violet. #9333ea is the brand mark; on --bg it is below AA for body-size type. */
  --accent-text: #c9a6ff;
  --text: #f4efe8;
  --muted: #c0b0bc;
  --code-bg: #241030;
  --code-inline: #351848;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --measure: 40rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color-scheme: dark;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

::selection {
  background: #6d28d9;
  color: #fff;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  transform: translateY(-200%);
  background: var(--panel);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

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

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

.site-header {
  background: var(--header);
  border-bottom: 2px solid var(--accent);
}

.bar {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:visited {
  color: inherit;
}

img.mark {
  width: 4.15rem;
  height: auto;
  display: block;
  flex: none;
}

.lockup {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

.vsan { color: var(--text); }

.pro { color: var(--accent); }

.tagline {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
}

.site-nav a:visited {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hero {
  position: relative;
  background: var(--bg);
  line-height: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: clamp(8.75rem, 26vw, 17rem);
  object-fit: cover;
  object-position: center;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.writing,
.prose,
.author,
.site-footer .inner {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.writing {
  padding-top: 1.85rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding: 1.2rem 1.25rem 1.25rem;
}

.entry-date {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.prose {
  padding-top: 2.4rem;
}

.prose h1,
.entry h1 {
  margin: 0 0 0.85rem;
  font-size: 2.05rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.entry h1 {
  margin-bottom: 0.45rem;
}

.entry h1 a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

.entry h1 a:visited {
  color: var(--text);
}

.entry h1 a:hover {
  color: var(--accent-text);
}

.launch {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.excerpt {
  margin: 0;
}

.prose h2 {
  margin: 2.4rem 0 0.8rem;
  color: var(--accent-text);
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0 0 1rem; }

.prose p {
  text-wrap: pretty;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li { margin: 0 0 0.7rem; }

li:last-child { margin-bottom: 0; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-inline);
  color: var(--text);
  padding: 0.08em 0.32em;
  border-radius: 3px;
}

pre {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  line-height: 1.45;
}

pre code {
  background: transparent;
  padding: 0;
  font-size: 0.92rem;
  white-space: pre;
  color: inherit;
}

.prose hr {
  margin: 2.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.author {
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.author img.mark {
  width: 3.6rem;
  margin-top: 0.15rem;
}

.author h2 {
  margin: 0 0 0.1rem;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

.author .place {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.author p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.author p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.site-footer .inner {
  padding-top: 1.05rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .bar {
    flex-wrap: wrap;
    padding: 0.8rem 1rem 0.7rem;
  }

  .site-nav {
    width: 100%;
  }

  img.mark {
    width: 3.25rem;
  }

  .wordmark {
    font-size: 1.4rem;
  }

  .prose h1,
  .entry h1 {
    font-size: 1.7rem;
  }
}

.diagram {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 94vw);
  overflow-x: auto;
}

.diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.about-photo {
  float: left;
  width: 160px;
  height: auto;
  margin: 0.15rem 1.15rem 0.5rem 0;
  border-radius: 8px;
}
