/* One small stylesheet for the whole site, served as /assets/site.<hash>.css. The owner's coming-soon preview (CKM-587,
   docs/planning/changes/CR-018/web): white ground, brand green, Plus Jakarta Sans, Noto Sans Devanagari for Hindi with a roomier line
   height. Text pairs are 4.5:1 or better; focus is always visible; targets are 44px or more; nothing scrolls sideways at 320px. */
:root {
  color-scheme: light;
  --ground: #fff;
  --ink: #141613;
  --muted: #4a5249;
  --quiet: #5c645b;
  --body: #2e342d;
  --brand: #1f6b4f;
  --brand-dark: #174f3b;
  --brand-soft: #e8f3ee;
  --tile: #f6f8f5;
  --line: #e3e8e1;
  --draft-bg: #fff4e5;
  --draft-ink: #7a4a00;
  --focus: #1f5fbf;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family:
    'Plus Jakarta Sans',
    'Noto Sans Devanagari',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
}

html[lang='hi'] body {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.75;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ground);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 2px solid var(--focus);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 16px;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo {
  display: block;
  flex: none;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.langs a[aria-current] {
  background: var(--brand-soft);
  color: var(--brand);
}

/* home: hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 16px;
  padding-bottom: 72px;
}

.copy {
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

html[lang='hi'] h1 {
  letter-spacing: 0;
  line-height: 1.3;
}

/* every line sits in the same grid cell, so the box is always as tall as the longest line: no jump while flipping */
.flip {
  display: grid;
}

.flip span {
  grid-area: 1 / 1;
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
  transform-origin: 50% 60%;
}

.flip span[data-off] {
  opacity: 0;
  transform: rotateX(90deg);
}

.sub {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
}

a.store:hover {
  color: #fff;
}

.store small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

.store b {
  display: block;
  font-size: 1.0625rem;
}

.muted {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* home: the phone drawing */
.phonebox {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.phone {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 600;
  border-radius: 48px;
  background: var(--ink);
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgb(20 22 19 / 35%);
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: var(--tile);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  width: 100%;
  border-radius: 22px;
  background: var(--ground);
  box-shadow: 0 6px 18px -8px rgb(20 22 19 / 18%);
  overflow: hidden;
  text-align: left;
}

.card .img {
  height: 120px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .txt {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card p {
  margin: 0;
}

.dish {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.by,
.small {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.btns {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btns span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.b1 {
  background: var(--brand);
  color: #fff;
}

.b2 {
  background: var(--brand-soft);
  color: var(--brand);
}

/* home: cook together */
.what {
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h2.big {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

html[lang='hi'] h2.big {
  letter-spacing: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.cards div {
  padding: 24px;
  border-radius: 20px;
  background: var(--tile);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cards p {
  margin: 0;
}

.k {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h {
  font-weight: 800;
  font-size: 1.125rem;
}

.d {
  color: var(--muted);
}

/* text pages: legal, support, open this recipe, 404 */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 72px;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 8px 0 16px;
}

.doc h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 36px 0 8px;
  scroll-margin-top: 1rem;
}

.doc h3 {
  font-size: 1.125rem;
  margin: 24px 0 6px;
}

.doc p,
.doc li {
  color: var(--body);
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc .note {
  font-size: 0.9375rem;
  color: var(--quiet);
}

.draft {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--draft-bg);
  color: var(--draft-ink);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-dark);
  color: #fff;
}

.open .eyebrow {
  margin-top: 24px;
}

.doc section + section {
  margin-top: 48px;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 20px 36px;
  font-size: 0.9375rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.foot p {
  margin: 0;
  color: var(--quiet);
}

@media (min-width: 40rem) {
  .wrap {
    padding-inline: 24px;
  }

  .top {
    padding-block: 28px;
  }

  .doc {
    padding-inline: 24px;
  }
}

/* reduced motion: the slogan crossfades instead of flipping */
@media (prefers-reduced-motion: reduce) {
  .flip span {
    transition: opacity 0.6s ease;
  }

  .flip span[data-off] {
    transform: none;
  }
}
