/* The Blankinship Soil Health Lab website's one stylesheet (Hub checklist C40, design v2 section 11.1).
   The system's own fonts only: no web font, no image, and no address of another site anywhere in this file. */

:root {
  color-scheme: light dark;
  --paper: #fbfaf7;
  --ink: #23201b;
  --muted: #5f594f;
  --rule: #ddd6c9;
  --accent: #7a4a1c;
  --accent-ink: #5b3510;
  --band: #f1ece2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1815;
    --ink: #ece7de;
    --muted: #b4ac9f;
    --rule: #3b362f;
    --accent: #e0a868;
    --accent-ink: #f0c48e;
    --band: #24211c;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--accent-ink);
}

.site {
  border-bottom: 1px solid var(--rule);
  background: var(--band);
}

.site-inner,
main,
.foot-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.site-name {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site nav a {
  text-decoration: none;
}

.site nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

main {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.4rem;
}

.lede {
  font-size: 1.15rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.address {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  background: var(--band);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.foot {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

@media print {
  .site,
  .foot nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
