/* TheHonestFood Theme — main.css */

:root {
  --ink: #14241C;
  --ink-soft: #3A4A41;
  --paper: #FBF7EF;
  --paper-deep: #F3EDE0;
  --honey: #E0A33B;
  --green: #2E7D4F;
  --amber: #C98A2D;
  --red: #C24A3A;
  --line: #D9D0BE;
  --display: "Fraunces", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.site-logo span { color: var(--honey); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  list-style: none;
}
.nav-menu a:hover { color: var(--honey); }
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  transition: transform .15s, opacity .15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-out { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* ── Hero ── */
.site-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero-title em { font-style: italic; color: var(--honey); }
.hero-lede {
  font-size: 21px;
  color: var(--ink-soft);
  margin: 24px 0 32px;
  max-width: 34ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 18px;
  letter-spacing: .04em;
}

/* ── Receipt card ── */
.receipt {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(20, 36, 28, .08);
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
}
.receipt-head {
  padding: 18px 20px;
  border-bottom: 2px dashed var(--line);
  text-align: center;
}
.receipt-head .r-store { font-family: var(--display); font-weight: 600; font-size: 18px; }
.receipt-head .r-sub { color: var(--ink-soft); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.receipt-body { padding: 14px 20px; }
.r-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.r-name { flex-shrink: 0; }
.r-lead { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.r-price { font-weight: 600; }
.receipt-foot {
  padding: 14px 20px;
  border-top: 2px dashed var(--line);
  background: var(--paper-deep);
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* ── Sections ── */
.site-section { padding: 64px 0; }
.sec-head { max-width: 62ch; margin-bottom: 36px; }
.sec-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.sec-head p { color: var(--ink-soft); margin-top: 12px; font-size: 18px; }

/* ── Five questions ── */
.five-questions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.question-item { padding: 24px 20px; border-right: 1px solid var(--line); }
.question-item:last-child { border-right: none; }
.question-num { font-family: var(--mono); font-size: 12px; color: var(--honey); font-weight: 600; }
.question-item h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 8px 0 6px; line-height: 1.15; }
.question-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* ── Article grid ── */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
  color: var(--ink);
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 36, 28, .1); }
.card-emoji {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.article-tag.guide { background: var(--paper-deep); color: var(--green); }
.article-tag.look { background: #F7E5E1; color: var(--red); }
.card-body h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.18; margin-bottom: 8px; }
.card-body p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.card-read { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--honey); margin-top: 14px; font-weight: 600; }

/* ── Thumbnail fallback ── */
.card-thumb { height: 128px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Universal band ── */
.universal-section { background: var(--ink); color: var(--paper); }
.universal-section .wrap { padding-top: 64px; padding-bottom: 64px; }
.universal-section .eyebrow { color: var(--honey); }
.universal-section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 42px); color: var(--paper); max-width: 18ch; margin-top: 10px; }
.universal-section .body { color: #CDD6CF; max-width: 54ch; margin-top: 16px; font-size: 18px; }
.food-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.food-chip {
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid rgba(224, 163, 59, .45);
  color: var(--honey);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ── Conversion funnel ── */
.convert-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.convert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.convert-steps { display: flex; flex-direction: column; gap: 18px; }
.convert-step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.convert-step h4 { font-family: var(--display); font-weight: 600; font-size: 18px; }
.convert-step p { font-size: 15px; color: var(--ink-soft); }

/* ── Newsletter signup ── */
.newsletter-section { text-align: center; padding: 72px 0; }
.newsletter-section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 42px); max-width: 20ch; margin: 0 auto; }
.newsletter-section p { color: var(--ink-soft); max-width: 48ch; margin: 16px auto 28px; font-size: 18px; }
.signup-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.signup-form input {
  flex: 1;
  min-width: 220px;
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.signup-form input:focus { border-color: var(--honey); }

/* ── Moderation note ── */
.moderation-note {
  font-family: var(--body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px 24px;
}

/* ── Footer ── */
.site-footer { background: var(--ink); color: #CDD6CF; padding: 48px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--paper); }
.footer-logo span { color: var(--honey); }
.footer-tagline { margin-top: 8px; max-width: 30ch; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a:hover { color: var(--honey); }
.footer-legal { margin-top: 32px; font-size: 13px; opacity: .7; }

/* ── Single post ── */
.post-header { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.post-header .article-tag { margin-bottom: 16px; }
.post-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 22ch;
}
.post-meta { display: flex; gap: 16px; align-items: center; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.post-meta .reading-time { font-family: var(--mono); }
.post-content { padding: 48px 0; max-width: 680px; }
.post-content h2 { font-family: var(--display); font-weight: 700; font-size: 28px; margin: 40px 0 16px; }
.post-content h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--honey);
  padding: 12px 20px;
  margin: 28px 0;
  background: var(--paper-deep);
  font-style: italic;
  color: var(--ink-soft);
}
.post-content strong { font-weight: 600; color: var(--ink); }
.post-content a { color: var(--honey); text-decoration: underline; }

/* ── Scan CTA in posts ── */
.scan-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.scan-cta p { color: #CDD6CF; max-width: 40ch; }
.scan-cta .btn { background: var(--honey); color: var(--ink); white-space: nowrap; }

/* ── Archive / category page ── */
.archive-header { padding: 48px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.archive-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .five-questions { grid-template-columns: 1fr 1fr; }
  .question-item:nth-child(2n) { border-right: none; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .convert-grid { grid-template-columns: 1fr; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .five-questions { grid-template-columns: 1fr; }
  .question-item { border-right: none; border-bottom: 1px solid var(--line); }
  .question-item:last-child { border-bottom: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .scan-cta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
