:root{
  --cream:#f1eada;
  --rust:#c35943;
  --slate:#475a61;
  --paper:#fffdf8;
  --line:rgba(71,90,97,.18);
  --soft:rgba(195,89,67,.10);
}
*{box-sizing:border-box}
html{background:var(--cream)}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--cream);
  color:var(--slate);
  line-height:1.55;
}
a{color:inherit}
.sitebar{
  position:sticky;
  top:0;
  z-index:20;
  border-bottom:1px solid var(--line);
  background:rgba(241,234,218,.96);
  backdrop-filter:blur(10px);
}
.sitebar__inner{
  width:min(960px,calc(100% - 28px));
  margin:auto;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  font-weight:800;
  letter-spacing:-.02em;
  text-decoration:none;
}
.app-link{
  text-decoration:none;
  background:var(--rust);
  color:var(--paper);
  padding:10px 14px;
  border-radius:10px;
  font-size:.9rem;
  font-weight:750;
  white-space:nowrap;
}
main{
  width:min(960px,calc(100% - 28px));
  margin:0 auto;
  padding:42px 0 72px;
}
.hero{
  max-width:760px;
  margin:0 auto 30px;
  text-align:center;
}
.kicker{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(71,90,97,.08);
  font-size:.86rem;
  font-weight:700;
}
.pill--rust{background:var(--soft);color:#93402f}
h1{
  margin:0;
  font-size:clamp(2.25rem,8vw,4.7rem);
  line-height:.98;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.meta{
  margin-top:22px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
.meta__item{
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,253,248,.52);
  padding:9px 12px;
  font-weight:650;
  font-size:.94rem;
}
.recipe-shop-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  max-width:100%;
  margin-top:18px;
  padding:12px 22px;
  border-radius:10px;
  background:var(--rust);
  color:var(--paper);
  font-weight:800;
  text-align:center;
  text-decoration:none;
}
.recipe-shop-link:hover{background:#a94b38}
.recipe-shop-link:focus-visible{outline:3px solid var(--slate);outline-offset:3px}
.grid{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:22px;
  align-items:start;
}
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:20px;
  padding:clamp(22px,4vw,34px);
  box-shadow:0 14px 38px rgba(71,90,97,.08);
}
h2{
  margin:0 0 20px;
  font-size:clamp(1.5rem,3vw,2rem);
  letter-spacing:-.025em;
}
.ingredients{
  list-style:none;
  padding:0;
  margin:0;
}
.ingredients li{
  display:grid;
  grid-template-columns:115px 1fr;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.ingredients li:last-child{border-bottom:0;padding-bottom:0}
.amount{font-weight:800;color:var(--rust)}
.ingredient-name{font-weight:650}
.note{
  display:block;
  margin-top:3px;
  color:#718087;
  font-size:.87rem;
}
.pantry{
  display:inline-flex;
  margin-top:4px;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(71,90,97,.08);
  font-size:.75rem;
  font-weight:700;
}
.steps{
  list-style:none;
  padding:0;
  margin:0;
  counter-reset:steps;
}
.steps li{
  counter-increment:steps;
  position:relative;
  padding:0 0 25px 52px;
}
.steps li:last-child{padding-bottom:0}
.steps li::before{
  content:counter(steps);
  position:absolute;
  left:0;
  top:-2px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--rust);
  color:var(--paper);
  font-weight:800;
}
.steps li:not(:last-child)::after{
  content:"";
  position:absolute;
  left:16px;
  top:36px;
  width:2px;
  height:calc(100% - 32px);
  background:var(--line);
}
.tip{
  margin-top:22px;
  padding:17px 18px;
  border-radius:14px;
  background:var(--soft);
  border:1px solid rgba(195,89,67,.18);
}
.tip strong{display:block;color:var(--rust);margin-bottom:3px}
.cta{
  margin-top:28px;
  background:var(--slate);
  color:var(--paper);
  border-radius:20px;
  padding:clamp(24px,5vw,38px);
  text-align:center;
}
.cta h2{color:inherit;margin-bottom:10px}
.cta p{max-width:620px;margin:0 auto 20px;color:rgba(255,253,248,.82)}
.cta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:12px 22px;
  border-radius:10px;
  background:var(--rust);
  color:var(--paper);
  font-weight:800;
  text-decoration:none;
}
.cta .cta__note{
  margin:8px auto 0;
  color:rgba(255,253,248,.82);
  font-size:.85rem;
  font-style:italic;
}
footer{
  width:min(960px,calc(100% - 28px));
  margin:auto;
  padding:0 0 34px;
  text-align:center;
  font-size:.84rem;
  color:#718087;
}
.load-error{
  width:min(620px,calc(100% - 28px));
  margin:40px auto;
  padding:22px;
  border:1px solid rgba(195,89,67,.24);
  border-radius:14px;
  background:var(--paper);
  text-align:center;
}
@media(max-width:760px){
  .sitebar__inner{min-height:58px}
  .brand{font-size:.95rem}
  .app-link{font-size:.82rem;padding:9px 11px}
  main{padding-top:30px}
  .grid{grid-template-columns:1fr}
  .ingredients li{grid-template-columns:92px 1fr}
}
