/* humanewaste.net: one small stylesheet, system fonts only, no external requests */
:root {
  --bg: #fbfaf7;
  --fg: #1f1f1c;
  --muted: #5d5b55;
  --accent: #245f73;
  --rule: #e2ded5;
  --band: #f2efe8;
  --measure: 40rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161715;
    --fg: #e8e6e0;
    --muted: #a7a399;
    --accent: #8cc6d9;
    --rule: #34352f;
    --band: #1d1f1c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 Charter, "Bitstream Charter", "Iowan Old Style", Georgia, Cambria, "Times New Roman", serif;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

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

/* header / nav */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .9rem;
}
.site-header nav {
  max-width: 64rem; margin: 0 auto; padding: .5rem 1rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem;
}
.site-header .brand { font-weight: 700; color: var(--fg); text-decoration: none; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem 1rem; }
.site-header a { text-decoration: none; }
.site-header a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.site-header details { position: relative; }
.site-header summary { cursor: pointer; color: var(--accent); }
.site-header details ul {
  position: absolute; top: 1.6rem; left: 0; display: block; min-width: 13rem;
  background: var(--bg); border: 1px solid var(--rule); padding: .5rem .75rem; border-radius: 4px;
}
.site-header details li { padding: .15rem 0; }
@media (max-width: 40rem) {
  .site-header { position: static; }
  .site-header nav { display: block; }
  .site-header ul { margin-top: .35rem; }
  .site-header details ul { position: static; border: 0; padding: .25rem 0 .25rem 1rem; }
}

/* content */
main { padding: 0 1rem; }
.block {
  max-width: var(--measure); margin: 0 auto;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.block:last-child { border-bottom: 0; }
.anchor { display: block; position: relative; top: -4rem; visibility: hidden; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.6em 0 .5em; font-weight: 700; }
.block > h1:first-of-type, .block > h2:first-of-type { margin-top: 0; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
h5 { font-size: 1rem; }
h6 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 0; }
p, ul, ol, blockquote, figure { margin: 0 0 1em; }
blockquote { border-left: 3px solid var(--rule); padding-left: 1rem; color: var(--muted); }
figure { text-align: center; }
figure img { border-radius: 3px; }
.note { font-family: system-ui, sans-serif; font-size: .95rem; padding: .75rem 1rem; background: var(--band); border-radius: 4px; }

/* hero */
#humane-waste { text-align: center; padding-top: 3.5rem; }
#humane-waste .title { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 0; letter-spacing: -.01em; }
#humane-waste .subtitle { font-size: 1.25rem; color: var(--muted); margin: .25rem 0 2rem; }
#humane-waste figure img { max-width: min(100%, 26rem); }

/* author portrait */
#about-the-author figure img { max-width: 16rem; }

.site-footer {
  text-align: center; color: var(--muted); font-size: .85rem;
  font-family: system-ui, sans-serif; padding: 2rem 1rem 3rem; border-top: 1px solid var(--rule);
}

@media print {
  .site-header, .skip { display: none; }
  body { background: #fff; color: #000; }
}
