/* PacketScore — posted-notice / town-ledger look. System fonts only. */
:root {
  --paper: #f3ead3;
  --paper-2: #e8dcb8;
  --rule: #cbbd93;
  --ink: #1c1912;
  --ink-soft: #3f3a30;
  --muted: #5c5649;
  --link: #0c4a45;
  --link-hover: #082e2b;
  --crimson: #8c1d12;
  --spruce: #0e5c56;
  --stamp-a: #0e5c56;
  --stamp-b: #1d4e3a;
  --stamp-c: #7a4b00;
  --stamp-d: #8a3c12;
  --stamp-f: #8c1d12;
  --focus: #0c4a45;
  --max: 68rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      rgba(160, 130, 70, 0.09) 28px
    ),
    var(--paper);
  font-family: "Palatino Linotype", Palatino, "Iowan Old Style", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.masthead {
  background: #1c1912;
  color: var(--paper);
  padding: 1.25rem 1.25rem 0;
  border-bottom: 8px solid var(--spruce);
}
.masthead a { color: var(--paper); }
.masthead-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "News Gothic MT", "Segoe UI", "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.4rem;
  color: #d9d0b5;
}
.brand {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 0.95;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand a { text-decoration: none; }
.tagline {
  max-width: 42rem;
  margin: 0.6rem 0 1rem;
  color: #efe6d0;
  font-size: 1.05rem;
}
.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0.6rem 0 0;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-top: 1px solid #4a4538;
}
.masthead nav a[aria-current="page"] {
  border-bottom: 2px solid #e8dcb8;
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}
.crumb { font-size: 0.95rem; color: var(--muted); }
.page-head h1, main h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0.2rem 0 0.6rem;
}
.lead { font-size: 1.2rem; max-width: 46rem; }
.notice {
  border: 2px solid var(--ink);
  background: #fff8e6;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.notice h2 { margin-top: 0; font-size: 1.2rem; }

.ledger {
  width: 100%;
  border-collapse: collapse;
  background: #fffaf0;
  margin: 1rem 0 2rem;
  font-size: 1.02rem;
}
.ledger caption {
  text-align: left;
  font-style: italic;
  color: var(--ink-soft);
  padding: 0 0 0.6rem;
  caption-side: top;
}
.ledger th, .ledger td {
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0.65rem;
  vertical-align: top;
  text-align: left;
}
.ledger thead th {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--ink);
  background: #efe4c4;
}
.ledger tbody tr:hover { background: #f7efd6; }
.ledger.compact { font-size: 1rem; }
.quiet { color: var(--muted); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.2rem; }
.grade-plain { font-weight: 700; }

.report-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.report-head > div { flex: 1 1 18rem; }

.stamp {
  width: 7.2rem;
  height: 7.2rem;
  border: 0.35rem solid currentColor;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Impact", sans-serif;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 2px currentColor;
}
.stamp-letter { font-size: 2.5rem; line-height: 0.9; font-weight: 800; }
.stamp-num { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.stamp-a, .stamp-b { color: var(--stamp-a); }
.stamp-c { color: var(--stamp-c); }
.stamp-d { color: var(--stamp-d); }
.stamp-f { color: var(--stamp-f); }
.stamp-na { color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 2rem;
  padding: 0;
}
.facts > div {
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 0.4rem;
}
.facts dt {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.75rem;
  color: var(--muted);
}
.facts dd { margin: 0.15rem 0 0; }

.fixes { list-style: none; padding: 0; margin: 0 0 2rem; }
.fix {
  border-left: 4px solid var(--spruce);
  background: #fffaf0;
  padding: 0.85rem 1rem 1rem 1rem;
  margin: 0 0 0.85rem;
}
.fix.severity-critical { border-left-color: var(--crimson); }
.fix.severity-serious { border-left-color: var(--stamp-d); }
.fix.severity-minor { border-left-color: var(--rule); }
.fix h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.step {
  display: inline-block;
  min-width: 1.6rem;
  padding: 0 0.3rem;
  margin-right: 0.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-align: center;
}
.fix .meta { color: var(--muted); margin: 0 0 0.5rem; font-size: 0.95rem; }
.places { margin: 0.2rem 0 0 1.1rem; }

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  border-top: 2px solid var(--ink);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media print {
  .skip, .masthead nav { display: none; }
  body { background: #fff; }
  .stamp { box-shadow: none; }
  a { color: inherit; }
  .fix, .notice, .ledger { break-inside: avoid; }
}

@media (max-width: 40rem) {
  body { font-size: 1.05rem; }
  .ledger th, .ledger td { padding: 0.55rem 0.4rem; }
}
