/* Blog-only styles. Tokens come from ds/industry-…/styles.css; patterns mirror index.html. */

/* — shared — */
.blog-kicker {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent-700); margin-bottom: 12px; text-decoration: none;
}
a.blog-kicker:hover { color: var(--color-accent-900); }
.blog-rule { height: 1px; background: var(--color-divider); margin-bottom: 40px; }
.post-date {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* — index — */
.blog-index { padding: clamp(56px, 9vw, 112px) 0 72px; }
.blog-heading {
  font-size: clamp(44px, 7vw, 92px); line-height: 1.04; letter-spacing: 0.01em;
  text-transform: uppercase; margin: 0 0 48px; max-width: 16ch;
}
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--color-divider); }
.post-item { padding: 32px 0; border-bottom: 1px solid var(--color-divider); display: grid; gap: 12px; }
.post-item-title {
  font-size: clamp(28px, 3vw, 36px); line-height: 1.08; text-transform: uppercase;
  letter-spacing: 0.02em; margin: 0;
}
.post-item-title a { color: var(--color-text); text-decoration: none; }
.post-item-title a:hover { color: var(--color-accent); }
.post-excerpt {
  font-size: 17px; line-height: 1.55; max-width: 60ch; margin: 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

/* — post — */
.post { padding: clamp(56px, 9vw, 112px) 0 72px; max-width: 72ch; }
.post-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--color-divider); }
.post-byline {
  font-size: 18px; line-height: 1.4; margin: 0 0 8px;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.post-title {
  font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: 0.01em;
  text-transform: uppercase; margin: 0 0 20px;
}

.post-body { font-size: 20px; line-height: 1.7; max-width: 66ch; }
.post-body > * { margin: 0 0 1.2em; }
.post-body h2, .post-body h3, .post-body h4 {
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; margin: 1.8em 0 0.6em;
}
.post-body h2 { font-size: 34px; }
.post-body h3 { font-size: 26px; }
.post-body h4 { font-size: 21px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin-bottom: 0.4em; }
.post-body li::marker { color: var(--color-accent-700); }
.post-body blockquote {
  margin-left: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--color-accent);
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.post-body code {
  font-size: 0.85em; padding: 0.1em 0.35em; border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.post-body pre {
  font-size: 15px; line-height: 1.55; padding: 20px 24px; overflow-x: auto;
  background: var(--color-surface); border: 1px solid var(--color-divider);
}
.post-body pre code { padding: 0; background: none; font-size: inherit; }
.post-body img { max-width: 100%; height: auto; display: block; border: 1px solid var(--color-divider); }
.post-body hr { border: 0; height: 1px; background: var(--color-divider); margin: 2em 0; }

/* Pull quote: a duplicate of a key line, floated into the right margin beside
   its paragraph. Hidden where there's no margin, since the text already has it.
   Markdown can't emit the four .corner children, so the "+" marks are drawn
   with gradients instead. */
.post-body .pullquote { display: none; }
@media (min-width: 1140px) {
  .post-body .pullquote {
    display: block; float: right; clear: right;
    width: 240px; margin: 0.4em -290px 1em 0; padding: 20px 22px;
    position: relative; border: 1px solid var(--color-divider);
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 22px; line-height: 1.25; letter-spacing: 0.01em;
    color: var(--color-accent-800);
  }
}
.post-body .pullquote::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  --mark: color-mix(in srgb, var(--color-text) 55%, transparent);
  --v: linear-gradient(var(--mark), var(--mark)) no-repeat;
  background:
    var(--v) left 5px top 0 / 1px 11px,     var(--v) left 0 top 5px / 11px 1px,
    var(--v) right 5px top 0 / 1px 11px,    var(--v) right 0 top 5px / 11px 1px,
    var(--v) left 5px bottom 0 / 1px 11px,  var(--v) left 0 bottom 5px / 11px 1px,
    var(--v) right 5px bottom 0 / 1px 11px, var(--v) right 0 bottom 5px / 11px 1px;
}

/* Questions: a run of rhetorical questions, each on its own ruled line */
.post-body .questions { list-style: none; padding: 0; border-top: 1px solid var(--color-divider); }
.post-body .questions li { margin: 0; padding: 16px 0 16px 24px; border-bottom: 1px solid var(--color-divider); position: relative; }
.post-body .questions li::before {
  content: "?"; position: absolute; left: 0; top: 16px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); color: var(--color-accent);
}
.post-body .questions strong {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-accent-700);
}

/* Debate: alternating AI / Me turns */
.post-body .debate { border-left: 1px solid var(--color-divider); padding-left: 24px; }
.post-body .debate p { margin: 0 0 1em; }
.post-body .debate strong:first-child {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 0.85em; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); margin-right: 0.25em;
}

.post-linkedin { margin-top: 2em; display: flex; flex-wrap: wrap; gap: 12px; }

/* Author bio */
.post-body .author-bio {
  margin-top: 3em; padding-top: 32px; border-top: 1px solid var(--color-divider);
  font-size: 17px; line-height: 1.55; color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.post-body .author-bio {
  display: grid; grid-template-columns: clamp(72px, 12vw, 112px) 1fr; gap: 0 clamp(16px, 3vw, 28px); align-items: start;
}
.post-body .author-bio .author-photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-body .author-bio > div > * { margin: 0 0 0.6em; }
