/* Garden green in either theme. Sections sit on the page itself and are told apart by hairlines and space, not boxes. */
:root {
  --bg: #1e3527; --card: #1e3527; --ink: #f1ead4; --muted: #a9b9a4; --line: #35523f; --rule: #2c4735;
  --accent: #8fd19e; --accent-ink: #12251a; --warn: #e8a35e; --danger: #f08b7b; --chip: #26402f; --deep: #192d21;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

/* header */
.bar { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bar .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink);
  text-decoration: none; margin-right: auto; }
.bar .brand img { display: block; }
.bar nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.bar nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; }
.bar nav a:hover { color: var(--ink); }
.bar nav a.on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; padding: 6px 10px; }
.linkbtn:hover { color: var(--ink); }

main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 24px; }
.narrow { max-width: 420px; margin: 40px auto; }

/* sections: a hairline above, room around */
.card { padding: 22px 0 24px; border-top: 1px solid var(--rule); margin: 0; }
main > .card:first-child, main > :first-child > .card:first-child, .two > div > .card:first-child { border-top: 0; }
.two { display: grid; gap: 0 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }

h1 { font: 600 30px/1.15 Georgia, "Times New Roman", serif; letter-spacing: .01em; margin: 6px 0 16px; }
h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 13px; }

/* forms */
label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 20px 0 2px; }
input, select, textarea { font: inherit; font-size: 16px; width: 100%; padding: 8px 0 9px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid #5b7a63; border-radius: 0; transition: border-color .15s; }
select option, select optgroup { background: var(--deep); color: var(--ink); }
select optgroup { color: var(--muted); font-weight: 700; }
select option:checked { background: #35523f linear-gradient(#35523f, #35523f); color: var(--ink); }  /* not the browser's bright blue */
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 40px var(--bg) inset; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
label.row { flex-wrap: nowrap; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 13px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--ink); }
label.row input { margin-top: 3px; flex: none; }

/* buttons: square; cream for the main action, a quiet tint for the rest */
.btn { display: inline-block; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 18px; border: 0; border-radius: 0; background: var(--chip); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: #2f4c39; }
.btn.primary { background: var(--ink); color: var(--bg); padding: 12px 28px; }
.btn.primary:hover { background: #fff; }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.btn.sm { padding: 6px 11px; font-size: 11px; }
.btn.danger { color: var(--danger); }

/* messages */
.flash { padding: 10px 0 10px 14px; margin-bottom: 14px; border-left: 2px solid var(--accent); }
.flash.err, .error { color: var(--danger); border-left: 2px solid var(--danger); padding: 8px 0 8px 14px; }

/* figures: big serif numbers divided by hairlines */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 8px 0 18px; }
.stat { padding: 6px 20px 10px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 600 32px/1.2 Georgia, "Times New Roman", serif; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-top: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; border-top: 0; }
td.num, th.num { text-align: right; }
.scroll { overflow-x: auto; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; background: var(--chip); color: var(--muted); }
.pill.ok { color: var(--accent); }
.pill.bad { color: var(--danger); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.token { font-family: ui-monospace, Consolas, monospace; background: var(--deep); padding: 10px 12px; word-break: break-all; font-size: 13px; }
pre { white-space: pre-wrap; font-size: 13px; margin: 0; }

/* garden map and season chart */
svg.map { width: 100%; height: auto; max-height: 420px; background: var(--deep); display: block; margin: 4px 0 8px; }
.legend { gap: 14px; font-size: 13px; margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.season { display: grid; grid-template-columns: minmax(110px, 2fr) repeat(12, minmax(14px, 1fr)); gap: 3px; align-items: center; font-size: 12px; min-width: 360px; }
.season .hd { text-align: center; color: var(--muted); font-weight: 600; }
.season .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.season .c { height: 14px; background: var(--chip); position: relative; }
.season .c.on { background: color-mix(in srgb, var(--accent) 45%, var(--bg)); }
.season .c.now { outline: 1px solid var(--ink); }
.season .c.due::after { content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
@media (max-width: 600px) { .wide { display: none; } }

/* log in and sign up: the groundsman beside the form, above it on phones */
.authwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; max-width: 900px;
  margin: 28px auto; align-items: center; }
.authwrap .hero img { display: block; width: 100%; height: auto; }  /* transparent: sits on the page colour */
.authwrap .tagline { font: italic 22px/1.3 Georgia, "Times New Roman", serif; color: var(--ink); text-align: center;
  margin: 4px 24px 0; }
.authwrap .authcard { padding: 0; border: 0; }
.authwrap h1 { font-size: 34px; margin-bottom: 8px; }
.authwrap .btn.primary { margin-top: 14px; padding: 13px 34px; }
@media (max-width: 760px) {
  .authwrap { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 4px; }
  .authwrap .hero img { width: auto; max-width: 82%; max-height: 200px; margin: 0 auto; }
  .authwrap .tagline { font-size: 18px; margin-bottom: 10px; }
}
.btn.on { background: var(--ink); color: var(--bg); }
.card h2:not(:first-child) { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }
