
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --bg: #FAF7F2;
  --bg-card: #FFFFFF;
  --text: #2C2416;
  --text-muted: #8A7E6B;
  --accent: #B8542A;
  --accent-light: #E8D5C4;
  --border: #E5DDD0;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ── Header ── */
.site-header {
  background: var(--text);
  color: var(--bg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.015) 20px,
    rgba(255,255,255,0.015) 40px
  );
}
.site-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
}
.site-header h1 a { color: inherit; text-decoration: none; }
.site-header p {
  font-size: 0.95rem;
  opacity: 0.6;
  margin-top: 0.4rem;
  font-weight: 300;
  position: relative;
}

/* ── Navigation ── */
.year-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.year-nav a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  margin: 0 0.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}
.year-nav a:hover, .year-nav a.active {
  background: var(--accent);
  color: white;
}

/* ── Main Layout ── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Post List ── */
.year-group { margin-bottom: 3rem; }
.year-group h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-light);
}
.year-group h2 a { color: inherit; text-decoration: none; }
.year-group h2 span {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.post-list { list-style: none; }
.post-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.post-list li:last-child { border-bottom: none; }
.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 5.5rem;
  font-variant-numeric: tabular-nums;
}
.post-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.post-list a:hover { color: var(--accent); }
.post-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ── Single Post ── */
.post-single { margin-bottom: 4rem; }
.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.post-single h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.post-content {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.85;
}
.post-content p { margin-bottom: 1.2rem; }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.post-content a { color: var(--accent); }
.post-content figure {
  margin: 1.5rem 0;
  text-align: center;
}
.post-content figure img { margin: 0 auto; display: block; }
.post-content figcaption,
.post-content .wp-caption-text {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.post-content .video-player,
.post-content .audio-player {
  margin: 1.5rem 0;
}
.post-content .video-label,
.post-content .audio-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.post-content video {
  border-radius: 6px;
  background: #000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}
.post-content audio {
  display: block;
}
.post-content iframe,
.post-content video,
.post-content embed {
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.post-nav a {
  color: var(--accent);
  text-decoration: none;
  max-width: 45%;
}
.post-nav a:hover { text-decoration: underline; }
.post-nav .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.2rem;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Stats bar on index ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Search ── */
.search-box {
  margin-bottom: 2rem;
}
.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--sans);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-list li { flex-direction: column; gap: 0.15rem; }
  .post-date { min-width: auto; }
  .post-author { margin-left: 0; }
  .stats { gap: 1.5rem; }
  .stats strong { font-size: 1.3rem; }
}
