/* Dumpster Size Guide — mobile-first, no framework */
:root {
  --bg: #f4f1ea;
  --fg: #1b1a17;
  --muted: #5a564c;
  --link: #1a5270;
  --link-hover: #0d3144;
  --border: #d4cec2;
  --card: #fffcf6;
  --header: #1f2f28;
  --header-fg: #f4f1ea;
  --accent: #c45c26;
  --th: #ece7dc;
  --focus: #c45c26;
  --max: 44rem;
  --wide: 68rem;
}

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

html { font-size: 106%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--header);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

header.site {
  background: var(--header);
  color: var(--header-fg);
  padding: 0.85rem 1rem 1rem;
}

header.site .bar {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.brand {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--header-fg);
  text-decoration: none;
}
.brand:hover, .brand:focus { text-decoration: underline; }

nav.site-nav {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  flex: 1 1 100%;
}

.nav-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  margin-top: 0.35rem;
}

.nav-groups h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  color: #c9d4cc;
  font-weight: 600;
}

.nav-groups ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-groups a {
  color: var(--header-fg);
  text-decoration: none;
  display: block;
  padding: 0.22rem 0;
  line-height: 1.35;
}
.nav-groups a:hover, .nav-groups a:focus { text-decoration: underline; }
.nav-groups a[aria-current="page"] {
  color: #ffd7b8;
  font-weight: 650;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1rem 3rem;
}

.home main { max-width: var(--wide); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.7rem; margin: 0 0 0.8rem; }
h2 { font-size: 1.28rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.08rem; margin: 1.5rem 0 0.45rem; }
h4 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }

p, li { overflow-wrap: anywhere; }
p { margin: 0 0 1rem; }

a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: 0.25rem 0; }

strong { font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

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

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

th {
  background: var(--th);
  font-weight: 650;
}

tr:last-child td { border-bottom: 0; }

blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.article-body > p:first-of-type { font-size: 1.06rem; }


figure.photo {
  margin: 0.4rem 0 1.4rem;
  padding: 0;
}
figure.photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--card);
}
figure.photo.diagram img {
  background: var(--bg);
  border: 1px solid var(--border);
}
figure.photo figcaption {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.home-pitch figure.photo {
  margin-top: 0.15rem;
  margin-bottom: 1.15rem;
}


.home-pitch {
  max-width: var(--max);
  margin-bottom: 2rem;
}

.home-pitch p { font-size: 1.05rem; }

.guide-groups {
  display: grid;
  gap: 1.25rem;
}

.guide-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1rem 0.6rem;
}

.guide-group h2 {
  margin-top: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.guide-group ul { list-style: none; padding: 0; margin: 0; }
.guide-group li {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.guide-group li:last-child { border-bottom: 0; margin-bottom: 0; }

.guide-group a.title {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  display: inline-block;
  margin-bottom: 0.2rem;
}
.guide-group a.title:hover, .guide-group a.title:focus { text-decoration: underline; }

.guide-group .blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.4rem 1rem 2.2rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
}

footer.site .inner {
  max-width: var(--wide);
  margin: 0 auto;
}

footer.site p { margin: 0 0 0.5rem; }

@media (min-width: 720px) {
  html { font-size: 112%; }
  h1 { font-size: 2rem; }
  nav.site-nav { flex: 1 1 auto; }
  .nav-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.15rem;
    gap: 1rem 1.5rem;
  }
  .guide-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}
