:root {
  /* The packaging look (Nov 30, 2026): a kraft bag with a black label, a thin gold inner frame,
     a Cormorant Garamond strain name and small wide-spaced gold capitals (docs/SPEC.md, section 14).
     Everything visual reads these variables. Gold and kraft are too light to read as text on the
     light background (about 2:1), so they're only used as text on black; --kraft-ink is the
     darker kraft for small labels on light backgrounds. */
  --bg: #ECE8E1;      /* warm off-white page */
  --card: #FAF8F4; --ink: #141210; --mute: #5B5248; --line: #D9D1C4;
  --brand: #141210;   /* label black: buttons, headings, selected states */
  --brand-2: #E5D8C0; /* pale kraft: chips, selected backgrounds, notes */
  --label: #141210;   /* the bag's black label */
  --cream: #F4F0E4;   /* strain name on the label */
  --cream-2: #BDB4A5; /* quieter text on the label */
  --gold: #C0A068;    /* frame and small capitals: on black only */
  --kraft: #D3B182; --kraft-2: #BA9262; /* the bag */
  --kraft-ink: #6B4E28; /* kraft dark enough to read on light backgrounds */
  --link: #6B4E28;
  --amber: #94480C; --amber-2: #F8E7D3; --red: #A63D2F; --red-2: #F7E2DC;
  --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--link); }
/* Cormorant is small for its size, so headings run larger than they would in most fonts. */
h1 { font-family: var(--serif); font-weight: 600; font-size: 36px; margin: 0 0 6px; letter-spacing: 0; line-height: 1.1; color: var(--brand); }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin: 24px 0 8px; font-weight: 600; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 6px; line-height: 1.15; }
p.sub { color: var(--mute); margin: 0 0 16px; font-size: 15px; }
.note { font-size: 13px; color: var(--mute); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
label:first-child { margin-top: 0; }
.hint { font-size: 12px; color: var(--mute); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid #C4BAAA; border-radius: 10px; background: #fff; color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: auto; margin: 0 8px 0 0; transform: scale(1.2); flex: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
textarea { min-height: 64px; resize: vertical; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }
.row .narrow { flex: 0 0 34%; }
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 16px; -webkit-tap-highlight-color: transparent; text-decoration: none; display: inline-block; text-align: center; }
.btn { width: 100%; background: var(--brand); color: var(--cream); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.amber { background: var(--amber); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.small { width: auto; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.link { background: none; color: var(--link); padding: 6px 0; font-size: 14px; }
.link.danger { color: var(--red); }
.stack > * + * { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; border-radius: 99px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--brand); color: var(--cream); border-color: var(--brand); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { background: var(--card); border: 1.5px solid var(--line); color: var(--ink); padding: 14px 6px; font-size: 15px; }
.choice.on { border-color: var(--brand); background: var(--brand-2); color: var(--brand); }
.banner { font-size: 14px; background: var(--amber-2); color: #7A3A06; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.banner.red { background: var(--red-2); color: #7A2A1F; }
.banner.green { background: var(--brand-2); color: var(--brand); }
.err { color: var(--red); font-size: 14px; margin-top: 8px; min-height: 1px; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--brand-2); color: var(--brand); white-space: nowrap; }
.badge.amber { background: var(--amber-2); color: var(--amber); }
.badge.red { background: var(--red-2); color: var(--red); }
.badge.gray { background: var(--line); color: var(--mute); }
.pay { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.pay.paid { background: var(--brand-2); color: var(--brand); } .pay.part, .pay.unpaid { background: var(--amber-2); color: var(--amber); }
.status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.done { color: var(--brand); } .status.transit { color: var(--amber); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 14px; margin: 0; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; font-weight: 500; }
.modal { position: fixed; inset: 0; background: rgba(20,18,16,.5); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .modal { align-items: center; } .sheet { border-radius: 18px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 20; max-width: 90%; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand svg { flex: none; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 14px; color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 10px 8px; border-bottom: 2px solid var(--ink); }
table.grid td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid td.num, table.grid th.num { text-align: right; white-space: nowrap; }
.center { text-align: center; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-2); color: var(--brand); display: grid; place-items: center; margin: 12px auto; font-size: 34px; }
.copybox { display: flex; gap: 8px; align-items: center; }
.copybox input { font-size: 13px; color: var(--mute); }


/* The logo next to the name in page headers. */
.logo-img { display: block; width: 40px; height: 40px; flex: 0 0 auto; }
.muted { color: var(--mute); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* Black "label" surfaces, like the bag's label: cream text, gold small capitals, kraft buttons. */
.label-box { background: var(--label); color: var(--cream); border-radius: var(--r); padding: 9px; }
.label-box .frame { border: 1px solid var(--gold); border-radius: 7px; padding: 18px 18px 20px; }
.label-box h1, .label-box h3 { color: var(--cream); }
.label-box .note, .label-box .hint, .label-box p.sub { color: var(--cream-2); }
.label-box a { color: var(--gold); }
.label-box .btn { background: var(--kraft); color: var(--label); }
.label-box .btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream-2); }
.label-box .btn:disabled { opacity: .55; }
.caps { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--kraft-ink); }
.label-box .caps { color: var(--gold); }
.label-rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0 0 14px; }
/* Read by screen readers, not shown (a page that opens straight on its content still needs a title). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
