/* ====== Design tokens ====== */
:root {
  /* Calm wellness palette */
  --bg: #FAF7F2;          /* warm off-white */
  --text: #2A2A2A;        /* soft dark */
  --muted: #6A6A6A;       /* secondary text */
  --card: #FFFFFF;        /* card surface */
  --accent: #2FB07B;      /* button / highlight (teal-green) */
  --accent-hover: #28A06F;
  --accent-press: #1D8A5E;
  --accent-ghost: rgba(47, 176, 123, 0.12);
  --border: #E8E2D9;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);

  --maxw: 640px;
}

/* ====== Base ====== */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ====== Layout ====== */
.app {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  text-align: center;
  padding-top: 8px;
}
.title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.15;
  margin: 0 0 8px 0;
  letter-spacing: 0.1px;
}
.tagline {
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
  transition: opacity 240ms ease;
}

/* Accent motif (subtle East African-inspired pattern) */
.motif {
  width: 100%;
  height: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--accent-ghost) 0,
      var(--accent-ghost) 12px,
      transparent 12px,
      transparent 24px
    );
  border-radius: var(--radius-sm);
}

/* ====== Cards ====== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 680px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.card:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom right, transparent, rgba(47, 176, 123, 0.03));
  opacity: 0;
  transition: opacity 200ms ease;
}
.card:hover:after { opacity: 1; }

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-ghost);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.section-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dish {
  font-size: 18px;
  line-height: 1.35;
  margin: 4px 0 0 0;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: #F4EFE8;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}

/* ====== CTA ====== */
.cta-wrap {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-top: 4px;
}
.cta {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: white;
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  min-height: 44px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease;
}
.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47,176,123,0.24);
}
.cta:active {
  background: var(--accent-press);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.cta-sub {
  font-size: 13px;
  color: var(--muted);
}

/* Accessibility focus */
.cta:focus-visible,
.card:focus-within {
  outline: 3px solid rgba(47,176,123,0.35);
  outline-offset: 3px;
}

/* ====== Transitions for content swap ====== */
.fade-out { opacity: 0; transform: translateY(4px); transition: opacity 200ms ease, transform 200ms ease; }
.fade-in { opacity: 1; transform: translateY(0); transition: opacity 220ms ease, transform 220ms ease; }

/* ====== Footer ====== */
footer {
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.tooltip {
  border-bottom: 1px dashed var(--muted);
  cursor: help;
}
a.mail {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.mail:hover { border-bottom-color: var(--muted); }