/*
Theme Name: Calm & Connect
Theme URI: https://calm-connect.jp
Author: Calm & Connect
Author URI: https://calm-connect.jp
Description: 夫婦の心のつながりと感情を安定させる豊かな生活のためのブログテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calm-connect
Tags: blog, two-columns, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --cream: #FAF8F3;
  --warm-white: #FFFDF9;
  --sage: #7A9E87;
  --sage-light: #EAF2EC;
  --sage-dark: #4E7259;
  --terracotta: #C4785A;
  --terracotta-light: #F9EDE7;
  --text-primary: #2D2926;
  --text-secondary: #6B6560;
  --text-muted: #9E9890;
  --border: #E8E2D9;
  --accent-line: #D4C9B8;
  --sidebar-width: 300px;
  --content-max: 760px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  line-height: 1.9;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta); }
ul, ol { padding-left: 1.5em; }

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }

.site-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: var(--sage-dark);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.site-title span { color: var(--terracotta); }
.site-title a { color: inherit; }
.site-title a:hover { color: inherit; }

.site-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  line-height: 1.4;
}

/* ============================================================
   Navigation
   ============================================================ */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
}

.main-navigation ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-radius: 8px;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: var(--sage-light);
  color: var(--sage-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
}

/* ============================================================
   Hero (front page / archive)
   ============================================================ */
.site-hero {
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--terracotta-light) 100%);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(122,158,135,0.1);
}
.site-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(196,120,90,0.08);
}
.site-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 4vw, 38px);
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 16px;
  font-weight: 600;
  position: relative;
}
.site-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

/* Post hero (single) */
.post-hero {
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--terracotta-light) 100%);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(122,158,135,0.12);
}
.post-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(196,120,90,0.1);
}
.category-tag {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 500;
  position: relative;
}
.post-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 4vw, 30px);
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 18px;
  font-weight: 600;
  position: relative;
}
.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   Layout: Wrapper, Main, Sidebar
   ============================================================ */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 32px 80px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  align-items: start;
}

.site-wrapper.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
}

/* ============================================================
   Article (single post)
   ============================================================ */
.article-container {
  min-width: 0;
}

/* Lead */
.lead {
  background: var(--warm-white);
  border-left: 3px solid var(--sage);
  padding: 24px 28px;
  margin: 44px 0 40px;
  border-radius: 0 12px 12px 0;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 2;
}

/* Headings in content */
.entry-content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: var(--text-primary);
  margin: 52px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
  font-weight: 600;
}
.entry-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 48px; height: 2px;
  background: var(--sage);
}
.entry-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  color: var(--sage-dark);
  margin: 36px 0 14px;
  font-weight: 600;
}
.entry-content h4 {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

/* Paragraphs */
.entry-content p {
  margin-bottom: 22px;
  color: var(--text-primary);
  font-size: 15.5px;
  line-height: 2;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
}
.entry-content li { margin-bottom: 8px; }

/* Blockquote */
.entry-content blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--terracotta-light);
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
  font-style: normal;
}

/* Code */
.entry-content code {
  background: var(--sage-light);
  color: var(--sage-dark);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
}

/* Highlight */
.highlight {
  background: linear-gradient(transparent 60%, rgba(122,158,135,0.25) 60%);
  font-weight: 500;
}

/* Empathy box */
.empathy-box {
  background: var(--terracotta-light);
  border: 1px solid rgba(196,120,90,0.2);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}
.empathy-box::before {
  content: '💭';
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}
.empathy-box p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.9;
}

/* Advice box */
.advice-box {
  background: var(--sage-light);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 36px 0;
}
.advice-box .advice-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 14px;
}
.advice-box p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

/* Summary box */
.summary-box {
  background: var(--warm-white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin: 44px 0;
}
.summary-box .summary-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 20px;
  text-align: center;
}
.summary-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.summary-list li::before {
  content: '✓';
  color: var(--sage);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Routine list */
.routine-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}
.routine-item {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.routine-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.routine-number {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--sage);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 600;
}
.routine-content h4 {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.routine-content p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.85;
}
.routine-time {
  display: inline-block;
  font-size: 11px;
  background: var(--sage-light);
  color: var(--sage-dark);
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Post closing */
.post-closing {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  margin-top: 52px;
}
.post-closing p {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 2;
}
.post-closing .heart {
  color: var(--terracotta);
  font-size: 20px;
  display: block;
  margin-top: 16px;
}

/* Author box */
.author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: 48px;
}
.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--terracotta));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info .author-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.author-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.nav-previous, .nav-next {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nav-previous:hover, .nav-next:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.nav-next { text-align: right; }
.nav-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}
.nav-title {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comments */
.comments-area {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-weight: 600;
}
.comment-list { list-style: none; padding: 0; }
.comment {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.comment-author { font-weight: 500; color: var(--text-primary); font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.comment-content p { font-size: 14.5px; color: var(--text-secondary); margin: 0; }

.comment-respond {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 32px;
}
.comment-reply-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 600;
}
.comment-form label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 16px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--sage);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  margin-top: 20px;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form .submit:hover { background: var(--sage-dark); }

/* ============================================================
   Archive / Blog index
   ============================================================ */
.archive-header {
  margin-bottom: 40px;
}
.archive-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.archive-description {
  font-size: 14px;
  color: var(--text-muted);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body { padding: 22px 24px 26px; }
.post-card-category {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.post-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 10px;
  font-weight: 600;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--sage-dark); }
.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--sage-dark);
  font-weight: 500;
}
.read-more::after { content: '→'; }
.read-more:hover { color: var(--terracotta); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--warm-white);
  transition: all 0.2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--text-muted);
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar { min-width: 0; }

.widget {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
}

.widget-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 32px; height: 2px;
  background: var(--sage);
}

/* Search widget */
.search-form {
  display: flex;
  gap: 8px;
}
.search-field {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.search-field:focus { border-color: var(--sage); }
.search-submit {
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-submit:hover { background: var(--sage-dark); }

/* Recent posts widget */
.widget_recent_entries ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget_recent_entries ul li a {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.widget_recent_entries ul li a:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}

/* Categories widget */
.widget_categories ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget_categories ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.widget_categories ul li a:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
}

/* Tag cloud */
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget_tag_cloud .tagcloud a {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px !important;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.widget_tag_cloud .tagcloud a:hover {
  background: var(--sage-light);
  border-color: var(--sage);
  color: var(--sage-dark);
}

/* About widget */
.widget-about {
  text-align: center;
}
.widget-about .about-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--terracotta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
}
.widget-about .about-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 10px;
}
.widget-about p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.6);
  padding: 52px 32px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.footer-logo span { color: var(--terracotta); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
}
.footer-nav-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .site-wrapper {
    grid-template-columns: 1fr;
    padding: 36px 24px 60px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 20px; }
  .site-tagline { display: none; }
  .main-navigation { display: none; }
  .main-navigation.is-open {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--warm-white);
    padding: 24px;
    z-index: 199;
    overflow-y: auto;
  }
  .main-navigation.is-open ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-navigation.is-open ul li a {
    font-size: 16px;
    padding: 14px 16px;
  }
  .menu-toggle { display: block; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .site-wrapper { padding: 28px 16px 52px; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-hero h1,
.post-hero .post-meta,
.post-hero .category-tag,
.site-hero h1,
.site-hero p {
  animation: fadeUp 0.7s ease both;
}
.post-hero h1 { animation-delay: 0.1s; }
.post-hero .post-meta { animation-delay: 0.25s; }

/* ============================================================
   Utility
   ============================================================ */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; }
