/*
Theme Name: McFurry's
Theme URI: https://mcfurrys.co.uk
Author: McFurry's
Author URI: https://mcfurrys.co.uk
Description: A warm, editorial WordPress theme built for McFurry's — a pet blog covering dogs, cats, training, health and adoption stories. Features a custom homepage, a Pet Profiles post type, collar-tag category labels, reading time, related posts, and a "paw trail" scroll signature.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcfurrys
Tags: blog, custom-menu, custom-logo, featured-images, translation-ready, threaded-comments
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colour */
  --color-bg:          #F4F7F1; /* soft sage mist */
  --color-bg-alt:      #FFFFFF;
  --color-bg-raised:   #FCFDFB;
  --color-ink:         #1B2A1F; /* deep forest ink */
  --color-ink-soft:    #4B5A4F;
  --color-primary:     #1F3A2E; /* forest green */
  --color-primary-600: #16281F;
  --color-primary-300: #2F5443;
  --color-accent:      #E8583F; /* coral */
  --color-accent-600:  #CC3F28;
  --color-accent-100:  #FBE3DC;
  --color-gold:        #E8A93B; /* mustard gold */
  --color-gold-100:    #FBEBC7;
  --color-teal:        #3B7D75;
  --color-teal-100:    #DCEBE8;
  --color-line:        #D8E0D2;
  --color-line-soft:   #E7EDE2;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --size-9xl: clamp(2.6rem, 2rem + 3vw, 5rem);
  --size-6xl: clamp(2rem, 1.6rem + 1.6vw, 3.2rem);
  --size-4xl: clamp(1.5rem, 1.3rem + 0.8vw, 2.1rem);
  --size-2xl: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --size-lg:  1.15rem;
  --size-base: 1rem;
  --size-sm:  0.875rem;
  --size-xs:  0.75rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(27,42,31,0.04), 0 8px 24px -8px rgba(27,42,31,0.12);
  --shadow-raised: 0 12px 36px -12px rgba(27,42,31,0.22);

  --content-width: 1200px;
  --content-narrow: 720px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --color-bg:        #142016;
  --color-bg-alt:    #1A2A1F;
  --color-bg-raised: #1F3327;
  --color-ink:       #EAF0E7;
  --color-ink-soft:  #AEC0B2;
  --color-primary:   #A8D5BE;
  --color-primary-300: #C8E6D6;
  --color-line:      #2B3E31;
  --color-line-soft: #24352A;
  --color-accent-100: #3A241E;
  --color-gold-100:  #3A2E17;
  --color-teal-100:  #16302D;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
a { color: var(--color-accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: var(--color-ink); }

h1 { font-size: var(--size-9xl); }
h2 { font-size: var(--size-6xl); }
h3 { font-size: var(--size-4xl); }
h4 { font-size: var(--size-2xl); }
p { margin: 0 0 1.1em; color: var(--color-ink-soft); }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--content-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   3. BUTTONS & FORMS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-sm);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-600); }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost { background: var(--color-bg-alt); color: var(--color-ink); border-color: var(--color-line); }

input[type="text"], input[type="email"], input[type="search"], textarea {
  font-family: var(--font-body);
  font-size: var(--size-base);
  padding: 12px 16px;
  border: 2px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-ink);
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--color-accent); outline: none; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,247,241,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
[data-theme="dark"] .site-header { background: rgba(20,32,22,0.9); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
[data-theme="dark"] .site-logo { color: var(--color-primary); }
.site-logo img { border-radius: var(--radius-sm); }
.site-logo .paw-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--color-accent); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: var(--size-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
}
.primary-nav a:hover { text-decoration: none; color: var(--color-accent); }
.primary-nav .current-menu-item > a { color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  background: var(--color-bg-alt);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; color: var(--color-ink); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  background: var(--color-bg-alt);
  cursor: pointer;
  place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--color-ink);
  position: relative; transition: transform 0.2s var(--ease);
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .primary-nav { position: fixed; inset: 72px 0 0 0; background: var(--color-bg); flex-direction: column; align-items: flex-start; padding: 24px; gap: 0; transform: translateX(100%); transition: transform 0.3s var(--ease); overflow-y: auto; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; width: 100%; gap: 0; }
  .primary-nav li { width: 100%; border-bottom: 1px solid var(--color-line-soft); }
  .primary-nav a { display: block; padding: 16px 4px; }
  .menu-toggle { display: grid; }
}

/* ==========================================================================
   5. HERO (front page)
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 24px 96px;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-gold-100);
  color: var(--color-primary-600, var(--color-primary));
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--color-accent); font-style: italic; }
.hero__lede { font-size: var(--size-lg); max-width: 46ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-primary-300), var(--color-primary));
  box-shadow: var(--shadow-raised);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero__visual .placeholder-note {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  color: #fff; font-family: var(--font-mono); font-size: var(--size-xs); opacity: 0.85;
}
.hero__badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
}
.hero__badge .paw-mark { width: 20px; height: 20px; color: var(--color-accent); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
}

/* ==========================================================================
   6. PAW TRAIL DIVIDER (signature element)
   ========================================================================== */
.paw-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 56px 24px;
  max-width: var(--content-width);
  margin: 0 auto;
}
.paw-trail .paw {
  width: 22px; height: 22px;
  color: var(--color-line);
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.paw-trail.is-visible .paw { opacity: 1; transform: translateY(0) scale(1); }
.paw-trail .paw:nth-child(odd) { transform-origin: bottom; }
.paw-trail.is-visible .paw:nth-child(1) { transition-delay: 0ms; color: var(--color-accent); }
.paw-trail.is-visible .paw:nth-child(2) { transition-delay: 60ms; }
.paw-trail.is-visible .paw:nth-child(3) { transition-delay: 120ms; color: var(--color-gold); }
.paw-trail.is-visible .paw:nth-child(4) { transition-delay: 180ms; }
.paw-trail.is-visible .paw:nth-child(5) { transition-delay: 240ms; color: var(--color-teal); }
.paw-trail .paw:nth-child(even) { margin-top: 14px; }

/* ==========================================================================
   7. SECTION HEADINGS
   ========================================================================== */
.section { padding: 20px 24px 72px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto 32px;
  flex-wrap: wrap;
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  display: block;
  margin-bottom: 8px;
}
.section__head h2 { margin: 0; }
.section__link { font-weight: 700; font-size: var(--size-sm); white-space: nowrap; }

/* ==========================================================================
   8. CATEGORY TILES
   ========================================================================== */
.category-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-tile {
  display: block;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; text-decoration: none; }
.category-tile .icon { width: 36px; height: 36px; margin-bottom: 14px; color: var(--color-accent); }
.category-tile h3 { font-size: 1.15rem; margin-bottom: 4px; }
.category-tile p { font-size: var(--size-sm); margin: 0; }
.category-tile:nth-child(2) .icon { color: var(--color-gold); }
.category-tile:nth-child(3) .icon { color: var(--color-teal); }
.category-tile:nth-child(4) .icon { color: var(--color-primary); }

@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   9. POST CARDS / GRID (asymmetric leash layout)
   ========================================================================== */
.post-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.post-card { grid-column: span 2; display: flex; flex-direction: column; }
.post-card--feature { grid-column: span 3; }
.post-card--feature .post-card__media { aspect-ratio: 4/3; }

.post-card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 5/4;
  margin-bottom: 16px;
  background: var(--color-line-soft);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media .placeholder { position:absolute; inset:0; display:grid; place-items:center; color: var(--color-ink-soft); font-family: var(--font-mono); font-size: var(--size-xs); text-align:center; padding: 12px; }

.collar-tag {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.collar-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.collar-tag--static { position: static; display: inline-flex; margin-bottom: 12px; }

.post-card__meta {
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-card__meta .dot::before { content: "•"; margin-right: 10px; }
.post-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.post-card--feature h3 { font-size: 1.7rem; }
.post-card a.post-card__link { color: var(--color-ink); text-decoration: none; }
.post-card a.post-card__link:hover { color: var(--color-accent); }
.post-card__excerpt { font-size: var(--size-sm); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card, .post-card--feature { grid-column: span 2; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card, .post-card--feature { grid-column: span 1; }
}

/* ==========================================================================
   10. NEWSLETTER
   ========================================================================== */
.newsletter {
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.newsletter h2, .newsletter p { color: #fff; }
.newsletter h2 { font-size: var(--size-6xl); }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input { border: none; }
.newsletter__form .btn--primary { background: var(--color-gold); color: var(--color-primary-600, var(--color-primary)); flex-shrink: 0; }
.newsletter__form .btn--primary:hover { background: #fff; }
.newsletter .paw-mark-bg { position: absolute; right: -30px; bottom: -30px; width: 220px; height: 220px; color: rgba(255,255,255,0.06); }
.newsletter__note { font-size: var(--size-xs); opacity: 0.75; margin-top: 10px; }

@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ==========================================================================
   11. PET PROFILES
   ========================================================================== */
.pet-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pet-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pet-card__media { aspect-ratio: 1/1; background: var(--color-line-soft); position: relative; }
.pet-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pet-card h3 { font-size: 1.1rem; margin: 16px 0 2px; }
.pet-card__breed { font-family: var(--font-mono); font-size: var(--size-xs); color: var(--color-teal); text-transform: uppercase; }

@media (max-width: 900px) { .pet-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   12. SINGLE POST
   ========================================================================== */
.single-post-header {
  max-width: var(--content-narrow);
  margin: 48px auto 32px;
  padding: 0 24px;
  text-align: center;
}
.single-post-header .collar-tag--static { margin: 0 auto 20px; }
.single-post-header h1 { font-size: var(--size-6xl); }
.single-post-header__meta {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px;
  font-family: var(--font-mono); font-size: var(--size-xs); color: var(--color-ink-soft); text-transform: uppercase;
}
.single-post-header__meta .author { display:flex; align-items:center; gap: 8px; }
.single-post-header__meta img { width: 26px; height: 26px; border-radius: 50%; }

.single-featured-media { max-width: 900px; margin: 0 auto 40px; padding: 0 24px; }
.single-featured-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.entry-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.08rem;
}
.entry-content h2 { margin-top: 1.6em; font-size: var(--size-4xl); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content p { color: var(--color-ink); }
.entry-content img { margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { text-decoration: underline; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-family: var(--font-mono); font-size: var(--size-xs); color: var(--color-ink-soft); margin-top: 8px; text-align: center; }

.share-bar {
  max-width: var(--content-narrow);
  margin: 40px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.share-bar span { font-family: var(--font-mono); font-size: var(--size-xs); text-transform: uppercase; color: var(--color-ink-soft); }
.share-bar a { width: 38px; height: 38px; border-radius: 50%; background: var(--color-bg-alt); border: 1px solid var(--color-line); display: grid; place-items: center; }
.share-bar a svg { width: 16px; height: 16px; color: var(--color-ink); }
.share-bar a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.share-bar a:hover svg { color: #fff; }

.author-box {
  max-width: var(--content-narrow);
  margin: 40px auto 0;
  padding: 28px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-box img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.author-box h4 { margin-bottom: 4px; font-size: 1.05rem; }
.author-box p { margin: 0; font-size: var(--size-sm); }

.related-posts { padding: 72px 24px; }

/* ==========================================================================
   13. SIDEBAR / WIDGETS
   ========================================================================== */
.content-with-sidebar { max-width: var(--content-width); margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 2.2fr 1fr; gap: 48px; }
.widget { margin-bottom: 36px; }
.widget h2, .widget .widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); color: var(--color-teal); margin-bottom: 16px; }
.widget ul li { padding: 10px 0; border-bottom: 1px solid var(--color-line-soft); font-size: var(--size-sm); }
.widget_search input[type="search"] { margin-bottom: 0; }
@media (max-width: 900px) { .content-with-sidebar { grid-template-columns: 1fr; } }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.85); margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { max-width: var(--content-width); margin: 0 auto; padding: 64px 24px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand .paw-mark { width: 22px; height: 22px; color: var(--color-gold); }
.footer-col h4 { color: #fff; font-family: var(--font-mono); font-size: var(--size-xs); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { opacity: 0.85; font-size: var(--size-sm); }
.footer-col ul a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 24px; text-align: center; font-size: var(--size-xs); opacity: 0.7; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   15. ARCHIVE / SEARCH / 404
   ========================================================================== */
.archive-header { max-width: var(--content-width); margin: 48px auto 8px; padding: 0 24px; }
.archive-header .section__eyebrow { margin-bottom: 12px; }
.archive-header p { max-width: 60ch; }
.pagination { max-width: var(--content-width); margin: 48px auto; padding: 0 24px; display: flex; justify-content: center; gap: 10px; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid var(--color-line); font-family: var(--font-mono); font-size: var(--size-sm); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.error-404 { max-width: var(--content-narrow); margin: 80px auto; padding: 0 24px; text-align: center; }
.error-404 .paw-mark { width: 60px; height: 60px; color: var(--color-line); margin: 0 auto 20px; }

/* ==========================================================================
   16. COMMENTS
   ========================================================================== */
.comments-area { max-width: var(--content-narrow); margin: 48px auto; padding: 0 24px; }
.comment-list { margin-bottom: 32px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.comment-author { font-weight: 700; font-size: var(--size-sm); }
.comment-metadata { font-family: var(--font-mono); font-size: var(--size-xs); color: var(--color-ink-soft); }
.comment-form label { display: block; font-size: var(--size-sm); font-weight: 600; margin-bottom: 6px; }
.comment-form p { margin-bottom: 16px; }
