/*
Theme Name: Alex Evans Blog
Theme URI: https://alexevans.io/blog
Author: Alex Evans
Description: Minimal blog theme matching alexevans.io design system. Sidebar, featured image hero with title overlay, Outfit + JetBrains Mono.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: ae-blog
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ae-bg: #0a0a0a;
  --ae-bg-elevated: #111;
  --ae-text: #fafafa;
  --ae-text-muted: #a1a1a1;
  --ae-accent: #fff;
  --ae-border: rgba(255, 255, 255, 0.08);
  --ae-light-bg: #f5f5f5;
  --ae-light-bg-alt: #ffffff;
  --ae-light-fg: #0a0a0a;
  --ae-light-fg-strong: #171717;
  --ae-light-muted: rgba(0, 0, 0, 0.55);
  --ae-font-sans: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --ae-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ae-prose-max-width: 70ch;
  --ae-content-max-width: 1200px;
  --ae-sidebar-width: 280px;
  --ae-safe: clamp(1rem, 5vw, 2rem);
  --ae-ease: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ae-transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ae-light-bg);
  color: var(--ae-light-fg-strong);
  font-family: var(--ae-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Nav: when using main site header, transparent over post hero then colored (see #site-nav in main CSS) */
#site-nav.nav-over-hero:not(.nav-past-hero) {
  background-color: transparent !important;
  color: #fafafa !important;
}
#site-nav.nav-over-hero:not(.nav-past-hero) a,
#site-nav.nav-over-hero:not(.nav-past-hero) span {
  color: #fafafa !important;
}
#site-nav.nav-over-hero:not(.nav-past-hero) .text-foreground\/50,
#site-nav.nav-over-hero:not(.nav-past-hero) [class*="text-foreground/50"] {
  color: rgba(250, 250, 250, 0.7) !important;
}
#site-nav.nav-over-hero:not(.nav-past-hero) svg,
#site-nav.nav-over-hero:not(.nav-past-hero) path {
  color: #fafafa;
  fill: currentColor;
  stroke: #fafafa;
}

/* Fallback nav when main site header not loaded */
.ae-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--ae-safe);
  background: rgb(245 245 245);
  color: #171717;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  min-height: 44px;
}
.ae-nav__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.ae-nav__logo {
  font-size: 0.75rem;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.ae-nav__logo a {
  color: #171717;
  text-decoration: none;
}
.ae-nav__logo a:hover { color: #0a0a0a; }
.ae-nav__tag { margin-left: 0.5rem; color: var(--ae-light-muted); font-size: 0.75rem; }
.ae-nav__blog {
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  color: var(--ae-light-muted);
  text-decoration: none;
  transition: color var(--ae-transition);
}
.ae-nav__blog:hover { color: #171717; }
.ae-nav__cta {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #171717;
  color: #171717;
  text-decoration: none;
  transition: background var(--ae-transition), color var(--ae-transition);
}
.ae-nav__cta:hover { background: #171717; color: #fff; }
@media (max-width: 599px) {
  .ae-nav {
    padding: 0.75rem var(--ae-safe);
    min-height: 44px;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .ae-nav__left {
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .ae-nav__tag {
    display: none;
  }
  .ae-nav__cta {
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Main */
.ae-main { padding-top: 4rem; min-height: 100vh; }
@media (max-width: 899px) {
  .ae-main { padding-top: 3.5rem; }
}

/* Layout: main content + sidebar */
.ae-layout {
  max-width: var(--ae-content-max-width);
  margin: 0 auto;
  padding: 0 var(--ae-safe);
  display: grid;
  gap: 2.5rem;
  width: 100%;
}
@media (min-width: 900px) {
  .ae-layout--index {
    grid-template-columns: 1fr var(--ae-sidebar-width);
    align-items: start;
    padding: 2rem var(--ae-safe) 3rem;
  }
  .ae-layout--single {
    grid-template-columns: 1fr var(--ae-sidebar-width);
    align-items: start;
    padding: 0 var(--ae-safe) 3rem;
  }
}
@media (max-width: 899px) {
  .ae-layout--index {
    padding: 1.25rem var(--ae-safe) 2rem;
    gap: 1.5rem;
  }
  .ae-layout--single {
    padding: 0 var(--ae-safe) 2rem;
    gap: 1.5rem;
  }
}

/* Single post: featured image hero with title overlay */
.ae-hero--single {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  background: var(--ae-bg-elevated);
}
.ae-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 42vh;
  overflow: hidden;
}
.ae-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ae-hero__img--placeholder {
  background: var(--ae-bg-elevated);
  min-height: 100%;
}
.ae-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 45%, transparent 100%);
  pointer-events: none;
}
.ae-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem var(--ae-safe) 2.5rem;
  max-width: var(--ae-content-max-width);
  margin: 0 auto;
}
@media (max-width: 899px) {
  .ae-hero__content {
    padding: 1.25rem var(--ae-safe) 1.5rem;
  }
  .ae-hero__title {
    font-size: clamp(1.35rem, 5vw, 2rem);
  }
}
@media (max-width: 480px) {
  .ae-hero__media {
    aspect-ratio: 16/9;
    max-height: 50vh;
  }
  .ae-hero__content {
    padding: 1rem var(--ae-safe) 1.25rem;
  }
}
.ae-hero__meta {
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  color: var(--ae-text-muted);
  margin: 0 0 0.5rem;
}
.ae-hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--ae-text);
}

/* Blog index */
.ae-index {
  min-width: 0;
}
.ae-layout--index .ae-index { padding: 2rem 0 0; }
.ae-index__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
@media (max-width: 899px) {
  .ae-layout--index .ae-index { padding: 0; }
  .ae-index__title { margin-bottom: 1.25rem; }
}
.ae-index__empty {
  color: var(--ae-light-muted);
  margin: 2rem 0;
}
.ae-posts { list-style: none; padding: 0; margin: 0; }
.ae-card {
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--ae-light-bg-alt);
  overflow: hidden;
  transition: border-color var(--ae-transition), box-shadow var(--ae-transition);
}
@media (max-width: 899px) {
  .ae-card { margin-bottom: 1.5rem; }
  .ae-card__head { padding: 1rem; }
  .ae-card__head .ae-card__title {
    font-size: 1.1rem;
    word-break: break-word;
    hyphens: auto;
  }
  p.ae-card__excerpt,
  .ae-card__head .ae-card__excerpt,
  .ae-card__link .ae-card__head .ae-card__excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
}
.ae-card:hover {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.ae-card__link { text-decoration: none; color: inherit; display: block; }
.ae-card__link .ae-card__head { color: #fff; }
.ae-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.ae-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ae-ease);
}
.ae-card__img--placeholder {
  background: var(--ae-bg-elevated);
}
.ae-card:hover .ae-card__img { transform: scale(1.02); }
.ae-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.75) 0%, transparent 55%);
  pointer-events: none;
}
.ae-card__head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
}
.ae-card__meta {
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}
.ae-card__head .ae-card__title {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  line-height: 1.3;
  display: inline;
  padding: 0.1em 0.28em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color var(--ae-transition);
}
.ae-card:hover .ae-card__head .ae-card__title,
.ae-card:focus-within .ae-card__head .ae-card__title {
  background: rgba(10, 10, 10, 0.88);
}
p.ae-card__excerpt,
.ae-card__head .ae-card__excerpt,
.ae-card__link .ae-card__head .ae-card__excerpt {
  font-size: 0.85rem;
  color: #fff !important;
  line-height: 1.4;
  margin: 0.4rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.navigation.pagination {
  margin: 2.5rem 0 1rem;
  padding: 0;
}
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
}
.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #171717;
  text-decoration: none;
  transition: background var(--ae-transition), border-color var(--ae-transition);
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 599px) {
  .navigation.pagination { margin: 1.5rem 0 1rem; }
}
.navigation.pagination a:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.3);
}
.navigation.pagination .current {
  background: #171717;
  color: #fff;
  border-color: #171717;
}

/* Sidebar */
.ae-sidebar {
  position: sticky;
  top: calc(4rem + 1rem);
  padding-top: 0.5rem;
}
@media (max-width: 899px) {
  .ae-sidebar {
    position: static;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
  }
  .ae-layout { grid-template-columns: 1fr; }
  .ae-index { order: 1; min-width: 0; }
  .ae-article { order: 1; min-width: 0; }
  .ae-layout--single .ae-sidebar { order: 3; }
  .ae-layout--single .ae-more-posts { order: 2; }
}
.ae-sidebar__widget {
  margin-bottom: 2rem;
}
.ae-sidebar__widget:last-child { margin-bottom: 0; }

/* Sidebar featured article — widescreen image with title overlay */
.ae-sidebar-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: border-color var(--ae-transition), box-shadow var(--ae-transition);
}
.ae-sidebar-featured:hover {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
/* Widescreen 16:9 horizontal rectangle */
.ae-sidebar-featured__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  min-height: 0;
}
.ae-sidebar-featured__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ae-ease);
}
.ae-sidebar-featured:hover .ae-sidebar-featured__img { transform: scale(1.03); }
.ae-sidebar-featured__img--placeholder {
  position: absolute;
  inset: 0;
  background: var(--ae-bg-elevated);
}
.ae-sidebar-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 50%);
  pointer-events: none;
}
.ae-sidebar-featured__head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.75rem 0.6rem;
}
.ae-sidebar-featured__head .ae-sidebar-featured__title {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  transition: text-decoration var(--ae-transition);
}
.ae-sidebar-featured:hover .ae-sidebar-featured__head .ae-sidebar-featured__title { text-decoration: underline; }
.ae-sidebar-featured__body {
  display: block;
  padding: 0.6rem 0.75rem 0.75rem;
}
.ae-sidebar-featured__excerpt {
  display: block;
  font-size: 0.75rem;
  color: var(--ae-light-muted);
  line-height: 1.45;
  margin: 0;
}

/* Sidebar featured slider — top 3 popular, minimal arrows on image */
.ae-sidebar-featured-slider {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: border-color var(--ae-transition), box-shadow var(--ae-transition);
}
.ae-sidebar-featured-slider:hover {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.ae-sidebar-featured-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ae-sidebar-featured-slider__track {
  display: flex;
  width: 300%;
  transition: transform 0.35s var(--ae-ease);
  will-change: transform;
}
.ae-sidebar-featured-slider__slide {
  flex: 0 0 33.333%;
  width: 33.333%;
  min-width: 0;
}
.ae-sidebar-featured-slider__slide .ae-sidebar-featured {
  display: block;
}
.ae-sidebar-featured-slider__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ae-transition), color var(--ae-transition);
  border-radius: 2px;
}
.ae-sidebar-featured-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.ae-sidebar-featured-slider__arrow--prev {
  left: 0.4rem;
}
.ae-sidebar-featured-slider__arrow--next {
  right: 0.4rem;
}
.ae-sidebar-featured-slider[data-slides="1"] .ae-sidebar-featured-slider__arrow {
  display: none;
}

.ae-sidebar__title {
  font-family: var(--ae-font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ae-light-muted);
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.ae-sidebar__list,
.ae-sidebar__widget .ae-code-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ae-sidebar__list li,
.ae-sidebar__widget .ae-code-list li {
  margin-bottom: 0.5rem;
  font-family: var(--ae-font-mono);
  font-size: 0.8rem;
}
.ae-sidebar__list li a,
.ae-sidebar__widget .ae-code-list li a {
  color: #171717;
  text-decoration: none;
  transition: color var(--ae-transition);
}
.ae-sidebar__list li a:hover,
.ae-sidebar__widget .ae-code-list li a:hover { color: #0a0a0a; text-decoration: underline; }
.ae-code-list li a::before { content: "> "; opacity: 0.6; }
.ae-code-list li a::after { content: " <"; opacity: 0.6; }

/* Single post article (with sidebar) */
.ae-layout--single .ae-article {
  max-width: none;
  margin: 0;
  padding: 2.5rem 0 0;
}
.ae-article__content {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: var(--ae-prose-max-width);
  overflow-wrap: break-word;
}
@media (max-width: 899px) {
  .ae-layout--single .ae-article {
    padding: 1.5rem 0 0;
  }
  .ae-article__content {
    font-size: 1rem;
    line-height: 1.65;
  }
  .ae-article__content h2 { font-size: 1.35rem; margin-top: 1.5rem; }
  .ae-article__content h3 { font-size: 1.1rem; margin-top: 1.25rem; }
  .ae-article__content ul,
  .ae-article__content ol { padding-left: 1.25rem; }
}
.ae-article__content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; font-weight: 400; letter-spacing: -0.02em; }
.ae-article__content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; font-weight: 400; }
.ae-article__content p { margin: 0 0 1rem; }
.ae-article__content a { color: #0a0a0a; text-decoration: underline; }
.ae-article__content a:hover { opacity: 0.8; }
.ae-article__content ul, .ae-article__content ol { margin: 0 0 1rem; padding-left: 1.5rem; }

/* CTA block */
.ae-cta {
  background: var(--ae-light-bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3rem var(--ae-safe);
  margin-top: 3rem;
  text-align: center;
}
@media (max-width: 599px) {
  .ae-cta {
    padding: 2rem var(--ae-safe);
    margin-top: 2rem;
  }
  .ae-cta__title { font-size: 1.1rem; margin-bottom: 0.75rem; }
  .ae-cta__link {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
.ae-cta__title { font-size: 1.25rem; margin-bottom: 1rem; font-weight: 400; }
.ae-cta__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #171717;
  color: #171717;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--ae-transition), color var(--ae-transition);
}
.ae-cta__link:hover { background: #171717; color: #fff; }

/* More posts slider (single): full blog column width, no sidebar */
.ae-more-posts {
  background: var(--ae-light-bg-alt);
  padding: 3rem var(--ae-safe) 2.5rem;
}
.ae-layout--single .ae-more-posts {
  grid-column: 1;
  background: transparent;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.ae-more-posts__inner {
  width: 100%;
  max-width: none;
}
.ae-more-posts__heading {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.ae-more-posts__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.ae-more-posts__filter-btn {
  font-family: var(--ae-font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  min-height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--ae-light-fg-strong);
  cursor: pointer;
  transition: background var(--ae-transition), border-color var(--ae-transition);
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 599px) {
  .ae-more-posts {
    padding: 2rem var(--ae-safe) 2rem;
  }
  .ae-layout--single .ae-more-posts {
    padding: 1.5rem 0 1.5rem;
  }
  .ae-more-posts__heading { font-size: 1.1rem; margin-bottom: 1rem; }
  .ae-more-posts__filter { margin-bottom: 1rem; }
  .ae-more-posts__panes { min-height: 280px; }
  .ae-more-posts__card-head .ae-more-posts__card-title {
    font-size: 0.9rem;
    word-break: break-word;
  }
  .ae-more-posts__card-body { padding: 0.6rem 0.75rem 0.75rem; }
  .ae-more-posts__card-excerpt { font-size: 0.75rem; }
  .ae-more-posts__dots { margin-top: 1rem; }
  .ae-more-posts__dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
  }
}
.ae-more-posts__filter-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.3);
}
.ae-more-posts__filter-btn.is-active {
  background: #171717;
  color: #fff;
  border-color: #171717;
}
.ae-more-posts__panes { position: relative; min-height: 320px; }
.ae-more-posts__pane {
  display: block;
}
.ae-more-posts__pane[hidden] {
  display: none;
}
.ae-more-posts__track {
  overflow: hidden;
}
.ae-more-posts__slide {
  display: none;
}
.ae-more-posts__slide.is-active {
  display: block;
}
.ae-more-posts__cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 899px) {
  .ae-more-posts__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 480px) {
  .ae-more-posts__cards {
    grid-template-columns: 1fr;
  }
}
.ae-more-posts__card {
  margin: 0;
}
/* Read next cards: same structure as sidebar featured — title overlay on image, excerpt below */
.ae-more-posts__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: border-color var(--ae-transition), box-shadow var(--ae-transition);
}
.ae-more-posts__card-link:hover {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.ae-more-posts__card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  min-height: 0;
}
.ae-more-posts__card-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s var(--ae-ease);
}
.ae-more-posts__card-link:hover .ae-more-posts__card-img {
  transform: scale(1.03);
}
.ae-more-posts__card-img--placeholder {
  position: absolute;
  inset: 0;
  background: var(--ae-bg-elevated);
}
.ae-more-posts__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 50%);
  pointer-events: none;
}
.ae-more-posts__card-head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem 0.7rem;
}
.ae-more-posts__card-head .ae-more-posts__card-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  transition: text-decoration var(--ae-transition);
}
.ae-more-posts__card-link:hover .ae-more-posts__card-head .ae-more-posts__card-title {
  text-decoration: underline;
}
.ae-more-posts__card-body {
  display: block;
  padding: 0.75rem 1rem 0.85rem;
}
.ae-more-posts__card-excerpt {
  display: block;
  font-size: 0.8rem;
  color: var(--ae-light-muted);
  line-height: 1.45;
  margin: 0;
}
.ae-more-posts__empty {
  grid-column: 1 / -1;
  color: var(--ae-light-muted);
  padding: 2rem;
  text-align: center;
}
.ae-more-posts__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.ae-more-posts__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background var(--ae-transition);
}
.ae-more-posts__dot:hover {
  background: rgba(0, 0, 0, 0.4);
}
.ae-more-posts__dot.is-active {
  background: #171717;
}

/* Footer */
.ae-footer {
  padding: 2rem var(--ae-safe);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  color: var(--ae-light-muted);
}
.ae-footer__nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.5rem; }
.ae-footer__nav a {
  color: #171717;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.ae-footer__nav a:hover { text-decoration: underline; }
@media (max-width: 599px) {
  .ae-footer {
    padding: 1.5rem var(--ae-safe);
    font-size: 0.8rem;
  }
  .ae-footer__nav { gap: 0.75rem; }
}
