@font-face {
  font-family: "Special Elite";
  src: url("/fonts/SpecialElite-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --parchment: #f4ecd8;
  --ink: #2b1d0e;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  background-color: var(--parchment);
  color: var(--ink);
  font-family: "Courier Prime", monospace;
  line-height: 1.6;
}

.site-title,
.post-title,
main > h1,
article > h1,
.year-heading,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: "Special Elite", monospace;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
}

.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-title {
  font-size: 1.75rem;
  text-decoration: none;
}

.site-nav a {
  margin-right: 1rem;
}

.post-list {
  list-style: none;
  padding: 0;
}

.tag-list {
  list-style: none;
  padding: 0;
}

.post-item {
  margin-bottom: 1.5rem;
}

.post-item-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.post-date {
  display: block;
  opacity: 0.65;
  font-size: 0.85rem;
}

.post-title {
  font-size: 1.1rem;
  text-decoration: none;
}

.post-title:hover {
  text-decoration: underline;
}

.post-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tags a {
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.6;
  background-color: rgba(43, 29, 14, 0.08);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.post-tags a:hover {
  opacity: 1;
}

.post-meta {
  opacity: 0.85;
  margin-top: -0.5rem;
}

.post-meta .post-tags {
  display: inline-flex;
  margin-top: 0;
  vertical-align: middle;
}

.year-group {
  margin-bottom: 2.25rem;
}

.year-group:last-child {
  margin-bottom: 0;
}

.year-heading {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(43, 29, 14, 0.25);
}

.year-group .post-item {
  margin-bottom: 0.75rem;
}

.year-group .post-item:last-child {
  margin-bottom: 0;
}

.year-group .post-item-header {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.9rem;
}

.year-group .post-date {
  min-width: 2.9rem;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  opacity: 0.75;
  font-size: 0.9rem;
}

.post-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  background-color: rgba(43, 29, 14, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.post-content pre {
  background-color: rgba(43, 29, 14, 0.06);
  border: 1px solid rgba(43, 29, 14, 0.18);
  border-radius: 4px;
  padding: 1rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  line-height: 1.45;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  white-space: pre;
}

.post-content blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid rgba(43, 29, 14, 0.3);
  opacity: 0.85;
}

.post-content blockquote p {
  margin: 0.5rem 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25rem 0;
  border: 1px solid rgba(43, 29, 14, 0.18);
}

/* CV / man page */

.man-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.85rem;
  opacity: 0.65;
  letter-spacing: 0.03em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(43, 29, 14, 0.25);
  margin-bottom: 1.75rem;
}

.man-bar-footer {
  padding-bottom: 0;
  padding-top: 0.75rem;
  border-bottom: none;
  border-top: 1px solid rgba(43, 29, 14, 0.25);
  margin-top: 2rem;
  margin-bottom: 0;
}

.man-section {
  margin-bottom: 2rem;
}

.man-section h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(43, 29, 14, 0.25);
  padding-bottom: 0.35rem;
  margin: 0 0 0.85rem;
}

.man-indent {
  padding-left: 0.25rem;
}

.man-h1 {
  font-size: 1em;
  font-weight: normal;
  margin: 0;
}

.man-stack > * {
  margin: 0 0 0.85rem;
}

.man-stack > *:last-child {
  margin-bottom: 0;
}

.man-stack-lg > * {
  margin: 0 0 1.5rem;
}

.man-stack-lg > *:last-child {
  margin-bottom: 0;
}

.man-dim {
  opacity: 0.55;
}

.man-synopsis .man-name {
  font-weight: bold;
}

.man-synopsis .man-flag {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  background-color: rgba(43, 29, 14, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.man-opt-name {
  font-weight: bold;
  margin: 0;
}

.man-opt-value {
  margin: 0.15rem 0 0;
  opacity: 0.8;
}

.man-skill-category {
  font-weight: bold;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.man-skill-text {
  opacity: 0.75;
  font-size: 0.9rem;
  line-height: 1.55;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-badge {
  font-size: 0.8rem;
  background-color: rgba(43, 29, 14, 0.08);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.man-file {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.xp-entry {
  border-left: 2px solid rgba(43, 29, 14, 0.3);
  padding-left: 1rem;
}

.xp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.xp-role {
  font-weight: bold;
  font-size: 1.05rem;
}

.xp-period {
  opacity: 0.6;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.xp-summary {
  opacity: 0.85;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.xp-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.xp-bullets li {
  padding-left: 1.1rem;
  position: relative;
}

.xp-bullets li::before {
  content: "-";
  position: absolute;
  left: 0;
  opacity: 0.55;
}

.xp-tech {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
}

.man-quote {
  margin: 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid rgba(43, 29, 14, 0.3);
  font-style: italic;
}

.man-quote p {
  margin: 0 0 0.5rem;
}

.man-quote footer {
  opacity: 0.7;
  font-style: normal;
  font-size: 0.9rem;
}

.man-quote footer::before {
  content: "- ";
}
