/*
Theme Name: Simply Kate at Home
Theme URI: https://simplykateathome.com
Author: Kate
Author URI: https://simplykateathome.com
Description: A custom WordPress theme for Simply Kate at Home — real recipes, old skills, and honest stories. Classic (non-block) theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simply-kate-at-home
Tags: blog, food, recipes, one-column, custom-menu
*/

:root {
  --white:    #FFFFFF;
  --off:      #FAF7F4;
  --cream:    #F2EDE4;
  --tan:      #D9CEBC;
  --petal:    #E8CBBF;
  --rose:     #B07060;
  --clay:     #7A5A52;
  --ink:      #2D1A18;
  --mid:      #7A5A52;
  --light:    #A8907F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--ink); line-height: 1.7; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo em { font-style: italic; color: var(--rose); }
.nav-links { display: flex; gap: 32px; list-style: none; flex: 1; justify-content: center; }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
}
.nav-links a:hover { color: var(--rose); }
.nav-search {
  background: none;
  border: 1px solid var(--tan);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  letter-spacing: 0.06em;
}

/* ── HERO ── */
.hero {
  background: var(--off);
  padding: 100px 48px;
  text-align: center;
  border-bottom: 1px solid var(--cream);
}
.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--rose); }
.hero-sub {
  font-size: 1rem;
  color: var(--mid);
  max-width: 480px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--tan);
  border-radius: 999px;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
}

/* ── CATEGORY STRIP ── */
.cat-strip {
  border-bottom: 1px solid var(--cream);
  padding: 18px 48px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--white);
}
.cat-pill {
  padding: 7px 16px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--petal);
  background: var(--off);
  color: var(--ink);
}

/* ── LAYOUT ── */
.section { padding: 72px 48px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 em { font-style: italic; }
.section-sub {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.7;
  font-weight: 300;
}
hr.div { border: none; border-top: 1px solid var(--cream); max-width: 1100px; margin: 0 auto; }

/* ── TAG ── */
.tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  background: #F5E8E4;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

/* ── FEATURED ── */
.featured-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media(max-width:700px){.featured-grid{grid-template-columns:1fr;}}
.feat-main { border: 1px solid var(--cream); border-radius: 12px; overflow: hidden; }
.feat-img {
  height: 260px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--light);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feat-body { padding: 28px 30px; }
.feat-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.feat-body p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 300;
}
.read-more {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
}
.read-more::after { content: ' →'; }
.feat-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { border: 1px solid var(--cream); border-radius: 12px; padding: 20px 22px; }
.side-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.side-card p { font-size: 0.8rem; color: var(--mid); line-height: 1.6; font-weight: 300; }

/* ── RECIPE GRID ── */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.recipe-card { border: 1px solid var(--cream); border-radius: 12px; overflow: hidden; }
.recipe-img {
  height: 150px;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--light);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.recipe-body { padding: 16px 18px; }
.recipe-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin: 6px 0 5px;
  line-height: 1.3;
}
.recipe-body p { font-size: 0.78rem; color: var(--mid); line-height: 1.55; margin-bottom: 10px; font-weight: 300; }
.recipe-meta {
  font-size: 0.65rem;
  color: var(--light);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
}

/* ── KATE INTRO ── */
.about { background: var(--off); padding: 80px 48px; border-top: 1px solid var(--cream); border-bottom: 1px solid var(--cream); }
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: center;
}
@media(max-width:700px){.about-inner{grid-template-columns:1fr;}}
.portrait {
  width: 200px;
  height: 200px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--light);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-text p { font-size: 0.92rem; color: var(--mid); line-height: 1.8; margin-bottom: 14px; font-weight: 300; }

/* ── CATEGORY GRID ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat-card {
  border: 1px solid var(--cream);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
}
.cat-card:hover { border-color: var(--petal); background: var(--off); }
.cat-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.cat-card p { font-size: 0.72rem; color: var(--mid); line-height: 1.4; font-weight: 300; }
.cat-icon { font-size: 1.4rem; margin-bottom: 10px; }

/* ── NEWSLETTER ── */
.newsletter { background: var(--ink); padding: 72px 48px; text-align: center; }
.newsletter h2 { color: #F0E5E0; margin-bottom: 12px; }
.newsletter h2 em { color: var(--rose); }
.newsletter p { color: rgba(240,229,224,0.65); font-size: 0.9rem; margin-bottom: 28px; max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.75; font-weight: 300; }
.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nl-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  width: 260px;
  color: #F0E5E0;
}
.nl-form input::placeholder { color: rgba(240,229,224,0.4); }
.nl-form button {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── FOOTER ── */
footer { background: var(--off); border-top: 1px solid var(--cream); padding: 56px 48px 28px; }
.foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media(max-width:700px){.foot-inner{grid-template-columns:1fr 1fr;}}
.foot-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.foot-brand em { font-style: italic; color: var(--rose); }
.foot-desc { font-size: 0.78rem; color: var(--mid); line-height: 1.65; font-weight: 300; }
.foot-col h5 {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { font-size: 0.78rem; color: var(--mid); text-decoration: none; font-weight: 300; }
.foot-col a:hover { color: var(--rose); }
.foot-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--cream);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--light);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── WORDPRESS CORE CLASSES ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--light); }
img { max-width: 100%; height: auto; }

/* ── ARCHIVE / BLOG SUPPORT (index.php) ── */
.recipe-body h4 a { color: inherit; text-decoration: none; }
.recipe-body h4 a:hover { color: var(--rose); }
.recipe-card img { display: block; width: 100%; height: 150px; object-fit: cover; }
.pagination { margin-top: 32px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 14px; }
.pagination .page-numbers {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { color: var(--rose); }

/* ══════════════════════════════════════════════════════════
   KADENCE BLOCKS → BRAND
   Page content (Blog, About) is built with the Kadence Blocks
   plugin, which ships its own blue palette and leaves links
   unstyled. These rules bring that output onto brand.
   ══════════════════════════════════════════════════════════ */

/* Remap the Kadence Blocks palette to the brand colours.
   !important is required — the plugin defines these on :root
   in a stylesheet that loads after the theme's. */
:root {
  --global-palette1: #B07060 !important;  /* rose  — accents, eyebrows */
  --global-palette2: #7A5A52 !important;  /* clay  — hover */
  --global-palette3: #2D1A18 !important;  /* ink   — headings */
  --global-palette4: #7A5A52 !important;
  --global-palette5: #A8907F !important;
  --global-palette6: #A8907F !important;
  --global-palette7: #F2EDE4 !important;  /* cream — borders */
  --global-palette8: #FAF7F4 !important;  /* off   — panels */
  --global-palette9: #FFFFFF !important;
}

/* Links inside page/post content — kills browser-default blue */
.section article a { color: var(--rose); text-decoration: none; }
.section article a:hover { color: var(--clay); text-decoration: underline; }

/* Kadence advanced headings */
.wp-block-kadence-advancedheading.has-theme-palette-1-color {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}
h2.wp-block-kadence-advancedheading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Post grid — matched to the homepage .recipe-card treatment */
.kb-posts { gap: 18px; }
.kb-posts .kb-post-list-item { display: flex; }
.kb-posts .loop-entry {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cream);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.kb-posts .entry-footer,
.kb-posts .entry-actions,
.kb-posts .content-bg { background: transparent; }

/* Thumbnails: 768x402 pin graphics — ratio matched so text isn't cropped */
.kb-posts a.post-thumbnail { padding-bottom: 52.3% !important; border-radius: 0; }
.kb-posts .post-thumbnail-inner { width: 100%; height: 100%; }
.kb-posts .post-thumbnail-inner img { width: 100%; height: 100%; object-fit: cover; }

.kb-posts .entry-content-wrap {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kb-posts .entry-taxonomies { margin-bottom: 6px; line-height: 1.4; }
.kb-posts .category-links a {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
}
.kb-posts .entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 2px 0 10px;
}
.kb-posts .entry-title a { color: var(--ink); text-decoration: none; }
.kb-posts .entry-title a:hover { color: var(--rose); }
.kb-posts .more-link-wrap { margin-top: auto; padding-top: 6px; background: none; }
.kb-posts .post-more-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
   SINGLE POST (single.php)
   ══════════════════════════════════════════════════════════ */
.single-wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }

.back-to-blog {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
  margin-bottom: 28px;
}
.back-to-blog::before { content: '← '; }
.back-to-blog:hover { color: var(--clay); }

.single-featured { margin-bottom: 32px; }
.single-featured img { display: block; width: 100%; height: auto; border-radius: 8px; }

.single-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.single-meta .tag { margin-bottom: 0; text-decoration: none; }
.single-date {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--light);
  letter-spacing: 0.04em;
}

/* ── POST BODY (WordPress-generated content) ── */
.entry-content {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mid);
}
.entry-content > * + * { margin-top: 20px; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
}
.entry-content h2 { font-size: 1.8rem; font-weight: 300; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.1rem; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  color: var(--mid);
  line-height: 1.85;
}
.entry-content li { margin-bottom: 8px; }
.entry-content li::marker { color: var(--petal); }

.entry-content a { color: var(--rose); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }

.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content strong { font-weight: 700; color: var(--ink); }
.entry-content blockquote {
  border-left: 3px solid var(--petal);
  padding-left: 20px;
  font-style: italic;
  color: var(--clay);
  margin-left: 0;
}
.entry-content code {
  background: var(--off);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.entry-content hr { border: none; border-top: 1px solid var(--cream); margin: 40px 0; }

/* ── PREV / NEXT ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--cream);
  margin-top: 56px;
  padding-top: 24px;
}
.post-nav-link {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--mid);
  text-decoration: none;
  max-width: 45%;
}
.post-nav-link:hover { color: var(--rose); }
.post-nav-next { text-align: right; margin-left: auto; }


/* ══════════════════════════════════════════════════════════
   ARCHIVE (archive.php)
   ══════════════════════════════════════════════════════════ */

/* ── PAGE HEADER ── */
.archive-hero {
  background: var(--off);
  border-bottom: 1px solid var(--cream);
  padding: 72px 44px;
  text-align: center;
}
.archive-hero-inner { max-width: 640px; margin: 0 auto; }
.archive-overline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}
.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.archive-title em { font-style: italic; color: var(--rose); }
.archive-subhead {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--light);
  max-width: 480px;
  margin: 0 auto;
}

/* ── FILTER PILLS ── */
.archive-filterbar {
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  padding: 20px 44px;
}
.archive-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.archive-search {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.archive-search .search-field { width: 280px; }
.filter-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  background: transparent;
  border: 1.5px solid var(--tan);
  border-radius: 999px;
  padding: 7px 18px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.filter-pill:hover,
.filter-pill.active {
  color: var(--rose);
  border-color: var(--rose);
  background: var(--off);
}

/* ── POST GRID ── */
.archive-wrap { max-width: 1060px; margin: 0 auto; padding: 44px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive-grid { grid-template-columns: 1fr; } }

.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(45, 26, 24, 0.06);
}

.archive-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--off);
  overflow: hidden;
}
.archive-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.archive-thumb-placeholder {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}

.archive-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.archive-card-body .tag { align-self: flex-start; text-decoration: none; }
.archive-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 2px 0 8px;
}
.archive-card-title a { color: var(--ink); text-decoration: none; }
.archive-card-title a:hover { color: var(--rose); }
.archive-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--light);
  margin-bottom: 16px;
}

.archive-card-foot {
  margin-top: auto;
  border-top: 1px solid var(--cream);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.archive-card-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--light);
}

.archive-empty {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--mid);
  text-align: center;
}

/* ── PAGINATION ── */
.archive-wrap .pagination { margin-top: 44px; display: flex; justify-content: center; }
.archive-wrap .pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.archive-wrap .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.archive-wrap .pagination .page-numbers:hover {
  color: var(--rose);
  border-color: var(--rose);
}
.archive-wrap .pagination .page-numbers.current {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}
.archive-wrap .pagination .page-numbers.dots { border-color: transparent; }

/* ══════════════════════════════════════════════════════════
   SEARCH + 404
   ══════════════════════════════════════════════════════════ */

/* Standalone search form (404 + search results) */
.search-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.search-field {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ink);
  width: 260px;
  -webkit-appearance: none;
  appearance: none;
}
.search-field:focus { outline: none; border-color: var(--rose); }
.search-field::placeholder { color: var(--light); }
.search-submit {
  background: var(--rose);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.search-submit:hover { background: var(--clay); }

/* 404 + search hero actions */
.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.error-actions .btn-primary { display: inline-block; }
.archive-wrap .section-label { text-align: center; }
.archive-wrap > h2 { text-align: center; margin-bottom: 28px; }
