/* Pay Census — municipal yellow census form / binder directory
   Unlike: paydesk blotter, sidewage timecard, earnindex night chamber */

:root {
  color-scheme: light;

  --yellow: #F0D83A;
  --yellow-2: #F7E86A;
  --yellow-deep: #D4BC18;
  --ink: #12100A;
  --ink-2: #3A3528;
  --ink-3: #6E6755;
  --paper: #FBF8EC;
  --paper-2: #FFFDF4;
  --blue: #1B3F8B;
  --blue-deep: #122C63;
  --stamp: #C0182A;
  --line: #C9BE7A;
  --rule: rgba(27, 63, 139, 0.22);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "Anonymous Pro", "Consolas", monospace;

  --shell: 72rem;
  --gutter: clamp(1.2rem, 4.5vw, 3.25rem);
  --band: clamp(3rem, 7vw, 5.5rem);
  --binder: clamp(2.4rem, 5vw, 3.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(27, 63, 139, 0.035) 47px,
      rgba(27, 63, 139, 0.035) 48px
    ),
    var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.75rem 1.1rem;
  font-family: var(--mono);
  text-decoration: none;
  z-index: 50;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.clip { position: relative; }
.clip::before { display: none !important; }

/* ---------- header ---------- */

.top {
  background: var(--ink);
  color: var(--yellow);
  border-bottom: 4px solid var(--stamp);
}
.top__id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.95rem 0.55rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
}
.brand:hover { color: var(--yellow-2); }
.brand__glyph { width: 1.6rem; height: 1.4rem; }
.top__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--yellow) 65%, transparent);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
  padding-block: 0.45rem 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--yellow) 22%, transparent);
}
.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--yellow) 78%, transparent);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  padding-bottom: 0.1rem;
}
.nav a:hover { color: #fff; }
.nav a[aria-current] {
  color: #fff;
  border-bottom-color: var(--stamp);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.45rem); margin-block: 0.3rem 0.9rem; }
h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin-block: 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--stamp); }

.label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 0.4rem;
}
.label--mute { color: var(--ink-3); }

/* ---------- HERO: full-bleed yellow census form ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(96vh, 58rem);
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
  display: grid;
  align-items: end;
  padding:
    clamp(2.5rem, 6vw, 4.5rem)
    var(--gutter)
    clamp(2.75rem, 6vw, 4.5rem)
    calc(var(--gutter) + var(--binder));
  border-bottom: 8px solid var(--ink);
}

.hero__rules {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      transparent 0,
      transparent 31px,
      var(--rule) 31px,
      var(--rule) 32px
    ),
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(var(--binder) + 0.4rem),
      rgba(192, 24, 42, 0.45) calc(var(--binder) + 0.4rem),
      rgba(192, 24, 42, 0.45) calc(var(--binder) + 0.55rem),
      transparent calc(var(--binder) + 0.55rem)
    );
  pointer-events: none;
}

.hero__binder {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--binder);
  z-index: -1;
  background:
    linear-gradient(90deg, #E2CB20 0%, var(--yellow-deep) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding-block: 1.5rem;
  border-right: 2px solid rgba(18, 16, 10, 0.15);
}
.hero__binder i {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #FFF9E0 0 28%, transparent 30%),
    #1a1810;
  box-shadow:
    inset 0 0 0 2px var(--ink),
    0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero__stamp {
  position: absolute;
  right: max(4%, calc((100% - var(--shell)) / 2));
  top: 18%;
  width: min(42vw, 18rem);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  animation: stampIn 0.9s 0.35s cubic-bezier(0.2, 1.2, 0.35, 1) both;
}
.hero__stamp::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 5px double var(--stamp);
  border-radius: 50%;
  opacity: 0.88;
  transform: rotate(-18deg);
}
.hero__stamp::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  opacity: 0.7;
  transform: rotate(-18deg);
}
.hero__stamp span {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp);
  transform: rotate(-18deg);
  opacity: 0.85;
  text-align: center;
  line-height: 1;
  mix-blend-mode: multiply;
}

.hero__sheet {
  position: relative;
  z-index: 2;
  max-width: min(40rem, 100%);
  padding-inline: 0;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__series {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.1rem;
  color: var(--ink-2);
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
  max-width: 28rem;
}

.hero__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 2.2rem + 11vw, 10.5rem);
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1.35rem;
  color: var(--ink);
  text-shadow: 5px 5px 0 rgba(27, 63, 139, 0.2);
  max-width: 8ch;
}

.hero h1 {
  font-size: clamp(1.35rem, 1.05rem + 1.35vw, 2.05rem);
  font-weight: 700;
  max-width: 20ch;
  margin: 0 0 1.1rem;
  color: var(--blue-deep);
  line-height: 1.05;
}

.hero__stand {
  font-family: var(--text);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  max-width: 36ch;
  margin: 0 0 1.75rem;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.hero__fields {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 34rem;
  border-top: 3px solid var(--ink);
  background: color-mix(in srgb, var(--yellow) 70%, #fff);
}
.hero__fields > div {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
}
.hero__fields dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0;
}
.hero__fields dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.6rem); }
  to { opacity: 1; transform: none; }
}
@keyframes stampIn {
  from { opacity: 0; transform: scale(1.35) rotate(-28deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */

.block { padding-block: var(--band); }
.block--ink {
  background: var(--ink);
  color: var(--paper);
  border-block: 4px solid var(--stamp);
}
.block--ink a { color: var(--yellow); }
.block--ink .label { color: var(--yellow); }
.block--ink h2 { color: #fff; }
.block--ink p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.block--yellow {
  background: var(--yellow-2);
  border-block: 3px solid var(--ink);
}
.block > .shell > p { max-width: 54ch; color: var(--ink-2); }

.lede {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin-top: 1rem;
}
@media (min-width: 52rem) {
  .lede { grid-template-columns: 1fr 1fr 1fr; }
}
.lede p {
  color: var(--ink-2);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
}

.schedule {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
}
.schedule__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.75rem 1rem;
}
.schedule__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.badge {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--stamp);
  color: #fff;
  padding: 0.2rem 0.45rem;
  align-self: center;
}
.tablewrap { overflow-x: auto; padding: 0.75rem 1rem 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  padding: 0.35rem 0 0.65rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.6rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 2px solid var(--ink);
}
tbody th { font-weight: 650; }
.tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--stamp);
  white-space: nowrap;
}

.roster {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
  border: 3px solid var(--ink);
  background: var(--paper-2);
}
.entry {
  display: grid;
  gap: 0.75rem 1.5rem;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  border-bottom: 2px solid var(--ink);
  transition: background 0.2s ease;
}
.entry:last-child { border-bottom: 0; }
.entry:hover { background: var(--yellow-2); }
.entry__id {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin: 0;
}
.entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.entry__meta b { color: var(--ink-2); font-weight: 700; }
.entry h3 { margin-bottom: 0.4rem; }
.entry h3 a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.entry h3 a:hover { color: var(--stamp); text-decoration: underline; }
.entry p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

@media (min-width: 48rem) {
  .entry { grid-template-columns: 5.5rem 1fr; align-items: start; }
}

.standards {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.standards li {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-left: 8px solid var(--blue);
  padding: 1rem 1.15rem;
  color: var(--ink-2);
}
.standards li:nth-child(2) { border-left-color: var(--stamp); }
.standards li:nth-child(3) { border-left-color: var(--yellow-deep); }
.standards li:nth-child(4) { border-left-color: var(--ink); }
.standards strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.defs { margin: 1.25rem 0 0; }
.defs dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}
.defs dt:first-of-type { border-top: 2px solid var(--ink); }
.defs dd {
  margin: 0.35rem 0 1rem;
  color: var(--ink-2);
  max-width: 68ch;
  text-transform: none;
  font-family: var(--text);
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 400;
}

.flag {
  margin-top: 1.6rem;
  background: var(--ink);
  color: var(--yellow);
  padding: 1.1rem 1.25rem;
  border: 3px solid var(--stamp);
}
.flag p { color: color-mix(in srgb, var(--yellow) 88%, #fff); font-size: 0.95rem; }

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 {
  margin-top: 1.65rem;
  margin-bottom: 0.45rem;
  text-transform: none;
  font-family: var(--display);
}
.prose ul, .prose ol { padding-left: 1.15rem; }

.article__head {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
  position: relative;
}
.article__head::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0.55rem;
  background: repeating-linear-gradient(
    180deg,
    var(--ink) 0 10px,
    var(--stamp) 10px 20px,
    var(--blue) 20px 30px
  );
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.article__meta b { color: var(--blue); font-weight: 700; }

.sources {
  margin-top: 2.2rem;
  border-top: 3px solid var(--ink);
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.backlink {
  display: inline-block;
  margin-top: 1.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot {
  background: var(--ink);
  color: color-mix(in srgb, var(--yellow) 70%, transparent);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 6px solid var(--yellow);
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--yellow) 25%, transparent);
}
.foot__nav a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
}
.foot__nav a:hover { color: #fff; text-decoration: underline; }
.foot__note {
  margin-top: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 78ch;
  font-family: var(--text);
  text-transform: none;
}
.foot__note a { color: var(--yellow-2); }

.void { padding-block: clamp(3.5rem, 9vw, 7rem); }

@media (max-width: 40rem) {
  .hero {
    padding-left: calc(var(--gutter) + 2rem);
    align-items: start;
  }
  .hero__binder { width: 2rem; }
  .hero__binder i { width: 0.85rem; height: 0.85rem; }
  .hero__stamp {
    width: min(55vw, 11rem);
    top: 8%;
    right: 2%;
    opacity: 0.55;
  }
  .hero__fields > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
