/* Farm team site. Same brand as salamonsfarms.com: charcoal, wheat, oxblood, Fraunces and Inter. */
:root {
  --ink: #231f1d; --wheat: #e8d5b5; --clay: #751815;
  --bg: #f8f4ec; --soft: #f1e8da; --surface: #fffdf9; --line: #e0d4c4;
  --text: #1f1b19; --muted: #5f5651; --good: #2f6b3f; --warn: #a5492c;
  --egg-brown: #a9703f; --egg-dkbrown: #6a3b22; --egg-cream: #e3cfa6; --egg-white: #f4f1ea; --egg-blue: #8fc1d2; --egg-green: #8e9f62; --egg-edge: #bfb8a6;
  --serif: 'Fraunces', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.top { position: sticky; top: 0; z-index: 20; background: var(--ink); padding-top: env(safe-area-inset-top, 0px); }
.top__inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--serif); color: var(--wheat); letter-spacing: .14em; font-size: 17px; }
.brand small { color: #efe7dc; font-size: 10px; letter-spacing: .26em; margin-top: 4px; font-weight: 600; }
.link-btn { background: none; border: 0; color: var(--wheat); font: 500 14px var(--sans); cursor: pointer; padding: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card--ink { background: var(--ink); color: #efe7dc; border-color: var(--ink); }
.card--ink h2 { color: var(--wheat); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

label, .lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: 16px var(--sans); color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 84px; resize: vertical; }
input[type=checkbox] { width: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; font: 600 15px var(--sans); border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none; }
.btn--wheat { background: var(--wheat); border-color: var(--wheat); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--danger { background: transparent; border-color: var(--warn); color: var(--warn); }
.btn--small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.seg button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font: 500 14px var(--sans); color: var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--wheat); border-color: var(--ink); }
.seg .count { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 4px; }

.job { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.job--overdue { border-left-color: var(--warn); }
.job--soon { border-left-color: #c79a3b; }
.job__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--ink); text-transform: capitalize; }
.chip--status { background: var(--ink); color: var(--wheat); }
.chip--warn { background: #f6ddd3; color: var(--warn); }
.rate { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--clay); font-variant-numeric: tabular-nums; }
.job p { font-size: 15px; color: #3f3835; white-space: pre-line; }

.talk textarea { min-height: 96px; font-size: 17px; }
.mic { width: 44px; min-width: 44px; padding: 0; border-radius: 50%; }
.mic.is-on { background: var(--clay); border-color: var(--clay); }
.proposal { border: 1px dashed var(--clay); border-radius: 10px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.proposal li { margin: 2px 0; }
.proposal ul { margin: 0; padding-left: 18px; }

details.card > summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.card > summary::after { content: '+'; font-family: var(--sans); font-size: 22px; color: var(--muted); }
details.card[open] > summary::after { content: '−'; }

.count-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.count-row:last-child { border-bottom: 0; }
.egg { width: 15px; height: 19px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; border: 1px solid var(--egg-edge); display: inline-block; }
.step { display: flex; align-items: center; gap: 6px; }
.step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); font-size: 18px; cursor: pointer; color: var(--ink); }
.step input { width: 56px; text-align: center; padding: 6px; font-variant-numeric: tabular-nums; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat b { display: block; font-family: var(--serif); font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

.list { display: flex; flex-direction: column; }
.list > * { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.list button.item { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; width: 100%; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; }
.mix { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--soft); }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); display: flex; justify-content: space-around; padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.tabs a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #cfc6bb; text-decoration: none; font-size: 11px; font-weight: 500; padding: 4px 2px; border-radius: 8px; text-align: center; }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--wheat); background: rgba(232, 213, 181, .12); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--wheat); padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 30; max-width: calc(100% - 32px); box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.toast.err { background: var(--warn); color: #fff; }
.signin { max-width: 420px; margin: 24px auto 0; width: 100%; }
.code { letter-spacing: .25em; font-size: 24px; text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.talk .row textarea { flex: 1; min-width: 0; }
