/* === Old Newspaper Blog Style === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --paper: #ffffff;
  --paper-light: #f7f7f7;
  --paper-dark: #ececec;
  --ink: #000000;
  --ink-light: #1a1a1a;
  --ink-muted: #555555;
  --accent: #8b3a1a;
  --rule: #c8bea8;
  --line: #65baa1;
  --shadow: none;
  --radius: 0;
  --max-width: 1100px;
  --font: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-bg: transparent;
}

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

html { font-size: 19px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === NEWSPAPER NAME PLATE === */
.site-header {
  background: var(--header-bg);
  border-bottom: 3px double var(--line);
  
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-emoji { display: none; }

.site-title {
  font-size: 1.6rem;
  font-weight: 400;
  font-family: var(--font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-title a:hover { opacity: 0.7; }

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s;
}

.site-nav a:hover {
  opacity: 0.6;
  border-bottom-color: var(--line);
}

/* === DATE LINE === */
.date-line {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  
  font-family: var(--font);
}

/* === LAYOUT === */
.blog-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.content-area { min-width: 0; border-right: 1px solid var(--line); padding-right: 2rem; }

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  
  top: 6rem;
  
  padding-left: 1.5rem;
}

.sidebar-card {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  
}

.sidebar-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  font-family: var(--font);
  
  padding-bottom: 0.35rem;
}

/* About card */
.about-avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 0.75rem;
}

.avatar-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  

  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.about-name {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  letter-spacing: 0.05em;
}

.about-tagline {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font);
}

.about-bio {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-family: var(--font);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--ink-light);
  text-decoration: none;
  
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

.about-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line);
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 0.25rem;
  
}

.stat-number {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font);
  font-size: 0.6rem;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Random button */
.random-btn {
  width: 100%;
  padding: 0.5rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.random-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Quote widget */
.quote-text {
  font-family: var(--font);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-light);
  font-style: normal;
  margin-bottom: 0.5rem;
  min-height: 3em;
}

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

.quote-btn {
  width: 100%;
  padding: 0.35rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}

.quote-btn:hover {
  background: var(--paper-dark);
  color: var(--ink);
}

/* Streak */
.streak-widget { text-align: center; }

.streak-number {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.streak-label {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.streak-bar {
  width: 100%;
  height: 6px;
  background: var(--paper-dark);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.streak-fill {
  height: 100%;
  background: var(--ink);
  transition: width 1s ease;
}

.streak-since {
  font-family: var(--font);
  font-size: 0.65rem;
  color: var(--ink-muted);
}

/* Now section */
.now-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-family: var(--font);
}

.now-emoji { font-size: 1rem; }

.now-text {
  font-size: 0.75rem;
  color: var(--ink-light);
  line-height: 1.5;
}

.now-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* === HERO POST === */
.hero-post {
  
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: opacity 0.2s;
}

.hero-post:hover { opacity: 0.9; }

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  background: var(--paper-dark);
}

.hero-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.hero-title {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  font-family: var(--font);
}

.hero-title a {
  color: var(--ink);
  text-decoration: none;
}

.hero-title a:hover { opacity: 0.7; }

.hero-date {
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-excerpt {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.65;
}

/* === POST GRID === */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-card {
  border-right: 1px solid var(--line);
  
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 0.4s forwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }
.post-card:nth-child(7) { animation-delay: 0.35s; }
.post-card:nth-child(8) { animation-delay: 0.4s; }
.post-card:nth-child(9) { animation-delay: 0.45s; }

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

.post-card:hover { opacity: 0.85; }

.post-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--paper-dark);
  
}

.post-card-body {
  padding: 0.85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.post-card-tag {
  font-family: var(--font);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  
  padding: 0.1rem 0.4rem;
}

.post-card-title {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
  flex: 1;
}

.post-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card-title a:hover { opacity: 0.7; }

.post-card-meta {
  font-family: var(--font);
  font-size: 0.65rem;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card-excerpt {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--ink-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === SECTION HEADER === */
.section-title {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--line);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  
  transition: all 0.2s;
  padding: 0 0.4rem;
}

.page-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line);
}

.page-link.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line);
}

.load-more {
  display: block;
  margin: 1rem auto 0;
  padding: 0.5rem 1.5rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.load-more:hover {
  background: var(--ink);
  color: var(--paper);
}

.hidden { display: none !important; }

/* === INDIVIDUAL POST PAGE === */
.post-page .blog-layout {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.post-page .site-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.post-full-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  
}

.post-full-title {
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.post-full-date {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-full-content {
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink);
}

.post-full-content p { margin-bottom: 1rem; }
.post-full-content img {
  max-width: 100%;
  height: auto;
  
  margin: 1.25rem 0;
}
.post-full-content figure { margin: 1.25rem 0; }
.post-full-content figcaption {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--line);
  text-align: center;
  margin-top: 0.5rem;
}
.post-full-content blockquote {
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: var(--ink-light);
  font-style: normal;
}
.post-full-content ul, .post-full-content ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}
.post-full-content li { margin-bottom: 0.35rem; }
.post-full-content h2 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.post-full-content h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.post-full-content hr {
  border: none;
  border-top: 2px solid var(--line);
  margin: 1.5rem 0;
}
.post-full-content .wp-caption { max-width: 100%; }
.post-full-content .wp-caption img { margin-bottom: 0.35rem; }
.post-full-content .wp-caption-text {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
}

.post-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }

.tag {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  
  padding: 0.15rem 0.5rem;
}

/* Back link */
.back-link {
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.back-link:hover { color: var(--ink); }

.feature-image {
  width: 100%;
  
  margin-bottom: 1.5rem;
}

/* === POST NAVIGATION === */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.post-nav-link {
  padding: 0.75rem;
  
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-nav-link:hover { opacity: 0.7; }

.post-nav-link.next { text-align: right; }

.post-nav-label {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.post-nav-title {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--ink);
}

/* === READING PROGRESS === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* === FOOTER === */
.site-footer {
  border-top: 3px double var(--line);
  background: transparent;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  text-align: center;
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    border-left: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .sidebar-card { margin-bottom: 0; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-post { grid-template-columns: 1fr; }
  .hero-image { min-height: 200px; }
}

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .post-full-title { font-size: 1.4rem; }
  .hero-title { font-size: 1.1rem; }
  .hero-content { padding: 1rem; }
  .blog-layout { padding: 1rem 1rem 2rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }
}

/* Sidebar nav */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-link {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.6;
}

/* Column divider */
.blog-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
}

/* Remove right border from last card in each row */
.post-card:nth-child(3n) {
  border-right: none;
}

/* Category tags as links (added 2026-08-07) */
.post-tags a.tag {
  text-decoration: none;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--paper-light);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.post-tags a.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.post-tags { margin-top: 0.5rem; }

/* Category archive pages (added 2026-08-07) */
.category-heading {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px double var(--line);
}
.category-title {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.category-count {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-card .cat-count {
  font-family: var(--font);
  font-size: 0.6rem;
  color: var(--ink-muted);
}

/* Top nav categories dropdown (added 2026-08-07, rebuilt 2026-08-07) */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--line);
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  opacity: 0.6;
  border-bottom-color: var(--line);
}
.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--paper-light);
  border: 1px solid var(--line);
  min-width: 13rem;
  z-index: 100;
  padding: 0.5rem 0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
}
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}
.nav-dropdown-menu a:hover {
  background: var(--paper-dark);
}
@media (max-width: 640px) {
  .nav-dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
  }
}

/* Header banner (added 2026-08-07) */
.site-banner-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}
.site-banner {
  display: block;
  width: 100%;
  height: auto;
}
.site-banner-wrap a {
  display: block;
}

/* Hero divider: line and paw (added 2026-08-07) */
.hero-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2.25rem;
}
.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.hero-divider .paw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
  line-height: 0;
}

/* Floated images inside post content (text wraps around) */
.post-full-content img.float-left {
  float: left;
  width: 45%;
  margin: 0.25rem 1.25rem 0.75rem 0;
}
.post-full-content img.float-right {
  float: right;
  width: 45%;
  margin: 0.25rem 0 0.75rem 1.25rem;
}
.post-full-content::after {
  content: "";
  display: block;
  clear: both;
}
