/* ========================================
   Killed by Claude — v2
   Modern warm dark, bento grid, Anthropic DNA
   ======================================== */

:root {
  /* Warm charcoal palette */
  --bg-deep:       #1A1715;
  --bg-surface:    #211D19;
  --bg-card:       #262220;
  --bg-card-hover: #2E2926;
  --bg-elevated:   #302B27;

  /* Text hierarchy */
  --text-primary:  #F5F0EB;
  --text-secondary:#B8AFA5;
  --text-muted:    #7A7268;

  /* Accent — Claude coral */
  --accent:        #E8784A;
  --accent-bright: #F09070;
  --accent-dim:    #C45E32;
  --accent-glow:   rgba(232, 120, 74, 0.15);
  --accent-faint:  rgba(232, 120, 74, 0.06);

  /* Borders & shadows */
  --border:        rgba(245, 240, 235, 0.08);
  --border-light:  rgba(245, 240, 235, 0.05);
  --border-accent: rgba(232, 120, 74, 0.18);
  --shadow:        0 2px 8px rgba(0, 0, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-lg:     0 4px 12px rgba(0, 0, 0, 0.15), 0 24px 48px rgba(0, 0, 0, 0.28);
  --glow-accent:   0 0 40px rgba(232, 120, 74, 0.08);

  /* Typography */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'Menlo', monospace;

  /* Spacing & shape */
  --radius:        14px;
  --radius-lg:     18px;
  --radius-sm:     8px;
  --gap:           10px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient background glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% -5%, rgba(232, 120, 74, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 85% 8%, rgba(180, 140, 100, 0.04), transparent),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(232, 120, 74, 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-bright); }

/* ========== HEADER ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  background: rgba(26, 23, 21, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.site-header .container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.site-logo:hover { color: var(--accent); }
.logo-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  line-height: 1;
}
.logo-icon svg {
  width: 16px;
  height: 16px;
}
.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition: all 0.15s ease;
}
.site-nav a:hover {
  color: var(--text-secondary);
  background: rgba(245, 240, 235, 0.04);
}
.site-nav a.active {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(245, 240, 235, 0.06);
}

/* ========== BENTO GRID ========== */

.bento-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: var(--gap);
  position: relative;
  z-index: 1;
}

/* Card base */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(245, 240, 235, 0.02), transparent 50%);
  pointer-events: none;
}
.bento-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow), var(--glow-accent);
  background: var(--bg-card-hover);
}

/* Scroll animation — JS adds .js-animate to hide, then .visible to reveal */
.bento-card.js-animate {
  opacity: 0;
  transform: translateY(12px);
}
.bento-card.js-animate.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bento-card.js-animate.visible:hover {
  transform: translateY(-1px);
}

/* Grid spans */
.card-hero {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.card-stats {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.card-status {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.card-explainer {
  grid-column: 1 / -1;
}
.card-case {
  grid-column: span 1;
}
.card-post {
  grid-column: 1 / 3;
}
.card-cta {
  grid-column: 3 / 4;
}

/* ---- Hero card ---- */
.card-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  background:
    radial-gradient(ellipse at 10% 90%, rgba(232, 120, 74, 0.05), transparent 50%),
    var(--bg-card);
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-dim);
}
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}
.hero-title .claude-accent {
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 30rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* CTA buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  cursor: pointer;
}
.cta-primary {
  color: #1A1715;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.cta-primary:hover {
  color: #1A1715;
  background: var(--accent-bright);
  box-shadow: 0 2px 8px rgba(232, 120, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.cta-secondary {
  color: var(--text-primary);
  background: rgba(245, 240, 235, 0.05);
  border-color: var(--border);
}
.cta-secondary:hover {
  color: var(--text-primary);
  background: rgba(245, 240, 235, 0.08);
  border-color: rgba(245, 240, 235, 0.15);
  transform: translateY(-1px);
}

/* ---- Stats card ---- */
.card-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.7rem 0;
}
.stat-row + .stat-row {
  border-top: 1px solid var(--border-light);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Status card ---- */
.card-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #4ADE80;
  opacity: 0;
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}
.status-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.status-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- Explainer card ---- */
.card-explainer {
  padding: 1.5rem 1.75rem;
}
.explainer-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.explainer-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
  line-height: 1.35;
}
.explainer-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
}
.explainer-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}
.explainer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ---- Case cards ---- */
.card-case {
  display: flex;
  flex-direction: column;
}
.case-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.case-dates {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}
.case-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.case-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  letter-spacing: 0.01em;
  align-self: flex-start;
}

/* ---- Latest post card ---- */
.card-post {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.post-card-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.post-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.post-card-title a {
  color: var(--text-primary);
}
.post-card-title a:hover {
  color: var(--accent);
}
.post-card-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- CTA card ---- */
.card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(232, 120, 74, 0.05), transparent 60%),
    var(--bg-card);
}
.cta-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.cta-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ========== BLOG LIST ========== */

.page-header {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(245, 240, 235, 0.02), transparent 50%);
  pointer-events: none;
}
.page-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.post-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--gap);
}
.post-item {
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.post-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(245, 240, 235, 0.02), transparent 50%);
  pointer-events: none;
}
.post-item:hover {
  transform: translateY(-1px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow), var(--glow-accent);
  background: var(--bg-card-hover);
}
.post-item-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
}
.post-item-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.post-item-title a {
  color: var(--text-primary);
}
.post-item-title a:hover {
  color: var(--accent);
}
.post-item-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== SINGLE POST / ARTICLE ========== */

.article {
  padding: 2rem 0 4rem;
}
.article-header {
  margin-bottom: 2rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(232, 120, 74, 0.04), transparent 40%);
  pointer-events: none;
}
.article-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.6rem;
}
.article-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.article-content h2 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}
.article-content h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.6rem 0 0.6rem;
}
.article-content p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.65;
}
.article-content ul, .article-content ol {
  margin: 0 0 1rem 1.5rem;
}
.article-content li {
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  line-height: 1.6;
}
.article-content blockquote {
  border-left: 2px solid var(--accent-dim);
  padding: 0.5rem 1.1rem;
  margin: 1.25rem 0;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--bg-elevated);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  color: var(--accent-bright);
}
.article-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
.article-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
}
.article-content a {
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 2px;
}
.article-content a:hover {
  text-decoration-color: var(--accent);
}

/* ========== FOOTER ========== */

.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--accent); }

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  .bento-card.js-animate {
    opacity: 1;
    transform: none;
  }
  .bento-card,
  .bento-card.js-animate.visible {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .bento-card:hover,
  .bento-card.js-animate.visible:hover {
    transform: none;
  }
  .pulse-dot::after {
    animation: none;
  }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .card-stats {
    grid-column: 1 / 2;
    grid-row: auto;
  }
  .card-status {
    grid-column: 2 / 3;
    grid-row: auto;
  }
  .card-explainer {
    grid-column: 1 / -1;
  }
  .card-case:last-of-type {
    grid-column: 1 / -1;
  }
  .card-post {
    grid-column: 1 / -1;
  }
  .card-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  html { font-size: 15px; }

  .site-header .container {
    flex-direction: column;
    gap: 0.65rem;
  }
  .site-nav {
    gap: 0.3rem;
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    padding: 1rem 0.85rem 3rem;
    gap: 8px;
  }
  .card-hero,
  .card-stats,
  .card-status,
  .card-explainer,
  .card-case,
  .card-case:last-of-type,
  .card-post,
  .card-cta {
    grid-column: 1 / -1;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .bento-card {
    padding: 1.15rem;
    border-radius: var(--radius);
  }
  .card-hero {
    padding: 1.5rem 1.15rem;
  }
  .card-explainer {
    padding: 1.15rem 1.25rem;
  }

  .explainer-list {
    grid-template-columns: 1fr;
  }
}
