/* =========================================================
   Gouda N Guava: Site Stylesheet
   Design direction #2 "Modern Editorial"
   Fonts: Dancing Script (logo) · Fraunces (headings) · Karla (body)
   Palette: Ink #111 · Guava #d94e67 · Paper #faf6f3 · White
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;1,9..144,400;1,9..144,500&family=Karla:wght@400;500;700&display=swap');

:root {
  --ink: #111111;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --guava: #d94e67;
  --guava-dark: #b83a52;
  --paper: #faf6f3;
  --line: #e4e0dc;
  --white: #ffffff;
  --head: 'Fraunces', Georgia, serif;
  --body: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --logo: 'Dancing Script', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--guava-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--guava); }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1160px; margin: 0 auto; padding: 1.1rem 1.5rem;
}
.site-header-wrap { border-bottom: 1px solid var(--ink); background: var(--white); }
.logo {
  font-family: var(--logo); font-weight: 700; color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--guava); }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.site-nav a:hover { color: var(--guava); }
@media (max-width: 700px) {
  .site-header { flex-direction: column; }
  .site-nav { justify-content: center; gap: 1.1rem; }
}

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 2.8rem 1.5rem 1rem; }
.wide { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.crumbs { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--guava); margin-bottom: .8rem; }
.crumbs a { color: inherit; text-decoration: none; }
h1.title {
  font-family: var(--head); font-weight: 700; color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -1px; margin: 0 0 .6rem;
}
.dek { font-family: var(--head); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.2rem; }
.byline { font-size: .85rem; color: var(--muted); letter-spacing: .5px; }
.byline strong { color: var(--ink); }

.hero { margin: 2rem auto 0; }
.hero.wide { max-width: 760px; }
.hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 45%; }
.hero img.uncropped { aspect-ratio: auto; height: auto; object-fit: contain; }
.hero figcaption { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: .5rem; text-align: right; }

.meta {
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 1rem .5rem; margin: 2.2rem 0 1.4rem;
}
.meta div + div { border-left: 1px solid var(--line); }
.meta strong { display: block; font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--guava); margin-bottom: .15rem; }
.meta small { color: var(--muted); }
@media (max-width: 560px) { .meta { grid-template-columns: repeat(2, 1fr); row-gap: .8rem; } .meta div:nth-child(3) { border-left: none; } }

.btns { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn {
  display: inline-block; font-family: var(--body); font-size: .75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: .85rem 1.5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--white);
}
.btn:hover { background: var(--guava); border-color: var(--guava); color: var(--white); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }

.intro::first-letter {
  font-family: var(--head); font-weight: 700; float: left; font-size: 4.2rem; line-height: .85;
  padding: .3rem .6rem 0 0; color: var(--guava);
}

h2.section {
  font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 1.9rem;
  letter-spacing: -.5px; margin: 3rem 0 1rem;
}
.story {
  background: var(--paper); border-left: 3px solid var(--guava); padding: 1.6rem 2rem;
  font-family: var(--head); font-style: italic; font-size: 1.12rem; line-height: 1.8; color: #333;
}
.story p { margin: 0 0 1rem; }
.story p:last-child { margin-bottom: 0; }

/* ---------- Recipe card ---------- */
.recipe-card { border: 1px solid var(--ink); margin: 3rem 0 0; }
.recipe-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.8rem; border-bottom: 1px solid var(--ink); background: var(--paper);
}
.recipe-card-head h2 { font-family: var(--head); font-size: 1.6rem; margin: 0; color: var(--ink); }
.recipe-card-body { padding: 1.6rem 1.8rem 2rem; }
.recipe-card h3 {
  font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--guava); margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } }
ul.ingredients { list-style: none; padding: 0; margin: 0; }
ul.ingredients li { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
ul.ingredients label { cursor: pointer; display: flex; gap: .6rem; align-items: baseline; }
ul.ingredients input { accent-color: var(--guava); transform: translateY(1px); }
ul.plain { margin: 0; padding-left: 1.1rem; font-size: 1rem; }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 1.2rem 3.2rem; font-size: 1.02rem; }
ol.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.15rem;
  font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: var(--guava); line-height: 1;
}
ol.steps strong { color: var(--ink); }

.tips { border-top: 3px solid var(--ink); background: var(--paper); padding: 1.3rem 1.6rem 1.4rem; margin-top: 1.4rem; }
.tips h3 { border-bottom: none; padding-bottom: 0; }
.tips ul { margin: 0; padding-left: 1.1rem; }
.tips li { margin-bottom: .45rem; }

/* ---------- Ways to use: feature list (Sandra's pick, style E) ---------- */
.feature-list { border-left: 3px solid var(--guava); padding-left: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 2.2rem; }
.feature-list h4 { font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin: 0; color: var(--ink); line-height: 1.3; }
.feature-list h4 a { color: var(--ink); text-decoration-color: var(--guava); }
.feature-list h4 a:hover { color: var(--guava); }
.feature-list p { color: var(--muted); margin: .15rem 0 0; font-size: .95rem; line-height: 1.6; }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* (older grid style, kept for reference) */
.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.uses li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem 1rem; font-size: .98rem; }

.signoff { text-align: center; font-family: var(--logo); font-weight: 700; font-size: 2.3rem; color: var(--guava); margin: 3.5rem 0 1rem; }

/* ---------- Shared components for all recipe pages ---------- */
/* Sub-group label inside the recipe card (e.g., "Banana mixture", "Dressing") */
.recipe-card h4.group { font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 1.2rem 0 .3rem; }
.recipe-card h4.group:first-child { margin-top: 0; }
.note, .recipe-card .note { font-size: .9rem; color: var(--muted); font-style: italic; margin: 0 0 .6rem; }

/* Highlighted note inside a step */
.callout { background: var(--paper); border-left: 3px solid var(--guava); padding: .6rem 1rem; margin: .6rem 0 0; font-size: .95rem; }

/* Pink "guide" note (marinade, salad) */
.guide-note { background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1.1rem 1.4rem; font-family: var(--head); font-style: italic; font-size: 1.08rem; margin: 1.5rem 0; }

/* Dedication line under a story (e.g., Te extraño, Tati) */
.dedication { text-align: right; font-family: var(--logo); font-weight: 700; font-size: 1.8rem; color: var(--guava); font-style: normal; margin-top: .6rem !important; }

/* YouTube video embed */
.video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Handwritten recipe card photo */
.original { text-align: center; margin: 3rem 0 0; }
.original img { max-width: 340px; width: 100%; margin: 0 auto; box-shadow: 0 6px 18px rgba(0,0,0,.18); transform: rotate(-2deg); }
.original p { font-family: var(--head); font-style: italic; color: var(--muted); margin-top: 1rem; }

/* Scaling table (rice) */
table.scale { width: 100%; border-collapse: collapse; margin: .6rem 0 .4rem; font-size: .95rem; }
table.scale th, table.scale td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; text-align: center; }
table.scale th { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--guava); border-bottom: 1px solid var(--ink); }

/* Two side-by-side paths (pita: bake today / bake later) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1rem; }
.path { border: 1px solid var(--ink); padding: 1rem 1.3rem 1.1rem; }
.path h4 { font-family: var(--head); font-size: 1.15rem; margin: 0 0 .5rem; color: var(--ink); }
.path ol { margin: 0; padding-left: 1.2rem; font-size: .97rem; }
@media (max-width: 640px) { .paths { grid-template-columns: 1fr; } }

/* Greek Feast tiles (on the chicken page) */
.feast { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.feast li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feast a { display: block; text-align: center; padding: 1.1rem .8rem; text-decoration: none; font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.feast a:hover { background: var(--paper); color: var(--guava); }
.feast a small { display: block; font-family: var(--body); font-weight: 700; font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--guava); margin-bottom: .2rem; }

/* "Part of my Greek Feast" box at the bottom of Greek side dishes */
.feast-back { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1rem 0; margin-top: 3rem; font-size: .98rem; }
.feast-back strong { font-family: var(--head); color: var(--ink); }

/* ---------- About page ---------- */
.about-hero { background: var(--paper); border-bottom: 1px solid var(--line); text-align: center; padding: 4rem 1.5rem 3.5rem; }
.about-hero .kicker { font-size: .75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--guava); }
.about-hero h1 { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -1px; max-width: 760px; margin: .7rem auto .9rem; }
.about-hero p { font-family: var(--head); font-style: italic; font-size: 1.2rem; color: var(--muted); margin: 0; }
.lead { font-family: var(--head); font-size: 1.3rem; line-height: 1.6; color: var(--ink); }
blockquote.love-letter { margin: 1.5rem 0; padding: 2rem 2.2rem; background: var(--paper); border-left: 3px solid var(--guava); font-family: var(--head); font-style: italic; font-size: 1.25rem; line-height: 1.75; color: var(--ink); }
.signature { text-align: center; font-family: var(--logo); font-weight: 700; font-size: 2rem; color: var(--ink); margin: -.6rem 0 0; }

/* ---------- Home / Recipe Index ---------- */
.home-hero {
  background: var(--paper); border-bottom: 1px solid var(--ink);
  padding: 4.2rem 1.5rem 3.6rem; text-align: center;
}
.home-hero .kicker { font-size: .75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--guava); }
.home-hero h1 {
  font-family: var(--head); font-weight: 700; color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.06; letter-spacing: -1px;
  max-width: 780px; margin: .7rem auto .9rem;
}
.home-hero p {
  font-family: var(--head); font-style: italic; font-size: 1.22rem; line-height: 1.6;
  color: var(--muted); max-width: 680px; margin: 0 auto 1.8rem;
}
.home-hero .btns { justify-content: center; margin-bottom: 0; }

.catalog { max-width: 1120px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.catalog-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--ink); margin-bottom: 2.2rem;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; padding: .55rem 1rem; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.search-box {
  font-family: var(--body); font-size: .92rem; padding: .55rem .9rem;
  border: 1px solid var(--ink); min-width: 230px; background: var(--white); color: var(--ink);
}
.search-box:focus { outline: 2px solid var(--guava); outline-offset: 1px; }

.recipe-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.8rem;
}
@media (max-width: 900px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .recipe-grid { grid-template-columns: 1fr; } }

.r-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: var(--white); transition: transform .18s ease, border-color .18s ease;
}
.r-card:hover { border-color: var(--ink); transform: translateY(-2px); color: inherit; }
.r-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); position: relative; }
.r-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.r-card:hover .r-card-media img { transform: scale(1.03); }
.r-card-editorial {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.4rem; background: var(--paper); position: relative;
}
.r-card-editorial::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none;
}
.r-card-editorial .stamp {
  font-size: .68rem; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--guava); margin-bottom: .5rem;
}
.r-card-editorial .quote {
  font-family: var(--head); font-style: italic; font-size: 1.2rem; line-height: 1.35; color: var(--ink); max-width: 240px;
}
.r-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.r-card-cat { font-size: .68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--guava); margin-bottom: .35rem; }
.r-card-title { font-family: var(--head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--ink); margin: 0 0 .45rem; }
.r-card:hover .r-card-title { color: var(--guava-dark); }
.r-card-dek { font-size: .95rem; line-height: 1.55; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.r-card-link { font-size: .72rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink); }
.r-card:hover .r-card-link { color: var(--guava); }
.empty-state { display: none; text-align: center; padding: 3rem 1rem; font-family: var(--head); font-style: italic; color: var(--muted); font-size: 1.2rem; }

.home-note {
  max-width: 820px; margin: 4rem auto 1rem; padding: 2.4rem 2.2rem;
  background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  text-align: center;
}
.home-note blockquote {
  margin: 0 0 1.2rem; font-family: var(--head); font-style: italic; font-size: 1.28rem; line-height: 1.7; color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; text-align: center; padding: 2.5rem 1.5rem; margin-top: 3rem; font-size: .85rem; }
.site-footer .logo { color: var(--white); font-size: 2.4rem; display: inline-block; margin-bottom: .6rem; }
.site-footer a { color: #cfcfcf; }
.site-footer .tagline { font-family: var(--head); font-style: italic; color: #9a9a9a; margin: 0 0 1rem; }

/* ---------- Print ---------- */
@media print {
  .site-header-wrap, .hero, .btns, .story, h2.section, .uses, .feature-list, .site-footer, .no-print, .intro, .video, .original, .feast, .feast-back, .guide-note { display: none !important; }
  body { font-size: 11pt; }
  .recipe-card { border: 1px solid #999; }
}
