/* Scoops & Dishes — soft cream, coral, mint */
:root {
  --cream: #fff8f0;
  --warm-white: #fffcf7;
  --coral: #e88c78;
  --coral-dark: #d4735f;
  --apricot: #f2b08c;
  --mint: #96ceb4;
  --mint-dark: #5aa08c;
  --text: #2d2a30;
  --text-soft: #5a555c;
  --border: #eadfd4;
  --shadow: 0 8px 28px rgba(90, 60, 50, 0.08);
  --shadow-sm: 0 4px 14px rgba(90, 60, 50, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --focus: 0 0 0 3px rgba(232, 140, 120, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  font-size: 1.05rem;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }

/* Focus visible — accessibility */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  box-shadow: var(--focus);
}
.chip:focus-visible,
.jump-link:focus-visible,
.print-btn:focus-visible,
.clear-checks:focus-visible,
.clear-search:focus-visible,
.back-to-top:focus-visible,
.back-btn:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible {
  border-radius: 999px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 1000;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
  color: #fff;
  outline-offset: 3px;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  min-height: 44px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--coral-dark); background: rgba(232, 140, 120, 0.1); text-decoration: none; }

/* Ad slots */
.ad-slot {
  background: repeating-linear-gradient(
    -45deg,
    #f5ebe3,
    #f5ebe3 8px,
    #f0e4da 8px,
    #f0e4da 16px
  );
  border: 1px dashed #d4c4b5;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1rem auto;
}
.ad-slot::before { content: "Advertisement"; }
.ad-leaderboard { max-width: var(--max); height: 90px; margin: 0.75rem auto; padding: 0 1rem; }
.ad-leaderboard .ad-slot { height: 90px; margin: 0; }
.ad-infeed { min-height: 120px; grid-column: 1 / -1; }
.ad-sidebar { min-height: 250px; width: 100%; }
.ad-midcontent { min-height: 100px; max-width: 100%; margin: 1.5rem 0; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.15rem 3rem; }
.hero {
  position: relative;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: var(--apricot);
}
.hero .hero-copy.wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 100%;
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.25rem 1.75rem;
  background: linear-gradient(transparent 20%, rgba(45,42,48,0.55) 100%);
  color: #fff;
}
.hero-copy h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}
.hero-copy p {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  opacity: 0.95;
  max-width: 36rem;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.25rem 0 1.5rem;
}
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 2.7rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--warm-white);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}
.search-wrap input:focus { border-color: var(--coral); }
.search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
  pointer-events: none;
}
.clear-search {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clear-search:hover { background: rgba(232, 140, 120, 0.15); color: var(--coral-dark); }
.clear-search[hidden] { display: none; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  border: 2px solid var(--border);
  background: var(--warm-white);
  color: var(--text-soft);
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.15s ease;
}
.chip:hover { border-color: var(--apricot); color: var(--text); }
.chip.active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.results-meta {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

/* Grid */
.layout-home {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .layout-home {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
  .sidebar { position: sticky; top: 5.5rem; }
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(90, 60, 50, 0.12);
  text-decoration: none;
}
.card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: #f0e4da;
}
.card-body { padding: 0.95rem 1rem 1.1rem; }
.card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mint-dark);
  background: rgba(150, 206, 180, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.card-meta {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 0;
}
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-soft);
  background: var(--warm-white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.empty img { width: 80px; margin: 0 auto 0.75rem; opacity: 0.85; }

/* Breadcrumbs */
.breadcrumbs {
  margin: 1rem 0 0.25rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--border);
  font-weight: 700;
}
.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.breadcrumbs a:hover { color: var(--coral-dark); text-decoration: underline; }
.breadcrumbs [aria-current="page"] span { color: var(--text); font-weight: 600; }

/* Recipe toolbar — jump links + print */
.recipe-toolbar {
  position: sticky;
  top: 3.6rem;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
  padding: 0.5rem;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
}
.jump-link,
.print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid var(--border);
  background: var(--warm-white);
  color: var(--text-soft);
  cursor: pointer;
}
.jump-link:hover,
.print-btn:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
  text-decoration: none;
}
.print-btn {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.print-btn:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: #fff;
}

/* Recipe page */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--text-soft);
  margin: 0.5rem 0 0.25rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: 999px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  text-decoration: none;
}
.back-btn:hover { color: var(--coral-dark); border-color: var(--coral); text-decoration: none; }
.recipe-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  background: var(--warm-white);
}
.recipe-hero img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.recipe-title-block { padding: 1.15rem 1.25rem 1.35rem; }
.recipe-title-block h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}
.chips-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.meta-chip {
  background: rgba(150, 206, 180, 0.22);
  color: var(--text);
  border: 1px solid rgba(90, 160, 140, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
.recipe-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .recipe-layout { grid-template-columns: 1fr 1.15fr; align-items: start; }
}
.panel {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.panel-head h2 { margin: 0; }
.panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.panel h2 .doodle { width: 28px; height: 28px; }
.clear-checks {
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
}
.clear-checks:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
}
.ingredients {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ingredients li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.ingredients li:last-child { border-bottom: none; }
.ingredients input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--mint-dark);
  flex-shrink: 0;
  cursor: pointer;
}
.ingredients label {
  cursor: pointer;
  flex: 1;
  min-height: 1.4rem;
  padding: 0.1rem 0;
}
.ingredients li.done label {
  text-decoration: line-through;
  color: var(--text-soft);
  opacity: 0.75;
}
.method {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.method li {
  position: relative;
  padding: 0.75rem 0 0.75rem 3rem;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.method li:last-child { border-bottom: none; }
.method li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tip {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  background: rgba(242, 176, 140, 0.2);
  border-left: 4px solid var(--apricot);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.source {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  opacity: 0.85;
}
.source a { color: var(--text-soft); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--warm-white);
  color: var(--coral-dark);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back-to-top:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.back-to-top[hidden] { display: none; }

/* About */
.about-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 560px;
  margin: 2rem auto;
  text-align: center;
}
.about-card img { width: 96px; margin: 0 auto 1rem; border-radius: 50%; }
.about-card p { color: var(--text-soft); font-size: 1.1rem; }

.about-card.prose-card { max-width: 640px; text-align: center; }
.about-card.prose-card.left { text-align: left; }
.about-card.prose-card h2 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
}
.about-card .muted { font-size: 0.92rem; opacity: 0.85; margin-top: 1rem; }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--coral-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.15rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.92rem;
  background: rgba(255,252,247,0.7);
}
.site-footer .doodles {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.site-footer .doodles img { width: 36px; height: 36px; opacity: 0.85; }

/* Mobile tweaks */
@media (max-width: 600px) {
  .hero-img { max-height: 260px; }
  .hero-copy { padding: 1.1rem 1rem 1.25rem; }
  .recipe-toolbar {
    border-radius: var(--radius-sm);
    width: 100%;
    justify-content: stretch;
  }
  .jump-link, .print-btn { flex: 1; }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .ad-leaderboard { height: 60px; }
  .ad-leaderboard .ad-slot { height: 60px; }
}

/* Print */
@media print {
  .site-header,
  .ad-slot,
  .ad-leaderboard,
  .back-btn,
  .sidebar,
  .site-footer,
  .search-wrap,
  .chips,
  .controls,
  .recipe-toolbar,
  .back-to-top,
  .skip-link,
  .clear-checks,
  .breadcrumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .recipe-hero img { max-height: 220px; }
  .panel { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .method li::before { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* Contact page */
.contact-shell {
  max-width: 640px;
  margin: 1.75rem auto 2.5rem;
}
.contact-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}
.contact-hero img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  box-shadow: var(--shadow-sm);
  display: block;
}
.contact-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  color: var(--text);
}
.contact-hero p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.contact-form {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
}
.contact-form .field-message {
  clear: both;
  width: 100%;
}
.contact-form label,
.topic-fieldset legend {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
  color: var(--text);
  min-height: 48px;
  float: none;
  position: static;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.contact-form textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.5;
  border-radius: 18px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(232, 140, 120, 0.22);
}
.topic-fieldset {
  display: block;
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
}
.topic-fieldset legend {
  margin-bottom: 0.45rem;
  padding: 0;
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}
.topic-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin: 0;
}
.topic-chip input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
  min-height: 0;
}
.topic-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}
.topic-chip:hover span {
  border-color: var(--apricot);
  color: var(--text);
}
.topic-chip input:checked + span,
.topic-chip input:focus-visible + span {
  background: rgba(232, 140, 120, 0.18);
  border-color: var(--coral);
  color: var(--coral-dark);
  box-shadow: 0 0 0 3px rgba(232, 140, 120, 0.18);
}
.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-height: 50px;
  margin-top: 0.15rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #f09a86 0%, var(--coral) 55%, var(--coral-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(212, 115, 95, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-send:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn-send:active { transform: translateY(0); }
.form-note {
  margin: 0.15rem 0 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.form-note a { color: var(--coral-dark); font-weight: 600; }
.sent-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  margin-top: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.sent-note strong { font-size: 1.15rem; }
