/* ── Fonts ──────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Departure Mono';
  src: url('/fonts/DepartureMono-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Digitany';
  src: url('/fonts/Digitany.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Annotation Mono';
  src: url('/fonts/Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Annotation Mono';
  src: url('/fonts/DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Annotation Mono';
  src: url('/fonts/Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

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

/* ── Base ───────────────────────────────────────────────────────────────── */

html {
  font-size: 18px;
}

body {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  background-color: #1A1313;
  color: #DAD4BA;
  font-family: 'Departure Mono', monospace;
  line-height: 1.5;
}

/* ── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Digitany', 'Departure Mono', monospace;
  color: #EBA123;
  line-height: 2;
  margin-top: 1.5em;
  margin-bottom: 0.25em;
}

h1 { font-size: 1.78rem; }
h2 { font-size: 1.56rem; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.11rem; }
h5 { font-size: 1rem;    }
h6 { font-size: 0.89rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25em;
}

strong {
  color: #EBA123;
}

em {
  color: #77D989;
}

.digitany {
  font-family: 'Digitany', 'Departure Mono', monospace;
}

/* ── Links ──────────────────────────────────────────────────────────────── */

a {
  color: #7A97CC;
  text-decoration: none;
}

a:hover {
  color: #8DCBCC;
  text-decoration: underline;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header {
  margin-bottom: 2.5rem;
}

.site-title {
  font-family: 'Digitany', 'Departure Mono', monospace;
  font-size: 1.78rem;
  color: #DAD4BA;
  text-decoration: none;
}

.site-title:hover {
  color: #EBA123;
  text-decoration: none;
}

.tagline {
  color: #6B997B;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ── Homepage ───────────────────────────────────────────────────────────── */

.home-art {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  image-rendering: pixelated;
}

.links {
  margin-bottom: 1.5rem;
}

.links p,
.musings p {
  margin-bottom: 0.25em;
}

.musings {
  margin-top: 2rem;
}

/* ── Article ────────────────────────────────────────────────────────────── */

.article h1 {
  margin-top: 0;
}

.date {
  color: #77D989;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.tags {
  color: #6B997B;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.featured-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 20px;
  display: block;
  margin-bottom: 1.5rem;
}

.article-body img {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
}

/* ── Blog listing ───────────────────────────────────────────────────────── */

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

.post-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.post-list .date {
  margin-bottom: 0;
}

/* ── Code ───────────────────────────────────────────────────────────────── */

code {
  font-family: 'Departure Mono', monospace;
  font-size: 0.9rem;
  background-color: #30231E;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  background-color: #30231E;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Blockquote ─────────────────────────────────────────────────────────── */

blockquote {
  border-left: 3px solid #EBA123;
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  color: #6B997B;
}

/* ── Horizontal rule ────────────────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid #30231E;
  margin: 2rem 0;
}

/* ── Lists ──────────────────────────────────────────────────────────────── */

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

th {
  text-align: left;
  color: #EBA123;
  border-bottom: 1px solid #30231E;
  padding: 0.5rem 0.75rem;
}

td {
  border-bottom: 1px solid #30231E;
  padding: 0.5rem 0.75rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .home-art {
    float: none;
    display: block;
    margin: 0 0 1.5rem 0;
  }
}
