@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --paper: #f7f6f0;
  --ink: #25392d;
  --muted: #7d8479;
  --line: #dde0d5;
  --green: #304b36;
  --lime: #dbe8aa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "Golos Text",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a3b96b;
  outline-offset: 4px;
}
header {
  height: 102px;
  max-width: 1400px;
  margin: auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font:
    800 36px Manrope,
    sans-serif;
  letter-spacing: -2px;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  color: #7a934a;
  margin-left: 5px;
}
nav {
  display: flex;
  gap: 26px;
  height: 100%;
  align-items: center;
}
nav button {
  height: 100%;
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
nav button.active {
  color: var(--ink);
}
nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--green);
  left: 0;
  right: 0;
}
nav b {
  background: #e7eadf;
  border-radius: 50%;
  padding: 3px 6px;
  font-size: 10px;
}
.profile {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 13px 19px;
}
.profile span {
  margin-left: 18px;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 0 5%;
}
.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5%;
  padding: 55px 0 44px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #7b866b;
}
h1 {
  font:
    500 clamp(32px, 3.8vw, 54px)/1.16 Manrope,
    sans-serif;
  letter-spacing: -2.5px;
  margin: 22px 0;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #73854a;
}
p {
  line-height: 1.8;
  color: var(--muted);
}
.primary {
  background: var(--green);
  color: white;
  border-radius: 9px;
  padding: 17px 22px;
  font-weight: 500;
  margin: 20px 0 12px;
}
.small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.hero {
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #c4cbb1;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, #172819a8);
}
.hero-label {
  position: absolute;
  bottom: 28px;
  left: 30px;
  z-index: 1;
  color: white;
}
.hero-label span {
  font-size: 9px;
  letter-spacing: 2px;
}
.hero-label strong {
  display: block;
  font: 400 32px/1.2 Georgia;
  margin-top: 12px;
}
.round {
  position: absolute;
  right: 20px;
  top: 20px;
  border-radius: 50%;
  background: var(--lime);
  padding: 24px 17px;
  transform: rotate(12deg);
  font-size: 12px;
  text-align: center;
  z-index: 1;
}
.summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.summary > div {
  padding: 0 26px;
  border-right: 1px solid var(--line);
}
.summary > div:last-child {
  border: 0;
}
.summary span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 9px;
}
.summary strong {
  font-size: 18px;
  font-weight: 500;
}
.summary i {
  font-style: normal;
  color: #a5af90;
  padding: 0 7px;
}
.workspace {
  padding-top: 46px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2 {
  font: 500 30px Manrope;
  margin: 9px 0 25px;
  letter-spacing: -1px;
}
.text-button {
  font-size: 12px;
  border-bottom: 1px solid #a1aa94;
  padding-bottom: 8px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 4px 0 24px;
}
.day {
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: 0.15s;
}
.day small {
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.day.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.day.active small {
  color: #c8d2bf;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 12px;
  overflow: hidden;
}
.card-image {
  height: 205px;
  position: relative;
  cursor: pointer;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card-image:hover img {
  transform: scale(1.025);
}
.meal-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #ffffffe8;
  border-radius: 20px;
  padding: 7px 11px;
  font-size: 10px;
}
.heart {
  position: absolute;
  right: 14px;
  top: 14px;
  background: #ffffffe8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
}
.card-body {
  padding: 20px;
}
.card h3 {
  font: 600 18px/1.4 Manrope;
  margin: 0 0 10px;
  min-height: 50px;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 14px;
}
.card-bottom {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.card-bottom button {
  font-size: 12px;
}
.tip {
  margin: 25px 0;
  background: #edf0e1;
  border-radius: 10px;
  padding: 19px 24px;
  color: #65734e;
  line-height: 1.7;
}
.list {
  max-width: 850px;
  margin: auto;
}
.shop-row {
  display: flex;
  align-items: center;
  padding: 17px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.shop-row input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}
.shop-row span {
  flex: 1;
}
.shop-row:has(input:checked) {
  opacity: 0.45;
  text-decoration: line-through;
}
.shop-row small {
  color: var(--muted);
}
footer {
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 32px 0;
}
footer .brand {
  font-size: 25px;
}
footer span {
  font-size: 11px;
  color: var(--muted);
}
footer small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.6;
}
dialog {
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  width: min(590px, 94vw);
  max-height: 90vh;
  padding: 34px;
}
dialog::backdrop {
  background: #17291c88;
  backdrop-filter: blur(5px);
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 28px;
  z-index: 2;
}
dialog h2 {
  padding-right: 20px;
}
dialog img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
dialog label {
  display: block;
  margin: 17px 0 8px;
  font-size: 12px;
}
dialog input[type="number"],
dialog select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
dialog ol {
  padding-left: 22px;
  line-height: 1.9;
}
dialog ul {
  padding-left: 20px;
  line-height: 1.8;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
}
.checks label {
  margin: 8px 0;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 10;
}
#toast.show {
  opacity: 1;
}
.empty {
  padding: 55px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 850px) {
  header {
    height: 80px;
    padding: 0 5%;
  }
  .brand {
    font-size: 29px;
  }
  nav {
    gap: 13px;
  }
  nav button {
    font-size: 11px;
  }
  .profile {
    font-size: 0;
    padding: 12px;
  }
  .profile span {
    font-size: 18px;
    margin: 0;
  }
  .intro {
    gap: 25px;
  }
  .hero {
    height: 320px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .summary > div {
    padding: 0 16px;
  }
  .summary strong {
    font-size: 15px;
  }
  .cards {
    gap: 12px;
  }
  .card-body {
    padding: 14px;
  }
  .card-image {
    height: 170px;
  }
  .card h3 {
    font-size: 16px;
  }
  .meta {
    gap: 8px;
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .intro {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
  .intro h1 {
    font-size: 39px;
  }
  .intro p br {
    display: none;
  }
  .hero {
    height: 230px;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }
  .summary > div:nth-child(2) {
    border: 0;
  }
  .days {
    gap: 5px;
  }
  .day {
    padding: 12px 6px;
    text-align: center;
  }
  .day small {
    font-size: 9px;
  }
  .day strong {
    font-size: 11px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-image {
    height: 230px;
  }
  .card h3 {
    min-height: 0;
    font-size: 20px;
  }
  .card-body {
    padding: 20px;
  }
  .workspace {
    padding-top: 30px;
  }
  .section-title .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  h2 {
    font-size: 25px;
  }
  .text-button {
    font-size: 10px;
  }
  .hero-label strong {
    font-size: 26px;
  }
  footer {
    flex-wrap: wrap;
    gap: 15px;
  }
  footer small {
    margin: 0;
    max-width: 100%;
  }
  .shop-row {
    padding: 15px 0;
    gap: 10px;
  }
  .shop-row small {
    font-size: 10px;
  }
  dialog {
    padding: 26px;
  }
}

.live-row {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.live-row label {
  display: block;
}
.live-row select {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
}
.live-row input {
  padding: 10px;
  width: 180px;
}
.live-row p {
  font-size: 12px;
}

.workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
}
.workflow b {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  margin-right: 7px;
}
.card-image img {
  object-position: center;
}
.live-row select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}
.live-row input {
  border: 1px solid var(--line);
  border-radius: 8px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.catalog-page {
  max-width: 960px;
  padding-top: 40px;
}
.catalog-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
  background: #fffefa;
}
.catalog-panel h2 {
  font-size: 23px;
}
.catalog-panel label {
  display: block;
  margin: 14px 0 8px;
}
.catalog-panel input,
.catalog-panel select {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  background: white;
}
.catalog-panel select,
#category-search {
  width: 100%;
}
.catalog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-actions .primary {
  margin: 0;
}
.catalog-actions #shop {
  width: 150px;
}
.catalog-panel p {
  font-size: 12px;
}
.live-row label > small {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.price-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  background: #fffefa;
}
.price-overview p {
  font-size: 12px;
  margin: 10px 0;
}
.price-overview strong {
  font-size: 15px;
}
.price-overview #catalog-message {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.recipe-price-source {
  font-size: 11px;
  line-height: 1.5;
  margin: 12px 0 0;
  color: var(--muted);
}
@media (max-width: 600px) {
  .price-overview {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }
}

.pricing-help {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}

.book-intro {
  margin-bottom: 24px;
}
.book-intro > p {
  max-width: 850px;
}
.book-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
}
.book-filters label {
  font-size: 12px;
}
.book-filters input,
.book-filters select,
.salad-picker select {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-width: 0;
}
.salad-picker {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.salad-picker h3 {
  margin-top: 0;
}
.salad-picker p {
  font-size: 12px;
}
.salad-picker label {
  font-size: 12px;
}
.salad-card .card-image {
  height: 180px;
}
#recipe-count {
  font-size: 12px;
}
@media (max-width: 850px) {
  header {
    flex-wrap: wrap;
    height: auto;
    min-height: 90px;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    height: 40px;
  }
  nav button {
    font-size: 12px;
  }
  .book-filters {
    grid-template-columns: 1fr 1fr;
  }
  .book-filters label:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .book-filters,
  .salad-picker {
    grid-template-columns: 1fr;
  }
  .book-filters label:first-child {
    grid-column: auto;
  }
  .salad-picker {
    padding: 16px;
  }
  .salad-card .card-image {
    height: 220px;
  }
}

.book-more {
  text-align: center;
  margin: 20px 0;
}
.image-notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 35px;
  background: #e9ecdf;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  z-index: 0;
}
.card-image .heart,
.card-image .meal-tag {
  z-index: 1;
}
.book-more p {
  font-size: 12px;
}
.book-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.book-filters label:first-child {
  grid-column: span 2;
}
@media (max-width: 850px) {
  .book-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-filters label:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .book-filters {
    grid-template-columns: 1fr;
  }
  .book-filters label:first-child {
    grid-column: auto;
  }
}

.admin-entry {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.admin-entry:hover {
  color: var(--ink);
}
.login-page {
  max-width: 620px;
  padding-top: 48px;
  padding-bottom: 70px;
}
.login-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffefa;
}
.login-card h1 {
  font-size: 42px;
}
.login-card label {
  display: block;
  margin: 20px 0 9px;
  font-size: 13px;
}
.login-card input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  min-width: 0;
}
.password-field {
  display: flex;
  gap: 8px;
  align-items: center;
}
.password-field button {
  font-size: 12px;
  padding: 10px;
}
.login-card .primary {
  width: 100%;
}
.login-error {
  color: #943a31;
  background: #faece7;
  border-radius: 8px;
  padding: 12px;
}
.admin-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.admin-session {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.admin-actions .profile {
  font-size: 13px;
}
.login-card .small {
  line-height: 1.7;
}
@media (max-width: 850px) {
  .admin-entry {
    margin-left: auto;
  }
  .admin-actions {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .login-page {
    padding-top: 24px;
  }
  .login-card {
    padding: 22px;
  }
  .login-card h1 {
    font-size: 36px;
  }
  header .profile#settings {
    max-width: 48px;
  }
  .admin-entry {
    font-size: 11px;
  }
}

.admin-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  gap: 20px;
}
.admin-summary span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.admin-summary strong {
  font-size: 17px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .admin-summary {
    grid-template-columns: 1fr 1fr;
  }
  .admin-summary div:last-child {
    grid-column: 1/-1;
  }
}

a.text-button {
  color: var(--ink);
  text-decoration: none;
}
.admin-session {
  margin-bottom: 24px;
}
