/*
Theme Name: Millie Theme
Theme URI: https://moekfarm.co.ke
Author: Millie
Author URI: https://moekfarm.co.ke
Description: A rustic farmhouse WordPress theme for Moek Farm — kraft paper + terracotta + barnwood palette, paper-grain texture, torn-paper section edges, handwritten accents, letterpress buttons and hand-inked stamps. Editorial bones, farm-stand soul.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.5
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: millie-theme
Tags: blog, portfolio, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, editor-style
*/

/* ==========================================================================
   1. CSS Variables — Rustic Farmhouse Tokens
   ========================================================================== */
:root {
  /* Surfaces — kraft paper / linen / barnwood */
  --bg-0: #f3ecdc;           /* kraft cream */
  --bg-1: #faf5e9;           /* lighter cream (cards / photo mats) */
  --bg-2: #e8dcc1;           /* aged linen */
  --bg-3: #2c2217;           /* barnwood brown (inverse sections) */

  --surface:        rgba(44, 34, 23, 0.04);
  --surface-strong: rgba(44, 34, 23, 0.08);
  --border:         rgba(44, 34, 23, 0.14);
  --border-strong:  rgba(44, 34, 23, 0.28);

  /* Text — warm ink, not pure black */
  --text-1: #2c2317;
  --text-2: #574a38;
  --text-3: #8f8064;

  /* Accents — earth first: terracotta, olive, wheat */
  --sage:  #7d8b6a;
  --sage-deep: #55613f;
  --clay:  #a85a38;
  --clay-deep: #7c3f22;
  --gold:  #b98a2e;
  --milk:  #f7f0df;

  /* Flat, letterpress-style shadows — no soft gloss */
  --shadow-soft: 2px 2px 0 rgba(44, 34, 23, 0.08);
  --shadow-card: 6px 6px 0 rgba(44, 34, 23, 0.12);
  --shadow-lift: 8px 8px 0 rgba(44, 34, 23, 0.14);

  --radius-xs: 0;
  --radius-sm: 0;
  --radius-md: 2px;
  --radius-lg: 2px;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-script:  'Caveat', 'Brush Script MT', cursive;

  --container: 1240px;
  --container-narrow: 880px;
  --container-wide: 1480px;

  --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.25s cubic-bezier(0.22, 1, 0.36, 1);

  --header-height: 88px;
}

/* ==========================================================================
   2. Reset / Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
}

/* Paper-grain overlay — the single texture that makes every surface feel rustic */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-1);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
a:hover { color: var(--sage-deep); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 1.35rem; }

em, .italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

p {
  margin: 0 0 1.25em;
  color: var(--text-2);
}

::selection { background: var(--bg-3); color: var(--bg-0); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-2); border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
.container-wide   { max-width: var(--container-wide);   margin: 0 auto; padding: 0 32px; }

.site-main { padding: 60px 0; min-height: 60vh; }
.home .site-main { padding-top: 0; padding-bottom: 0; }

@media (max-width: 700px) {
  .container, .container-narrow, .container-wide { padding: 0 20px; }
}

/* ==========================================================================
   4. Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition-fast), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(243, 236, 220, 0.97);
  border-bottom-color: var(--border-strong);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

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

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}
.site-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.site-description {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  margin: 4px 0 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .site-description { display: none; }
  .site-title { font-size: 1.4rem; }
}

.main-navigation { display: flex; align-items: center; gap: 24px; }
.main-navigation ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 4px;
}
.main-navigation li { position: relative; }
.main-navigation a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  position: relative;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { transform: scaleX(1); }

.main-navigation ul ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  gap: 0;
}
.main-navigation ul ul a::after { display: none; }
.main-navigation li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-1);
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle span:nth-child(1) { transform: translate(-50%, -7px); }
.menu-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, 5px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-navigation > ul {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg-0);
    flex-direction: column;
    gap: 0;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform var(--transition);
  }
  .main-navigation > ul li { border-bottom: 1px solid var(--border); }
  .main-navigation > ul li:last-child { border-bottom: none; }
  .main-navigation > ul a {
    padding: 16px 0;
    font-size: 0.95rem;
  }
  .main-navigation > ul a::after { display: none; }
  .main-navigation.is-open > ul { transform: translateY(0); }
  .main-navigation ul ul { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: none; padding-left: 16px; box-shadow: none; }
}

/* ==========================================================================
   5. Hero — Full-bleed editorial
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: var(--bg-2);
  overflow: hidden;
  color: var(--bg-0);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* warm pasture-at-golden-hour fallback gradient */
    radial-gradient(ellipse at 30% 20%, rgba(185, 138, 46, 0.55), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(85, 97, 63, 0.6), transparent 65%),
    linear-gradient(180deg, #6b6f49 0%, #453d27 60%, #2c2217 100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.hero.has-image::before { display: none; }
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  padding-left: 48px;
  position: relative;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 7rem);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 28px;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--milk);
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin: 0 0 40px;
}

.hero-actions { display: inline-flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   6. Buttons — Letterpress / hand-stamped
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 4px 4px 0 rgba(44, 34, 23, 0.22);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  position: relative;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(44, 34, 23, 0.22);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.btn-primary {
  background: var(--clay);
  color: var(--milk);
  border-color: var(--clay-deep);
}
.btn-primary:hover {
  background: var(--clay-deep);
  color: var(--milk);
}
.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-secondary:hover { background: currentColor; }
.btn-secondary:hover { color: var(--bg-0); }
.hero .btn-secondary { color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }
.hero .btn-secondary:hover { background: #fff; color: var(--text-1); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover,
.btn-ghost:active {
  transform: none;
  box-shadow: none;
}
.btn-ghost::after {
  content: '→';
  display: inline-block;
  margin-left: 4px;
  transition: transform var(--transition-fast);
}
.btn-ghost:hover::after { transform: translateX(6px); }

/* ==========================================================================
   7. Sections / Section Headers
   ========================================================================== */
.section {
  padding: 120px 0;
  position: relative;
}
.section.section-tight { padding: 80px 0; }
.section.section-dark {
  background: var(--bg-3);
  color: var(--bg-0);
}
.section.section-dark h1,
.section.section-dark h2,
.section.section-dark h3 { color: var(--milk); }
.section.section-dark p { color: rgba(248, 244, 234, 0.78); }
.section.section-linen { background: var(--bg-2); }

/* Torn-paper top edges — hand-cut transition into linen and barnwood sections */
.section-linen::before,
.cta-banner::after,
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 23px;
  z-index: 2;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 1200px 23px;
}
.section-linen::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 23' preserveAspectRatio='none'%3E%3Cpath d='M0,23 L0,12 C55,4 130,17 210,9 C290,3 355,16 445,8 C530,2 610,15 705,7 C795,3 865,14 965,6 C1055,2 1125,13 1200,5 L1200,23 Z' fill='%23e8dcc1'/%3E%3C/svg%3E");
}
.cta-banner::after,
.site-footer::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 23' preserveAspectRatio='none'%3E%3Cpath d='M0,23 L0,12 C55,4 130,17 210,9 C290,3 355,16 445,8 C530,2 610,15 705,7 C795,3 865,14 965,6 C1055,2 1125,13 1200,5 L1200,23 Z' fill='%232c2217'/%3E%3C/svg%3E");
}

.section-header {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}
.section-header.section-header-left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--clay);
  margin-bottom: 24px;
  padding: 0 36px;
  position: relative;
}
.section-header-left .section-eyebrow { padding-left: 0; padding-right: 36px; }
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section-eyebrow::before { left: 0; }
.section-eyebrow::after  { right: 0; }
.section-header-left .section-eyebrow::before { display: none; }
.section.section-dark .section-eyebrow { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 24px;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sage-deep);
}
.section.section-dark .section-title em { color: var(--gold); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 auto;
}
.section.section-dark .section-subtitle { color: rgba(248, 244, 234, 0.78); }
.section-header-left .section-subtitle { margin-left: 0; }

/* ==========================================================================
   8. "What we do" Feature Grid — Editorial cards
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.feature-card {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
}
.feature-card::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--sage-deep);
  margin-bottom: 32px;
  transition: width var(--transition);
}
.feature-card:hover::before { width: 96px; }

.feature-number {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--clay);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: block;
}
.feature-number::before { content: 'no. '; }
.feature-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text-1);
}
.feature-desc {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   9. Product Showcase — Editorial product cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.product-card {
  position: relative;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.product-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-1);
  overflow: hidden;
  margin-bottom: 20px;
  padding: 10px 10px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transform: rotate(-0.8deg);
}
.product-card:nth-child(even) .product-card-media { transform: rotate(0.8deg); }
.product-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-card-media img { transform: scale(1.06); }

/* Placeholder media — illustrated product silhouettes via gradient + initial */
.product-card-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center top, var(--milk), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, #dccdaa 100%);
}
.product-card-media.is-placeholder .placeholder-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--text-1);
  opacity: 0.18;
  line-height: 1;
  letter-spacing: -0.04em;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text-1);
}
.product-desc {
  font-size: 0.92rem;
  color: var(--text-2);
  margin: 0 0 12px;
  line-height: 1.55;
}
.product-status {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: transparent;
  color: var(--clay);
  border: 1.5px dashed currentColor;
  border-radius: 2px;
  transform: rotate(-2deg);
}
.product-status.live { color: var(--sage-deep); }

/* ==========================================================================
   10. Stats / Quote Strip
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 56px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
  padding: 56px 0;
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--text-1);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.stat-value em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sage-deep);
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
}

/* ==========================================================================
   11. Split / Story Section
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.split-wide { grid-template-columns: 5fr 7fr; }
@media (max-width: 900px) {
  .split, .split.split-wide { grid-template-columns: 1fr; gap: 48px; }
}
.split-visual {
  aspect-ratio: 4 / 5;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
  padding: 12px 12px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.2deg);
}
.split-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-visual.is-placeholder {
  background:
    linear-gradient(135deg, #c8b48d 0%, #85795c 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.split-visual.is-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.25), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(31,27,22,0.35), transparent 60%);
  pointer-events: none;
}
.split-caption {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
  max-width: 30ch;
}

.split-body { max-width: 50ch; }
.split-body .section-eyebrow { padding-left: 0; }
.split-body .section-eyebrow::before { display: none; }
.split-body .section-title { text-align: left; }
.split-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-2);
}
.split-body .split-signature {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--clay);
  margin: 24px 0 32px;
  line-height: 1.1;
}

/* ==========================================================================
   12. Pull Quote
   ========================================================================== */
.pull-quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0 0 28px;
  position: relative;
  padding: 0;
  border: none;
}
.pull-quote blockquote::before {
  content: '"';
  display: block;
  font-family: var(--font-script);
  font-size: 4.5rem;
  line-height: 0.5;
  color: var(--clay);
  margin-bottom: 20px;
  font-style: normal;
}
.pull-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ==========================================================================
   13. CTA / Newsletter
   ========================================================================== */
.cta-banner {
  position: relative;
  text-align: center;
  padding: 100px 32px;
  background: var(--bg-3);
  color: var(--bg-0);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(200, 154, 58, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(125, 139, 106, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .section-eyebrow { color: var(--gold); }
.cta-banner .section-eyebrow::before,
.cta-banner .section-eyebrow::after { opacity: 0.4; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 16px;
  color: var(--milk);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}
.cta-banner h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--gold);
}
.cta-banner p {
  color: rgba(248, 244, 234, 0.78);
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 1.02rem;
}
.cta-banner .btn-primary {
  background: var(--milk);
  color: var(--text-1);
  border-color: var(--milk);
}
.cta-banner .btn-primary:hover {
  background: transparent;
  color: var(--milk);
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(248, 244, 234, 0.3);
  background: rgba(248, 244, 234, 0.06);
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--milk);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(248, 244, 234, 0.5);
}
.newsletter-form button {
  background: var(--gold);
  color: var(--bg-3);
  border: none;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.newsletter-form button:hover { background: var(--milk); }

/* ==========================================================================
   14. Journal Posts
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 48px;
  margin-top: 24px;
}

.post-card {
  position: relative;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: none; }

.post-card-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-1);
  margin-bottom: 24px;
  padding: 10px 10px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-thumb.no-thumb {
  background: linear-gradient(180deg, var(--bg-2) 0%, #dccdaa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-thumb.no-thumb::after {
  content: '';
  width: 56px; height: 1px;
  background: var(--text-3);
  opacity: 0.5;
}

.post-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.post-card-meta a { color: var(--sage-deep); }
.post-card-meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.post-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 4px 0;
}
.post-card-title a {
  color: var(--text-1);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  transition: background-size var(--transition);
}
.post-card-title a:hover { background-size: 100% 1px; color: var(--text-1); }

.post-card-excerpt {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.post-card-footer {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 8px;
  font-weight: 500;
  border: none;
  padding: 0;
}
.post-card-footer::after {
  content: '→';
  margin-left: 8px;
  transition: transform var(--transition-fast);
}
.post-card:hover .post-card-footer::after { transform: translateX(6px); }

/* ==========================================================================
   15. Single Post & Page
   ========================================================================== */
.entry-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding-top: 60px;
}
.entry-meta {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 20px;
}
.entry-meta a { color: var(--sage-deep); }

.entry-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.entry-title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--sage-deep);
}

.featured-image {
  max-width: 1100px;
  margin: 0 auto 60px;
  overflow: hidden;
}
.featured-image img { width: 100%; height: auto; }

.entry-content {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-2);
}
.entry-content > * { margin-bottom: 1.25em; }
.entry-content h2 {
  margin-top: 1.6em;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.entry-content h3 { margin-top: 1.4em; }
.entry-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 4.2rem;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--text-1);
}
.entry-content a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.entry-content blockquote {
  border: none;
  padding: 24px 0;
  margin: 40px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 1.65rem;
  line-height: 1.4;
  color: var(--text-1);
  text-align: center;
  position: relative;
}
.entry-content blockquote::before,
.entry-content blockquote::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--sage);
  margin: 0 auto;
}
.entry-content blockquote::before { margin-bottom: 24px; }
.entry-content blockquote::after  { margin-top: 24px; }

/* Handwritten signature — add class "signature" to a paragraph block */
.entry-content .signature {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--clay);
  line-height: 1.2;
  margin-bottom: 0.25em;
}

.entry-content code {
  background: var(--bg-2);
  padding: 2px 8px;
  font-size: 0.9em;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
}
.entry-content pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 20px;
  overflow-x: auto;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content img, .entry-content figure { border-radius: 0; }

.entry-footer {
  max-width: 680px;
  margin: 60px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.tags-links a {
  display: inline-block;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 4px 4px 0;
  color: var(--text-2);
}
.tags-links a:hover {
  background: var(--text-1);
  color: var(--bg-0);
  border-color: var(--text-1);
}

/* ==========================================================================
   16. Comments
   ========================================================================== */
.comments-area {
  max-width: 680px;
  margin: 80px auto 0;
}
.comments-title {
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
}
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 0;
  margin-bottom: 0;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comment-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.comment-author .fn {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
}
.comment-metadata {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.comment-form {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 40px;
  margin-top: 40px;
}
.comment-form p { margin-bottom: 16px; }
.comment-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-2);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus {
  outline: none;
  border-color: var(--text-1);
}
.form-submit { margin-top: 16px; }
.form-submit .submit {
  display: inline-flex;
  padding: 14px 28px;
  background: var(--text-1);
  color: var(--bg-0);
  border: 1px solid var(--text-1);
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.form-submit .submit:hover {
  background: transparent;
  color: var(--text-1);
}

/* ==========================================================================
   17. Pagination
   ========================================================================== */
.pagination, .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 80px;
  flex-wrap: wrap;
}
.pagination .page-numbers,
.nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  transition: all var(--transition-fast);
}
.pagination .page-numbers:hover,
.nav-links a:hover {
  border-color: var(--text-1);
  background: var(--text-1);
  color: var(--bg-0);
}
.pagination .current {
  background: var(--text-1);
  color: var(--bg-0);
  border-color: var(--text-1);
}

/* ==========================================================================
   18. Sidebar / Widgets
   ========================================================================== */
.site-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
.site-content-layout.has-sidebar {
  grid-template-columns: minmax(0, 1fr) 280px;
}
@media (max-width: 900px) {
  .site-content-layout.has-sidebar { grid-template-columns: 1fr; }
}

.widget {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 40px;
}
.widget-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.widget li:last-child { border-bottom: none; }

/* ==========================================================================
   19. 404
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: 160px 0;
}
.error-404 h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(6rem, 18vw, 12rem);
  color: var(--text-1);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   20. Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-3);
  color: var(--bg-0);
  padding: 100px 0 40px;
  margin-top: 0;
  position: relative;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248, 244, 234, 0.16);
}
@media (max-width: 800px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-widgets { grid-template-columns: 1fr; }
}

.site-footer .widget-title { color: rgba(248, 244, 234, 0.5); border-color: rgba(248, 244, 234, 0.16); }
.site-footer .widget li { border-color: rgba(248, 244, 234, 0.08); }
.site-footer .widget a { color: var(--milk); }
.site-footer .widget a:hover { color: var(--gold); }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .site-title { color: var(--milk); font-size: 1.65rem; }
.footer-brand p {
  color: rgba(248, 244, 234, 0.7);
  font-size: 0.95rem;
  max-width: 36ch;
  margin: 0;
}

.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-navigation a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 244, 234, 0.7);
}
.footer-navigation a:hover { color: var(--milk); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(248, 244, 234, 0.16);
  color: rgba(248, 244, 234, 0.5);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--milk); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom .footer-tagline {
  font-family: var(--font-script);
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--gold);
  text-transform: none;
}

/* ==========================================================================
   21. Utility / Accessibility
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--text-1);
  color: var(--bg-0);
  padding: 12px 20px;
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 16px; color: var(--bg-0); }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Warm matte photo treatment — slight sepia, like prints pinned to a corkboard */
.split-visual img,
.product-card-media img,
.post-card-thumb img,
.featured-image img {
  filter: sepia(0.16) saturate(0.92) contrast(0.97);
}
.hero-image img {
  filter: sepia(0.1) saturate(0.95);
}

/* Fade-in scroll animation — subtle */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--transition), transform 1.1s var(--transition);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* WordPress alignment */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft  { float: left;  margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
}

/* Hand-inked farm stamp — round SVG badge (hero + footer) */
.farm-stamp {
  width: 128px;
  height: 128px;
  display: block;
  opacity: 0.85;
  transform: rotate(-10deg);
}
.farm-stamp text {
  font-family: var(--font-body);
  font-weight: 600;
  fill: currentColor;
}
.farm-stamp .stamp-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.hero-stamp {
  position: absolute;
  top: calc(var(--header-height) + 48px);
  right: 6vw;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-stamp { display: none; }
}
.footer-brand .farm-stamp {
  width: 96px;
  height: 96px;
  color: var(--gold);
  transform: rotate(8deg);
  margin-top: 8px;
  opacity: 0.9;
}

/* Decorative section divider */
.divider-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 240px;
  color: var(--sage);
}
.divider-flourish::before,
.divider-flourish::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.divider-flourish-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1;
}

/* ==========================================================================
   22. Responsive
   ========================================================================== */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-height) + 40px) 0 60px; min-height: 88vh; }
  .hero-eyebrow { padding-left: 0; }
  .hero-eyebrow::before { display: none; }
  .feature-grid { gap: 56px; }
  .stats-row { gap: 32px; padding: 40px 0; }
  .cta-banner { padding: 70px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 14px; }
}
