/* ClockSplit blog — Industrial Precision typography for editorial pages.
   Layered on top of base.css + design.css + site.css. */

/* ---------- shared blog header strip ---------- */
.blog-rule {
  border-top: 1px solid var(--rule);
  margin: 0;
}

.blog-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.blog-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}
.blog-eyebrow .sep {
  width: 22px; height: 1px; background: var(--ink-2, #4b6171);
  display: inline-block;
}

/* ---------- blog INDEX layout ---------- */
.blog-index-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(75,97,113,0.06), transparent 60%),
    var(--background, #f7f9fb);
}
.blog-index-hero h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 18px 0 18px;
  max-width: 18ch;
}
.blog-index-hero h1 em {
  font-style: italic;
  color: var(--ink-2, #4b6171);
}
.blog-index-hero .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--on-surface-variant);
  max-width: 60ch;
  line-height: 1.55;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.post-card {
  background: #fff;
  padding: clamp(28px, 3.5vw, 40px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 200ms ease;
}
.post-card:hover {
  background: var(--surface-container-low, #f0f4f7);
}
.post-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.post-card .meta .id { color: var(--ink); }
.post-card h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0;
}
.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.post-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.post-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0;
  flex: 1;
}
.post-card .read {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-top: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-card .read::after { content: "→"; }
.post-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: var(--surface-container-low, #f0f4f7);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
}

/* ---------- ARTICLE layout ---------- */
.article-shell {
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(75,97,113,0.05), transparent 60%),
    var(--background, #f7f9fb);
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 26px;
}
.article-meta-row .id { color: var(--ink); }
.article-meta-row .sep {
  width: 22px; height: 1px;
  background: var(--ink-2, #4b6171);
  display: inline-block;
}

.article-shell h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0 0 24px;
  max-width: 22ch;
}
.article-shell h1 em {
  font-style: italic;
  color: var(--ink-2, #4b6171);
}
.article-shell .article-lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 60ch;
  margin: 0 0 30px;
}
.article-shell .byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-shell .byline .dot {
  width: 6px; height: 6px; background: var(--ink); border-radius: 50%;
  display: inline-block;
}

.article-body {
  padding: clamp(40px, 5vw, 72px) 0 clamp(60px, 7vw, 100px);
}
.article-body .container-wide {
  max-width: 760px;
}
.article-body h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 60px 0 18px;
  color: var(--ink);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 36px 0 14px;
  color: var(--ink);
}
.article-body p,
.article-body li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-surface, #2a3439);
}
.article-body p {
  margin: 0 0 18px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}
.article-body a:hover { color: var(--ink-2, #4b6171); }

/* Pull-quote / callout block */
.article-callout {
  margin: 32px 0;
  padding: 26px 28px;
  background: var(--surface-container-low, #f0f4f7);
  border-left: 3px solid var(--ink);
  border-radius: 0 4px 4px 0;
}
.article-callout p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.article-callout .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

/* In-article CTA card */
.article-cta {
  margin: 44px 0;
  padding: 32px;
  background: #fff;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: 0 1px 0 0 var(--rule), 0 0 0 1px var(--rule);
}
@media (max-width: 640px) {
  .article-cta { grid-template-columns: 1fr; }
}
.article-cta .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}
.article-cta h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.article-cta p {
  margin: 0;
  font-size: 14.5px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}
.article-cta .btn-ink,
.article-cta .btn-outline {
  white-space: nowrap;
}

/* Inline sample output box, mirrors landing .sample-out */
.article-body pre.sample {
  background: var(--surface-container-low, #f0f4f7);
  padding: 18px 20px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
  white-space: pre-wrap;
  overflow-x: auto;
}
.article-body pre.sample .num { color: var(--ink-2, #4b6171); font-weight: 700; }

/* Article footer / "more reading" strip */
.article-more {
  padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 7vw, 100px);
  background: var(--surface-container-low, #f0f4f7);
  border-top: 1px solid var(--rule);
}
.article-more h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 26px;
}
.article-more .more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: #fff;
}
.article-more .more-grid a {
  padding: 22px 24px;
  background: #fff;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  transition: background 200ms ease;
}
.article-more .more-grid a:hover { background: var(--background, #f7f9fb); }
.article-more .more-grid .id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.article-more .more-grid h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.25;
}

/* FAQ section inside articles */
.article-faq {
  padding: clamp(40px, 5vw, 60px) 0;
  background: var(--background, #f7f9fb);
  border-top: 1px solid var(--rule);
}
.article-faq h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
}
.article-faq details {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.article-faq details:last-child { border-bottom: 1px solid var(--rule); }
.article-faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--slate);
  font-size: 22px;
  line-height: 1;
}
.article-faq details[open] summary::after { content: "−"; }
.article-faq .a {
  padding-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 65ch;
}
