/* ==========================================================================
   Courses & repas — feuille de style (thème « Potager »)
   ========================================================================== */

/* Literata (SIL Open Font License 1.1), servie localement. */
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-title: "Literata", Georgia, "Times New Roman", serif;
  --bg: #f6f3ea;
  --surface: #fffdf7;
  --text: #22291f;
  --muted: #6b7262;
  --line: #e3dfd0;
  --accent: #3f6b45;
  --accent-hover: #335839;
  --accent-ink: #ffffff;
  --accent-soft: #e2eddf;
  --tomato: #c4492d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(40, 50, 30, .05), 0 4px 16px rgba(40, 50, 30, .06);
  --topbar-bg: rgba(246, 243, 234, .85);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a15;
    --surface: #20261f;
    --text: #edf0e6;
    --muted: #a3ab98;
    --line: #333b31;
    --accent: #8fc196;
    --accent-hover: #a5d2ab;
    --accent-ink: #10170f;
    --accent-soft: #263a29;
    --tomato: #ec7a5e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --topbar-bg: rgba(22, 26, 21, .85);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font-body);
}
h1, h2 { font-family: var(--font-title); font-weight: 600; line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 .5rem; }
.muted { color: var(--muted); }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--topbar-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: .75rem 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--font-title); font-size: 1.25rem; font-weight: 600;
}
.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: var(--accent); }

main { max-width: 640px; margin: 0 auto; padding: 1rem; display: grid; gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}
.hero { border-top: 5px solid var(--accent); }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.todo li { display: flex; align-items: center; gap: .7rem; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--tomato); flex: none; }
.status p:last-child { margin-bottom: 0; }
