@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f7f4;
  --ink: #18212b;
  --ink-soft: #4a5562;
  --rule: #ccd6cf;
  --ledger: #2e5b4e;
  --margin-red: #b0322b;
  --measure: 40rem;
  --page: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--ledger);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--ledger);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Masthead */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.masthead nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.masthead nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Intro */
.intro {
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2rem, 5vw, 3.5rem);
}
.intro h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.25rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.1875rem;
  line-height: 1.55;
}

/* Register: the county directory */
.register h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.register table {
  width: 100%;
  border-collapse: collapse;
}
.register th {
  padding: 0 1rem 0.6rem 0;
  border-bottom: 4px double var(--margin-red);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}
.register td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.register th:last-child,
.register td:last-child {
  padding-right: 0;
}
.register .county {
  font-weight: 650;
}
.register .seat,
.register .state {
  color: var(--ink-soft);
}
.register .place {
  display: none;
}

/* Details: how records work + contact */
.details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.details h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.details p {
  margin: 0 0 1rem;
  max-width: 34rem;
}
.notice {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ledger);
  font-weight: 600;
}
.contact dl {
  margin: 0;
}
.contact dt {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
}
.contact dt:first-child {
  margin-top: 0;
}
.contact dd {
  margin: 0.15rem 0 0;
}
.contact .hint {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Long-form pages (privacy, terms) */
.doc {
  max-width: var(--measure);
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.doc .updated {
  margin: 0.75rem 0 2.5rem;
  color: var(--ink-soft);
}
.doc h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
}
.doc p {
  margin: 0 0 1rem;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.footer p {
  margin: 0;
}
.footer nav {
  display: flex;
  gap: 1.5rem;
}
.footer a {
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .register .seat,
  .register .state,
  .register th.col-seat,
  .register th.col-state {
    display: none;
  }
  .register .place {
    display: block;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    font-weight: 400;
  }
  .register td {
    vertical-align: top;
  }
  .register td:last-child {
    word-break: break-word;
  }
}
