@font-face {
  font-family: "Fraunces Margin";
  src: url("../fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Margin";
  src: url("../fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Margin";
  src: url("../fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #222;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --red: #c73a17;
  --gold: #e0a106;
  --paper: #fff;
  --page: #f6f6f6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader Margin", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--red);
  color: #fff;
  padding: 0.4rem 0.6rem;
}
.skip:focus { top: 0.4rem; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 6vw;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  color: var(--red);
  font-family: "Fraunces Margin", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.topnav a:hover { color: var(--red); }

.sheet {
  width: min(46rem, calc(100% - 2rem));
  margin: 1.2rem auto 3rem;
}
.crumb {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.crumb a { color: var(--muted); }
h1 {
  margin: 0 0 0.45rem;
  font-family: "Fraunces Margin", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.8rem;
}
.rating-num { font-size: 1.35rem; }
.rating-row a { color: var(--ink); font-size: 0.98rem; }
.starbar {
  position: relative;
  display: inline-block;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.starbar-base { color: #ddd; }
.starbar-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  width: var(--fill);
  color: var(--gold);
}
.summary { margin: 0 0 0.7rem; font-size: 1.15rem; }
.byline { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; }
.byline strong { color: var(--ink); }
.byline span { display: block; }

.hero-shot { margin: 0 0 1rem; }
.hero-shot img { width: 100%; height: auto; }

.statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 0.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statbar div { padding: 0.75rem 0.4rem; text-align: center; }
.statbar div + div { border-left: 1px solid var(--line); }
.statbar dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.statbar dd { margin: 0.15rem 0 0; font-weight: 600; }
.jump { margin: 0 0 1.4rem; }

h2 {
  margin: 1.6rem 0 0.6rem;
  font-family: "Fraunces Margin", Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
h2 span { color: var(--muted); font-size: 1rem; font-weight: 400; }
.yield { margin: 0 0 0.6rem; color: var(--muted); }
.benefits, .tips { margin: 0; padding: 0; list-style: none; }
.benefits li, .tips li {
  margin: 0 0 0.55rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--red);
}

.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { border-bottom: 1px solid var(--line); }
.ingredients label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  cursor: pointer;
}
.ingredients input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--red); }
.ingredients input:checked + span { color: #888; text-decoration: line-through; }

.directions { margin: 0; padding-left: 1.4rem; }
.directions li { margin: 0 0 0.85rem; padding-left: 0.25rem; }

.nutrition { width: 100%; max-width: 22rem; border-collapse: collapse; }
.nutrition th, .nutrition td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.nutrition th { width: 5rem; font-size: 1.25rem; }
.nutrition-note { color: var(--muted); font-size: 0.95rem; }
.made-line { font-weight: 600; }

.reviews { list-style: none; margin: 0; padding: 0; }
.reviews li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.review-name { margin: 0 0 0.2rem; font-weight: 600; }
.reviews p:last-child { margin: 0.35rem 0 0; }

.more-grid, .index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.recipe-card {
  color: inherit;
  text-decoration: none;
  display: block;
}
.recipe-card img { width: 100%; height: 9.5rem; object-fit: cover; background: var(--page); }
.card-title {
  display: block;
  margin-top: 0.4rem;
  font-family: "Fraunces Margin", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.2;
}
.card-meta { display: flex; gap: 0.4rem; align-items: center; color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }

.index-wrap { width: min(68rem, calc(100% - 2rem)); margin: 1.4rem auto 3rem; }
.index-wrap h1 { margin-bottom: 1rem; }
.index-grid { grid-template-columns: repeat(3, 1fr); }
.index-grid .recipe-card img { height: 12rem; }

.sitefoot {
  border-top: 1px solid var(--line);
  padding: 1.2rem 6vw 2rem;
  color: var(--muted);
}
.sitefoot a { color: var(--muted); }
.sitefoot p { margin: 0; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@media (max-width: 760px) {
  .statbar { grid-template-columns: 1fr 1fr; }
  .statbar div:nth-child(3) { border-left: 0; }
  .statbar div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .more-grid, .index-grid { grid-template-columns: 1fr; }
  .index-grid .recipe-card img, .recipe-card img { height: 14rem; }
  .topbar { padding-left: 1rem; padding-right: 1rem; }
}
