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

body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6875; /* ~27px at 16px */
  color: #444;
  background: #fff;
}

a { color: #dc4b4b; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container {
  padding-top: 0;
  padding-bottom: 4rem;
  min-height: 60vh;
}

/* ---- Site header ---- */
.site-header {
  padding: 2rem 0 0;
  margin-bottom: 5rem;
}

.site-nav {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.site-title {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #444;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Short decorative line to the right of the site name */
.site-title::after {
  content: '';
  display: inline-block;
  border-top: 3px solid #eee;
  width: 60px;
  vertical-align: middle;
}

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

.site-nav a:not(.site-title) {
  font-size: 0.875rem;
  color: #bbb;
}

.site-nav a:not(.site-title):hover { color: #dc4b4b; text-decoration: none; }

/* Site description — home page only */
.site-desc {
  margin: 2rem 0 4rem;
  font-size: 1.775rem;
  line-height: 1.35;
  font-weight: 300;
  color: #222;
  max-width: 67%;
}

.site-desc a { color: #222; text-decoration: none; border-bottom: 1px solid #bbb; }
.site-desc a:hover { color: #dc4b4b; text-decoration: none; border-bottom-color: #dc4b4b; }

/* ---- Post meta (date, tags) ---- */
.post-meta {
  font-size: 0.6875rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.875rem;
}

.post-meta time { margin-right: 0.75rem; }

.post-tags { letter-spacing: 0; text-transform: none; }

.post-tags a {
  color: #bbb;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.post-tags a:hover { color: #dc4b4b; text-decoration: none; }

.draft-badge {
  background: #e6a028;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  vertical-align: middle;
}

/* ---- Post list (home / tag pages) ---- */
.post-list { margin-bottom: 1rem; }

.post-summary {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.post-summary:last-child { border-bottom: none; }

.post-summary-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  line-height: 1.4;
}

/* Base color for post titles; nth-child rules below graduate red → amber */
.post-summary-title a { color: #dc4b4b; }
.post-summary-title a:hover { opacity: 0.75; text-decoration: none; }

/* Red (#dc4b4b) → amber (#e6a028) across 20 posts per page */
.post-list .post-summary:nth-child(1)  .post-summary-title a { color: #dc4b4b; }
.post-list .post-summary:nth-child(2)  .post-summary-title a { color: #dd4f49; }
.post-list .post-summary:nth-child(3)  .post-summary-title a { color: #dd5447; }
.post-list .post-summary:nth-child(4)  .post-summary-title a { color: #de5845; }
.post-list .post-summary:nth-child(5)  .post-summary-title a { color: #de5d44; }
.post-list .post-summary:nth-child(6)  .post-summary-title a { color: #df6142; }
.post-list .post-summary:nth-child(7)  .post-summary-title a { color: #df6640; }
.post-list .post-summary:nth-child(8)  .post-summary-title a { color: #e06a3e; }
.post-list .post-summary:nth-child(9)  .post-summary-title a { color: #e06f3c; }
.post-list .post-summary:nth-child(10) .post-summary-title a { color: #e1733a; }
.post-list .post-summary:nth-child(11) .post-summary-title a { color: #e17839; }
.post-list .post-summary:nth-child(12) .post-summary-title a { color: #e27c37; }
.post-list .post-summary:nth-child(13) .post-summary-title a { color: #e28135; }
.post-list .post-summary:nth-child(14) .post-summary-title a { color: #e38533; }
.post-list .post-summary:nth-child(15) .post-summary-title a { color: #e38a31; }
.post-list .post-summary:nth-child(16) .post-summary-title a { color: #e48e2f; }
.post-list .post-summary:nth-child(17) .post-summary-title a { color: #e4932e; }
.post-list .post-summary:nth-child(18) .post-summary-title a { color: #e5972c; }
.post-list .post-summary:nth-child(19) .post-summary-title a { color: #e59c2a; }
.post-list .post-summary:nth-child(20) .post-summary-title a { color: #e6a028; }

/* ---- Single post ---- */

/* Featured image */
.post-image {
  margin: 0 0 2rem;
}

.post-image figcaption {
  font-size: 0.6875rem;
  color: #ccc;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

.post-image img {
  width: 100%;
}

/* Post title — font-weight 900 + 120px underline matching thoughts theme */
.post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  margin: 0 0 4.375rem; /* 70px */
  position: relative;
}

.post-title::after {
  content: '';
  border-top: 6px solid #3d4145;
  width: 120px;
  position: absolute;
  left: 0;
  bottom: -20px;
}

/* Post body */
.post-content {
  margin-top: 0;
  color: #888;
  font-size: 1rem;
  line-height: 1.6875;
}

.post-content p {
  margin: 0 0 1.875rem; /* 30px */
  font-size: 1.15em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: #333;
  font-weight: 700;
  margin: 2.5rem 0 1.875rem;
  line-height: 1.3;
}

.post-content h2 { font-size: 1.6875rem; line-height: 1.35; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.125rem; }
.post-content h5,
.post-content h6 { text-transform: uppercase; font-size: 1rem; }

/* Blockquote — large " opening mark, matching thoughts theme exactly */
.post-content blockquote {
  font-size: 1em;
  line-height: 1.5;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-style: italic;
  color: #aaa;
  padding-left: 55px;
  margin: 0 0 1.875rem;
  position: relative;
}

.post-content blockquote > :last-child { margin-bottom: 0; }

.post-content blockquote::before {
  content: '\201C';
  font-size: 3.75rem;
  color: #ddd;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: normal;
  position: absolute;
  top: 15px;
  left: 10px;
  line-height: 1;
}

/* Lists — bordered box style from thoughts theme */
.post-content ul,
.post-content ol {
  font-size: 0.875rem;
  border: 1px solid #efefef;
  padding: 5px 20px;
  margin: 0 0 1.875rem;
  list-style: none;
  border-radius: 3px;
}

.post-content li {
  line-height: 1.5;
  padding: 10px 0 10px 25px;
  position: relative;
}

.post-content li + li {
  border-top: 1px solid #efefef;
}

.post-content ul li::before {
  content: '›';
  position: absolute;
  left: 5px;
  color: #ddd;
  font-size: 1.1em;
}

.post-content ol {
  counter-reset: ol-counter;
}

.post-content ol li::before {
  content: counter(ol-counter) ".";
  counter-increment: ol-counter;
  position: absolute;
  left: 0;
  color: #ccc;
  font-size: 0.8125rem;
}

.post-content pre {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
  background: #f5f5f5;
  border-radius: 3px;
  padding: 15px 20px;
  overflow-x: auto;
  margin: 0 0 1.875rem;
}

.post-content code {
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: #f5f5f5;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post-content pre code { background: none; padding: 0; font-size: inherit; }

.post-content figure { margin: 1.5rem 0; }

.post-content figcaption {
  font-size: 0.8125rem;
  color: #bbb;
  margin-top: 0.5rem;
  text-align: center;
}

.post-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

.post-content a { color: #dc4b4b; }

/* ---- Post navigation ---- */
.post-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.post-nav a { color: #aaa; }
.post-nav a:hover { color: #dc4b4b; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 2rem;
  font-size: 0.875rem;
}

.pagination a { color: #aaa; }
.pagination a:hover { color: #dc4b4b; }

/* ---- Pages (about, etc.) ---- */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4.375rem;
  position: relative;
  color: #222;
}

.page-title::after {
  content: '';
  border-top: 6px solid #3d4145;
  width: 120px;
  position: absolute;
  left: 0;
  bottom: -20px;
}

/* ---- Tags ---- */
.tag-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 2rem;
  color: #222;
}

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

.tag-list li { margin-bottom: 0.5rem; }
.tag-list a { color: #999; font-size: 0.9375rem; }
.tag-list a:hover { color: #dc4b4b; text-decoration: none; }

/* ---- Fat footer ---- */
.fat-footer {
  background: #fafafa;
  padding: 60px 0;
  margin-top: 2rem;
}

.fat-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.fat-footer__col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  position: relative;
}

.fat-footer__col h4::after {
  content: '';
  border-top: 3px solid #eee;
  width: 60px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.fat-footer__col p {
  font-size: 0.875rem;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

/* ---- Site footer ---- */
.site-footer {
  background: #f5f5f5;
  padding: 26px 0;
  font-size: 0.75rem;
  color: #aaa;
}

.site-footer p { margin: 0; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #dc4b4b; }

/* ---- Responsive ---- */
@media (max-width: 520px) {
  body { font-size: 15px; }
  .post-title { font-size: 1.5rem; margin-bottom: 3rem; }
  .site-desc { font-size: 1.35rem; max-width: 100%; }
  .tag-list { columns: 1; }
  .post-content blockquote { padding-left: 40px; }
}
