/* terremoto.net — base styles */
:root {
  --text: #000;
  --muted: #555;
  --accent: #0057ff;
  --rule: #e5e5e5;
  --bg: #fff;
  --max: 680px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, "Nimbus Mono L", monospace;
  font-size: 17px;
  line-height: 1.75;
  /* A touch more weight than regular Courier without jumping to full bold. */
  -webkit-text-stroke: 0.35px currentColor;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep <pre>/<code> visually distinct from the rest even though the whole
   site is monospace now. */
article.post .content pre,
article.post .content code { font-family: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site {
  margin-bottom: 48px;
}
header.site h1 {
  font-size: 22px;
  margin: 0 0 4px;
}
header.site h1 a {
  color: var(--text);
  text-decoration: none;
}
header.site p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.post-list article:last-child { border-bottom: 0; }
.post-list h2 {
  font-size: 22px;
  margin: 0 0 4px;
  line-height: 1.3;
}
.post-list h2 a {
  color: var(--text);
  text-decoration: none;
}
.post-list h2 a:hover { color: var(--accent); }
.post-list time {
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.post-list p {
  margin: 8px 0 0;
  color: #333;
}

/* Single post */
article.post h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}
article.post > time {
  display: block;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}
article.post .content { word-wrap: break-word; }
article.post .content img,
article.post .content iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}
article.post .content p { margin: 1em 0; }
article.post .content h2 { font-size: 24px; margin-top: 2em; }
article.post .content h3 { font-size: 20px; margin-top: 1.5em; }
article.post .content blockquote {
  border-left: 3px solid var(--rule);
  margin: 1.5em 0;
  padding: 0 0 0 20px;
  color: var(--muted);
}
article.post .content pre {
  background: #f5f5f5;
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
}
article.post .content code {
  background: #f5f5f5;
  padding: 2px 6px;
  font-size: 0.9em;
}
article.post .content pre code { background: none; padding: 0; }

/* Podcast player */
.podcast-player {
  margin: 24px 0 32px;
  padding: 20px;
  border: 1px solid var(--rule);
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.podcast-player .podcast-cover {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}
.podcast-player audio {
  flex: 1 1 260px;
  min-width: 0;
  width: 100%;
}
.podcast-player .podcast-duration {
  font-size: 14px;
  color: var(--muted);
}

/* Pagination */
nav.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
nav.pager a { text-decoration: none; }
nav.pager span { color: var(--muted); }

/* Footer */
footer.site {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
footer.site a { color: var(--muted); }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 32px 20px 64px; }
  article.post h1 { font-size: 26px; }
}
