/* ==========================================================
   LittlePlateDiary - main stylesheet
   Layout inspired by Pinch of Yum: top promo bar, centered logo
   with simple nav, big headline hero with category tiles, square
   recipe cards beside a sidebar, email signup, 3-column footer.
   Change colors and fonts in the :root block below.
   ========================================================== */
:root {
  --ink: #2a2a2a;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --cream: #fbf6ef;
  --beige: #f1e7d8;
  --line: #e7dfd3;
  --green: #3f6b4a;
  --green-dark: #2f5239;
  --accent: #e8605a;       /* coral accent used for links and buttons */
  --accent-dark: #c94a44;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 300; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-dark); }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ---------- top bar + header ---------- */
.promo-bar { background: var(--beige); text-align: center; font-size: .9rem; padding: 8px 12px; }
.promo-bar button { background: none; border: 0; font: inherit; color: var(--green-dark); text-decoration: underline; cursor: pointer; font-weight: 600; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 50; }
.header-inner { display: flex; flex-direction: column; align-items: center; padding: 18px 20px 10px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-dark); font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; letter-spacing: -.5px; }
.logo img { width: 44px; height: 44px; }
.logo span { color: var(--accent); }
.main-nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 6px 28px; flex-wrap: wrap; justify-content: center; }
.main-nav a { display: block; padding: 8px 2px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--accent); color: var(--ink); }
.nav-toggle { display: none; position: absolute; right: 16px; top: 22px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 .9rem var(--font-head); cursor: pointer; }

/* ---------- ads (labelled placeholders, not clickable) ---------- */
.ad-wrap { text-align: center; margin: 22px auto; }
.ad-slot { margin: 0 auto; max-width: 100%; background: #f4f4f4; border: 1px dashed #bdbdbd; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #8a8a8a; font: 600 .75rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; }
.ad-slot small { font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: 2px; }
.ad-leaderboard { width: 728px; aspect-ratio: 728 / 90; }
.ad-rect { width: 300px; aspect-ratio: 300 / 250; }
.sidebar .ad-wrap { margin-top: 0; }
.ad-slot.zillow-ad {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
.zillow-ad-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-decoration: none;
}
.zillow-ad-link:hover { color: #333; }
.zillow-ad-image {
  width: clamp(70px, 16.5vw, 120px);
  height: 72px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
}
.zillow-ad-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.zillow-ad-copy strong {
  color: #006aff;
  font: 700 clamp(.9rem, 2vw, 1.25rem)/1.2 var(--font-body);
  white-space: nowrap;
}
.zillow-ad-copy > span {
  overflow: hidden;
  margin-top: 4px;
  color: #333;
  font: 400 clamp(.68rem, 1.5vw, .875rem)/1.35 var(--font-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zillow-ad-action {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 20px;
  background: #006aff;
  color: #fff;
  font: 700 .875rem/1.2 var(--font-body);
  white-space: nowrap;
}
.zillow-ad-rect .zillow-ad-link {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
.zillow-ad-rect .zillow-ad-image {
  width: 100%;
  height: 112px;
  flex: 0 0 112px;
}
.zillow-ad-rect .zillow-ad-copy strong { font-size: 1.1rem; }
.zillow-ad-rect .zillow-ad-copy > span {
  font-size: .78rem;
}
.zillow-ad-rect .zillow-ad-action {
  align-self: flex-start;
  padding: 8px 15px;
  font-size: .78rem;
}
.ad-slot.ultahost-ad {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
.ultahost-ad-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  text-decoration: none;
}
.ultahost-ad-link:hover { color: #333; }
.ultahost-ad-image {
  width: 110px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
}
.ultahost-ad-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: center;
}
.ultahost-ad-copy strong {
  color: #333;
  font: 700 1.05rem/1.2 var(--font-body);
}
.ultahost-ad-copy > span {
  margin-top: 6px;
  color: #666;
  font: 400 .8rem/1.35 var(--font-body);
}
.ultahost-ad-action {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-radius: 20px;
  background: #0056b3;
  color: #fff;
  font: 700 .8rem/1.2 var(--font-body);
  white-space: nowrap;
}
.ultahost-ad-leaderboard .ultahost-ad-link {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 4px;
}
.ultahost-ad-leaderboard .ultahost-ad-image {
  width: clamp(66px, 15vw, 110px);
  height: 70px;
}
.ultahost-ad-leaderboard .ultahost-ad-copy {
  flex: 1;
  overflow: hidden;
  text-align: left;
}
.ultahost-ad-leaderboard .ultahost-ad-copy strong {
  overflow: hidden;
  font-size: clamp(.78rem, 1.5vw, 1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ultahost-ad-leaderboard .ultahost-ad-copy > span {
  overflow: hidden;
  margin-top: 3px;
  font-size: clamp(.65rem, 1.2vw, .78rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ultahost-ad-leaderboard .ultahost-ad-action {
  padding: 8px 12px;
  font-size: .72rem;
}
.ad-slot.spotify-ad {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}
.spotify-ad-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #191414;
  color: #fff;
  text-decoration: none;
}
.spotify-ad-link:hover { color: #fff; }
.spotify-ad-image {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
}
.spotify-ad-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: center;
}
.spotify-ad-copy strong {
  margin-bottom: 3px;
  color: #1db954;
  font: 700 1rem/1.2 var(--font-body);
}
.spotify-ad-headline {
  color: #fff;
  font: 700 .95rem/1.2 var(--font-body);
}
.spotify-ad-description {
  margin-top: 3px;
  color: rgba(255,255,255,.8);
  font: 400 .72rem/1.3 var(--font-body);
}
.spotify-ad-action {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 25px;
  background: #1db954;
  color: #000;
  font: 700 .78rem/1.2 var(--font-body);
  white-space: nowrap;
}
.spotify-ad-leaderboard .spotify-ad-link {
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 4px;
}
.spotify-ad-leaderboard .spotify-ad-image { width: 72px; height: 72px; }
.spotify-ad-leaderboard .spotify-ad-copy {
  flex: 1;
  overflow: hidden;
  text-align: left;
}
.spotify-ad-leaderboard .spotify-ad-copy strong { font-size: 1.125rem; }
.spotify-ad-leaderboard .spotify-ad-headline { font-size: 1.125rem; }
.spotify-ad-leaderboard .spotify-ad-description { font-size: .8125rem; }
.spotify-ad-leaderboard .spotify-ad-action {
  padding: 10px 20px;
  font-size: .875rem;
}
.spotify-ad-home-sidebar .spotify-ad-link {
  gap: 10px;
  padding: 15px;
  border-radius: 8px;
}
.spotify-ad-home-sidebar .spotify-ad-image {
  width: 90px;
  height: 90px;
  border-radius: 8px;
}
.spotify-ad-home-sidebar .spotify-ad-copy { width: 100%; }
.spotify-ad-home-sidebar .spotify-ad-copy strong { margin-bottom: 4px; }
.spotify-ad-home-sidebar .spotify-ad-headline { font-size: 1.25rem; }
.spotify-ad-home-sidebar .spotify-ad-description {
  margin-top: 5px;
  font-size: .8125rem;
}
.spotify-ad-home-sidebar .spotify-ad-action {
  padding: 9px 24px;
  font-size: .875rem;
}

/* ---------- homepage hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 0; background: #f7f7f7; }
.hero-inner { width: 100%; max-width: none; min-height: 100vh; min-height: 100svh; padding: clamp(20px, 4vh, 44px) clamp(20px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.hero-tagline { margin: 0 0 22px; text-align: center; font: 500 .86rem/1.6 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.hero-tagline em { color: var(--accent-dark); font: italic 500 1.55rem/1.2 Georgia, serif; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.tile-grid { flex: 1; min-height: clamp(340px, 50vh, 700px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; min-height: 0; overflow: visible; background: var(--beige); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.025); }
.tile span { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); background: #efb94f; color: #fff; font: 700 .67rem var(--font-head); letter-spacing: .16em; padding: 6px 14px; text-align: center; text-transform: uppercase; white-space: nowrap; }

/* ---------- category shortcuts + recipe search ---------- */
.finder { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.finder-inner { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 .85rem var(--font-head); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.search-box { flex: 1 1 280px; max-width: 420px; position: relative; }
.search-box input { width: 100%; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.hero .finder { margin-top: 0; padding: 42px 0 0; background: transparent; border: 0; }
.category-shortcuts { display: flex; justify-content: center; gap: 18px; overflow-x: auto; padding: 0 4px 8px; scrollbar-width: thin; }
.category-shortcuts .chip { flex: 0 0 100px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 700 .72rem/1.3 var(--font-head); text-transform: uppercase; cursor: pointer; }
.chip-image { display: block; width: 88px; height: 88px; overflow: hidden; border: 3px solid transparent; border-radius: 50%; background: var(--beige); transition: border-color .2s, transform .2s; }
.chip-image img { width: 100%; height: 100%; object-fit: cover; }
.category-shortcuts .chip:hover .chip-image { transform: translateY(-2px); }
.category-shortcuts .chip[aria-pressed="true"] .chip-image { border-color: var(--accent); }
.category-shortcuts .chip[aria-pressed="true"] { background: transparent; border-color: transparent; color: var(--accent-dark); }
.finder-bottom { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px auto 0; }
.hero .search-box { width: min(100%, 340px); flex: 0 1 340px; }
.hero .search-box input { padding: 9px 14px; border-color: #c9c9c9; border-radius: 0; font: .9rem var(--font-body); }
.finder-or { color: var(--muted); font: italic 1rem Georgia, serif; }
.btn-all-recipes { border-radius: 0; padding: 9px 16px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; background: var(--green-dark); border-color: var(--green-dark); }
.btn-all-recipes:hover { background: var(--green); border-color: var(--green); }

/* ---------- main layout + cards ---------- */
.section { padding: 44px 0; }
.section-title { text-align: center; margin-bottom: 1.2em; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.sidebar { display: grid; gap: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 26px; }
.card-grid.stacked { grid-template-columns: 1fr; gap: 40px; }
.card { display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--beige); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-meta { font: 500 .8rem var(--font-head); color: var(--muted); margin: 14px 0 4px; display: flex; gap: 8px 14px; flex-wrap: wrap; }
.card-meta .cat { color: var(--green); font-weight: 600; }
.card h3 { margin-bottom: .4em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .8em; }
.read-more { font: 600 .85rem var(--font-head); text-decoration: none; margin-top: auto; }
.card-badge { display: none; }
.empty-state { text-align: center; padding: 40px 16px; background: var(--cream); border-radius: var(--radius); grid-column: 1 / -1; }

/* ---------- homepage latest recipes ---------- */
.latest-section { padding-top: 52px; }
.latest-section .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.latest-heading { margin-bottom: 20px; color: #75405f; font: 600 .85rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.latest-heading small { color: var(--muted); font: 400 .8rem var(--font-body); letter-spacing: 0; text-transform: none; }
.latest-section .card-grid.stacked { gap: 0; }
.latest-section .card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 0 0 15px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.latest-section .card:last-child { margin-bottom: 0; }
.latest-section .card-img { flex: 0 0 148px; width: 148px; height: 148px; aspect-ratio: 1; border-radius: 0; }
.latest-section .card-content { min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.latest-section .card-meta { margin: 5px 0 8px; color: var(--muted); font: 400 .65rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.latest-section .card-meta .cat, .latest-section .card-meta span:last-child { display: none; }
.latest-section .card h3 { margin: 0 0 7px; font: 700 1.2rem/1.25 Georgia, "Times New Roman", serif; }
.latest-section .card h3 a { color: #25221f; }
.latest-section .card p { margin-bottom: 7px; font: .83rem/1.5 Georgia, "Times New Roman", serif; color: #5f5a55; }
.latest-section .read-more { margin-top: auto; color: #e9a83d; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.latest-section .read-more:hover { color: var(--accent-dark); }
.latest-more { margin: 24px 0 0; text-align: center; }
.latest-more .btn { width: min(100%, 280px); padding: 9px 16px; border-radius: 0; border-color: #75405f; background: #75405f; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.latest-more .btn:hover { border-color: #5e334b; background: #5e334b; }
.latest-section .widget { padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #f4f4f4; }
.latest-section .widget h3 { margin: 0; padding: 12px 16px; color: #75405f; font: 500 .8rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.latest-section .collection-list li { border-color: #fff; }
.latest-section .collection-list a { padding: 10px 14px; font: 400 .77rem Georgia, "Times New Roman", serif; }
.latest-section .collection-list em { font-size: .68rem; }

/* ---------- popular dishes feature grid ---------- */
.popular-section { position: relative; margin-top: 24px; padding-top: 78px; background: #f7f7f7; }
.popular-tabs { position: absolute; top: 0; left: 50%; display: flex; max-width: calc(100% - 32px); transform: translate(-50%, -50%); }
.popular-tab { padding: 13px 20px; border: 1px solid #fff; background: #e9e9e9; color: #171717; font: 700 .85rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.popular-tab.active { position: relative; border-color: #75405f; background: #75405f; color: #fff; }
.popular-tab.active::after { position: absolute; bottom: -9px; left: 50%; width: 0; height: 0; border: 9px solid transparent; border-bottom: 0; border-top-color: #75405f; content: ""; transform: translateX(-50%); }
.popular-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 10px; }
.popular-section .card { position: relative; align-items: center; text-align: center; }
.popular-section .card-img { position: relative; width: 100%; aspect-ratio: 1 / 1; height: auto; overflow: visible; border-radius: 0; }
.popular-section .card-img img { border-radius: 0; }
.popular-section .card-badge { position: relative; z-index: 1; display: inline-block; max-width: calc(100% - 32px); margin: -17px auto 0; padding: 10px 22px; background: #efb94f; color: #fff; font: 700 .68rem var(--font-head); letter-spacing: .15em; line-height: 1.25; text-transform: uppercase; }
.popular-section .card-content { width: 100%; padding: 14px 5px 0; }
.popular-section .card-meta, .popular-section .card p, .popular-section .read-more { display: none; }
.popular-section .card h3 { margin: 0; font: 700 clamp(1.15rem, 1.8vw, 1.55rem)/1.2 Georgia, "Times New Roman", serif; }
.popular-section .card h3 a { color: #171717; }
.popular-section .card h3 a:hover { color: #75405f; }

/* sidebar widgets */
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--cream); }
.widget h3 { font-size: 1.1rem; }
.collection-list { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.collection-list li { border-top: 1px solid var(--line); }
.collection-list li:first-child { border-top: 0; }
.collection-list a { display: flex; justify-content: space-between; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.collection-list a:hover { color: var(--accent-dark); }
.collection-list em { font-style: normal; color: var(--muted); font-weight: 400; }

.maya-spotlight {
  background: #f3f1ef;
  border-bottom: 1px solid var(--line);
}
.maya-spotlight-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.7fr) minmax(250px, 1.15fr);
  align-items: stretch;
  gap: 0;
  min-height: 640px;
}
.maya-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 28px 40px 0;
  background: #f3f1ef;
}
.maya-copy h2 {
  margin: 0 0 24px;
  color: #3a2f2d;
  font: 400 clamp(2.2rem, 3.3vw, 4.1rem)/1.1 "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  letter-spacing: .02em;
  text-transform: none;
}
.maya-copy h2 span {
  display: block;
  margin-top: 6px;
  color: #5b5452;
}
.maya-copy p {
  max-width: 420px;
  margin: 0 0 26px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4d3d38;
}
.author-btn {
  display: inline-block;
  width: fit-content;
  border-radius: 8px;
  min-width: 150px;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  background: #2f2b2b;
  border-color: #2f2b2b;
}
.author-btn:hover {
  background: #1b1919;
  border-color: #1b1919;
}
.maya-photo-main,
.maya-photo-side {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.maya-photo-main img,
.maya-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.maya-photo-main {
  background: #e9e0d8;
  border-left: 1px solid rgba(71, 54, 40, 0.15);
}
.maya-photo-side {
  background: #dfe5e8;
  border-left: 1px solid rgba(71, 54, 40, 0.15);
}
.maya-meta {
  position: absolute;
  right: 18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}
.maya-meta span {
  font: 600 .92rem var(--font-head);
  color: #2d2a2b;
}
.maya-meta button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(62, 41, 33, 0.2);
  background: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #4e453f;
  cursor: pointer;
}

@media (max-width: 960px) {
  .maya-spotlight-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .maya-copy {
    padding: 40px 0 24px;
  }
  .maya-photo-main,
  .maya-photo-side {
    min-height: 360px;
  }
  .maya-photo-main,
  .maya-photo-side {
    border-left: 0;
    border-top: 1px solid rgba(71, 54, 40, 0.15);
  }
}

/* ---------- newsletter band ---------- */
.signup-band { background: var(--green); color: #fff; padding: 46px 0; }
.signup-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.signup-band h2 { color: #fff; }
.signup-band p { opacity: .92; max-width: 520px; }
.signup-band .btn { background: #fff; color: var(--green-dark); border-color: #fff; }
.signup-band .btn:hover { background: var(--beige); }
.signup-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- recipe detail ---------- */
.recipe-hero-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 44px;
  margin: 0 0 30px;
}
.recipe-hero-photo {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(47, 35, 28, 0.08);
  background: var(--beige);
}
.recipe-hero-photo img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
}
.recipe-head {
  padding-right: 10px;
}
.recipe-head .cat {
  display: inline-block;
  margin-bottom: 10px;
  font: 700 .8rem var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7b4d62;
  text-decoration: none;
}
.recipe-head h1 {
  margin: 0 0 22px;
  color: #5f3950;
  font: 400 clamp(2.5rem, 4.1vw, 5rem)/1.05 Georgia, serif;
  letter-spacing: -.05em;
}
.recipe-kicker {
  margin: 0 0 18px;
  color: #a36d7d;
  font: italic 400 clamp(1.8rem, 2.4vw, 3rem)/1.2 "Segoe Print", "Bradley Hand", cursive;
}
.byline { color: var(--muted); font-size: .9rem; }
.recipe-intro {
  margin: 0 0 22px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4d413f;
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 24px 0; }
.fact { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.fact b { display: block; font: 500 .75rem var(--font-head); color: var(--muted); }
.fact span { font: 600 1.05rem var(--font-head); }

@media (max-width: 760px) {
  .recipe-hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .recipe-hero-photo img {
    height: 360px;
  }
  .recipe-head {
    padding-right: 0;
  }
}
.recipe-box { border: 2px solid var(--green); border-radius: var(--radius); padding: 24px; margin: 28px 0; background: #fff; }
.recipe-box ul, .recipe-box ol { padding-left: 1.3em; margin: 0; }
.recipe-box li { margin-bottom: .7em; }
.tips-box { background: var(--cream); border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.tips-box ul { margin: 0; padding-left: 1.2em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tag-list li { background: var(--beige); border-radius: 999px; padding: 3px 12px; font-size: .8rem; }
.related { margin-top: 48px; }
.related .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------- page text (about, editorial, legal, contact) ---------- */
.page-banner { background: var(--cream); border-bottom: 1px solid var(--line); text-align: center; padding: 48px 0 40px; }
.page-banner p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.story-hero { background: #f3f1ef; padding: 54px 0 40px; }
.story-hero-inner { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.2fr); gap: 48px; align-items: center; }
.story-photo { overflow: hidden; border-radius: 18px; box-shadow: 0 18px 30px rgba(47,35,28,0.08); }
.story-photo img { width: 100%; height: 540px; object-fit: cover; display: block; }
.story-copy { padding-right: 12px; }
.story-copy h2 { margin: 0 0 18px; color: #5e3b4c; font: 400 clamp(2.4rem, 4vw, 5rem)/1.1 Georgia, serif; letter-spacing: -.04em; }
.story-kicker { margin: 0 0 18px; font: italic 400 clamp(1.8rem, 2vw, 2.8rem)/1.3 "Segoe Print", "Bradley Hand", cursive; color: #a76f84; }
.story-copy p { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.7; color: #4d4442; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.value { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

@media (max-width: 760px) {
  .story-hero { padding-top: 40px; }
  .story-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .story-photo img { height: 380px; }
  .story-copy { padding-right: 0; }
  .story-copy h2 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
}
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--cream); font-size: .92rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 6px; }
.notice { background: #fff8e6; border: 1px solid #f0d98b; border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font: 600 .9rem var(--font-head); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #cfc6b8; border-radius: 8px; font: inherit; background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.error-text { color: #b3261e; font-size: .85rem; min-height: 1.2em; margin: 4px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form-status { padding: 12px 16px; border-radius: 8px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f3ea; border: 1px solid #9fc7a8; color: #1f4a2b; }
.form-status.err { background: #fdecea; border: 1px solid #e6a8a3; color: #8a1c14; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }

/* ---------- modal (newsletter + cookie settings) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 20, .55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 400; overflow-y: auto; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; padding: 30px 26px 26px; position: relative; max-height: 100%; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 10px; }
.toggle-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.toggle-row input { width: 20px; height: 20px; flex: none; }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.18); border-radius: 14px; padding: 18px 20px; z-index: 350; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { padding: 8px 18px; font-size: .85rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 44px 0 20px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .layout, .contact-grid, .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .toc { position: static; }
  .signup-inner, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav { width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; text-align: center; }
  .ad-leaderboard { width: 100%; max-width: 728px; }
  .tile-grid { flex: 0 0 auto; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(190px, 55vw, 280px)); gap: 10px; }
  .tile { min-height: 0; }
  .latest-section .layout { grid-template-columns: 1fr; }
  .latest-section .sidebar { grid-template-columns: 1fr; }
  .popular-section { padding-top: 74px; }
  .popular-tabs { max-width: 100%; width: max-content; }
  .popular-tab { padding: 11px 12px; font-size: .68rem; }
  .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .category-shortcuts { justify-content: flex-start; margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
  .finder-bottom { flex-wrap: wrap; }
  .hero .search-box { flex: 1 1 100%; }
  .finder-or { display: none; }
}
@media (max-width: 440px) {
  .hero-tagline { font-size: .72rem; letter-spacing: .14em; }
  .hero-tagline em { display: block; margin-top: 2px; font-size: 1.45rem; }
  .tile-grid { grid-template-rows: repeat(2, 190px); }
  .tile span { font-size: .56rem; padding: 5px 9px; }
  .chip-image { width: 80px; height: 80px; }
  .category-shortcuts .chip { flex-basis: 92px; }
  .latest-section .card { gap: 11px; }
  .latest-section .card-img { flex-basis: 108px; width: 108px; height: 108px; }
  .latest-section .card h3 { font-size: 1.02rem; }
  .latest-section .card p { font-size: .78rem; }
  .popular-tabs { width: 100%; }
  .popular-tab { flex: 1 1 0; padding: 10px 5px; font-size: .56rem; letter-spacing: .03em; white-space: normal; }
  .popular-section .card-badge { max-width: calc(100% - 18px); padding: 8px 10px; font-size: .57rem; }
  .btn-all-recipes { flex: 1 1 auto; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- recipe archive ---------- */
.recipe-archive-page { background: #f2f2f2; }
.recipe-archive-page .recipe-archive-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0 24px;
  border: 0;
  background: linear-gradient(#75405f 0 30px, #f2f2f2 30px);
}
.recipe-archive-page .recipe-archive-banner::before {
  position: absolute;
  z-index: -1;
  top: 12px;
  left: 50%;
  width: min(844px, calc(100% - 40px));
  height: 85px;
  background: #fff;
  content: "";
  transform: translateX(-50%);
}
.recipe-archive-page .recipe-archive-banner h1 {
  margin: 0 0 8px;
  color: #75405f;
  font: 700 clamp(1.35rem, 2.3vw, 1.65rem)/1.2 var(--font-head);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.recipe-archive-page .recipe-archive-banner h1::before {
  margin-right: 10px;
  color: #efb94f;
  content: "♡";
  font: 400 1.5em/0 Georgia, serif;
  vertical-align: -.08em;
}
.recipe-archive-page .recipe-archive-banner p {
  margin: 0;
  color: #655b60;
  font: 400 .95rem/1.5 Georgia, "Times New Roman", serif;
}
.recipe-archive-page .recipe-archive-finder {
  padding: 12px 0 22px;
  border: 0;
  background: #f2f2f2;
}
.recipe-archive-page .finder-inner {
  justify-content: center;
  gap: 14px;
}
.recipe-archive-page .search-box {
  flex: 1 1 240px;
  max-width: 300px;
}
.recipe-archive-page .search-box input {
  padding: 9px 14px;
  border-color: #d8d2d5;
  border-radius: 0;
  font-size: .86rem;
}
.recipe-archive-page .chips {
  justify-content: center;
  gap: 6px;
}
.recipe-archive-page .chip {
  padding: 6px 11px;
  border-color: #ded9dc;
  border-radius: 0;
  font-size: .72rem;
}
.recipe-archive-page .chip[aria-pressed="true"] {
  border-color: #75405f;
  background: #75405f;
}
.recipe-archive-section { padding: 8px 0 48px; }
.recipe-result-count {
  margin: 0 0 12px;
  color: #6b6468;
  font: 600 .72rem/1.4 var(--font-head);
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}
.recipe-archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}
.recipe-archive-grid .card {
  position: relative;
  min-width: 0;
  min-height: 240px;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
}
.recipe-archive-grid .card-img {
  flex: 0 0 32%;
  width: 32%;
  min-height: 240px;
  aspect-ratio: auto;
  border-radius: 0;
}
.recipe-archive-grid .card-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 20px 15px;
}
.recipe-archive-grid .card-badge,
.recipe-archive-grid .card-meta { display: none; }
.recipe-archive-grid .card h3 {
  margin: 0 0 10px;
  font: 700 clamp(1.05rem, 1.6vw, 1.35rem)/1.3 Georgia, "Times New Roman", serif;
}
.recipe-archive-grid .card h3 a { color: #211d1f; }
.recipe-archive-grid .card p {
  margin: 0 0 14px;
  color: #5e585b;
  font: 400 .92rem/1.5 Georgia, "Times New Roman", serif;
}
.recipe-archive-grid .read-more {
  margin-top: auto;
  padding: 9px 17px;
  background: #75405f;
  color: #fff;
  font: 700 .72rem/1.2 var(--font-head);
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.recipe-archive-grid .read-more:hover { background: #5e334b; }
.archive-collections {
  margin-top: 32px;
  padding: 20px 22px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.archive-collections h2 {
  margin: 0 0 12px;
  color: #75405f;
  font: 600 .85rem/1.4 var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.archive-collections .collection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.archive-collections .collection-list li {
  border: 0;
}
.archive-collections .collection-list a {
  gap: 6px;
  padding: 4px 0;
  font: 400 .86rem Georgia, "Times New Roman", serif;
}
@media (max-width: 760px) {
  .recipe-archive-page .recipe-archive-finder { padding-top: 0; }
  .recipe-archive-page .finder-inner { align-items: stretch; }
  .recipe-archive-page .search-box { flex-basis: 100%; max-width: none; }
  .recipe-archive-page .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 7px; }
  .recipe-archive-page .chip { flex: 0 0 auto; }
  .recipe-archive-grid { grid-template-columns: 1fr; }
  .recipe-archive-grid .card-img { flex-basis: 34%; width: 34%; }
}
@media (max-width: 440px) {
  .recipe-archive-page .recipe-archive-banner { padding-top: 38px; }
  .recipe-archive-grid .card { min-height: 205px; }
  .recipe-archive-grid .card-img { min-height: 205px; }
  .recipe-archive-grid .card-content { padding: 13px 13px 12px; }
  .recipe-archive-grid .card h3 { font-size: 1.02rem; }
  .recipe-archive-grid .card p { font-size: .82rem; line-height: 1.4; }
  .recipe-archive-grid .read-more { padding: 8px 10px; font-size: .62rem; }
  .archive-collections { padding: 16px; }
}
