:root {
  --paper: #FBF8F3;
  --ink: #1F2A24;
  --terracotta: #C45C26;
  --slate: #4A5B6A;
  --wash: #F4E6D8;
  --line: #E6DED2;
  --muted: #5C675F;
  --white: #FFFFFF;
  --black: #111111;
  --radius: 8px;
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --accent: var(--terracotta);
  --max: 1240px;
}
html[data-locale="us"] { --accent: var(--slate); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--muted); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0 16px;
  border-bottom: 1px solid transparent;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  background: var(--black);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.mark:hover { color: #fff; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { padding-bottom: 4px; }
.nav a[aria-current="page"],
.nav a.is-active {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 500;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.locale { display: flex; align-items: center; gap: 8px; }
.locale button {
  padding-bottom: 3px;
  color: var(--muted);
}
.locale button[aria-pressed="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 500;
}
.locale .pipe { color: #C9C1B5; }
.lang-dd { position: relative; }
.lang-dd > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
}
.lang-dd .menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 140px;
  padding: 6px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(31,42,36,0.08);
}
.lang-dd.open .menu { display: block; }
.lang-dd .menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
}
.lang-dd .menu button:hover { background: var(--wash); }
.guest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(0.95); }
.btn-ghost {
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home hero */
.home-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.05fr) minmax(360px, 1.15fr);
  gap: 36px;
  padding: 36px 0 20px;
  align-items: start;
}
.hero-copy h1 {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.08;
  margin: 8px 0 14px;
}
.hero-copy p.lede {
  font-size: 16px;
  color: var(--ink);
  max-width: 28ch;
  margin: 0 0 22px;
}
.leftover {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0 28px;
  font-size: 14px;
}
.leftover svg { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.cite-line { font-size: 12px; color: var(--muted); margin-top: 8px; }

.thali-wrap { position: relative; padding-top: 28px; }
.thali-wrap img.thali {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 6px;
}
.callout {
  position: absolute;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.callout.dal { top: 8px; left: 8%; }
.callout.chana { top: 8px; right: 6%; }
.callout::after {
  content: "";
  display: block;
  width: 54px;
  border-bottom: 1.5px dashed var(--accent);
  margin-top: 4px;
}
.callout.chana::after { margin-left: auto; }
html[data-locale="us"] .thali-in { display: none; }
html[data-locale="in"] .thali-us { display: none; }
html[data-locale="us"] .thali-us { display: block; }
html[data-locale="in"] .thali-in { display: block; }

/* Plan panel */
.plan-panel { padding-top: 4px; }
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  font-size: 14px;
}
.tabs button, .tabs a {
  padding: 8px 0 10px;
  color: var(--muted);
}
.tabs button[aria-selected="true"], .tabs a[aria-selected="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 500;
}
.tab-panel { display: none; }
.tab-panel.is-on { display: block; }
.panel-h {
  font-size: 22px;
  margin: 0 0 6px;
}
.week-meta { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.week-cell { min-width: 0; }
.week-cell .d {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.week-cell .m {
  font-size: 12px;
  color: var(--accent);
  line-height: 1.35;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 22px;
}
.prep-item { text-align: center; }
.prep-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: #eee;
}
.prep-item p { font-size: 11px; line-height: 1.35; margin: 0; color: var(--ink); }

.festival-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wash);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 8px 0 24px;
  font-size: 14px;
}
.festival-bar .k { color: var(--accent); font-weight: 500; }
.festival-bar svg { margin-left: auto; width: 16px; height: 16px; }

.yogurt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 10px;
}
.yogurt > div {
  padding: 0 12px;
  border-right: 1px solid var(--line);
}
.yogurt > div:first-child { padding-left: 0; }
.yogurt > div:last-child { border-right: 0; padding-right: 0; }
.yogurt img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.yogurt h4 { font-family: var(--sans); font-size: 13px; margin: 0 0 4px; font-weight: 600; }
.yogurt p { font-size: 12px; margin: 0; color: var(--muted); line-height: 1.4; }

/* Trust footer */
.trust-foot {
  margin-top: 48px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}
.trust-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.trust-col {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}
.trust-col:first-child { padding-left: 0; }
.trust-col:last-child { border-right: 0; padding-right: 0; }
.trust-col svg { color: var(--accent); width: 22px; height: 22px; margin-bottom: 10px; }
.trust-col h3 { font-family: var(--sans); font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.trust-col p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.trust-col a { color: var(--accent); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.site-end {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 32px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-end nav { display: flex; gap: 16px; }

/* Interior */
.page { padding: 36px 0 64px; }
.kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 12px; line-height: 1.15; }
.deck { font-size: 18px; max-width: 62ch; margin: 0 0 28px; color: var(--ink); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 26px; margin: 32px 0 10px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.wash {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}
.wash h3, .wash h4 { margin-top: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: block;
}
.card:hover { border-color: var(--accent); color: inherit; }
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}
.chip.src { border-color: var(--accent); color: var(--accent); }
.chip.warn { background: var(--wash); border-color: transparent; color: var(--ink); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
}
table.data th, table.data td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { font-weight: 500; color: var(--muted); font-size: 12px; }

.form label { display: block; font-size: 13px; margin: 12px 0 4px; font-weight: 500; }
.form input, .form textarea, .form select {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.form textarea { min-height: 120px; }
.form .note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ok { color: #2A5A3A; font-size: 14px; margin-top: 12px; }

/* Tools */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.builder-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.food-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.food-pick button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  background: var(--white);
}
.food-pick button.on { border-color: var(--accent); background: var(--wash); }
.plate-sum { margin-top: 16px; }
.cal-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.cal-card {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.cal-card h3 { font-family: var(--sans); font-size: 14px; margin: 0 0 4px; }
.cal-card p { font-size: 12px; margin: 0; color: var(--muted); }

.hi-label { display: none; }
html[data-lang="hi"] .hi-label { display: inline; }

.crisis {
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  margin: 20px 0;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .home-grid, .trust-cols, .week-grid, .prep-grid, .yogurt, .tool-grid { grid-template-columns: 1fr 1fr; }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); padding: 16px 28px 24px; z-index: 30; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; }
  .site-header { flex-wrap: wrap; }
  .trust-col { border-right: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .yogurt > div { border-right: 0; padding: 0 0 16px; }
}
@media (min-width: 781px) { .burger { display: none; } }
@media (max-width: 520px) {
  .home-grid, .prep-grid, .yogurt, .tool-grid, .week-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}

/* CSS katori — used where dal.jpg was a Marvin Ortiz Mora still */
.css-plate {
  display: block;
  background:
    radial-gradient(circle at 50% 46%, #E8C15A 0 22%, #D4A017 23% 30%, #C45C26 31% 36%, #C9B89A 37% 46%, #EDE6DA 47% 100%);
  box-shadow: inset 0 0 0 1px rgba(31,42,36,0.08);
}
.css-plate.dal-plate {
  width: 100%;
  max-width: 420px;
  height: 240px;
  border-radius: 8px;
  margin: 0 0 20px;
}
.prep-item .css-plate {
  width: 72px;
  height: 72px;
  max-width: 72px;
  border-radius: 50%;
  margin: 0 auto 8px;
}
.card .css-plate {
  width: 100%;
  max-width: none;
  height: 140px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.yogurt-home { padding: 8px 0 36px; }
.yogurt-home .panel-h { margin-top: 8px; }

:focus { outline: 3px solid #C45C26; outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid #C45C26; outline-offset: 3px; }
.skip { position:absolute; left:-999px; top:0; background:#1F2A24; color:#FBF8F3; padding:8px 12px; z-index:99; }
.skip:focus { left:8px; top:8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
