/* Blog index + post styles — extends rubrica.css and specialty.css */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Blog index */
.blog-index {
  background: var(--parchment);
  min-height: calc(100vh - 80px);
}

.blog-hero {
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 80px) clamp(40px, 5vw, 56px);
  max-width: 880px;
  margin: 0 auto;
}

.blog-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rubric);
  margin: 0 0 24px;
}

.blog-hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 24px;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--rubric);
  font-weight: 300;
}

.blog-hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--graphite);
  margin: 0 0 32px;
  max-width: 720px;
}

.blog-hero .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Post list */
.post-list {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 80px);
}

.post-card {
  border-top: 1px solid var(--rule);
  padding: clamp(32px, 4vw, 48px) 0;
}

.post-card:last-child {
  border-bottom: 1px solid var(--rule);
}

.post-card .post-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 16px;
}

.post-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-card h2 a:hover {
  color: var(--rubric);
}

.post-card .post-excerpt {
  font-size: 16px;
  line-height: 1.65;
  color: var(--graphite);
  margin: 0 0 20px;
}

.post-card .post-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.post-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bone);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: 999px;
}

.post-readmore {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--rubric);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}

.post-readmore:hover {
  opacity: 0.7;
}

/* Subscribe band */
.subscribe-band {
  background: var(--midnight);
  color: var(--cream);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 80px);
  text-align: center;
}

.subscribe-band h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 16px;
}

.subscribe-band > p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.78);
  margin: 0 auto 32px;
  max-width: 580px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input[type="email"] {
  flex: 1 1 280px;
  padding: 14px 18px;
  border: 1px solid rgba(246, 241, 231, 0.25);
  background: rgba(246, 241, 231, 0.05);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  border-radius: var(--radius);
}

.subscribe-form input[type="email"]::placeholder {
  color: rgba(246, 241, 231, 0.5);
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--rubric-bright);
  background: rgba(246, 241, 231, 0.1);
}

.subscribe-note {
  color: rgba(246, 241, 231, 0.55);
  font-size: 13px;
  margin: 0;
}

/* Single blog post */
.blog-post {
  background: var(--parchment);
  min-height: calc(100vh - 80px);
}

.blog-post article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 80px);
}

.post-header {
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}

.post-header .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rubric);
  margin: 0 0 24px;
}

.post-header h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 24px;
}

.post-byline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin: 0 0 24px;
}

.post-deck {
  font-size: 18px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 0;
  font-style: italic;
}

.blog-post article h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 56px 0 20px;
}

.blog-post article h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 36px 0 16px;
}

.blog-post article p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.blog-post article a {
  color: var(--rubric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post article ul,
.blog-post article ol {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 24px;
  padding-left: 28px;
}

.blog-post article li {
  margin-bottom: 8px;
}

.blog-post article code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--rubric);
}

.blog-post article hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

.blog-post article .callout {
  background: var(--cream);
  border-left: 3px solid var(--rubric);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--graphite);
}

.blog-post article .callout strong {
  color: var(--ink);
}

.blog-post article .callout a {
  word-break: break-all;
}

.post-cta {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  margin: 48px 0;
}

.post-cta h3 {
  margin-top: 0 !important;
}

.post-meta-section {
  font-size: 14px;
  color: var(--slate);
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  margin-top: 48px;
}

.post-meta-section h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  margin: 0 0 12px !important;
}

.post-meta-section p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--graphite) !important;
}

/* ============================================
   2026-05-14: Blog redesign for easy navigation
   ============================================ */

/* Search + filter chip row */
.blog-controls {
  max-width: 1080px;
  margin: 0 auto 32px;
  padding: 0 clamp(20px, 5vw, 80px);
}
.blog-controls #blog-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  margin-bottom: 16px;
}
.blog-controls #blog-search:focus {
  outline: 2px solid var(--rubric);
  outline-offset: -1px;
  border-color: var(--rubric);
}
.blog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-chip {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--graphite);
  cursor: pointer;
  transition: all 120ms ease;
}
.blog-chip:hover {
  border-color: var(--graphite);
  color: var(--ink);
}
.blog-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Multi-specialty subscribe form (checkbox grid) */
.subscribe-form-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
  margin: 0 auto;
}
.subscribe-row-email input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(246, 241, 231, 0.25);
  border-radius: 8px;
  background: rgba(246, 241, 231, 0.06);
  color: rgba(246, 241, 231, 0.95);
  font: inherit;
  font-size: 15px;
}
.subscribe-row-email input[type="email"]::placeholder {
  color: rgba(246, 241, 231, 0.4);
}
.subscribe-row-email input[type="email"]:focus {
  outline: 2px solid var(--rubric);
  outline-offset: -1px;
}
.subscribe-specialties {
  border: 1px solid rgba(246, 241, 231, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0;
}
.subscribe-specialties legend {
  padding: 0 8px;
  font-size: 13px;
  color: rgba(246, 241, 231, 0.7);
}
.subscribe-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(246, 241, 231, 0.95);
  cursor: pointer;
}
.subscribe-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--rubric);
  cursor: pointer;
}
.subscribe-form-v2 #sub-submit-btn {
  align-self: flex-start;
}
