/**
 * Matt Murphy AI blog — Field Notes content styles (v4).
 * Chrome (nav/footer) comes from theme assets/site-chrome.css (www3 v4 bundle).
 */

:root {
  --mm-bg: #0a0a0a;
  --mm-card: #111111;
  --mm-elevated: #161616;
  --mm-border: rgba(255, 255, 255, 0.06);
  --mm-text: #eeeeee;
  --mm-dim: #999999;
  --mm-muted: #555555;
  --mm-lime: #d4e600;
  --mm-pink: #ff2d78;
  --mm-orange: #ff6b35;
  --mm-grad: linear-gradient(135deg, var(--mm-lime), var(--mm-orange), var(--mm-pink));
  --text: var(--mm-text);
  --dim: var(--mm-dim);
  --muted: var(--mm-muted);
  --bg: var(--mm-bg);
  --lime: var(--mm-lime);
  --gradient: var(--mm-grad);
}

body.mm-wp-theme {
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: "Sora", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.mm-wp-theme a {
  color: inherit;
  text-decoration: none;
}

.mm-main {
  overflow-x: hidden;
}

.mm-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mm-wrap--article {
  max-width: 720px;
}

.mm-gradient-text {
  background: var(--mm-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Compact archive hero */
.mm-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 8rem 2rem 3rem;
}

.mm-hero--compact {
  /* body already has 72px top pad for fixed nav (data-site-chrome) */
  min-height: 48vh;
  padding: 4.5rem 2rem 4rem;
}

.mm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(212, 230, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.mm-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mm-dim);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 230, 0, 0.35);
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
}

.mm-hero-eyebrow span {
  color: var(--mm-lime);
}

.mm-hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  line-height: 1.05;
  letter-spacing: 2px;
  max-width: 1000px;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.mm-hero-sub {
  font-size: 1.1rem;
  color: var(--mm-dim);
  max-width: 680px;
  margin: 0;
  font-weight: 300;
}

/* Category / filtered archive hero */
.mm-archive-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mm-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mm-lime);
  margin-bottom: 0.75rem;
}

.mm-page-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.mm-archive-lede {
  color: var(--mm-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
  line-height: 1.75;
  font-weight: 300;
}

/* Post grid */
.mm-archive-list {
  padding: 2rem 0 4rem;
}

.mm-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mm-post-card {
  display: flex;
  flex-direction: column;
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  margin: 0;
}

.mm-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 230, 0, 0.3);
}

.mm-post-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mm-lime), var(--mm-pink));
}

.mm-post-card--featured {
  grid-column: 1 / -1;
}

.mm-post-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.mm-post-chip {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mm-lime);
  border: 1px solid rgba(212, 230, 0, 0.35);
  border-radius: 50px;
  padding: 0.25rem 0.8rem;
}

.mm-post-date {
  font-size: 0.75rem;
  color: var(--mm-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mm-post-card__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.mm-post-card--featured .mm-post-card__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.mm-post-card__title a {
  transition: color 0.3s;
}

.mm-post-card__title a:hover,
.mm-post-card__title a:focus-visible {
  color: var(--mm-lime);
}

.mm-post-card__excerpt {
  font-size: 0.9rem;
  color: var(--mm-dim);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.mm-post-more {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mm-lime);
  border: 1px solid rgba(212, 230, 0, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s;
  align-self: flex-start;
}

.mm-post-more:hover,
.mm-post-more:focus-visible {
  background: rgba(212, 230, 0, 0.1);
  border-color: var(--mm-lime);
}

/* Pagination */
.mm-pagination {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.mm-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.mm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--mm-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

.mm-pagination .page-numbers.current {
  background: var(--mm-grad);
  color: #0a0a0a;
  border-color: transparent;
}

.mm-pagination .page-numbers:hover:not(.current),
.mm-pagination .page-numbers:focus-visible:not(.current) {
  border-color: rgba(212, 230, 0, 0.35);
  color: var(--mm-text);
}

/* Final CTA (index) */
.mm-final-cta {
  text-align: center;
  padding: 6rem 2rem;
}

.mm-final-cta h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  max-width: 860px;
  margin: 0 auto 1.5rem;
  line-height: 1.1;
  font-weight: 400;
}

.mm-final-cta p {
  color: var(--mm-dim);
  margin: 0 auto 2rem;
  font-size: 1rem;
  max-width: 560px;
}

.mm-cta-pair {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mm-hero-cta {
  display: inline-block;
  padding: 1.05rem 2.75rem;
  border-radius: 50px;
  background: var(--mm-grad);
  color: var(--mm-bg) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.mm-hero-cta:hover,
.mm-hero-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 230, 0, 0.25);
}

.mm-hero-ghost {
  display: inline-block;
  padding: 1.05rem 2.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--mm-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: border-color 0.3s, background 0.3s;
}

.mm-hero-ghost:hover,
.mm-hero-ghost:focus-visible {
  border-color: var(--mm-lime);
  background: rgba(212, 230, 0, 0.06);
}

/* Single article */
.mm-single {
  padding-bottom: 2rem;
}

.mm-article-hero {
  /* body already has 72px top pad for fixed nav (data-site-chrome) */
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.mm-article-hero .mm-post-meta {
  justify-content: center;
}

.mm-article-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: 1px;
  max-width: 860px;
  margin: 0 auto 1rem;
  font-weight: 400;
}

.mm-back-to-blog {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--mm-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  transition: color 0.3s;
}

.mm-back-to-blog:hover,
.mm-back-to-blog:focus-visible {
  color: var(--mm-lime);
}

.mm-single__featured {
  margin: 0 auto 1.5rem;
}

.mm-single__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.mm-article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.entry-content {
  color: var(--mm-text);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.85;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Bebas Neue", sans-serif;
  color: var(--mm-text);
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-weight: 400;
}

.entry-content h2 {
  font-size: 1.9rem;
  margin: 2.5rem 0 1rem;
}

.entry-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.entry-content h4 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
}

.entry-content p {
  margin: 0 0 1.4rem;
}

.entry-content a {
  color: var(--mm-lime);
  border-bottom: 1px solid rgba(212, 230, 0, 0.3);
}

.entry-content a:hover,
.entry-content a:focus-visible {
  border-bottom-color: var(--mm-lime);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4rem 1.4rem;
  color: var(--mm-text);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.85;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 3px solid var(--mm-lime);
  background: var(--mm-card);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.75rem;
  margin: 0 0 1.4rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mm-text);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 1.4rem;
}

.entry-content pre,
.entry-content code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.85em;
}

.entry-content pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--mm-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin: 0 0 1.4rem;
}

.entry-content :not(pre) > code {
  background: var(--mm-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

.mm-article-cta {
  background: var(--mm-card);
  border: 1px solid rgba(212, 230, 0, 0.25);
  border-radius: 16px;
  padding: 2.25rem;
  text-align: center;
  margin: 3rem 0 0;
}

.mm-article-cta h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.mm-article-cta p {
  font-size: 0.9rem;
  color: var(--mm-dim);
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.mm-article-cta .mm-hero-cta,
.mm-article-cta .mm-hero-ghost {
  border-bottom: none;
}

.mm-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--mm-dim);
}

.mm-empty h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--mm-text);
  margin-bottom: 0.75rem;
}

.mm-back-link {
  margin: 1.5rem 0 0;
}

.mm-back-link a {
  color: var(--mm-lime);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .mm-wrap {
    padding: 0 1.5rem;
  }

  .mm-posts-grid {
    grid-template-columns: 1fr;
  }

  .mm-post-card {
    padding: 1.5rem;
  }

  .mm-article-body {
    padding: 1.5rem 1.5rem 3rem;
  }

  .mm-hero--compact {
    min-height: auto;
    padding: 3rem 1.5rem 3rem;
  }

  .mm-article-hero {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .mm-final-cta {
    padding: 4rem 1.5rem;
  }

  .mm-cta-pair {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-post-card,
  .mm-hero-cta,
  .mm-hero-ghost,
  .mm-post-more {
    transition: none !important;
  }

  .mm-post-card:hover {
    transform: none;
  }
}
