* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  padding: 40px 20px;
  color: #25332d;
  background: #f4f6ef;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
}

.container {
  width: min(100%, 980px);
  margin: 0 auto;
}

.pageHeader {
  margin-bottom: 28px;
  text-align: center;
}

.eyebrow,
.step {
  color: #64816f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  margin: 8px 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.intro {
  color: #64716a;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  padding: 24px;
  border: 1px solid #e5e9df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(38 55 44 / 6%);
}

.sectionHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

h2 {
  margin-top: 3px;
  font-size: 1.35rem;
}

.headingIcon {
  font-size: 1.7rem;
}

.hint {
  margin-bottom: 18px;
  color: #748078;
  font-size: 0.9rem;
}

.recipeSummary {
  margin-bottom: 12px;
  color: #64816f;
  font-size: 0.9rem;
  font-weight: 700;
}

.recipeList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.recipeOption {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f8f3;
  cursor: pointer;
  font-size: 0.9rem;
}

input:focus-visible {
  outline: 3px solid #a8cdb1;
  outline-offset: 2px;
}

.recipeOption input {
  width: 17px;
  height: 17px;
  accent-color: #547d60;
}

.shoppingSummary {
  margin-bottom: 14px;
  color: #64816f;
  font-size: 0.9rem;
  font-weight: 700;
}

.shoppingList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.shoppingList li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f6f8f3;
}

.shoppingList li > input[type="checkbox"] {
  flex: 0 0 17px;
}

.shoppingList li > input[type="text"] {
  min-width: 0;
  width: 100%;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font: inherit;
}

.shoppingList li > input[type="text"]:focus {
  border-color: #a8cdb1;
  background: #fff;
}

.shoppingList .removeItemButton {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  color: #735f58;
  background: #ece9e4;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
}

.addItemForm {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.addItemForm input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dce3da;
  border-radius: 7px;
  font: inherit;
}

.addItemForm button {
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #547d60;
  cursor: pointer;
  font: inherit;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.shoppingList input {
  width: 17px;
  height: 17px;
  accent-color: #547d60;
}

.shoppingList .isChecked input[type="text"] {
  color: #849087;
  text-decoration: line-through;
}

.footnote {
  margin-top: 18px;
  color: #89928b;
  font-size: 0.78rem;
  line-height: 1.6;
}

footer {
  margin-top: 20px;
  color: #748078;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 700px) {
  body {
    padding: 28px 14px;
  }

  .columns {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
  }

  .recipeList {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shoppingList {
    grid-template-columns: 1fr;
  }
}
