/* Shared blog styles. Mirrors the marketing site palette so the two feel
   like one product. If a token here changes, change it in ok2eat.html too. */

:root {
  --green: #3E721D;
  --green-dim: #2A4F12;
  --green-soft: #A6D388;
  --bg: #F0EADC;
  --surface: #F7F3E8;
  --card: #EDE6D2;
  --border: #D6D2C4;
  --text: #1C261C;
  --text-soft: #3A4A38;
  --muted: #6B8264;
  --warn: #C97E1E;
  --danger: #B23A3A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-dim); }

/* Nav (mirrors ok2eat.html) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(240, 234, 220, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); }
.nav-cta { background: var(--green); color: #FFFFFF !important; padding: 8px 20px; border-radius: 100px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--green-dim) !important; }

/* Page container — articles stay narrow for readability; the index page widens
   itself via .blog-index-main below to fit the 3-across grid. */
main { padding: 120px 24px 80px; max-width: 760px; margin: 0 auto; }
main.blog-index-main { max-width: 1180px; }

/* Blog index */
.blog-header { text-align: center; padding: 32px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.blog-eyebrow { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.blog-title { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin: 12px 0 16px; }
.blog-tagline { color: var(--text-soft); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* Toolbar — chips on the left, search input on the right */
.post-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.post-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.post-chip {
  background: transparent; border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 16px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-soft); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-chip:hover { border-color: var(--green-soft); color: var(--text); }
.post-chip.is-active {
  background: var(--green); border-color: var(--green);
  color: #fff;
}
.post-search { position: relative; min-width: 240px; }
.post-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.post-search input[type="search"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px 10px 38px;
  font-family: inherit; font-size: 14px; color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none; appearance: none;
}
.post-search input[type="search"]:focus { border-color: var(--green); }
.post-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.post-search-msg {
  color: var(--muted); font-size: 12px; font-family: 'DM Mono', monospace;
  letter-spacing: 0.4px; min-height: 1em; margin-bottom: 14px; text-align: right;
}

/* 3-across responsive grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-soft);
  box-shadow: 0 10px 24px rgba(28, 38, 28, 0.06);
  color: inherit;
}

/* Cover area — gradient + emoji acts as the image without external assets */
.post-cover {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.post-cover-emoji {
  font-size: 56px; line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

.post-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }

/* Tag pill — small inline badge at the top of the card body */
.post-tag-pill {
  align-self: flex-start;
  background: rgba(62, 114, 29, 0.12);
  color: var(--green);
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase;
  font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 10px;
}

.post-meta { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.post-card-title {
  font-size: 19px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25;
  margin: 6px 0 10px; color: var(--text);
}
.post-excerpt { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; flex: 1; }
.post-arrow { color: var(--green); font-weight: 600; margin-top: 14px; display: inline-block; font-size: 13px; }

/* Empty state when filters return nothing */
.post-empty {
  text-align: center; color: var(--muted); font-size: 14px;
  padding: 48px 0;
}

/* Article */
.article-meta { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.article-title { font-size: 44px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 14px; }
.article-author { color: var(--text-soft); font-size: 15px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-body { font-size: 18px; line-height: 1.75; color: var(--text-soft); }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; margin-top: 2em; margin-bottom: 0.6em; }
.article-body h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-top: 1.6em; margin-bottom: 0.4em; }
.article-body p strong { color: var(--text); }
.article-body ol, .article-body ul { padding-left: 28px; }
.article-body li + li { margin-top: 0.5em; }
.article-body blockquote { border-left: 3px solid var(--green-soft); padding: 4px 0 4px 18px; color: var(--text); font-style: italic; }

.article-footer { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.back-to-blog { color: var(--muted); font-size: 14px; text-decoration: none; font-weight: 500; }
.back-to-blog:hover { color: var(--text); }

/* Email signup */
.signup { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px 32px; margin: 64px 0 24px; text-align: center; }
.signup h3 { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.4px; margin-bottom: 8px; }
.signup p { color: var(--text-soft); font-size: 15px; max-width: 480px; margin: 0 auto 20px; }
.signup-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.signup input[type="email"] {
  flex: 1; min-width: 220px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 100px;
  padding: 12px 18px; font-size: 15px; color: var(--text); font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.signup input[type="email"]:focus { border-color: var(--green); }
.signup button {
  background: var(--green); color: #fff; border: none; border-radius: 100px;
  padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.signup button:hover:not(:disabled) { background: var(--green-dim); }
.signup button:disabled { opacity: 0.5; cursor: default; }
.signup .signup-note { color: var(--muted); font-size: 12px; margin-top: 14px; }
.signup .signup-msg { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 1.5em; }
.signup .signup-msg.is-success { color: var(--green); }
.signup .signup-msg.is-error { color: var(--danger); }

/* Footer */
footer { padding: 48px 24px; border-top: 1px solid var(--border); margin-top: 80px; text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); margin: 0 12px; text-decoration: none; }
footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  /* 2-across grid on tablets */
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 18px; }
  .nav-links li:nth-child(-n+3) { display: none; }
  .blog-title { font-size: 36px; }
  .article-title { font-size: 32px; }
  .article-body { font-size: 16.5px; }
  main { padding: 100px 18px 64px; }
  .signup { padding: 28px 22px; }

  /* 1-across grid on phone */
  .post-grid { grid-template-columns: 1fr; }
  .post-toolbar { flex-direction: column; align-items: stretch; }
  .post-search { min-width: 0; }
  .post-search-msg { text-align: left; }
}
