/* Meat processing in Wisconsin — draft preview, 2026-08-29 */
:root {
  --ink: #121212;
  --paper: #f7f4ee;
  --muted: #333;
  --faint: #5a554c;
  --rule: #b8b0a2;
  --link: #083a7a;
  --link-hover: #05244d;
  --visited: #4a2a6e;
  --header-bg: #1c1914;
  --header-fg: #f4efe6;
  --header-muted: #d4cbb8;
  --table-head: #e7e0d2;
  --table-stripe: #efebe3;
  --focus: #0b57d0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--header-bg);
  color: #fff;
  padding: 0.4rem 0.7rem;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.15rem;
}

.article-wrap {
  max-width: 58rem;
}

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  max-width: 58rem;
}

.site-title {
  color: var(--header-fg);
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-title:hover { text-decoration: underline; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-header nav a {
  color: var(--header-muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}

/* Main */
main {
  padding: 1.6rem 0 2.5rem;
}

h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: 1.85rem; margin: 0 0 0.85rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; padding-top: 0.35rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 1.25rem 0 0.4rem; }

p, li { max-width: 46rem; }
.article > p:first-of-type { font-size: 1.02rem; }

a { color: var(--link); text-underline-offset: 0.12em; }
a:visited { color: var(--visited); }
a:hover { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.75rem 0;
}

em { color: var(--muted); }

blockquote {
  margin: 1.1rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--ink);
  color: var(--muted);
}

ul, ol { padding-left: 1.3rem; }
li { margin: 0.28rem 0; }
li p { margin: 0.3rem 0; }

strong { font-weight: 700; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.15rem 0;
  border: 1px solid var(--rule);
  background: #fff;
}

table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 0.88rem;
  line-height: 1.4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

th, td {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid #ddd6c8;
  padding: 0.45rem 0.65rem;
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--table-head);
  font-weight: 650;
  white-space: nowrap;
}

tr:nth-child(even) td { background: var(--table-stripe); }

td { min-width: 8.5rem; }
th:first-child, td:first-child { min-width: 7rem; }

/* Home */
.home h1 { font-size: 2rem; margin-bottom: 0.6rem; }
.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.docs {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

.docs li { margin: 0 0 0.75rem; }

.docs a {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
}

.docs a:visited { color: var(--ink); }
.docs a:hover {
  border-color: var(--ink);
  background: #fff;
}

.docs .card-desc {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0;
}

/* Redirect fallback */
.redirect-note {
  font-family: system-ui, sans-serif;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.15rem 0 2rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--faint);
}

.site-footer .wrap { max-width: 58rem; }
.site-footer p { margin: 0; max-width: 46rem; }

@media (max-width: 640px) {
  html { font-size: 17px; }
  h1 { font-size: 1.55rem; }
  .home h1 { font-size: 1.7rem; }
  th, td { white-space: normal; }
}

/* Compact home plant list — name + town, phone-scannable */
.home h2 {
  border-top: none;
  margin-top: 0.15rem;
  padding-top: 0;
  font-size: 1.2rem;
}
.plant-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0.65rem;
  max-width: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}
.plant-list li {
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.35;
}
.plant-list li:last-child { border-bottom: 1px solid var(--rule); }
.plant-note {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}
