/* Single post & archive list styles — extracted for AMP compatibility */
/* ============================================
   Featured Post — Hero Treatment
   ============================================ */
.post-featured {
  margin-bottom: var(--space-2xl);
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
  position: relative;
}

.post-featured .post-thumbnail {
  margin-bottom: var(--space-lg);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
}

.post-featured .post-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(29, 29, 27, 0.03) 100%
  );
  pointer-events: none;
}

.post-featured .post-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.post-featured:hover .post-thumbnail img {
  transform: scale(1.03);
}

.post-featured .post-title {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.post-featured .post-title a {
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.5s var(--ease-out), color var(--transition-fast);
}

.post-featured .post-title a:hover {
  color: var(--color-accent);
  background-size: 100% 2px;
}

.post-featured .post-excerpt {
  font-size: var(--size-md);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-top: var(--space-sm);
  max-width: var(--content-width);
}

.post-featured .post-meta {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.post-featured .post-meta .deco-star {
  width: 8px;
  height: 8px;
}

/* Decorative divider between featured and list */
.post-featured + .post-list::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-border-dark);
  margin-bottom: var(--space-xl);
  box-shadow: 0 4px 0 0 var(--color-bg), 0 5px 0 0 var(--color-border-dark);
}

/* ============================================
   Post List — Editorial Archive
   ============================================ */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  animation: fadeUp 0.5s var(--ease-out) both;
  transition: background-color var(--transition), padding-left var(--transition);
  margin: 0 calc(-1 * var(--space-xs));
  border-radius: 2px;
  position: relative;
}

/* Stagger animation */
.post-list-item:nth-child(1)  { animation-delay: 0.2s; }
.post-list-item:nth-child(2)  { animation-delay: 0.26s; }
.post-list-item:nth-child(3)  { animation-delay: 0.32s; }
.post-list-item:nth-child(4)  { animation-delay: 0.38s; }
.post-list-item:nth-child(5)  { animation-delay: 0.44s; }
.post-list-item:nth-child(6)  { animation-delay: 0.5s; }
.post-list-item:nth-child(7)  { animation-delay: 0.56s; }
.post-list-item:nth-child(8)  { animation-delay: 0.62s; }
.post-list-item:nth-child(9)  { animation-delay: 0.68s; }
.post-list-item:nth-child(10) { animation-delay: 0.74s; }
.post-list-item:nth-child(n+11) { animation-delay: 0.8s; }

.post-list-item:first-child {
  border-top: 1px solid var(--color-border);
}

.post-list-item:hover {
  background-color: rgba(29, 29, 27, 0.02);
  padding-left: var(--space-sm);
}

/* Warm accent bar on hover */
.post-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transition: height var(--transition);
}

.post-list-item:hover::before {
  height: 60%;
}

.post-date {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 120px;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.post-list-item:hover .post-date {
  color: var(--color-text-secondary);
}

.post-list-item .post-title {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 400;
}

.post-list-item .post-title a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-border);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.post-list-item .post-title a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* ============================================
   Single Post / Page
   ============================================ */
.entry-header {
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
}

.entry-header .entry-title {
  font-size: var(--size-2xl);
  font-weight: 700;
  font-style: italic;
  margin-bottom: var(--space-md);
  max-width: var(--wide-width);
  line-height: 1.05;
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
  animation: fadeIn 0.6s var(--ease-out) 0.3s both;
}

.entry-meta a {
  color: var(--color-text-muted);
  text-decoration-color: transparent;
}

.entry-meta a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.entry-meta .separator {
  color: var(--color-border);
}

/* Single Post — Full-bleed hero */
.single-hero {
  position: relative;
  margin: calc(-1 * var(--space-lg)) calc(-50vw + 50%) var(--space-2xl);
  width: 100vw;
  min-height: clamp(320px, 45vw, 520px);
  overflow: hidden;
  animation: fadeIn 0.6s var(--ease-out) both;
}

.single-hero__image {
  position: absolute;
  inset: 0;
}

.single-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(29, 29, 27, 0.85) 0%,
    rgba(29, 29, 27, 0.4) 50%,
    rgba(29, 29, 27, 0.1) 100%
  );
  display: flex;
  align-items: flex-end;
}

.single-hero__content {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  width: 100%;
  animation: fadeUp 0.7s var(--ease-out) 0.2s both;
}

.single-hero__title {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  color: var(--color-white);
  max-width: var(--wide-width);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.single-hero__meta {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.single-hero__meta a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration-color: transparent;
}

.single-hero__meta a:hover {
  color: var(--color-white);
}

.single-hero__meta .separator {
  color: rgba(255, 255, 255, 0.3);
}

.single-hero__breadcrumb .breadcrumb-sep,
.entry-breadcrumb .breadcrumb-sep {
  margin: 0 0.15em;
  opacity: 0.6;
}

/* Entry content */
.entry-content {
  max-width: var(--content-width);
  animation: fadeUp 0.7s var(--ease-out) 0.25s both;
}

.entry-content p {
  font-size: var(--size-base);
  line-height: 1.78;
}

.entry-content h2 {
  font-size: var(--size-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.entry-content h3 {
  font-size: var(--size-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.entry-content img {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-sm);
}

.entry-content .wp-block-image {
  margin: var(--space-xl) 0;
}

.entry-content .wp-block-image.alignwide,
.entry-content .wp-block-image.alignfull {
  max-width: var(--wide-width);
  width: 100vw;
  margin-left: calc(-1 * (100vw - var(--content-width)) / 2);
}

.entry-content .alignfull {
  max-width: 100vw;
}

/* ============================================
   Pillar Layout — Content + TOC sidebar
   ============================================ */
.pillar-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: var(--space-2xl);
  align-items: start;
}

.pillar-layout__content {
  min-width: 0;
}

.pillar-layout__content .entry-content {
  max-width: none;
}

/* TOC sidebar */
.pillar-layout__toc {
  position: relative;
}

.toc {
  position: sticky;
  top: 80px;
}

.toc__nav {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  scrollbar-width: none;
}

.toc__nav::-webkit-scrollbar {
  display: none;
}

.toc__title {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc__link {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.4em 0;
  padding-left: 0.8em;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.toc__link:hover {
  color: var(--color-text);
}

.toc__link.is-active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 500;
}

.toc__link--h3 {
  padding-left: 1.6em;
  font-size: calc(var(--size-xs) * 0.92);
}

@media (max-width: 960px) {
  .pillar-layout {
    grid-template-columns: 1fr;
  }

  .pillar-layout__toc {
    order: -1;
    margin-bottom: var(--space-lg);
  }

  .toc {
    position: static;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
  }

  .toc__nav {
    max-height: none;
  }
}

/* Drop cap */
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  float: left;
  font-size: 3.4em;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.06em;
  color: var(--color-accent);
}

/* Pullquote style — colored background band */
.entry-content .wp-block-pullquote,
.entry-content .pullquote {
  border: none;
  background: var(--color-bg-warm);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) calc(-1 * var(--space-md));
  border-left: 4px solid var(--color-accent);
}

.entry-content .wp-block-pullquote p,
.entry-content .pullquote p {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-style: italic;
  line-height: 1.25;
  color: var(--color-text);
}

/* Entry footer — tags */
.entry-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-border-dark);
  position: relative;
}

.entry-footer::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border-dark);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.entry-tags a {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.3em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.entry-tags a:hover {
  color: var(--color-white);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

/* ============================================
   Related Posts (SILO linking)
   ============================================ */
.related-posts {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-border-dark);
  position: relative;
}

.related-posts::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border-dark);
}

.related-posts__title {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 700;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.related-posts__grid {
  display: flex;
  flex-direction: column;
}

.related-post {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: padding-left var(--transition), background-color var(--transition-fast);
  margin: 0 calc(-0.5 * var(--space-xs));
  border-radius: 2px;
}

.related-post:first-child {
  border-top: 1px solid var(--color-border);
}

.related-post:hover {
  padding-left: var(--space-sm);
  background: rgba(29, 29, 27, 0.02);
  text-decoration: none;
  color: var(--color-text);
}

.related-post__thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.related-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.related-post:hover .related-post__thumb img {
  transform: scale(1.08);
}

.related-post__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.related-post__name {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  transition: color var(--transition-fast);
}

.related-post:hover .related-post__name {
  color: var(--color-accent);
}

.related-post__arrow {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition-fast), transform var(--transition);
}

.related-post:hover .related-post__arrow {
  opacity: 1;
  transform: translateX(0);
}

.related-posts__viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: var(--space-md);
  transition: gap var(--transition);
}

.related-posts__viewall:hover {
  gap: 0.7em;
  color: var(--color-accent-hover);
  text-decoration: none;
}

/* Post navigation */
.post-navigation {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
}

.post-navigation .nav-label {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--space-xs);
}

.post-navigation .nav-title {
  font-family: var(--font-display);
  font-size: var(--size-md);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.post-navigation a {
  text-decoration: none;
}

.post-navigation a:hover .nav-title {
  color: var(--color-accent);
}

.post-navigation .nav-next {
  text-align: right;
}
/* ============================================
   Comments
   ============================================ */
.comments-area {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-border-dark);
  position: relative;
}

.comments-area::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border-dark);
}

.comments-title {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 700;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.comment-author {
  font-weight: 600;
  font-size: var(--size-sm);
}

.comment-date {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--color-text-muted);
}

.comment-body p {
  font-size: var(--size-sm);
  line-height: 1.65;
}

.comment .children {
  list-style: none;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-border);
  margin-left: var(--space-xs);
}

/* Comment form */
.comment-respond {
  margin-top: var(--space-lg);
}

.comment-reply-title {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 600;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.comment-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.7em 0.9em;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 0;
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(217, 98, 46, 0.15);
}

.comment-form textarea {
  max-width: 100%;
  min-height: 150px;
  resize: vertical;
}

.comment-form .submit {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9em 2.2em;
  background: var(--color-text);
  color: var(--color-bg);
  border: 2px solid var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 0;
  -webkit-appearance: none;
}

.comment-form .submit:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

