:root {
  --bg:           #f3f2fc;
  --surface:      #fcfdff;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-soft:    #59636e;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --shadow:       0 1px 2px rgb(15 23 42 / 0.06),
                  0 4px 12px rgb(15 23 42 / 0.08);
  --shadow-hover: 0 2px 4px rgb(15 23 42 / 0.08),
                  0 8px 24px rgb(15 23 42 / 0.12);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f6f8fa;
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

pre {
  background: #f6f8fa;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

.project-writeup {
  display: flex;
  flex-direction: column;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  word-wrap: break-word;
}

.project-writeup > h1, h2, h3, h4, h5, h6 {
  text-align: left;
}

.project-writeup > figure {
  flex: 0;
  align-self: center;
  margin: 1.75em 3.5em;
}

.project-writeup > figure > img {
  max-width: 100%;
  height: auto;
}

.project-writeup > figure > figcaption {
  text-align: center;
  font-size: 0.7em;
}

.project-writeup > .left {
  align-self: flex-start;
}

.project-writeup > .right {
  align-self: flex-end;
}

.project-title {
  margin-bottom: 2px;
}

.project-subtitle {
  margin-top: 2px;
  color: var(--text-soft);
}
