/* frugal foodie family — modern prototype
   mobile-first · citron period signature · oat paper */

:root {
  --citron: #afb42b;
  --citron-deep: #8a8f1f;
  --ink: #37342e;
  --ink-soft: #6d685e;
  --oat: #faf7f0;
  --linen: #ece7da;
  --white: #ffffff;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--oat);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--citron); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--linen);
}
.top-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.wordmark img { height: 34px; width: auto; }
.top-nav { display: flex; gap: 18px; list-style: none; }
.top-nav a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: lowercase; text-decoration: none; color: var(--ink-soft);
  padding: 6px 2px;
}
.top-nav a:hover { color: var(--ink); box-shadow: 0 2px 0 var(--citron); }

/* hamburger — hidden on desktop */
.menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 10px; border-radius: 8px;
}
.menu-btn:focus-visible { outline: 3px solid var(--citron); }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  display: block; content: ""; width: 22px; height: 2.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn .bars { position: relative; }
.menu-btn .bars::before { position: absolute; top: -7px; }
.menu-btn .bars::after { position: absolute; top: 7px; }
.top.open .bars { transform: rotate(45deg); }
.top.open .bars::before { transform: rotate(-90deg); top: 0; }
.top.open .bars::after { opacity: 0; }

@media (max-width: 719px) {
  .top-inner {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0 40px; padding: 14px 20px;
  }
  .wordmark { flex: 1; min-width: 0; display: block; overflow: hidden; }
  /* the logo jpg carries ~103px of baked-in whitespace per side (of 900);
     oversize + shift so the visible artwork sits flush */
  .wordmark img {
    width: 129.9%; max-width: none; height: auto;
    margin-left: -14.87%;
  }
  .menu-btn { display: block; flex-shrink: 0; padding: 12px 6px; }
  nav[aria-label="main"] {
    width: 100%;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .top.open nav[aria-label="main"] { max-height: 70vh; }
  .top-nav {
    flex-direction: column; gap: 0; padding: 8px 6px 14px;
  }
  .top-nav li { border-top: 1px solid var(--linen); }
  .top-nav a {
    display: block; padding: 13px 8px; font-size: 0.86rem;
  }
}

/* ---------- the citron period ---------- */
.dot { color: var(--citron); }

/* ---------- hero ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 20px; }
.hero-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--ink);
  animation: rise 0.7s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-card img { width: 100%; height: min(64vh, 560px); object-fit: cover; opacity: 0.92; }
.hero-plate {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 120px 22px 24px;
  background: linear-gradient(to top, rgba(26, 24, 20, 0.88),
    rgba(26, 24, 20, 0.42) 60%, rgba(26, 24, 20, 0));
  color: var(--white);
}
.hero-plate .kicker { text-shadow: 0 1px 8px rgba(26, 24, 20, 0.55); }
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: lowercase; color: var(--citron);
}
.hero-plate h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 6.5vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.01em;
  margin: 8px 0 10px; max-width: 14ch;
}
.hero-plate p { font-size: 1rem; max-width: 46ch; color: #f2efe7; }
.hero-cta {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  background: var(--citron); color: #24220d;
  text-decoration: none; padding: 11px 18px; border-radius: 999px;
}
.hero-cta:hover { background: #c3c93a; }

/* ---------- section heads ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 26px 20px 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 20px;
}
.section-head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.3rem, 4vw, 1.8rem); letter-spacing: -0.01em;
}
.section-head .see-all {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.see-all:hover { color: var(--citron-deep); }

/* ---------- recipe cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card { text-decoration: none; display: block; }
.card-photo {
  border-radius: 14px; overflow: hidden; background: var(--linen);
  aspect-ratio: 4 / 3;
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-photo img { transform: scale(1.04); }
.card h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.28rem; line-height: 1.15; letter-spacing: -0.01em;
  margin: 12px 0 6px;
}
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--citron); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--ink-soft); background: var(--white);
  border: 1px solid var(--linen); border-radius: 999px; padding: 3px 10px;
}
.chip.cost { color: var(--citron-deep); border-color: var(--citron); }

/* ---------- about strip ---------- */
.about-strip {
  max-width: 1120px; margin: 36px auto 0; padding: 0 20px;
}
.about-inner {
  background: var(--ink); color: var(--oat);
  border-radius: 18px; padding: 34px 24px;
}
.about-inner h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.1; max-width: 22ch;
}
.about-inner p { margin-top: 12px; max-width: 58ch; color: #d9d4c6; }
.about-inner .hero-cta { margin-top: 18px; }

/* ---------- footer ---------- */
footer {
  max-width: 1120px; margin: 30px auto 0; padding: 26px 20px 46px;
  border-top: 1px solid var(--linen);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft);
}
footer a { text-decoration: none; color: inherit; }
footer a:hover { color: var(--citron-deep); }

/* ---------- article (post page) ---------- */
.article { max-width: 680px; margin: 0 auto; padding: 34px 20px 60px; }
.article .kicker { color: var(--citron-deep); }
.article h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 3.8rem); line-height: 1.02;
  letter-spacing: -0.015em; margin: 10px 0 14px;
}
.byline {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 26px;
}
.article p { margin: 0 0 1.25em; }
.article .lede { font-size: 1.22rem; line-height: 1.55; }
.article ul { margin: 0 0 1.25em 1.2em; }
.article li { margin-bottom: 0.6em; }
.pullout {
  background: var(--white); border-left: 4px solid var(--citron);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px; margin: 1.6em 0; font-size: 1rem;
}
.article .signoff {
  font-family: var(--display); font-weight: 700; font-size: 1.4rem;
  margin-top: 1.4em;
}
.back {
  display: inline-block; margin-top: 34px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: var(--ink-soft); text-decoration: none;
}
.back:hover { color: var(--citron-deep); }

/* ---------- recipe body ---------- */
.recipe .entry img { border-radius: 14px; margin: 1.5em auto; }
.recipe .entry p { margin: 0 0 1.25em; }
.recipe .entry h2, .recipe .entry h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  margin: 1.4em 0 0.5em;
}
.recipe .entry ul, .recipe .entry ol { margin: 0 0 1.4em 1.25em; }
.recipe .entry li { margin-bottom: 0.5em; }
.recipe .entry em { color: var(--ink-soft); }

/* ---------- from the comments ---------- */
.comments { margin-top: 46px; }
.comments h2 {
  font-family: var(--display); font-weight: 800;
  font-size: 1.45rem; letter-spacing: -0.01em;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px;
  margin-bottom: 20px;
}
.comment {
  border-left: 3px solid var(--linen);
  padding: 2px 0 2px 16px; margin-bottom: 20px;
}
.comment:hover { border-left-color: var(--citron); }
.c-meta { margin-bottom: 4px; }
.c-author {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: var(--ink);
}
.c-when {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft);
  margin-left: 10px;
}
.comment p { font-size: 0.98rem; margin: 0 0 0.7em; color: #4d4a42; }

/* ---------- archive index ---------- */
.idx { list-style: none; margin: 0 0 1.6em; padding: 0; }
.idx li { padding: 5px 0; border-bottom: 1px solid var(--linen); }
.idx .d {
  display: inline-block; width: 64px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft);
}
.idx a { text-decoration: none; }
.idx a:hover { color: var(--citron-deep); text-decoration: underline;
  text-decoration-color: var(--citron); text-underline-offset: 3px; }
.article .idx + h2, .recipe .entry h2 + .idx { margin-top: 0; }
.rf-note-modern {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft);
  border-top: 1px solid var(--linen); padding-top: 14px; margin-top: 30px;
}
