/*
Theme Name: カキクケ苔
Theme URI: https://example.com/
Author: カキクケ苔
Description: 苔テラリウム・山の調査・苔の紹介ブログ「カキクケ苔」のオリジナルテーマ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kakikukekoke
*/

/* ==================================================
   CSS カスタムプロパティ
================================================== */
:root {
  --green-darkest:  #0d1f06;
  --green-dark:     #1a3d09;
  --green-forest:   #2d5a16;
  --green-moss:     #4a8026;
  --green-mid:      #6a9e3a;
  --green-bright:   #80b845;
  --green-light:    #a8cf78;
  --green-pale:     #c8e4a6;
  --green-lightest: #eef6e6;
  --earth-dark:     #2a1a0c;
  --earth-mid:      #5c3d22;
  --earth-light:    #8a6442;
  --cream:          #f5f1e8;
  --cream-dark:     #e8e2d6;
  --warm-white:     #fafaf7;
  --white:          #ffffff;
  --text-dark:      #1a1a1a;
  --text-mid:       #4a4a4a;
  --text-light:     #777;
  --text-lighter:   #aaa;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
  --transition: 0.3s ease;
  --max-width:  1200px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-full: 9999px;
}

/* ==================================================
   リセット・ベース
================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text-dark);
  background-color: var(--warm-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-forest); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-moss); }
ul, ol { list-style: none; }

/* ==================================================
   タイポグラフィ
================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'YuMincho', 'Yu Mincho', serif;
  line-height: 1.4;
  color: var(--text-dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1rem; line-height: 1.9; }

/* ==================================================
   ユーティリティ
================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--green-dark);
  display: inline-block;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--green-moss);
  margin: 0.5rem auto 0;
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--text-lighter);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green-forest);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-moss);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-forest);
  border: 2px solid var(--green-forest);
}
.btn-outline:hover {
  background: var(--green-forest);
  color: var(--white);
  transform: translateY(-2px);
}

/* ==================================================
   サイトヘッダー
================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,128,38,0.12);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo img { height: 50px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green-moss);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--green-forest); }
.site-nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
}

/* ==================================================
   ヒーローセクション
================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,31,6,0.50) 0%,
    rgba(26,61,9,0.62) 50%,
    rgba(13,31,6,0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  animation: heroFadeIn 1.2s ease-out forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  height: 90px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.45));
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.95);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

.hero-btn {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: all var(--transition);
  font-family: inherit;
  display: inline-block;
}
.hero-btn:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-down::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ==================================================
   About セクション
================================================== */
.about-section {
  padding: 6rem 0;
  background: var(--cream);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.about-image:hover img { transform: scale(1.04); }

.about-text .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--green-moss);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.about-text h2 { margin-bottom: 1rem; color: var(--green-dark); }
.about-text p { color: var(--text-mid); line-height: 2.1; }

.about-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.about-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.about-icon {
  width: 54px;
  height: 54px;
  background: var(--green-lightest);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--transition), background var(--transition);
}
.about-icon-item:hover .about-icon {
  transform: scale(1.1);
  background: var(--green-pale);
}

/* ==================================================
   カテゴリーセクション
================================================== */
.categories-section {
  padding: 6rem 0;
  background: var(--warm-white);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.category-card:hover .category-card-bg { transform: scale(1.07); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,25,4,0.88) 0%,
    rgba(26,61,9,0.35) 55%,
    rgba(0,0,0,0.08) 100%
  );
}
.category-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  color: var(--white);
}
.category-emoji { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.category-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  color: var(--white);
}
.category-desc {
  font-size: 0.82rem;
  opacity: 0.82;
  line-height: 1.7;
}
.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
  transition: gap var(--transition), color var(--transition);
}
.category-card:hover .category-link {
  gap: 0.7rem;
  color: var(--white);
}

/* ==================================================
   最新記事セクション
================================================== */
.posts-section {
  padding: 6rem 0;
  background: var(--cream);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.post-card-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--green-lightest);
  display: block;
}
.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumbnail img { transform: scale(1.06); }
.post-card-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--green-lightest), var(--green-pale));
  min-height: 180px;
}
.post-card-body { padding: 1.25rem 1.25rem 1.5rem; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
}
.post-card-cat {
  background: var(--green-lightest);
  color: var(--green-forest);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.post-card-date { color: var(--text-lighter); }
.post-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  transition: color var(--transition);
}
.post-card-title a { color: inherit; }
.post-card:hover .post-card-title a { color: var(--green-forest); }
.post-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posts-more { text-align: center; margin-top: 3rem; }

/* ==================================================
   フッター
================================================== */
.site-footer {
  background: var(--green-darkest);
  color: rgba(255,255,255,0.72);
  padding: 4rem 0 2rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-brand .footer-logo { height: 52px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.9; color: rgba(255,255,255,0.58); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: 'Noto Serif JP', serif;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom {
  display: flex;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ==================================================
   ブログ一覧 (index / archive)
================================================== */
.page-hero {
  padding-top: calc(70px + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-moss) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.page-hero h1 {
  position: relative;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.page-hero p {
  position: relative;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.posts-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-list-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-list-thumb {
  overflow: hidden;
  background: var(--green-lightest);
  display: block;
}
.post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-list-item:hover .post-list-thumb img { transform: scale(1.05); }
.post-list-no-thumb {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--green-lightest), var(--green-pale));
}
.post-list-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-list-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
}
.post-list-cat {
  background: var(--green-lightest);
  color: var(--green-forest);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.post-list-date { color: var(--text-lighter); }
.post-list-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  transition: color var(--transition);
}
.post-list-item:hover .post-list-title a { color: var(--green-forest); }
.post-list-excerpt {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.read-more {
  font-size: 0.85rem;
  color: var(--green-forest);
  font-weight: 500;
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.read-more:hover { gap: 0.6rem; color: var(--green-moss); }

/* サイドバー */
.blog-sidebar .widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--green-dark);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--green-pale);
  margin-bottom: 1rem;
}
.widget ul { display: flex; flex-direction: column; gap: 0.5rem; }
.widget a { font-size: 0.88rem; color: var(--text-mid); }
.widget a:hover { color: var(--green-forest); }

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.pagination a {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
.pagination a:hover, .pagination .current {
  background: var(--green-forest);
  color: var(--white);
}

/* ==================================================
   シングル記事
================================================== */
.single-hero {
  height: 55vh;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}
.single-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}
.single-hero-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  color: var(--white);
  max-width: var(--max-width);
  margin: 0 auto;
}
.single-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}
.single-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}
.entry-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--cream-dark); }
.entry-title { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--green-dark); }
.entry-content p { color: var(--text-mid); line-height: 2.1; margin-bottom: 1.5rem; }
.entry-content h2, .entry-content h3 { color: var(--green-dark); margin: 2.5rem 0 1rem; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.entry-content blockquote {
  border-left: 4px solid var(--green-pale);
  padding: 1rem 1.5rem;
  background: var(--green-lightest);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

/* ==================================================
   レスポンシブ
================================================== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; }

  .hero-logo { height: 65px; }

  .about-inner { grid-template-columns: 1fr; gap: 2rem; }

  .categories-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; max-width: 480px; }

  .posts-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

  .blog-layout { grid-template-columns: 1fr; }
  .post-list-item { grid-template-columns: 1fr; }
  .post-list-thumb { aspect-ratio: 16/9; }

  .single-layout { grid-template-columns: 1fr; }
  .single-article { padding: 1.5rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
