@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/big-shoulders-display-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/libre-franklin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/libre-franklin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* How Many Bags Do I Need: job-site palette. Concrete #DCDCD8, slate #2A2E33, safety yellow #FFC20E,
   kraft-bag brown #B98B4E. One memorable element: the pile of bags you can count. */
:root {
  --bg: #DCDCD8; --surface: #EBEBE8; --ink: #2A2E33; --muted: #55595F; --line: rgba(42, 46, 51, .2);
  --accent: #2A2E33; --accent-ink: #FFC20E; --safety: #FFC20E; --kraft: #B98B4E;
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif; --font-body: 'Libre Franklin', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #24272B; --surface: #2E3237; --ink: #ECECE8; --muted: #B4B6B9; --line: rgba(236, 236, 232, .18); --accent: #FFC20E; --accent-ink: #24272B; --kraft: #C99B5E; }
}
body { background: var(--bg); color: var(--ink); }
header.site { background: var(--safety); border-bottom: 0; }
header.site .logo, header.site nav.top a { color: #2A2E33; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: .01em; }
.logo b { color: #2A2E33; }
nav.top a { font-weight: 600; }
nav.top a[aria-current="page"] { text-decoration: underline 3px; text-underline-offset: 6px; }
h1, h2, h3 { font-weight: 800; letter-spacing: .005em; }
h1 { font-size: clamp(46px, 8vw, 80px); line-height: .92; margin: 18px 0 12px; }
h2 { font-size: 34px; margin-top: 44px; }
h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; }
.lede { color: var(--muted); max-width: 58ch; }
a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--kraft); text-underline-offset: 3px; }
.tool { background: var(--surface); border: 0; border-left: 10px solid var(--safety); border-radius: 0; padding: 22px 22px 24px; }
.tool select, .tool input { background: var(--bg); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; color: var(--ink); }
.field label { font-weight: 600; font-size: 15px; }
.stat { background: transparent; border-radius: 0; padding: 0; }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.stat.hero { background: transparent; color: var(--ink); }
.stat.hero .v { font-size: 64px; line-height: .95; }
.stat.hero .k { color: var(--muted); opacity: 1; }
.out { border-top: 2px solid var(--ink); }
/* The bag pile */
.pile { display: flex; flex-wrap: wrap; gap: 3px; margin: 16px 0 6px; max-width: 640px; }
.pile .bag { width: 16px; height: 22px; background: var(--kraft); border-radius: 3px 3px 5px 5px; position: relative; }
.pile .bag::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 5px; background: var(--safety); border-radius: 1px; }
.pile .bag.part { opacity: .45; }
.pile-cap { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.ftin span { font-size: 13px; color: var(--muted); }
details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
summary { font-weight: 600; }
table.data th { color: var(--muted); }
th, td { border-bottom-color: var(--line); }
.ftin { display: grid; grid-template-columns: minmax(0,3fr) auto minmax(0,2fr) auto; gap: 6px; align-items: center; }
.ftin input { padding-left: 10px; padding-right: 6px; }
[data-show][hidden] { display: none; }
.stat.hero { grid-column: span 2; } .stat.hero .v { white-space: nowrap; }

.linklist { list-style: none; padding: 0; columns: 2 240px; column-gap: 28px; }
.linklist li { padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.linklist a { font-weight: 600; text-decoration: none; }

@media (max-width: 520px) { .stat .v { font-size: 26px; } }

/* Voice: a contractor's highlighter over the important bit. */
.hello { border-left: 0; padding-left: 0; font-weight: 600; }
.hello { background: linear-gradient(transparent 58%, rgba(255,194,14,.55) 58%); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
p.hello + * { margin-top: 26px; }
