@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface2: #F0EDE6;
  --accent: #8B6E5A;
  --accent-light: #C4A882;
  --accent-lighter: #EDE5DA;
  --accent-dark: #5C4535;
  --sage: #7A8B72;
  --sage-bg: #EEF1EB;
  --text: #1A1815;
  --text-mid: #5C554D;
  --text-light: #9A928A;
  --text-faint: #C4BDB5;
  --border: #E4DFD7;
  --border-light: #F0EDE6;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --content-width: 640px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ UTILITIES ═══ */
.wrapper { max-width: var(--max-width); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.content-width { max-width: var(--content-width); margin: 0 auto; }
.label { font-size: 11px; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 3px; }
.label-accent { font-size: 11px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; }

/* ═══ NAVIGATION ═══ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.site-nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  text-decoration: none; display: flex; align-items: baseline; gap: 10px;
}
.site-logo-name {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  color: var(--text); font-style: italic; letter-spacing: 1px;
}
.site-logo-tag {
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  color: var(--text-light); text-transform: uppercase; letter-spacing: 4px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 12px; color: var(--text-mid); font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ═══ HERO / FEATURED ═══ */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px; overflow: hidden; margin-top: 60px;
}
.featured-image {
  background-size: cover; background-position: center;
  border-radius: 4px 0 0 4px; min-height: 480px;
  background-color: var(--surface2);
}
.featured-content {
  background: var(--surface); padding: 60px 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-radius: 0 4px 4px 0;
  border: 1px solid var(--border-light); border-left: none;
}
.featured-content .label { margin-bottom: 20px; }
.featured-title {
  font-family: var(--font-display); font-size: 44px; font-weight: 400;
  line-height: 1.15; color: var(--text); font-style: italic; margin-bottom: 8px;
}
.featured-excerpt {
  font-size: 15px; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 32px; max-width: 380px;
}
.btn-primary {
  display: inline-block; background: var(--text); color: var(--bg);
  padding: 12px 32px; border-radius: 100px; font-weight: 500;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
  display: inline-block; background: transparent; color: var(--text-mid);
  border: 1px solid var(--border); padding: 8px 20px; border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--text); }

/* ═══ CARD GRID ═══ */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 36px 0 48px;
}
.post-card {
  background: var(--surface); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s, transform 0.3s;
}
.post-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}
.post-card-image {
  height: 220px; background-size: cover; background-position: center;
  background-color: var(--surface2);
}
.post-card-content { padding: 22px 24px 26px; }
.post-card-tag { margin-bottom: 8px; }
.post-card-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  font-style: italic; line-height: 1.25; color: var(--text); margin-bottom: 4px;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  font-family: var(--font-display); font-size: 15px; font-weight: 300;
  color: var(--text-light); font-style: italic; margin-bottom: 14px;
}
.post-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-light); letter-spacing: 0.5px;
}

/* ═══ POST / RECIPE PAGE ═══ */
.post-hero-image {
  height: 420px; background-size: cover; background-position: center;
  background-color: var(--surface2);
}
.post-header {
  text-align: center; padding: 48px 0 40px;
  border-bottom: 1px solid var(--border-light);
}
.post-title {
  font-family: var(--font-display); font-size: 42px; font-weight: 400;
  line-height: 1.15; color: var(--text); font-style: italic; margin-bottom: 8px;
}
.post-subtitle {
  font-family: var(--font-display); font-size: 22px; font-weight: 300;
  color: var(--text-light); font-style: italic; margin-bottom: 20px;
}
.post-meta-bar {
  display: flex; justify-content: center; gap: 40px;
  padding: 28px 0; border-bottom: 1px solid var(--border-light);
}
.post-meta-item { text-align: center; }
.post-meta-label {
  font-size: 11px; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px;
}
.post-meta-value {
  font-size: 18px; font-family: var(--font-display);
  font-weight: 400; color: var(--text); font-style: italic;
}

/* Post content */
.post-content {
  padding: 36px 0; font-size: 17px; line-height: 1.9;
  color: var(--text-mid); font-weight: 300;
}
.post-content p { margin-bottom: 24px; }
.post-content h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 400;
  font-style: italic; color: var(--text); margin: 48px 0 16px;
}
.post-content h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  font-style: italic; color: var(--text); margin: 36px 0 12px;
}
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 2px solid var(--border-light);
  padding-left: 20px; margin: 32px 0;
  font-style: italic; color: var(--text-light);
}
.post-content img {
  border-radius: 4px; margin: 32px 0;
}
.post-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-lighter);
}

/* ═══ CTA BANNERS ═══ */
.cta-inline {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 22px 28px; text-align: center;
  margin: 32px 0; font-size: 14px; color: var(--text-mid); line-height: 1.7;
}
.cta-inline a { color: var(--accent); border-bottom: 1px solid var(--accent-lighter); }
.cta-full {
  text-align: center; padding: 48px 32px; margin: 48px 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px;
}
.cta-full h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  font-style: italic; color: var(--text); margin-bottom: 12px;
}
.cta-full p {
  font-size: 14px; color: var(--text-light); line-height: 1.8;
  max-width: 420px; margin: 0 auto 24px;
}

/* ═══ EMAIL CAPTURE ═══ */
.email-section {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface); padding: 72px 24px; text-align: center;
}
.email-section h2 {
  font-family: var(--font-display); font-size: 32px; font-weight: 400;
  font-style: italic; color: var(--text); margin-bottom: 10px;
}
.email-section p {
  font-size: 15px; color: var(--text-light); margin-bottom: 32px;
  line-height: 1.8;
}
.email-form {
  display: flex; gap: 0; max-width: 420px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 3px; overflow: hidden;
}
.email-form input {
  flex: 1; padding: 14px 18px; border: none; font-size: 14px;
  font-family: var(--font-body); background: var(--bg); outline: none; font-weight: 300;
}
.email-form button {
  background: var(--text); color: var(--bg); border: none;
  padding: 14px 28px; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: var(--font-body);
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.email-form button:hover { opacity: 0.85; }

/* ═══ FOOTER ═══ */
.site-footer {
  max-width: var(--max-width); margin: 0 auto; padding: 48px 32px 40px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: start; margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13px; color: var(--text-light); max-width: 260px; line-height: 1.7;
}
.footer-links { display: flex; gap: 48px; }
.footer-links h4 {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-light); margin-bottom: 12px;
}
.footer-links a {
  display: block; font-size: 13px; color: var(--text-mid);
  margin-bottom: 8px; font-weight: 300;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-light); padding-top: 20px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-faint);
}

/* ═══ PAGINATION ═══ */
.pagination {
  display: flex; justify-content: center; gap: 16px;
  padding: 0 0 48px; font-size: 13px;
}
.pagination a {
  color: var(--text-mid); padding: 8px 20px;
  border: 1px solid var(--border); border-radius: 100px;
  font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
  font-size: 12px; transition: border-color 0.2s;
}
.pagination a:hover { border-color: var(--text); }

/* ═══ TAG FILTER (on index) ═══ */
.tag-filter {
  display: flex; gap: 6px; padding: 48px 0 0;
  border-bottom: 1px solid var(--border-light);
}
.tag-filter a {
  padding: 10px 20px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-light); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.2s;
}
.tag-filter a:hover, .tag-filter a.active {
  color: var(--text); border-bottom-color: var(--text);
}

/* ═══ GHOST EDITOR CARDS ═══ */
.kg-width-wide {
  max-width: 1040px; margin-left: auto; margin-right: auto;
}
.kg-width-full {
  max-width: none; width: 100vw; position: relative;
  left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-image-card { margin: 32px 0; }
.kg-image-card img { border-radius: 4px; }
.kg-bookmark-card {
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; margin: 32px 0;
}
.kg-bookmark-container {
  display: flex; text-decoration: none; color: inherit;
}
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.kg-bookmark-description { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.kg-bookmark-metadata { margin-top: 10px; font-size: 12px; color: var(--text-faint); }
.kg-bookmark-thumbnail { width: 200px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-card { margin: 32px 0; }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: 4px; }
.kg-gallery-image img { border-radius: 4px; }
.kg-callout-card {
  border-left: 2px solid var(--accent-lighter); padding: 16px 20px;
  margin: 32px 0; background: var(--surface);
}
.kg-button-card { margin: 32px 0; text-align: center; }
.kg-button-card a { display: inline-block; }
.kg-toggle-card { margin: 24px 0; border: 1px solid var(--border-light); border-radius: 4px; }
.kg-header-card { padding: 48px 32px; text-align: center; margin: 32px 0; border-radius: 4px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-image { min-height: 300px; border-radius: 4px 4px 0 0; }
  .featured-content { border-radius: 0 0 4px 4px; border-left: 1px solid var(--border-light); padding: 40px 32px; }
  .featured-title { font-size: 32px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .wrapper { padding-left: 20px; padding-right: 20px; }
  .site-nav-inner { padding: 14px 20px; }
  .nav-links { gap: 20px; }
  .post-title { font-size: 32px; }
  .post-meta-bar { gap: 24px; flex-wrap: wrap; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media print {
  .site-nav, .site-footer, .email-section, .cta-inline, .cta-full, .pagination { display: none !important; }
  body { background: #fff; }
}
