@font-face { font-family: Bringshoot; src: url(/assets/fonts/Bringshoot.ttf); font-display: block; }
@font-face { font-family: LatoHeavy; src: url(/assets/fonts/Lato-Heavy.ttf); font-display: block; }

:root {
  --brand: #1ABC9C;
  --background: #15171B;
  --text: #DDE0E5;
  --muted: #8F96A0;
  --link: var(--brand);
  --rule: #30343B;
  --shelf: #1C1F25;
  --code-background: #0E1013;
  --code-string: #9FD39F;
  --code-comment: #7A828E;
  --code-keyword: #FF8FC7;
  --code-name: #7CC4FF;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }

body {
  margin: 0 auto;
  max-width: 680px;
  padding: 0 16px 72px;
  background: var(--background);
  color: var(--text);
  font-family: Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a { color: var(--link); }
small { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
h2 { font-size: 17px; margin-bottom: 0; }
img { max-width: 100%; height: auto; background: #fff; }

header { margin-bottom: 44px; }
.banner, nav {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}
.banner {
  display: block;
  padding-block: 56px 44px;
  background: var(--brand);
  text-align: center;
  text-decoration: none;
}
.site-name {
  display: block;
  color: #fff;
  font-family: Bringshoot, cursive;
  font-size: 120px;
  line-height: 1;
}
.site-description {
  display: block;
  margin-top: 6px;
  color: #000;
  font-family: LatoHeavy, Verdana, sans-serif;
  font-size: 17px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
nav {
  display: flex;
  gap: 40px;
  padding-block: 16px;
  background: var(--code-background);
}
nav a {
  position: relative;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  color: #C9CCD1;
  font-family: LatoHeavy, Verdana, sans-serif;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
}
nav a + a::before { content: "/"; position: absolute; left: -25px; color: #555; }
nav a[aria-current], nav a:hover { color: var(--link); border-bottom-color: var(--link); }
.posts a:hover { text-decoration: underline; }

figure { margin: 0 0 1em; }
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
th, td {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
th > :first-child, td > :first-child { margin-top: 0; }
th > :last-child, td > :last-child { margin-bottom: 0; }

pre {
  overflow: auto;
  padding: 12px;
  background: var(--code-background);
  font-size: 13px;
}
.hljs-string, .hljs-regexp, .hljs-symbol, .hljs-number { color: var(--code-string); }
.hljs-comment { color: var(--code-comment); font-style: italic; }
.hljs-keyword, .hljs-built_in, .hljs-literal, .hljs-meta, .hljs-selector-tag { color: var(--code-keyword); }
.hljs-title, .hljs-type, .hljs-name, .hljs-attr, .hljs-attribute, .hljs-selector-class, .hljs-selector-id, .hljs-section { color: var(--code-name); }

.tagline {
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.shelf h2 {
  margin: 34px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.shelf:first-child h2 { margin-top: 0; }
.shelf ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.shelf li { padding: 12px 16px; background: var(--shelf); border-radius: 8px; }
.shelf h3 { margin: 0; font-size: 17px; }
.shelf p { margin: 6px 0 0; }
.shelf h3 a { color: var(--text); text-decoration: none; }
.shelf h3 a:hover { color: var(--link); text-decoration: underline; }

.crumb { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.crumb a { text-decoration: none; }
.project h1 { margin: 0; font-size: 26px; }
.project h1 .tags { vertical-align: 5px; }
.project .summary { margin: 10px 0 0; font-size: 17px; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: 2px; }
.tags span {
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: 12px;
  font-weight: normal;
}
.tag-rails { color: #FF8A80; }
.tag-webgl { color: #7CC4FF; }
.tag-csharp { color: #C3A6FF; }
.tag-unity { color: #9FD39F; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: flex; gap: 16px; padding: 5px 0; }
.posts a { text-decoration: none; }
.posts time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
