html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.7rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }

.nav-link { color: rgba(33, 28, 24, 0.75); }
.nav-link:hover, .nav-link.active { color: #a8622a; }

.link { font-weight: 700; color: #a8622a; }
.link:hover { color: #874c25; }

.section-title { font-family: Fraunces, Georgia, serif; font-size: 2rem; font-weight: 600; line-height: 1.2; }

.chip {
  border-radius: 9999px;
  border: 1px solid rgba(33, 28, 24, 0.15);
  background: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.chip:hover { border-color: #d6944f; }
.chip.active { background: #211c18; border-color: #211c18; color: #fbf6ee; }

.embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1.5rem; background: #211c18; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(33, 28, 24, 0.12); border-bottom: 1px solid rgba(33, 28, 24, 0.12); }
.facts > div { padding: 0.9rem 1.5rem 0.9rem 0; margin-right: 1.5rem; border-right: 1px solid rgba(33, 28, 24, 0.12); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #a8622a; }
.facts dd { margin-top: 0.15rem; font-family: Fraunces, Georgia, serif; font-size: 1.2rem; font-weight: 600; }

.recipe-heading { font-family: Fraunces, Georgia, serif; font-size: 1.85rem; font-weight: 600; }
.recipe-panel { background: #fff; border-radius: 1.5rem; padding: 1.75rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); outline: 1px solid rgba(33, 28, 24, 0.06); }

.scale-buttons { display: inline-flex; border-radius: 9999px; background: #f7e8d3; padding: 0.2rem; }
.scale-buttons button { border-radius: 9999px; padding: 0.3rem 0.75rem; font-size: 0.85rem; font-weight: 700; color: #6d3e23; }
.scale-buttons button.active { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.ingredient-group { margin: 1.5rem 0 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #a8622a; }
.ingredient-group:first-child { margin-top: 0; }
.ingredients li { border-bottom: 1px dashed rgba(33, 28, 24, 0.12); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients label { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.65rem 0; cursor: pointer; line-height: 1.5; }
.ingredients .tick { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: #c47a34; }
.ingredients .tick:checked + span { color: rgba(33, 28, 24, 0.4); text-decoration: line-through; }
.qty { font-weight: 700; }
.qty.scaled { color: #a8622a; }

.steps { counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 0 1.75rem 3.5rem; font-size: 1.075rem; line-height: 1.75; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 9999px;
  background: #211c18;
  color: #fbf6ee;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
}

.prose-recipe { font-size: 1.075rem; line-height: 1.8; color: rgba(33, 28, 24, 0.85); }
.prose-recipe > * + * { margin-top: 1.1rem; }
.prose-recipe h2, .prose-recipe h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; color: #211c18; }
.prose-recipe h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose-recipe h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.prose-recipe a { color: #a8622a; text-decoration: underline; text-underline-offset: 3px; }
.prose-recipe ul { list-style: disc; padding-left: 1.4rem; }
.prose-recipe ol { list-style: decimal; padding-left: 1.4rem; }
.prose-recipe blockquote { border-left: 4px solid #e3b37c; padding-left: 1rem; font-style: italic; }
.prose-recipe img, .prose-recipe video { width: 100%; border-radius: 1.25rem; }
.prose-recipe figcaption { margin-top: 0.5rem; text-align: center; font-size: 0.9rem; color: rgba(33, 28, 24, 0.6); }

@media print {
  .no-print, footer, header { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  #recipe { padding: 0; max-width: none; }
  .recipe-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; margin-top: 1rem; }
  .recipe-panel { position: static; box-shadow: none; outline: 1px solid #ccc; padding: 1rem; }
  .ingredients .tick { display: none; }
  .steps li { padding-bottom: 0.75rem; break-inside: avoid; }
  .steps li::before { background: #fff; color: #000; border: 1px solid #000; }
  h1 { font-size: 24pt !important; }
}
