@font-face {
  font-family: "Montserrat";
  src: url("montserrat-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #173b60;
  --soft-ink: #465768;
  --navy: #173b60;
  --blue: #016598;
  --pale: #eaf3fa;
  --paper: #fff;
  --wash: #f8fafc;
  --line: #d9e3ec;
  --radius: 13px;
  font: 100%/1.6 "Lato", system-ui, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); min-width: 0; }
main { min-height: calc(100vh - 150px); }
h1, h2, h3, p, ul, dl { margin-top: 0; }
h1, h2, h3 { line-height: 1.17; }
h1, h2, h3 { font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 6.6vw, 5.4rem); letter-spacing: -.035em; margin-bottom: .34em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin-bottom: .66em; letter-spacing: -.018em; }
h3 { font-size: 1.08rem; margin-bottom: .22em; }
a { color: var(--blue); text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { background: var(--blue); color: var(--paper); padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 690; line-height: 1.45; min-height: 44px; }
button:hover { background: #065584; }
button.secondary { background: var(--paper); border-color: #8598a8; color: var(--navy); }
button.secondary:hover { background: var(--pale); }
:focus-visible { outline: 3px solid #006a9c; outline-offset: 3px; }

input:not([type="checkbox"]), select, textarea {
  display: block; width: 100%; min-width: 0; padding: .64rem .76rem; min-height: 44px; background: var(--paper);
  border: 1px solid #8195a6; border-radius: 8px; color: var(--ink);
}
input::placeholder { color: #526176; opacity: 1; }
textarea { resize: vertical; line-height: 1.45; }
select { padding-right: 1.15rem; }
label { display: block; font-size: .93rem; font-weight: 680; }
label :is(input,select,textarea):not([type="checkbox"]) { margin-top: .25rem; }
.skip { background: white; color: var(--ink); position: absolute; left: .75rem; top: .5rem; padding: .65rem 1rem; z-index: 5; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.wrap { max-width: 76rem; width: calc(100% - 3rem); margin-inline: auto; }
.narrow { max-width: 54rem; }
/* The white masthead and photo banner match the county website. */
.site-header { background: white; border-bottom: 1px solid var(--line); }
.masthead { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.2rem; }
.identity { display: block; flex: none; }
.identity img { display: block; width: clamp(8rem, 20vw, 15rem); height: auto; }
.site-header nav, .header-links { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .65rem; }
.site-header nav a {
  color: #3c5267; text-decoration: none; padding: .65rem .45rem;
  font: 700 .84rem/1.45 "Montserrat", sans-serif; letter-spacing: .085em; text-transform: uppercase;
}
.site-header nav a:hover, .site-header nav a[aria-current] {
  color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px;
}
.header-links { justify-content: flex-end; font-size: .95rem; }
.header-links a { padding: .45rem .52rem; }
.staff-link { border: 1px solid #a1b9c9; border-radius: 7px; text-decoration: none; }
.staff-link:hover { background: var(--pale); }
.hero {
  color: white; text-align: center; background-color: #173b60;
  background-image: linear-gradient(90deg, rgb(9 39 67 / 27%), rgb(9 39 67 / 35%)), url("warren-county-banner.webp");
  background-size: cover; background-position: center 50%;
}
.hero-inner {
  min-height: clamp(16rem, 30vw, 23.8rem); display: grid; align-content: center; justify-items: center;
  padding-block: 2.1rem;
}
.eyebrow { margin-bottom: .75rem; font-size: .82rem; font-weight: 750; letter-spacing: .11em; color: #315b68; }
.hero .eyebrow { color: white; font: 700 .86rem/1.4 "Montserrat", sans-serif; letter-spacing: .17em; }
.intro-copy { color: var(--soft-ink); max-width: 39rem; font-size: 1.12rem; margin-bottom: 0; }
.hero .intro-copy { color: white; }
.home-search {
  background: radial-gradient(ellipse at 85% 0%, #e1eff9, transparent 52%), linear-gradient(180deg, #edf5fb, #f7fafc);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem;
  margin-top: 1.5rem;
}
.home-search .search-form {
  padding: 0; border: 0; background: transparent; max-width: 42rem; margin: 0 auto;
}
.section-intro { background: linear-gradient(100deg, #eff6fb, #e5f0f8); border-bottom: 1px solid var(--line); padding-block: clamp(1.8rem, 5vw, 3.4rem); }
.section-intro h1 { font-size: clamp(2.3rem, 5vw, 3.65rem); }
.content { padding-block: 1.75rem 3rem; }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.6rem; }
.search-form .search-input { flex: 1 1 14rem; }
.search-form label:has(input[name="year"]) { width: 7.5rem; }
.shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 2.5rem; }
.shortcut { display: block; padding: 1.15rem; border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 3px 10px #173b6009; border-radius: var(--radius); background: white; text-decoration: none; color: var(--ink); }
.shortcut:hover { border-color: var(--blue); background: #f4fafc; }
.shortcut h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.shortcut p, .row-sub { font-size: .94rem; color: var(--soft-ink); margin: 0; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.section-bar { display: flex; flex-wrap: wrap; gap: .45rem 1rem; justify-content: space-between; align-items: baseline; }
.record-list, .staff-list, .attachment-list { list-style: none; margin: 0 0 1rem; padding: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.record-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .8rem; padding: 1rem; }
.record-row + .record-row, .staff-list li + li, .attachment-list li + li { border-top: 1px solid var(--line); }
.date-tile { width: 3.3rem; min-height: 3.55rem; display: grid; align-content: center; justify-items: center; background: #eaf1f5; border-radius: 8px; color: var(--navy); line-height: 1; }
.date-tile small { text-transform: uppercase; font-weight: 750; letter-spacing: .055em; }
.date-tile strong { margin-top: .24rem; font: 700 1.35rem "Montserrat", sans-serif; }
.row-meta { color: #36596a; font-size: .86rem; font-weight: 650; margin: 0 0 .18rem; }
.row-main, .staff-list li, .attachment-list li, .reading { overflow-wrap: anywhere; }
.badge { display: inline-block; width: fit-content; background: var(--pale); color: #1b4b60; padding: .22rem .58rem; font-size: .85rem; line-height: 1.35; font-weight: 720; border-radius: 99px; }
.badge.muted { background: #eef0f2; color: #465469; }
.empty { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: white; color: var(--soft-ink); }
.empty p { margin: 0; }
.site-footer { color: white; background: var(--blue); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1.25rem; }
.site-footer a { color: white; }
.breadcrumb { margin-bottom: 1.1rem; }
.narrow > h1 { font-size: clamp(2rem, 5vw, 3.45rem); }
.record-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.6rem; }
.record-facts dt { font-weight: 720; font-size: .87rem; color: var(--soft-ink); }
.record-facts dd { margin: 0; overflow-wrap: anywhere; }
.reading { max-width: 72ch; }
.reading p, .reading ul { margin-bottom: 1rem; }
.reading h2, .reading h3 { margin-top: 1.2em; }
.attachment-list li, .staff-list li { padding: .8rem 1rem; }
.attachment-links, .actions, .publication { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; }
.staff-bar { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; align-items: center; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.staff-bar form { margin-left: auto; }
.editor { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem); }
.stack > * + * { margin-top: 1rem; }
.stack label, .stack p { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field-help { color: var(--soft-ink); font-size: .94rem; }
.check { display: flex; align-items: start; gap: .5rem; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; flex: none; }
.staff-list li { display: flex; justify-content: space-between; align-items: start; gap: .75rem 1rem; }
.staff-list small { color: var(--soft-ink); display: block; margin-top: .1rem; font-size: .87rem; }
.attachments, .publication + .editor { margin-top: 1.35rem; }
.feedback { padding: .7rem .9rem; border: 1px solid #88afb5; background: #e5f2f3; border-radius: 8px; }
.embed { background: white; }
.embed h1 { font-size: clamp(1.7rem, 4vw, 2.55rem); margin: .7rem .8rem; }
.embed .content { padding-block: .4rem .75rem; width: calc(100% - 1.6rem); }
.embed .search-form { padding: .7rem; }
.embed-foot { margin-top: .6rem; }
@media (max-width: 58rem) {
  .masthead { flex-wrap: wrap; padding-block: .65rem; }
  .masthead nav { order: 3; width: 100%; padding-top: .25rem; border-top: 1px solid var(--line); justify-content: center; }
  .shortcuts { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .masthead { gap: .45rem; }
  .masthead nav { gap: 0 .22rem; }
  .masthead nav a { font-size: .78rem; padding: .5rem .38rem; letter-spacing: .04em; }
  .header-links { gap: .25rem .6rem; font-size: .89rem; }
  .header-links a { padding-block: .25rem; }
  .shortcut { padding: .85rem; }
  .record-row { grid-template-columns: auto minmax(0, 1fr); }
  .record-row .badge { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
}
