/*
Theme Name: RatchetWorks
Description: Custom theme for ratchetworks.nl blog — v3 "Procedural / Engine Room" design
Version: 3.0
Author: Marco Alting
*/

/* ── WordPress admin bar ─────────────────────────────────── */
html {
  margin-top: 0 !important;
}

#wpadminbar {
  position: fixed !important;
}

/* ── Blog main layout ─────────────────────────────────────── */
main {
  padding: 120px 0 96px;
}

/* ── Category links inside .writing-tag ──────────────────── */
/* WordPress renders categories as <a> tags — reset their style */
.writing-tag a {
  color: inherit;
  text-decoration: none;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.pagination a {
  color: var(--muted);
  text-decoration: none;
}

.pagination a:hover {
  color: var(--green);
}

/* ── Single post layout ───────────────────────────────────── */
.post-article {
  max-width: 720px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
  margin: 12px 0 20px;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 16px;
}

/* ── Prose content ────────────────────────────────────────── */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--white);
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-weight: 700;
  color: var(--white);
  padding-left: 16px;
  border-left: 3px solid var(--green);
  line-height: 1.3;
}

.post-content h1 {
  font-size: 28px;
  margin: 56px 0 20px;
}

.post-content h2 {
  font-size: 24px;
  margin: 60px 0 16px;
}

.post-content h3 {
  font-size: 20px;
  margin: 40px 0 16px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: var(--green);
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
}

.post-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}

.post-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 16px 0;
  display: block;
}

.post-back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
  main {
    padding: 100px 0 64px;
  }
}