:root {
  color-scheme: light;
  --ink: #183638;
  --muted: #697d7b;
  --teal: #0b3538;
  --teal-soft: #dcefe8;
  --mint: #a8e6c1;
  --mint-strong: #4c9b78;
  --paper: #f5f8f5;
  --card: #ffffff;
  --line: #e2ebe5;
  --shadow: 0 16px 42px rgba(18, 53, 50, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 2%, rgba(168, 230, 193, .25), transparent 27rem),
    linear-gradient(180deg, #edf5ef 0, var(--paper) 26rem);
}

button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible + .food-content {
  outline: 3px solid #65b78f;
  outline-offset: 3px;
}

.app-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 max(38px, env(safe-area-inset-bottom));
}

.topbar, .brand, .progress-heading, .list-heading, .week-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar { margin-bottom: 35px; }
.brand { justify-content: flex-start; gap: 12px; }
.brand-icon { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 5px 14px rgba(11, 53, 56, .18); }
.eyebrow { margin: 0 0 5px; color: var(--mint-strong); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--teal); font-size: 21px; font-weight: 850; letter-spacing: -.045em; }
h2 { margin-bottom: 0; color: var(--teal); font-size: clamp(22px, 4vw, 30px); letter-spacing: -.045em; line-height: 1.1; }

.install-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--teal);
  background: var(--mint);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.install-btn[hidden] { display: none; }

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}
.intro-copy { max-width: 560px; }
.intro h2 { max-width: 520px; font-size: clamp(32px, 7vw, 52px); }
.intro-text { max-width: 470px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.week-chip {
  min-width: 155px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid rgba(76, 155, 120, .16);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .72);
}
.week-chip-label { color: var(--muted); font-size: 11px; font-weight: 750; }
.week-chip strong { color: var(--teal); font-size: 14px; }

.progress-card {
  margin-bottom: 32px;
  border: 1px solid rgba(76, 155, 120, .12);
  border-radius: 23px;
  padding: 22px 24px 19px;
  color: #f4fbf5;
  background: var(--teal);
  box-shadow: var(--shadow);
}
.progress-heading { gap: 16px; margin-bottom: 16px; }
.progress-card .eyebrow { color: var(--mint); }
.progress-card h2 { color: white; font-size: 19px; }
.progress-value { flex: none; color: var(--mint); font-size: 17px; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mint); transition: width .25s ease; }
.progress-message { margin: 11px 0 0; color: rgba(244, 251, 245, .75); font-size: 12px; line-height: 1.4; }

.list-heading { align-items: flex-end; gap: 14px; margin-bottom: 15px; }
.list-heading h2 { font-size: 23px; }
.reset-note { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--muted); font-size: 12px; font-weight: 700; }
.reset-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-strong); }
.food-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

.food-item {
  display: flex;
  position: relative;
  min-height: 94px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 15px rgba(24, 54, 56, .035);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.food-item:hover { transform: translateY(-1px); border-color: #bddbc9; }
.food-item.is-checked { border-color: #91c9a6; background: #f0faf2; }
.food-checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; }
.food-checkmark {
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid #b7c9be;
  border-radius: 8px;
  color: transparent;
  background: white;
  font-size: 15px;
  font-weight: 900;
  transition: .18s ease;
}
.food-checkbox:checked + .food-checkmark { border-color: var(--mint-strong); color: var(--teal); background: var(--mint); }
.food-checkbox:focus-visible + .food-checkmark { outline: 3px solid #65b78f; outline-offset: 3px; }
.food-content { display: grid; gap: 4px; min-width: 0; }
.food-title { color: var(--ink); font-size: 14px; font-weight: 820; line-height: 1.25; }
.food-examples { color: var(--muted); font-size: 11px; line-height: 1.4; }
.food-item.is-checked .food-title { color: #386e58; }

.app-footer { display: grid; gap: 8px; margin-top: 25px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.app-footer p { margin: 0; }
.app-footer a { width: fit-content; color: #347e62; font-weight: 750; text-underline-offset: 3px; }
.storage-note { color: #86958c; }

@media (max-width: 620px) {
  .app-shell { width: min(100% - 24px, 520px); padding-top: max(16px, env(safe-area-inset-top)); }
  .topbar { margin-bottom: 25px; }
  .intro { display: block; }
  .intro h2 { max-width: 440px; }
  .week-chip { width: fit-content; min-width: 0; margin-top: 17px; padding: 10px 13px; }
  .progress-card { margin-bottom: 27px; border-radius: 20px; padding: 19px 18px 17px; }
  .list-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .food-list { grid-template-columns: 1fr; gap: 9px; }
  .food-item { min-height: 82px; border-radius: 16px; padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
