/* Daily Build Log */

.blog-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.16), transparent 34rem),
    radial-gradient(circle at 84% 20%, rgba(255, 215, 0, 0.12), transparent 30rem),
    var(--navy);
}

.blog-body #bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.blog-horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255, 215, 0, 0.12), transparent);
}

.blog-shell,
.blog-footer {
  position: relative;
  z-index: 4;
}

.blog-shell {
  width: min(1420px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
  min-height: 560px;
  padding: 3rem 0 4rem;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #7dd3fc;
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.blog-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, #7dd3fc, var(--gold));
}

.blog-hero h1 {
  max-width: 10ch;
  margin-top: 1rem;
  color: var(--white);
  font-size: 7.8rem;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 0 54px rgba(255, 215, 0, 0.16),
    0 24px 80px rgba(0, 0, 0, 0.46);
}

.blog-hero-lede {
  max-width: 720px;
  margin-top: 1.4rem;
  color: #b9c7df;
  font-size: 1.18rem;
  line-height: 1.72;
}

.blog-hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.blog-button:hover,
.blog-button:focus-visible {
  transform: translateY(-2px);
}

.blog-button-primary {
  border: 1px solid rgba(255, 215, 0, 0.65);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 18px 44px rgba(255, 215, 0, 0.12);
}

.blog-button-secondary {
  border: 1px solid rgba(125, 211, 252, 0.36);
  background: rgba(125, 211, 252, 0.07);
  color: #dff6ff;
}

.blog-signal-panel {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-top: 3px solid rgba(125, 211, 252, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.12), rgba(255, 215, 0, 0.06)),
    rgba(13, 22, 53, 0.78);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.signal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.9);
}

.signal-label {
  margin-top: 1.4rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.blog-signal-panel strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 5rem;
  line-height: 1;
}

.blog-signal-panel span:last-child {
  color: #b9c7df;
  font-size: 0.9rem;
}

.blog-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 3rem;
}

.featured-entry,
.entry-index {
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 8px;
  background: rgba(13, 22, 53, 0.72);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.featured-entry {
  min-height: 620px;
  padding: 2.2rem;
}

.featured-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  color: #a7e8ff;
  background: rgba(125, 211, 252, 0.07);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-entry h2 {
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.featured-summary {
  max-width: 830px;
  margin-top: 1rem;
  color: #d9e4f4;
  font-size: 1.18rem;
  line-height: 1.68;
}

.featured-body {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  color: #b9c7df;
  font-size: 1rem;
  line-height: 1.85;
}

.featured-body pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.72);
  color: #e8eeff;
  font-size: 0.9rem;
  line-height: 1.6;
}

.learned-panel {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 215, 0, 0.12);
}

.learned-panel h3,
.entry-index h2 {
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1.1;
}

.learned-panel ul {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: #d9e4f4;
}

.learned-panel li::marker {
  color: var(--gold);
}

.tag-row {
  margin-top: 1.7rem;
}

.entry-index {
  position: sticky;
  top: 82px;
  padding: 1.4rem;
}

.entry-index h2 {
  margin: 0.5rem 0 1rem;
}

.entry-list {
  display: grid;
  gap: 0.7rem;
}

.entry-index-item {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(125, 211, 252, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.entry-index-item:hover,
.entry-index-item.is-active {
  border-left-color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  transform: translateY(-2px);
}

.entry-index-item span,
.entry-index-item em,
.entry-index-empty,
.entry-loading {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.entry-index-item strong {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.25;
}

.entry-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.entry-loading span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
}

.empty-blog {
  display: grid;
  align-content: center;
  min-height: 440px;
  max-width: 680px;
}

.empty-blog h2 {
  color: var(--gold);
  font-size: 3.4rem;
  line-height: 1;
}

.empty-blog p {
  margin: 1rem 0 1.4rem;
  color: #b9c7df;
  font-size: 1.05rem;
  line-height: 1.72;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2.4rem 1.5rem 3.6rem;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  color: var(--muted);
  font-size: 0.76rem;
}

.blog-footer a {
  color: var(--gold-dk);
  text-decoration: none;
}

.blog-footer a:hover {
  color: var(--gold);
}

.blog-footer nav {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .blog-hero,
  .blog-stage {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    min-height: auto;
  }

  .blog-hero h1 {
    font-size: 5.6rem;
  }

  .blog-signal-panel {
    width: min(100%, 480px);
  }

  .entry-index {
    position: static;
  }
}

@media (max-width: 620px) {
  .blog-shell {
    width: min(100% - 1rem, 1420px);
    padding-top: 5.5rem;
  }

  .blog-hero {
    padding-top: 1.4rem;
  }

  .blog-hero h1 {
    font-size: 3.65rem;
  }

  .blog-hero-lede,
  .featured-summary {
    font-size: 1rem;
  }

  .blog-hero-actions {
    flex-direction: column;
  }

  .blog-button {
    width: 100%;
  }

  .featured-entry {
    min-height: 520px;
    padding: 1.2rem;
  }

  .featured-entry h2,
  .empty-blog h2 {
    font-size: 2.35rem;
  }

  .blog-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-button,
  .entry-index-item {
    transition: none;
  }
}
