/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color palette: analog archive */
  --cream: #f5f5f3;
  --rose: #15616d;
  --indigo: #3d405b;
  --sage: #4e7e68;
  --orange: #cf5c36;

  /* Semantic colors */
  --bg: var(--cream);
  --text: var(--indigo);
  --text-secondary: var(--sage);
  --accent: var(--indigo);
  --link: var(--sage);
  --link-hover: var(--indigo);
  --highlight: var(--orange);

  /* Typography */
  /* Previous display fonts (commented for reference):
     --font-display: "Fraunces", Georgia, serif;
     --font-display: "Funnel Display", Georgia, serif;
  */
  --font-display: "Forum", Georgia, serif;
  --font-body: "DM Sans", -apple-system, sans-serif;
  --font-accent: "Caveat", cursive;
  --font-mono: "SF Mono", Monaco, Consolas, monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --max-width: 720px;
}

/* Grain texture overlay - subtle */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(61, 64, 91, 0.02) 2px, rgba(61, 64, 91, 0.02) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(61, 64, 91, 0.02) 2px, rgba(61, 64, 91, 0.02) 4px);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Post page navigation - centered jmh link */
.post-nav {
  padding: var(--space-md) var(--space-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-nav a {
  color: var(--rose);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.post-nav a:hover {
  color: var(--sage);
}

/* Navigation - asymmetric, organic */
.nav {
  padding: var(--space-md) var(--space-sm);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: none;
  flex-wrap: wrap;
  position: relative;
}


.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.3s ease;
}

/* Handwritten underline effect */
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
}

.nav a:hover {
  color: var(--link-hover);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.nav-icon {
  display: flex;
  align-items: center;
}

.nav a.nav-icon::after {
  display: none;
}

.nav a.nav-icon svg {
  stroke: var(--text);
  transition: stroke 0.3s ease;
}

.nav a.nav-icon:hover svg {
  stroke: var(--sage);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm);
}

/* Site header - bold, distinctive */
.site-header {
  margin-bottom: var(--space-lg);
  margin-top: var(--space-lg);
  text-align: left;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}

/* Simple static underline */
.site-header h1::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 60%;
  height: 2px;
  background: var(--rose);
  opacity: 0.4;
}

.site-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  max-width: 580px;
  margin: var(--space-md) 0 0;
}

/* Page headers */
.page-header {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'opsz' 120;
  color: var(--indigo);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-style: italic;
}

/* Section headers */
.recent-posts h2,
.posts-list h2,
.reading-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  font-variation-settings: 'wght' 600, 'opsz' 100;
  color: var(--indigo);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: var(--space-xs);
}

.recent-posts h2::after,
.reading-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  margin-top: 0;
}

/* Filter pills for tags */
.filter-pills {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--indigo);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--indigo);
  color: var(--cream);
}

/* Thoughts list - elegant row-based layout */
.thoughts-grid {
  max-width: 660px;
  margin-top: var(--space-md);
}

/* Post row - grid layout */
.post-preview {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* Sweep background on hover */
.post-preview::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(112, 148, 124, 0.12);
  transition: width 0.35s cubic-bezier(0.25, 0, 0, 1);
  z-index: 0;
}

.post-preview:hover::after {
  width: 100%;
}

/* Left column - dash */
.post-preview .post-dash {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rose);
  opacity: 0.4;
  padding: 0.75rem 0;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s, color 0.2s;
}

.post-preview:hover .post-dash {
  opacity: 0.7;
  color: var(--sage);
}

/* Right column - content wrapper */
.post-preview .post-body {
  padding: 0.75rem 0.5rem 0.75rem 0;
  border-bottom: 0.5px solid rgba(61, 64, 91, 0.15);
  position: relative;
  z-index: 1;
}

.post-preview:first-of-type .post-body {
  border-top: 0.5px solid rgba(61, 64, 91, 0.15);
}

/* Post title */
.post-preview .post-title {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.3;
  transition: font-style 0.15s, color 0.2s;
}

.post-preview:hover .post-title {
  font-style: italic;
  color: var(--indigo);
}

/* Post metadata row */
.post-preview .post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.post-preview .post-meta time {
  font-variant-numeric: tabular-nums;
}

.post-preview .post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(61, 64, 91, 0.3);
  flex-shrink: 0;
}

.post-preview .post-meta .category {
  text-transform: lowercase;
}

/* Tag - fades in on hover */
.post-preview .post-tag {
  font-size: 0.75rem;
  color: var(--rose);
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s 0.1s;
  white-space: nowrap;
}

.post-preview:hover .post-tag {
  opacity: 1;
}

/* List view for recent posts on homepage */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: 0;
}

.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(61, 64, 91, 0.08);
  transition: all 0.3s ease;
  background: transparent;
}

.post-list-item:hover {
  background: rgba(61, 64, 91, 0.04);
  border-color: rgba(61, 64, 91, 0.15);
}

.post-list-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-variation-settings: 'wght' 500;
  margin: 0;
  flex: 1;
}

.post-list-item h3 a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.post-list-item h3 a::after {
  content: '→';
  position: absolute;
  right: -1.25rem;
  opacity: 0;
  color: var(--rose);
  transition: all 0.3s ease;
}

.post-list-item:hover h3 a {
  color: var(--sage);
  transform: translateX(4px);
}

.post-list-item:hover h3 a::after {
  opacity: 1;
  right: -1.5rem;
}

.post-list-item time {
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  margin-left: var(--space-sm);
}

.post-preview p {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  line-height: 1.6;
  font-size: 0.95rem;
}

.post-preview.type-essay p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Post meta - organic layout */
.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.post-meta time {
  font-variant-numeric: tabular-nums;
  font-style: italic;
  font-size: 0.85rem;
}

.post-meta .category {
  display: none;
}

/* Tags - ink blot style */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--rose);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tag:hover {
  background: rgba(112, 148, 124, 0.15);
  border-color: var(--sage);
  transform: scale(1.05);
}

.post-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.tag span {
  position: relative;
  z-index: 1;
}

/* Tag page header */
.tag-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--rose);
  color: var(--cream);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

.tag-count-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xs);
}

/* Post content - full post view */
.post {
  animation: fadeInUp 0.8s ease-out;
}

.post-header {
  margin-bottom: var(--space-md);
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
}

/* Tilde removed */
/* .post-header::after {
  content: '~';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--rose);
} */

.post-header h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'opsz' 120;
  color: var(--indigo);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.post-source {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-top: var(--space-sm);
}

/* Post content typography */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  font-variation-settings: 'wght' 600, 'opsz' 110;
  color: var(--indigo);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  font-variation-settings: 'wght' 600, 'opsz' 100;
  color: var(--sage);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

/* Inline citations [1] styling */
.post-content .citation {
  color: var(--rose);
  font-weight: 600;
}

.post-content p {
  margin-bottom: var(--space-md);
}

.post-content a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 2px solid var(--rose);
  transition: all 0.3s ease;
  position: relative;
}

.post-content a:hover {
  color: var(--indigo);
  border-bottom-color: var(--sage);
  padding-bottom: 2px;
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.post-content li {
  margin-bottom: var(--space-sm);
  position: relative;
}

.post-content li::marker {
  color: var(--rose);
}

/* Blockquotes - standout style */
.post-content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  padding-left: var(--space-lg);
  background: rgba(255, 255, 255, 0.5);
  border-left: 6px solid var(--sage);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  position: relative;
}

.post-content blockquote::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: 0.3em;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--sage);
  opacity: 0.3;
  font-style: normal;
}

/* Images and captions */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: var(--space-md) 0;
  box-shadow: 0 2px 8px rgba(61, 64, 91, 0.1);
  transition: box-shadow 0.3s ease;
}

.post-content img:hover {
  box-shadow: 0 4px 16px rgba(61, 64, 91, 0.15);
}

.post-content figure {
  margin: var(--space-lg) 0;
  padding: var(--space-sm);
  background: rgba(61, 64, 91, 0.02);
  border-radius: 12px;
}

.post-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* Footnotes */
.post-content .footnotes {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(61, 64, 91, 0.2);
  font-size: 0.9rem;
}

.post-content .footnotes ol {
  padding-left: 1.5rem;
}

.post-content .footnotes li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.post-content .footnotes li p {
  margin: 0;
}

/* Hide the return caret character */
.post-content .footnotes .footnote-backref {
  text-decoration: none;
  color: var(--sage);
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.post-content .footnotes .footnote-backref::before {
  content: '↩';
}

.post-content .footnotes .footnote-backref:hover {
  color: var(--indigo);
}

/* References section - simple numbered list styling */
.post-content .reference-item {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-content .reference-number {
  color: var(--rose);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Footnote reference in text */
.post-content sup {
  font-size: 0.75em;
  line-height: 0;
}

.post-content sup a {
  text-decoration: none;
  color: var(--rose);
  font-weight: 600;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.post-content sup a:hover {
  background: rgba(186, 143, 149, 0.15);
}

/* Series indicator */
.series-intro {
  margin: var(--space-sm) 0 var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(186, 143, 149, 0.08);
  border-left: 4px solid var(--rose);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.series-intro a {
  color: var(--rose);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(186, 143, 149, 0.3);
  transition: border-color 0.2s ease;
}

.series-intro a:hover {
  border-bottom-color: var(--rose);
}

/* Reduce spacing for hr that follows series intro */
.series-intro + hr {
  margin-top: var(--space-sm);
}

/* Reduce spacing before content that starts with series intro */
.post-content > p:first-child em:only-child {
  display: block;
  margin-bottom: var(--space-sm);
}

/* Tighter spacing for the opening hr in series posts */
.post-content > hr:first-of-type {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.series-nav {
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 2px solid rgba(61, 64, 91, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.9rem;
}

.series-nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.series-nav-link:hover {
  color: var(--sage);
  background: rgba(112, 148, 124, 0.08);
}

.series-nav-center {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.series-nav-center a {
  color: var(--rose);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(186, 143, 149, 0.3);
  transition: border-color 0.2s ease;
}

.series-nav-center a:hover {
  border-bottom-color: var(--rose);
}

/* Code blocks */
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(61, 64, 91, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--indigo);
}

.post-content pre {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--indigo);
  color: var(--cream);
  border-radius: 8px;
  overflow-x: auto;
  border: 2px solid var(--rose);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--cream);
}

.post-content hr {
  margin: var(--space-md) 0;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  opacity: 0.4;
}

/* Reading page - books grid */
.reading-section {
  margin-bottom: var(--space-xl);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.book-card {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid var(--rose);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.book-card:hover {
  transform: translateY(-8px) rotate(1deg);
  border-color: var(--sage);
  box-shadow: 0 8px 16px rgba(61, 64, 91, 0.15);
}

.book-card:hover::before {
  opacity: 0.1;
}

.book-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.book-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.book-card:hover h3 a {
  color: var(--sage);
}

.book-author {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.book-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.book-status {
  padding: 0.25rem 0.6rem;
  background: var(--rose);
  color: var(--cream);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
}

.book-rating {
  color: var(--sage);
  font-size: 1rem;
}

/* Articles list */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.article-preview {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  border-left: 4px solid var(--orange);
  transition: all 0.3s ease;
}

.article-preview:hover {
  background: rgba(255, 255, 255, 0.7);
  border-left-color: var(--sage);
  transform: translateX(4px);
}

.article-preview h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.article-preview h4 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-preview:hover h4 a {
  color: var(--sage);
}

.article-author {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.article-url {
  font-size: 0.9rem;
}

.article-url a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-url a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

/* Tags page */
.tags-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.tags-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tags-list li:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

.tags-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.tags-list li:hover a {
  color: var(--sage);
}

.tag-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

/* Now page */
.now-section {
  margin-bottom: var(--space-xl);
}

.now-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--indigo);
}

.now-list {
  list-style: none;
}

.now-list li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.6;
}

.now-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header h1 {
    font-size: 2.5rem;
  }

  .site-header p {
    font-size: 0.95rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .post-header h1 {
    font-size: 2.5rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

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

  .container {
    padding: var(--space-md) var(--space-sm);
  }

  .series-nav {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .series-nav-link {
    width: 100%;
    display: block;
  }

  .series-intro {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }

  .post-content figure {
    padding: var(--space-xs);
  }

  .post-content figcaption {
    font-size: 0.8rem;
  }
}

/* Print styles */
@media print {
  body::before {
    display: none;
  }

  .nav {
    display: none;
  }

  .post-preview {
    break-inside: avoid;
  }
}
