/* Husk Coffee Traders — static front. Jute-sack cream, roast-brown ink, a
   stencilled lot stamp and a shipping manifest for the list. System serif
   and mono only (no font files). No inline styles (strict CSP). */

:root {
  --sack: #efe6d6;
  --sack-line: #e2d5bd;
  --paper: #fbf7ef;
  --ink: #2b1d12;
  --ink-soft: #6b5a4a;
  --bean: #5a3a22;
  --leaf: #4d6b3a;
  --stamp: #a8321e;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 38rem;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sack: #17110c; --sack-line: #231a12; --paper: #211912; --ink: #efe4d3; --ink-soft: #b3a18c;
    --bean: #d9b48c; --leaf: #9cc47f; --stamp: #f08466;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 400 1.0625rem/1.6 var(--body);
  background-color: var(--sack);
  background-image: repeating-linear-gradient(0deg, transparent 0 5px, var(--sack-line) 5px 6px),
                    repeating-linear-gradient(90deg, transparent 0 5px, var(--sack-line) 5px 6px);
  background-blend-mode: multiply;
}
a { color: var(--leaf); text-underline-offset: 0.15em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.1rem; }
p { max-width: var(--measure); }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; }
.skip:focus { left: var(--gutter); z-index: 10; }

.bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.mark-bean { width: 1.8rem; height: 1.8rem; }
.mark-bean ellipse { fill: var(--bean); }
.mark-bean path { fill: none; stroke: var(--sack); stroke-width: 2.2; stroke-linecap: round; }
.bar-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
.bar-nav a { color: var(--ink); }
.bar-staff { font-family: var(--mono); font-size: 0.85rem; }

main > section { padding: clamp(2rem, 6vw, 4rem) var(--gutter); }
.hero { padding-top: clamp(1.5rem, 5vw, 3rem); }
.stamp {
  display: inline-block; margin: 0 0 1.25rem; padding: 0.3rem 0.6rem; transform: rotate(-2deg);
  font: 700 0.8rem/1 var(--mono); letter-spacing: 0.12em; color: var(--stamp);
  border: 2px solid var(--stamp); border-radius: 3px; opacity: 0.85;
}
.lede { font-size: 1.15rem; }
.btn { display: inline-block; padding: 0.7rem 1.2rem; background: var(--bean); color: var(--paper); text-decoration: none; border-radius: 4px; font-weight: 600; }
.btn:hover, .btn:focus-visible { background: var(--ink); }

.list { background: var(--paper); border-block: 1px solid var(--sack-line); }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.manifest { border-collapse: collapse; min-width: 36rem; width: 100%; max-width: 60rem; font-size: 0.95rem; }
.manifest th, .manifest td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px dashed var(--sack-line); vertical-align: top; }
.manifest thead th { font: 700 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.manifest td:nth-child(n+4) { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }

.flow { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: 72rem; }
.flow li { counter-increment: step; background: var(--paper); border: 1px solid var(--sack-line); border-radius: 6px; padding: 1rem 1.1rem; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 0.8rem/1 var(--mono); color: var(--stamp); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.flow p { margin: 0; font-size: 0.95rem; }
.note { margin-top: 1.5rem; color: var(--ink-soft); font-style: italic; }

.foot { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; padding: 2rem var(--gutter) 3rem; border-top: 2px solid var(--ink); font-size: 0.9rem; }
.foot p { margin: 0 0 0.35rem; }
.foot-name { font-weight: 700; }
.foot-demo { color: var(--ink-soft); max-width: 28rem; }
