/* Hofjournal style: one source for the landing page and the app. See ../../STYLE.md.
   Built for a phone in a tractor cab: readable in sunlight, usable with rough or gloved
   hands, calm and plain. No web fonts and no images to wait for on a weak connection. */
:root {
  /* colour: fir green, wheat, earth, on warm paper */
  --green: #1f4d2b;        /* actions, brand */
  --green-strong: #163a20; /* pressed */
  --green-soft: #e3ecd9;   /* quiet highlight */
  --wheat: #e8b93a;        /* accent, fields on the map */
  --ink: #1e1b16;          /* text */
  --muted: #5a5546;        /* secondary text */
  --bg: #f7f4ea;           /* page */
  --card: #fffdf7;         /* surfaces */
  --line: #cfc8b4;         /* borders */
  --on-green: #fffdf7;     /* text on green */
  --warn: #9a5200;         /* due soon */
  --alert: #b3261e;        /* overdue, recording, stop */
  /* shape and size */
  --radius: 12px;
  --tap: 52px;             /* smallest touch target */
  --gap: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #8fcf8a; --green-strong: #a9dca4; --green-soft: #26331f; --wheat: #f0c95a;
    --ink: #f1eee2; --muted: #b3ad9a; --bg: #14170f; --card: #1d2117; --line: #3a3f30;
    --on-green: #10140c; --warn: #f0a64b; --alert: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 18px/1.5 var(--font); color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
a { color: var(--green); }
.muted { color: var(--muted); font-size: 16px; }

/* buttons: big, bordered, never colour alone */
button, .button, input, select { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 18px; cursor: pointer; text-decoration: none;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font-weight: 600;
}
button.primary, .button.primary { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 700; }
button.primary:active, .button.primary:active { background: var(--green-strong); border-color: var(--green-strong); }
button.danger { background: var(--alert); border-color: var(--alert); color: var(--on-green); font-weight: 700; }
button.big, .button.big { width: 100%; font-size: 21px; min-height: 64px; }
button:disabled { opacity: 0.6; cursor: default; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }
button svg, .button svg { width: 1.2em; height: 1.2em; flex: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 15px; font-weight: 700; border: 2px solid currentColor; }
.badge.ok { color: var(--green); }
.badge.warn { color: var(--warn); }
.badge.late { color: var(--alert); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { button, .button { transition: background-color 0.12s, border-color 0.12s; } }
