/* Colours, corner radius and rounded type follow the iOS app's design system
   (MealsByKaty/DesignSystem/DS.swift): cream ground, white cards, sage accent. */
:root {
  --cream: #faf5e8;
  --card: #ffffff;
  --sage: #527d61;
  --sage-soft: #c7d6bf;
  --ink: #332921;
  --check: rgba(82, 125, 97, 0.075);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1c1a17;
    --card: #2b2621;
    --sage: #9cc2a6;
    --sage-soft: #384f40;
    --ink: #f0ebe0;
    --check: rgba(156, 194, 166, 0.055);
  }
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px;
  color: var(--ink);
  font: 17px/1.5 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  /* The app's tablecloth check: two sets of faint sage stripes crossing. */
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, var(--check) 50%, transparent 50%),
    linear-gradient(var(--check) 50%, transparent 50%);
  background-size: 36px 36px;
}

.wordmark {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(51, 41, 33, 0.06), 0 8px 24px rgba(51, 41, 33, 0.08);
  text-align: center;
}

.badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge svg { width: 28px; height: 28px; }

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 12px; }

[hidden] { display: none !important; }
