/*
Theme Name:  My Crochet Blog
Theme URI:   https://mycrochetblog.com
Author:      My Crochet Blog
Description: A warm boho crochet theme with terracotta, cream and sage tones. Built for crochet pattern blogs and handmade lifestyle content.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: my-crochet-blog
Tags:        blog, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, two-columns, right-sidebar
*/

/* ════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════ */
:root {
  --cream:       #FAF7F2;
  --parchment:   #F0E8DF;
  --parchment2:  #E8DDD3;
  --terra:       #B5604F;
  --terra-dark:  #8C3F30;
  --terra-light: #E8C5BD;
  --espresso:    #3D2B1F;
  --brown-mid:   #6B4C3B;
  --sage:        #6B8F6B;
  --sage-light:  #C8DDCA;
  --amber:       #C07820;
  --amber-bg:    #FFF5E0;
  --green-bg:    #EDF5ED;
  --red-bg:      #FDF0EE;
  --white:       #FFFFFF;
  --shadow-sm:   rgba(61,43,31,.08);
  --shadow-md:   rgba(61,43,31,.14);
  --shadow-lg:   rgba(61,43,31,.20);
  --font-d:      'Cormorant Garamond', Georgia, serif;
  --font-b:      'DM Sans', system-ui, sans-serif;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --transition:  all .2s ease;
}

/* ════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-b);
  font-size: 1.05rem;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--terra); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--terra-dark); }

/* ════════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-d);
  color: var(--espresso);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p { margin-bottom: 1.1rem; }

/* ════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════ */
.site-wrapper   { display: flex; flex-direction: column; min-height: 100vh; }
.site-main      { flex: 1; }
.container      { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.content-area   { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 52px 0; }
.content-area.full-width { grid-template-columns: 1fr; }

/* ════════════════════════════════════════════
   SITE HEADER
════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--parchment);
  box-shadow: 0 2px 12px var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Logo / Site Title */
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .yarn-icon { font-size: 1.6rem; line-height: 1; }

.site-title {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terra-dark);
  line-height: 1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--terra); }

.site-tagline {
  font-size: 11px;
  color: var(--brown-mid);
  letter-spacing: .5px;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

/* Primary Navigation */
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--brown-mid);
  border-radius: 6px;
  transition: var(--transition);
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a {
  background: var(--parchment);
  color: var(--terra-dark);
}

/* Dropdown */
.primary-nav ul li { position: relative; }
.primary-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--parchment2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px var(--shadow-md);
  min-width: 200px;
  z-index: 300;
  flex-direction: column;
  gap: 0;
  padding: 6px;
}
.primary-nav ul li:hover > ul { display: flex; }
.primary-nav ul li ul li a { width: 100%; border-radius: 6px; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: var(--parchment);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--terra-dark);
}

/* Header Search */
.header-search input[type="search"] {
  background: var(--parchment);
  border: 1px solid var(--parchment2);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-family: var(--font-b);
  color: var(--espresso);
  outline: none;
  width: 180px;
  transition: var(--transition);
}
.header-search input[type="search"]:focus {
  border-color: var(--terra-light);
  background: var(--white);
  width: 220px;
  box-shadow: 0 0 0 3px rgba(181,96,79,.12);
}

/* ════════════════════════════════════════════
   PAGE HERO
════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--terra-dark) 0%, var(--terra) 55%, #D4846F 100%);
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' stroke='white' stroke-width='1' fill='none' opacity='0.06'/%3E%3Ccircle cx='30' cy='30' r='18' stroke='white' stroke-width='1' fill='none' opacity='0.06'/%3E%3C/svg%3E") repeat;
  opacity: .3;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 30px;
  padding: 5px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero__title {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 14px;
}
.page-hero__title em { font-style: italic; font-weight: 400; }
.page-hero__subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: .88;
  max-width: 520px;
  margin: 0 auto 28px;
}
.page-hero__pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.page-hero__pill {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
}
.page-hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .85;
  margin-top: 16px;
}
.page-hero__meta span { display: flex; align-items: center; gap: 6px; }

/* ════════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════════ */
.breadcrumb {
  background: var(--parchment);
  border-bottom: 1px solid var(--parchment2);
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--brown-mid);
}
.breadcrumb a { color: var(--terra); font-weight: 600; }
.breadcrumb span { margin: 0 6px; opacity: .5; }

/* ════════════════════════════════════════════
   POST CARDS (Archive / Index)
════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 48px 0;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 18px var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-md);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--terra-light), var(--parchment));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-card__body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }

.post-card__cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.post-card__cat {
  background: var(--terra-light);
  color: var(--terra-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
}

.post-card__title {
  font-family: var(--font-d);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.25;
  margin-bottom: 10px;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--terra-dark); }

.post-card__excerpt {
  font-size: 14.5px;
  color: var(--brown-mid);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--parchment2);
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--brown-mid);
}
.post-card__meta { display: flex; align-items: center; gap: 12px; }
.post-card__meta span { display: flex; align-items: center; gap: 4px; }

.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--terra);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  transition: var(--transition);
}
.post-card__read-more:hover { background: var(--terra-dark); color: #fff; }

/* ════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════ */
.single-post { padding-bottom: 60px; }

/* Info Box */
.post-info-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 32px 0;
}
.info-card {
  background: var(--parchment);
  border-radius: 10px;
  padding: 14px 16px;
}
.info-card__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 4px;
}
.info-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
}

/* Post Content */
.post-content { font-size: 1.05rem; line-height: 1.80; }

.post-content h2 {
  font-family: var(--font-d);
  font-size: 1.9rem;
  color: var(--terra-dark);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--parchment2);
}
.post-content h3 {
  font-family: var(--font-d);
  font-size: 1.4rem;
  color: var(--terra-dark);
  margin: 28px 0 10px;
}
.post-content h4 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  color: var(--brown-mid);
  margin: 20px 0 8px;
  font-style: italic;
}
.post-content p    { margin-bottom: 1.2rem; }
.post-content ul,
.post-content ol   { padding-left: 24px; margin-bottom: 1.2rem; }
.post-content li   { margin-bottom: 8px; }
.post-content strong { color: var(--terra-dark); }
.post-content a    { color: var(--terra); font-weight: 600; border-bottom: 1px solid var(--terra-light); }
.post-content a:hover { color: var(--terra-dark); border-bottom-color: var(--terra); }

/* Blockquote */
.post-content blockquote {
  background: var(--parchment);
  border-left: 4px solid var(--terra);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px;
  margin: 24px 0;
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--terra-dark);
}
.post-content blockquote cite {
  display: block;
  font-size: .85rem;
  font-style: normal;
  color: var(--brown-mid);
  margin-top: 8px;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.post-content table th {
  background: var(--terra);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.post-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--parchment2);
}
.post-content table tr:nth-child(even) td { background: var(--parchment); }
.post-content table tr:hover td { background: var(--terra-light); }

/* Images in content */
.post-content figure {
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-md);
}
.post-content figure img { width: 100%; }
.post-content figcaption {
  background: var(--parchment);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--brown-mid);
  font-style: italic;
  text-align: center;
}

/* Callout boxes */
.callout-check, .callout-warn, .callout-tip, .callout-note {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 15px;
}
.callout-check { background: var(--green-bg); border-left: 4px solid var(--sage); color: #2A5A2A; }
.callout-warn  { background: var(--amber-bg); border-left: 4px solid var(--amber); color: #7A4E00; }
.callout-tip   { background: var(--parchment);  border-left: 4px solid var(--terra); color: var(--espresso); }
.callout-note  { background: #EEF0FF; border-left: 4px solid #5C6BC0; color: #283593; }

/* Post Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--parchment2);
}
.post-tags__label { font-size: 12px; font-weight: 700; color: var(--brown-mid); text-transform: uppercase; letter-spacing: 1px; }
.post-tag {
  background: var(--parchment);
  color: var(--brown-mid);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--parchment2);
  transition: var(--transition);
}
.post-tag:hover { background: var(--terra-light); color: var(--terra-dark); border-color: var(--terra-light); }

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--parchment2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 36px;
  box-shadow: 0 2px 12px var(--shadow-sm);
}
.author-box__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--terra-light);
}
.author-box__name {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terra-dark);
  margin-bottom: 4px;
}
.author-box__bio { font-size: 14px; color: var(--brown-mid); line-height: 1.6; }

/* Related Posts */
.related-posts { margin-top: 52px; }
.related-posts h2 {
  font-family: var(--font-d);
  font-size: 1.8rem;
  color: var(--terra-dark);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--parchment2);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 28px; padding-top: 52px; }

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 18px var(--shadow-sm);
  overflow: hidden;
}
.widget-title {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--terra-dark);
  background: var(--parchment);
  padding: 14px 20px;
  border-bottom: 1px solid var(--parchment2);
  margin: 0;
}
.widget-body { padding: 18px 20px; }

/* Widget: Recent Posts */
.widget-recent-posts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.widget-recent-posts li { display: flex; gap: 12px; align-items: flex-start; }
.widget-recent-posts .thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.widget-recent-posts .thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent-posts .thumb-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.widget-recent-posts .post-info .title { font-size: 13.5px; font-weight: 700; color: var(--espresso); line-height: 1.35; }
.widget-recent-posts .post-info .title a { color: inherit; }
.widget-recent-posts .post-info .title a:hover { color: var(--terra); }
.widget-recent-posts .post-info .date { font-size: 11.5px; color: var(--brown-mid); margin-top: 3px; }

/* Widget: Categories */
.widget-categories { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.widget-categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--espresso);
  font-weight: 500;
  transition: var(--transition);
}
.widget-categories li a:hover { background: var(--parchment); color: var(--terra-dark); }
.widget-categories .count {
  background: var(--terra-light);
  color: var(--terra-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Widget: About */
.widget-about { text-align: center; }
.widget-about__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra-light), var(--parchment));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 14px;
  border: 3px solid var(--terra-light);
}
.widget-about__name {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terra-dark);
  margin-bottom: 8px;
}
.widget-about__bio { font-size: 13.5px; color: var(--brown-mid); line-height: 1.6; margin-bottom: 14px; }
.widget-about__social { display: flex; justify-content: center; gap: 10px; }
.widget-about__social a {
  background: var(--parchment);
  color: var(--terra-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: var(--transition);
}
.widget-about__social a:hover { background: var(--terra); color: #fff; }

/* Widget: Newsletter */
.widget-newsletter { text-align: center; }
.widget-newsletter p { font-size: 13.5px; color: var(--brown-mid); margin-bottom: 14px; }
.widget-newsletter form { display: flex; flex-direction: column; gap: 10px; }
.widget-newsletter input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--parchment2);
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 14px;
  background: var(--parchment);
  color: var(--espresso);
  outline: none;
  transition: var(--transition);
}
.widget-newsletter input[type="email"]:focus {
  border-color: var(--terra-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(181,96,79,.10);
}
.btn-subscribe {
  width: 100%;
  padding: 10px;
  background: var(--terra);
  color: #fff;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-subscribe:hover { background: var(--terra-dark); }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-b);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn--primary   { background: var(--terra); color: #fff; }
.btn--primary:hover   { background: var(--terra-dark); color: #fff; }
.btn--outline   { background: transparent; color: var(--terra); border: 2px solid var(--terra); }
.btn--outline:hover   { background: var(--terra); color: #fff; }
.btn--parchment { background: var(--parchment); color: var(--espresso); }
.btn--parchment:hover { background: var(--parchment2); color: var(--espresso); }

/* ════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0 48px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-mid);
  background: var(--white);
  border: 1px solid var(--parchment2);
  transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

/* ════════════════════════════════════════════
   COMMENTS
════════════════════════════════════════════ */
.comments-section { margin-top: 52px; }
.comments-title {
  font-family: var(--font-d);
  font-size: 1.8rem;
  color: var(--terra-dark);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--parchment2);
}
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.comment {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment2);
  padding: 20px 22px;
}
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--terra-light); }
.comment-author-name { font-weight: 700; font-size: 14.5px; color: var(--espresso); }
.comment-date { font-size: 12px; color: var(--brown-mid); }
.comment-body { font-size: 14.5px; color: var(--espresso); line-height: 1.7; }
.comment-reply-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--terra);
  margin-top: 10px;
  display: inline-block;
}

/* Comment Form */
.comment-form { margin-top: 36px; }
.comment-form h3 { font-family: var(--font-d); font-size: 1.5rem; color: var(--terra-dark); margin-bottom: 20px; }
.comment-form label { font-size: 13px; font-weight: 700; color: var(--brown-mid); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--parchment2);
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 15px;
  background: var(--white);
  color: var(--espresso);
  outline: none;
  transition: var(--transition);
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--terra-light);
  box-shadow: 0 0 0 3px rgba(181,96,79,.10);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form .submit {
  background: var(--terra);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.comment-form .submit:hover { background: var(--terra-dark); }

/* ════════════════════════════════════════════
   SITE FOOTER
════════════════════════════════════════════ */
.site-footer {
  background: var(--espresso);
  color: rgba(255,255,255,.72);
  padding: 60px 0 0;
  margin-top: 60px;
}
.site-footer a { color: var(--terra-light); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .site-title { color: var(--terra-light); font-size: 1.6rem; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin-top: 12px; opacity: .8; }
.footer-brand .social-links { display: flex; gap: 10px; margin-top: 18px; }
.footer-brand .social-links a {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.80);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: var(--transition);
}
.footer-brand .social-links a:hover { background: var(--terra); color: #fff; }

.footer-col h4 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13.5px; opacity: .80; transition: var(--transition); }
.footer-col ul li a:hover { opacity: 1; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  opacity: .60;
}

/* ════════════════════════════════════════════
   404 PAGE
════════════════════════════════════════════ */
.page-404 { text-align: center; padding: 80px 24px; }
.page-404__number {
  font-family: var(--font-d);
  font-size: 9rem;
  font-weight: 700;
  color: var(--terra-light);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404__title { font-size: 2rem; color: var(--terra-dark); margin-bottom: 14px; }
.page-404__text  { font-size: 1rem; color: var(--brown-mid); max-width: 400px; margin: 0 auto 28px; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-area { grid-template-columns: 1fr; }
  .sidebar { padding-top: 0; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--parchment2);
    box-shadow: 0 8px 24px var(--shadow-md);
    padding: 12px;
  }
  .primary-nav.is-open ul { flex-direction: column; width: 100%; }
  .primary-nav.is-open ul li a { padding: 12px 16px; border-radius: 8px; }
  .site-header__inner { flex-wrap: wrap; position: relative; }
  .header-search { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 60px 16px 44px; }
}

@media (max-width: 480px) {
  .container, .container--narrow { padding: 0 16px; }
  .post-card__body { padding: 16px 18px; }
  .related-posts__grid { grid-template-columns: 1fr; }
}
