*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #111111;
  --surface: #211f1d;
  --border: #2e2b28;
  --text: #eeeeee;
  --muted: #aaaaaa;
  --accent: #cccccc;
  --accent-dim: #999999;
  --code-bg: #161514;
  --code-text: #c9c2b6;
  --sans: 'TX-02', monospace;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'TX-02', monospace;
  --measure: 80ch;
}

html {
  font-size: 15px;
}

pre code {
  font-size: 15px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1.75;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  margin-block: 2rem 1rem;
  line-height: 1.4;
}

code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
  overflow-x: auto;
  margin: 1.75rem 0;
  tab-size: 2;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--code-text);
}

ul,
ol {
  margin-block-end: 1rem;
}

ul li {
  margin-inline-start: 1rem;
}

ol li {
  margin-inline-start: 2rem;
  margin-block-end: 0.25rem;
  list-style: decimal-leading-zero;
}

a {
  color: var(--accent);

  &:hover {
    color: var(--accent-dim);
  }

  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
}

p {
  margin-block-end: 1.35rem;
}

blockquote {
  border-left: 2px solid var(--accent-dim);
  padding-left: 1.25rem;
  color: var(--muted);
  font-style: italic;
  margin: 1.75rem 0;
}


.site-header {
  display: flex;
  font-size: clamp(0.8rem, 5vw, 1.2rem);
  padding-block: 2rem 1.5rem;
  padding-inline: clamp(0.75rem, 4vw, 2rem);
  margin-block-end: 2.5rem;
}

.breadcrumb {
  letter-spacing: 0.1em;
  text-decoration: none;
  min-width: 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  &:first-child,
  &:last-child {
    flex: 0 0 auto;
    min-width: auto;
    overflow: visible;
  }

  &:not(:first-child)::before {
    padding-inline: clamp(0.3rem, 5vw, 0.5rem);
    content: '/';
  }
}

.post-list {
  max-width: var(--measure);
  list-style: none;
}

.post-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.post-title {
  text-decoration: none;
}

main {
  padding: 0 clamp(0.75rem, 4vw, 2rem);
}

article>header {
  margin-bottom: 3rem;
  max-width: var(--measure);
}

.prose {
  max-width: var(--measure);
}
