/* ============================================================================
   Teryli | Blog
   Reuses the main site's palette via its CSS variables (teryli-site.css).
   This file only adds article/archive typography; it does not re-theme the
   shared nav/footer, which are inherited from teryli-site.css.
   ============================================================================ */

/* Archive (blog index) ------------------------------------------------ */
.blog-cover {
  display: grid;
  gap: clamp(10px, 1.6vw, 18px);
  padding-block: clamp(64px, 9vw, 120px) clamp(20px, 3vw, 32px);
}

/* The Recent section sits directly under the cover; don't double up the
   global .section top padding (~150px) with the cover's bottom padding. */
.blog-cover + .section--paper {
  padding-top: clamp(36px, 5vw, 64px);
}

.blog-cover .lede {
  max-width: 58ch;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.post-list li {
  border-top: 1px solid var(--hair);
  padding: clamp(20px, 3vw, 32px) 0;
}

.post-list li:first-child {
  border-top: 0;
  padding-top: 14px;
}

.post-card {
  display: block;
  transition: opacity 320ms var(--ease);
}

.post-card:hover .post-card__title {
  color: var(--sage-deep);
}

.post-card__meta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.post-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  color: var(--ink);
  transition: color 320ms var(--ease);
  margin: 0 0 12px;
}

.post-card__excerpt {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 66ch;
  margin: 0 0 14px;
}

.post-card__read {
  font-size: 15px;
  font-weight: 550;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Article (single post) ---------------------------------------------- */
.post-head {
  padding-block: clamp(64px, 9vw, 110px) clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--hair);
}

.post-head .eyebrow { color: var(--sage-deep); }

.post-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 20ch;
  margin: 18px 0 0;
}

.post-head .lede {
  max-width: 60ch;
  margin-top: 22px;
}

.post-byline {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.post-body {
  max-width: 68ch;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 32px);
  padding-block: clamp(40px, 6vw, 72px);
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ink);
}

.post-body > * { margin-top: 0; margin-bottom: 1.15em; }

.post-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  color: var(--navy);
  margin: 1.6em 0 0.55em;
}

.post-body h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 19px;
  color: var(--navy);
  margin: 1.5em 0 0.45em;
}

.post-body p { margin-bottom: 1.25em; }

.post-body a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hair-strong);
}

.post-body a:hover { text-decoration-color: var(--sage-deep); }

.post-body ul, .post-body ol {
  padding-left: 1.3em;
  margin-bottom: 1.3em;
}

.post-body li { margin-bottom: 0.55em; }

.post-body blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--sage);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15em;
  line-height: 1.5;
  color: var(--navy-soft);
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 2.2em 0;
}

.post-body .note {
  background: var(--sage-soft);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 16px;
  color: var(--navy);
}

.post-actions {
  max-width: 68ch;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 32px);
  padding-block: 0 clamp(48px, 6vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--hair);
  padding-top: 28px;
}

.article-footer-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

@media (max-width: 620px) {
  .post-actions { flex-direction: column; align-items: flex-start; }
}
