/*
  Station70 blog stylesheet.
  Loaded (via <helmet>) by blog.html and every blog-*.html post.
  Extracted from what used to be per-element inline `style`/`style-hover`/
  `style-active` attributes — see CLAUDE.md's DC runtime section for why
  inline styles are otherwise this codebase's default. blog.html and the 11
  posts share one identical skeleton (CLAUDE.md, "Adding a new blog post"),
  so classes here are reused across the listing page and every post rather
  than duplicated per file.
*/

/* ---------- Shared (listing + posts) ---------- */

.s70-text-orange { color: var(--s70-orange); }

.s70-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--tint-orange-08);
  border: 1px solid var(--tint-orange-35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint-accent-soft);
}

.s70-avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint-orange-12);
  border: 1px solid var(--tint-orange-40);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tint-accent-soft);
  flex: none;
}

/* ---------- blog.html: listing page ---------- */

.s70-blog-page {
  position: relative;
  background: var(--s70-black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.s70-blog-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(60% 90% at 50% -20%, var(--tint-orange-16) 0%, var(--tint-orange-05) 40%, var(--tint-fade) 70%);
}

.s70-blog-container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(130px, 17vh, 180px) clamp(24px, 7vw, 120px) clamp(72px, 9vw, 110px);
  box-sizing: content-box;
}

.s70-blog-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.s70-blog-eyebrow-row { display: inline-flex; align-items: center; gap: 12px; }

.s70-blog-eyebrow-dash {
  width: 24px;
  height: 2px;
  background: var(--s70-orange);
  box-shadow: 0 0 8px var(--tint-orange-70);
}

.s70-blog-eyebrow-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tint-accent-soft);
}

.s70-blog-h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--s70-white);
  text-wrap: balance;
}

.s70-blog-subhead {
  margin: 0;
  max-width: 600px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--tint-white-60);
  text-wrap: pretty;
}

.s70-blog-pillrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.s70-blog-pill {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--tint-white-03);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms, border-color 140ms;
  color: var(--tint-white-55);
  border: 1px solid var(--tint-white-14);
}

.s70-blog-pill.is-active {
  color: var(--tint-accent-soft);
  border-color: var(--tint-orange-50);
}

.s70-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.s70-blog-card {
  display: flex;
  flex-direction: column;
  background: radial-gradient(90% 55% at 50% 118%, var(--tint-orange-14) 0%, var(--tint-orange-04) 42%, var(--tint-fade) 72%), var(--s70-ink-700);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms cubic-bezier(0.2,0.7,0.2,1), transform 160ms cubic-bezier(0.2,0.7,0.2,1);
}

.s70-blog-card:hover {
  border-color: var(--tint-orange-35);
  transform: translateY(-2px);
}

.s70-blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--tint-media-bg);
  border-bottom: 1px solid var(--tint-white-07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.s70-blog-card-gridpattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(var(--tint-white-03) 1px, transparent 1px), linear-gradient(90deg, var(--tint-white-03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.s70-blog-card-icon { position: relative; }

/* Author-supplied card image -- replaces the grid pattern + generated SVG
   icon inside .s70-blog-card-media entirely (see CLAUDE.md, "Adding a new
   blog post" step 2) rather than layering on top of them. */
.s70-blog-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s70-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 26px;
  flex: 1;
}

.s70-blog-card-meta { display: flex; align-items: center; gap: 12px; }

.s70-blog-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tint-white-40);
}

.s70-blog-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--s70-white);
  text-wrap: balance;
}

.s70-blog-card-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tint-white-55);
  text-wrap: pretty;
  flex: 1;
}

.s70-blog-card-authorrow { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

.s70-blog-card-authorname { font-size: 13px; font-weight: 500; color: var(--tint-white-70); }

/* ---------- blog-*.html: post pages ---------- */

.s70-post-article {
  position: relative;
  background: var(--s70-black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding: clamp(130px, 17vh, 180px) clamp(24px, 7vw, 120px) clamp(64px, 8vw, 96px);
}

.s70-post-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  pointer-events: none;
  background: radial-gradient(60% 90% at 50% -20%, var(--tint-orange-14) 0%, var(--tint-orange-04) 40%, var(--tint-fade) 70%);
}

.s70-post-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.s70-post-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint-white-50);
  text-decoration: none;
  align-self: flex-start;
}

.s70-post-backlink:hover { color: var(--fg-on-accent); }

.s70-post-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }

.s70-post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tint-white-45);
}

.s70-post-h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--s70-white);
  text-wrap: balance;
}

.s70-post-authorrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--tint-white-08);
}

.s70-post-authorinfo { display: flex; flex-direction: column; gap: 2px; }

.s70-post-authorname { font-size: 15px; font-weight: 600; color: var(--tint-white-85); }

.s70-post-authorrole { font-size: 13px; color: var(--tint-white-42); }

.s70-post-p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--tint-white-66);
  text-wrap: pretty;
}

.s70-post-h2 {
  margin: 44px 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--s70-white);
}

.s70-post-figure {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--s70-ink-700);
  border: 1px solid var(--border-default);
  border-radius: 14px;
}

.s70-post-blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--tint-white-88);
}

.s70-post-figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint-accent-soft);
}

.s70-post-callout {
  margin: 0 0 14px;
  padding: 22px 24px;
  background: var(--s70-ink-700);
  border: 1px solid var(--border-default);
  border-radius: 14px;
}

.s70-post-callout-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--s70-white);
  margin-bottom: 8px;
}

.s70-post-callout-body { font-size: 15px; line-height: 1.7; color: var(--tint-white-60); }

.s70-post-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--s70-ink-700);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.s70-post-cta-text { display: flex; flex-direction: column; gap: 6px; }

.s70-post-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--s70-white);
}

.s70-post-cta-sub { font-size: 15px; color: var(--tint-white-55); }

.s70-post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--s70-orange);
  color: var(--fg-on-accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 0 24px var(--tint-orange-35);
  transition: background 120ms cubic-bezier(0.2,0.7,0.2,1), transform 120ms cubic-bezier(0.2,0.7,0.2,1);
}

.s70-post-cta-btn:hover { background: var(--s70-orange-bright); }

.s70-post-cta-btn:active { background: var(--s70-orange-deep); transform: scale(0.97); }
