/* ==========================================================================
   kontest — blog styles (loads after tokens.css + base.css)
   Only blog-specific layout lives here; everything else composes base.css
   classes. No new hex values — tokens only.
   ========================================================================== */

/* ---------- blog index ---------- */

.blog-hero { padding-bottom: clamp(28px, 4vw, 48px); }

.blog-list { padding-bottom: var(--space); }

.post-card { display: flex; flex-direction: column; gap: 10px; }

.post-card--featured {
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.post-card--featured .post-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: .2px;
}

.post-card__meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.post-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--accent-deep); }

.post-card__cta { margin-top: 6px; }

.post-grid { margin-top: 0; }

/* ---------- blog index: empty state (no live posts) ---------- */

.blog-empty {
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
}

.blog-empty__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
}

.blog-empty__copy { max-width: 58ch; }

.blog-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.blog-empty__note { color: var(--text-3); font-size: 14px; }
.blog-empty__note a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.blog-empty__note a:hover { color: var(--accent); }

/* ---------- post page ---------- */

.post-container { max-width: 760px; }

.post-header { margin-bottom: clamp(24px, 4vw, 40px); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}

.post-meta__back { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.post-meta__back:hover { text-decoration: underline; }
.post-meta__sep { color: var(--line); }

.post-title { font-size: clamp(32px, 5.4vw, 54px); margin-bottom: 16px; }

.post-lead { margin-bottom: 14px; }

.post-byline { font-size: 14px; color: var(--text-3); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.post-hero {
  margin: 0 0 clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.post-hero img { display: block; width: 100%; height: auto; }

/* Portrait hero (app screenshot) — presented in the site's phone frame, so the
   figure itself carries no card chrome of its own. */
.post-hero--device {
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: none;
}
.post-hero--device .phone img { height: auto; }

/* article body typography */
.post-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}

.post-body > * + * { margin-top: 1.1em; }

.post-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: var(--text);
  margin-top: 1.8em;
}

.post-body h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  margin-top: 1.6em;
}

.post-body strong { color: var(--text); }

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

.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .5em; }
.post-body li::marker { color: var(--accent-deep); }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 2px 6px;
}

.post-body pre {
  background: var(--ink);
  color: #F6F1E9;
  border-radius: var(--r-md);
  padding: 18px 20px;
  overflow-x: auto;
}
.post-body pre code { background: none; border: 0; padding: 0; color: inherit; }

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

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

/* "up next" block */
.post-next {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.post-next__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.25;
  margin: 10px 0 8px;
}

.post-next__title a { color: var(--text); text-decoration: none; }
.post-next__title a:hover { color: var(--accent-deep); }
