/* AI Kitchen theme and tools. Journal pages get body.theme-kitchen. */

body.theme-kitchen {
  --fork: #3ee07a;
  --fork-deep: #3ee07a;
  --fork-wash: rgba(62, 224, 122, 0.16);
  --iron: #9c9890;
  --steel: #9c9890;
  --graphite: #0c0d0b;
  --ink: #f3efe6;
  --white: #161714;
  --paper: #0c0d0b;
  --mist: rgba(243, 239, 230, 0.1);
  --line: rgba(243, 239, 230, 0.12);
  --live: #3ee07a;
  --ember: #e8b86d;
  --card: #161714;
  --stage-2: #141613;
  --display: "Sora", "Helvetica Neue", sans-serif;
  --sans: "Sora", "Helvetica Neue", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
body.theme-kitchen::before,
body.theme-kitchen::after { display: none; }

body.theme-kitchen .site-header {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom-color: var(--line);
}
body.theme-kitchen .wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
body.theme-kitchen .wordmark em {
  font-style: italic;
  color: var(--live);
  padding: 0 0.1em;
  font-weight: 400;
}
body.theme-kitchen .live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--fork-wash);
  color: var(--live);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
}
body.theme-kitchen .live-badge i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live);
  animation: tnt-pulse 2.2s ease-out infinite;
}
@keyframes tnt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 224, 122, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(62, 224, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 224, 122, 0); }
}
body.theme-kitchen .brand { text-decoration: none; display: flex; align-items: baseline; gap: 0.8rem; }
body.theme-kitchen .nav-links a { color: var(--steel); font-family: var(--sans); letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 0.9rem; }
body.theme-kitchen .nav-links a[aria-current="page"],
body.theme-kitchen .nav-links a:hover { color: var(--ink); }

body.theme-kitchen .panel,
body.theme-kitchen .card,
body.theme-kitchen .featured,
body.theme-kitchen .signup,
body.theme-kitchen .about-block,
body.theme-kitchen .bfcm-banner,
body.theme-kitchen .holiday-deals,
body.theme-kitchen .rest-plate {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
body.theme-kitchen .btn {
  background: var(--live);
  color: #0c0d0b;
  border: 0;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
body.theme-kitchen .btn.ghost,
body.theme-kitchen .btn.cook-launch + .ghost,
body.theme-kitchen a.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
body.theme-kitchen .chip:hover,
body.theme-kitchen .chip[aria-pressed="true"] {
  background: var(--fork-wash);
  color: var(--live);
  border-color: var(--live);
}
body.theme-kitchen .card-body h3,
body.theme-kitchen .featured-copy h2 {
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 500;
}
body.theme-kitchen .signup h2,
body.theme-kitchen .page-title,
body.theme-kitchen .hero h1 { font-family: var(--serif); font-weight: 500; }
body.theme-kitchen .signup-form input[type="email"] {
  background: #0c0d0b;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 12px;
}
body.theme-kitchen .signup-pref-pill {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 999px;
}
body.theme-kitchen .signup-pref-pill:has(input:checked) {
  background: var(--fork-wash);
  border-color: var(--live);
  color: var(--live);
}
body.theme-kitchen .signup-status[data-state="error"] { color: #ffb4a8; }
body.theme-kitchen .site-footer { color: var(--steel); }
body.theme-kitchen .follow-links a { color: var(--ink); }
body.theme-kitchen .recipe-hero img { width: 100%; height: auto; object-fit: cover; border-radius: 18px; }
body.theme-kitchen .cook { background: #0c0d0b; color: #f3efe6; }
body.theme-kitchen .shop { margin-top: 1.5rem; }
body.theme-kitchen .shop h2 { margin-top: 0; font-family: var(--serif); font-weight: 500; }
body.theme-kitchen .shop-list { list-style: none; padding: 0; margin: 0 0 0.6rem; }
body.theme-kitchen .shop-list li { margin: 0 0 0.55rem; }
body.theme-kitchen .shop-list a { color: var(--live); }
body.theme-kitchen .shop-fine { font-size: 0.85rem; color: var(--steel); }
body.theme-kitchen .shop-fine a { color: inherit; }

/* Homepage cinematic hero */
.k-hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.k-hero-slides,
.k-hero-slides img,
.k-hero-shade { position: absolute; inset: 0; }
.k-hero-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.k-hero-slides img.on { opacity: 1; }
.k-hero-shade {
  background:
    linear-gradient(180deg, rgba(12,13,11,0.25) 0%, rgba(12,13,11,0.18) 30%, rgba(12,13,11,0.84) 100%),
    linear-gradient(90deg, rgba(12,13,11,0.7) 0%, rgba(12,13,11,0.18) 55%, rgba(12,13,11,0.3) 100%);
  z-index: 1;
}
.k-hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 0 3.2rem;
  color: #f3efe6;
}
.k-hero .mono,
.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.k-kicker { color: var(--live); font-size: 0.7rem; margin-bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.k-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 14ch;
  margin: 0;
  color: #f3efe6;
  text-transform: none;
}
.k-hero .lede { margin: 1.1rem 0 1.5rem; max-width: 42ch; color: #c9c4b8; font-size: 1.05rem; }
.k-pass {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(720px, 100%);
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  background: rgba(12,13,11,0.55);
  border: 1px solid rgba(243,239,230,0.18);
  backdrop-filter: blur(16px);
  border-radius: 16px;
}
.k-pass:focus-within { border-color: rgba(62,224,122,0.55); }
.k-pass label { color: var(--live); font-size: 0.65rem; white-space: nowrap; }
.k-pass input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #f3efe6;
  font: inherit;
  font-size: 0.95rem;
  min-width: 0;
  padding: 0.7rem 0.4rem;
}
.k-pass button {
  background: var(--live);
  color: #0c0d0b;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.k-hero-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; color: #c9c4b8; font-size: 0.7rem; }
.k-dots { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.k-dots button { border: 0; background: transparent; color: #c9c4b8; font-size: 0.72rem; padding: 0; cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono); margin-right: 0.4rem; }
.k-dots button.on { color: var(--live); }

.k-section { padding: 4.5rem 0; }
.k-section.alt { background: var(--stage-2); border-block: 1px solid var(--line); }
.k-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.k-head h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.k-head p { color: var(--steel); max-width: 36ch; font-size: 0.95rem; margin: 0; }
.k-eyebrow { color: var(--live); font-size: 0.7rem; margin: 0 0 0.5rem; }

.k-drops { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 800px) { .k-drops { grid-template-columns: repeat(3, 1fr); } }
.k-drop {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.k-drop .shot { aspect-ratio: 3/4; overflow: hidden; background: #111; }
.k-drop .shot img { width: 100%; height: 100%; object-fit: cover; }
.k-drop .body { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.k-drop h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5rem; }
.k-drop .dek { color: var(--steel); font-size: 0.9rem; margin: 0 0 1rem; flex: 1; }
.k-drop-actions { display: flex; justify-content: space-between; gap: 0.5rem; }
.k-drop-actions button, .k-drop-actions a {
  border: 1px solid var(--line);
  background: var(--fork-wash);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.k-drop-actions .use,
.k-drop-actions a.use { background: var(--live); color: #0c0d0b; border-color: transparent; font-weight: 600; }
.k-drop-actions .vote.on { border-color: var(--live); color: var(--live); }

.k-lab { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 900px) { .k-lab { grid-template-columns: 1fr 1fr; } }
.k-panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; }
.k-panel h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; margin: 0.2rem 0 0.9rem; }
.k-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.k-chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.k-chip.on { background: var(--fork-wash); border-color: var(--live); color: var(--live); }
.k-add { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.k-add input {
  flex: 1;
  min-width: 0;
  background: #0c0d0b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font: inherit;
}
.k-add input:focus { outline: 2px solid var(--live); outline-offset: 1px; }
.k-add button, .k-row button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.k-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.k-row .primary { background: var(--live); color: #0c0d0b; border-color: transparent; font-weight: 600; }
.k-status { margin-top: 0.9rem; color: var(--steel); font-size: 0.7rem; min-height: 1.3em; }
.k-status.thinking { color: var(--live); }
.k-result { min-height: 24rem; }
.k-result-empty { display: grid; place-items: center; text-align: center; color: var(--steel); padding: 2.5rem 1rem; }
.k-result.has .k-result-empty { display: none; }
.k-result-inner { display: none; gap: 0.9rem; }
.k-result.has .k-result-inner { display: grid; }
.k-result-pic { aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: #111; }
.k-result-pic img { width: 100%; height: 100%; object-fit: cover; }
.k-result h4 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0.2rem 0; }
.k-result .facts { color: var(--steel); font-size: 0.7rem; }
.k-swap-note { display: none; background: var(--fork-wash); color: var(--live); border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.85rem; }
.k-swap-note.on { display: block; }
.k-ing, .k-steps { font-size: 0.95rem; }
.k-ing strong, .k-steps strong {
  display: block;
  font-size: 0.7rem;
  color: var(--steel);
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.k-steps ol { padding-left: 1.15rem; margin: 0; }
.k-steps li + li { margin-top: 0.35rem; }
.k-card-studio { display: none; grid-template-columns: 180px 1fr; gap: 1rem; align-items: center; margin-top: 0.4rem; }
.k-result.has-card .k-card-studio { display: grid; }
@media (max-width: 700px) { .k-card-studio { grid-template-columns: 1fr; } }
.k-share-card {
  width: 180px;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0d0b;
  color: #f3efe6;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.k-share-card img { width: 100%; height: 58%; object-fit: cover; }
.k-share-card .pad { padding: 0.5rem 0.6rem 0.6rem; }
.k-share-card .wm { font-family: var(--serif); font-size: 0.75rem; }
.k-share-card .wm em { color: var(--live); font-style: italic; }
.k-share-card h5 { font-family: var(--serif); font-size: 0.8rem; line-height: 1.2; font-weight: 500; margin: 0.2rem 0 0; }
.k-share-card .c-meta { font-size: 0.55rem; color: #9c9890; margin-top: 0.3rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--mono); }

.k-tools { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 800px) {
  .k-tools { grid-template-columns: repeat(12, 1fr); }
  .k-tool { grid-column: span 4; }
  .k-tool.later { grid-column: span 3; }
}
.k-tool {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}
.k-tool.mvp { border-color: color-mix(in srgb, var(--live) 55%, var(--line)); }
.k-tool h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; margin: 0.5rem 0 0.4rem; }
.k-tool p { color: var(--steel); font-size: 0.88rem; margin: 0; }
.k-tool .tag { font-size: 0.65rem; color: var(--steel); }
.k-tool.mvp .tag { color: var(--live); }

.k-also { margin-top: 1rem; }
.k-also a { color: var(--live); }

body.theme-kitchen .bfcm-banner { margin: 1rem auto 0; border-radius: 12px; padding: 0.85rem 1rem; font-size: 0.92rem; }
body.theme-kitchen .holiday-deals { padding: 2rem 0 0.5rem; }
body.theme-kitchen .holiday-deals h2 { font-family: var(--serif); font-weight: 500; }

body.theme-kitchen .foot-brand,
body.theme-kitchen .site-footer .wordmark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
}
body.theme-kitchen .foot-brand em { font-style: italic; color: var(--live); }

@media (max-width: 860px) {
  .k-hero { min-height: min(88vh, 820px); }
  .k-hero h1 { font-size: 2.7rem; }
  .k-pass { flex-wrap: wrap; padding: 0.75rem; }
  .k-pass button { width: 100%; }
  .k-hero-meta { flex-direction: column; align-items: flex-start; }
  .k-head { flex-direction: column; align-items: flex-start; }
  .k-section { padding: 3.2rem 0; }
  body.theme-kitchen .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-kitchen .live-badge i,
  .k-hero-slides img { animation: none !important; transition: none !important; }
}

/* Tool 04: create a recipe from what you have */
.g-input { width: 100%; background: #0c0d0b; color: var(--ink); border: 1px solid #2c2d29; border-radius: 12px; padding: 0.75rem 0.9rem; font: inherit; resize: vertical; margin-bottom: 0.8rem; }
.g-input:focus { outline: 2px solid var(--live); outline-offset: 1px; }
.g-diets { border: 0; padding: 0; margin: 0 0 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.9rem; color: var(--steel); }
.g-diets legend { margin-bottom: 0.4rem; }
.g-fine { color: var(--steel); font-size: 0.8rem; margin: 0.6rem 0 0; }
.g-note { background: #1d1a12; border: 1px solid #4a3d22; color: var(--ember); border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.85rem; }
.g-recipe h3 { margin: 0.2rem 0 0.3rem; font-size: 1.4rem; }
.g-recipe ul, .g-recipe ol { padding-left: 1.1rem; margin: 0.3rem 0 0.8rem; }
.g-recipe li { margin: 0.18rem 0; }
.g-pills span { display: inline-block; border: 1px solid #3a3b36; border-radius: 999px; padding: 0.05rem 0.55rem; margin: 0.1rem; font-size: 0.8rem; }
.g-offers a { color: var(--live); }
.g-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g-actions a { border: 1px solid var(--live); color: var(--live); border-radius: 999px; padding: 0.35rem 0.9rem; text-decoration: none; font-size: 0.9rem; }
.g-photo { margin: 0 0 0.8rem; }
.g-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; border: 1px solid #262723; display: block; }
.g-photo-wait { aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 14px; border: 1px dashed #3a3b36; background: radial-gradient(circle at 70% 30%, #1f3b29, #0c0d0b 70%); color: var(--live); animation: g-pulse 1.6s ease-in-out infinite; }
@keyframes g-pulse { 50% { opacity: 0.55; } }

/* Live kitchen: today's three + community feed */
.k-hero-cta { margin: 0.9rem 0 0; font-size: 0.95rem; }
.k-hero-cta a { color: var(--live); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.k-hero-cta .mono { color: var(--steel); margin-left: 0.4rem; font-size: 0.75rem; }
.k-live-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--live); margin-right: 0.35rem; box-shadow: 0 0 0 0 rgba(62, 224, 122, 0.6); animation: k-ping 1.8s infinite; }
@keyframes k-ping { 70% { box-shadow: 0 0 0 0.6rem rgba(62, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 122, 0); } }
.k-daily { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.k-daily-card { display: grid; gap: 0.35rem; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid #262723; border-radius: 16px; padding: 0.6rem 0.6rem 0.9rem; }
.k-daily-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.k-daily-card strong { font-size: 1.05rem; line-height: 1.25; }
.k-head-feed { margin-top: 0.5rem; }
.k-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.7rem; }
.k-feed-item a { display: flex; gap: 0.7rem; align-items: center; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid #262723; border-radius: 14px; padding: 0.5rem; }
.k-feed-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.k-feed-item strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.k-feed-item .mono { color: var(--steel); font-size: 0.72rem; }
.k-feed-item.new a { border-color: var(--live); animation: k-in 0.6s ease-out; }
@keyframes k-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 760px) { .k-daily { grid-template-columns: 1fr; } }
