@font-face {
  font-family: "DepartureMono";
  src: url("/fonts/DepartureMono-Regular.woff2") format("woff2"),
       url("/fonts/DepartureMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --bg: #001b83; */
  --bg: #001649;
  --fg: #ffffff;
  --accent: rgba(255, 255, 255, 0.85);
  --muted: rgba(255, 255, 255, 0.45);
  --body: "DepartureMono", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 17px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 620px;
  padding: 2rem;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 25px 25px;
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.4;
  cursor: crosshair;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-title {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.8;
}

nav a {
  margin-left: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
}

nav a:hover {
  color: white;
}

h1, h2, h3 {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

h2.posts-heading {
  font-size: 0.95rem;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: none;
  color: white;
  margin-bottom: 0.4rem;
  margin-top: 0;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0 0 1.25rem;
}

.post-list {
  padding: 0;
  margin: 0;
}

.post-list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  text-decoration: none;
  font-size: 0.95rem;
}

.post-list a:hover {
  text-decoration: underline;
  text-decoration-color: white;
  text-underline-offset: 3px;
}

.date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: 1rem;
}

.post-body p {
  margin-top: 0;
}

/* inline code */
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1px 5px;
}

/* Code block */
.code-block {
  margin: 1.75rem 0;
}

.code-block .highlight {
  margin: 0;
  font-size: 0.88em;
  line-height: 1.5;
  border-radius: 6px;
  overflow: hidden;
}

.code-block .highlight pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  outline: none;
  background: #000e32;
}

.code-block .highlight code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.code-block .highlight pre::-webkit-scrollbar {
  height: 4px;
}

.code-block .highlight pre::-webkit-scrollbar-track {
  background: transparent;
}

.code-block .highlight pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.code-block .highlight pre::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

article h1 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.blueprint-drawing {
  margin-bottom: 2.5rem;
}

.blueprint-svg {
  width: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.page-single {
  max-width: 860px;
}

.post-body ul {
  list-style: none;
  padding-left: 1.25rem;
}

.post-body ul li::marker {
  content: "▪ ";
  color: rgba(255, 255, 255, 0.4);
}

::selection {
  background: white;
  color: #000e32;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--muted);
  font-size: 0.8rem;
}
