/* WheatGenome.info — site stylesheet (Oct 2026). Replaces _css/main.css. */
:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --text: #2f312c;
  --muted: #6b6d66;
  --line: #dddbd2;
  --accent: #8a5a12;      /* wheat-brown, AA contrast on --bg */
  --accent-soft: #f1e6cf;
  --header: #2f312c;
  --header-text: #f7f6f1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1d1a; --surface: #252622; --text: #e8e6de; --muted: #a9a79d;
    --line: #3a3b35; --accent: #e0b25c; --accent-soft: #3a3324;
    --header: #111210; --header-text: #e8e6de;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, .brand { font-family: "Rokkitt", Georgia, serif; line-height: 1.2; }
h1 { font-size: 2.2rem; margin: 1.6rem 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 .4rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 65ch; }
p, li { max-width: 72ch; }
.muted { color: var(--muted); font-size: .9rem; }

/* Header */
.site-header { background: var(--header); color: var(--header-text); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { color: var(--header-text); text-decoration: none; font-size: 1.6rem; font-weight: 600; }
.brand span { color: #e0b25c; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-header nav a { display: block; color: var(--header-text); text-decoration: none; padding: .35rem .65rem; border-radius: 4px; font-size: .95rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: rgba(255,255,255,.14); }

/* Hero on the home page */
.hero { margin: 1.5rem 0; border-radius: 6px; overflow: hidden; background: var(--accent-soft); }
.hero img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }

/* Notices and cards */
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: .75rem 1rem; border-radius: 4px; margin: 1rem 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; padding: 0; list-style: none; }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; max-width: none; }
.cards li a { font-weight: 600; }
.cards li p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .92rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent-soft); font-weight: 600; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
code { font-size: .88em; word-break: break-all; }

/* References */
.refs li { margin-bottom: .6rem; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1rem 0 2rem; font-size: .92rem; }

/* Per-resource citation lines */
.cite { font-size: .88rem; color: var(--muted); margin: .2rem 0 1rem; }
li .cite { display: block; margin: .2rem 0 .4rem; }
