:root {
  --canvas: #f2f2f7;
  --card: #ffffff;
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --accent: #2e6b4f;
  --accent-soft: rgba(46, 107, 79, 0.12);
  --protein: #598cd9;
  --fat: #eb8c47;
  --carbs: #66b87a;
  --line: rgba(0, 0, 0, 0.06);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1c1c1e;
    --card: #2c2c2e;
    --ink: #f5f5f7;
    --muted: #98989d;
    --accent: #72b785;
    --accent-soft: rgba(114, 183, 133, 0.16);
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4.5rem;
}

.macros {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.macros span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.macros .p { background: var(--protein); }
.macros .f { background: var(--fat); }
.macros .c { background: var(--carbs); }

h1 {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.lead, p { margin: 0 0 1rem; }

.lead { color: var(--muted); max-width: 34rem; }

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin: 1.1rem 0;
}

.card p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover { opacity: 0.72; }

.mail {
  display: inline-block;
  margin: 0.15rem 0 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: var(--accent-soft);
  font-weight: 600;
}

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

.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.date { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

.section + .section { margin-top: 1.35rem; }

.rise {
  animation: rise 0.45s ease-out both;
}

.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .rise-2, .rise-3 { animation: none; }
}
