/* Brown County Indiana Genealogy — shared archive styles */
:root {
  --bg: #f4efe6;
  --surface: #fffdf8;
  --surface-soft: #f8f2e8;
  --text: #2f2a24;
  --muted: #6e6459;
  --accent: #7a4a24;
  --accent-dark: #533119;
  --green: #566b3f;
  --green-dark: #3f512e;
  --border: #ddcfbc;
  --notice: #f6efd7;
  --shadow: 0 16px 42px rgba(63, 43, 24, .11);
  --radius: 17px;
  --content-width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122,74,36,.10), transparent 34rem),
    linear-gradient(180deg, #eee5d8 0, var(--bg) 24rem, var(--bg) 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.68;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(122,74,36,.35); outline-offset: 3px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: #fff; }
.skip-link:focus { left: 8px; }
.archive-header {
  color: #fff;
  background: linear-gradient(135deg, rgba(55,67,39,.98), rgba(89,55,28,.96));
}
.archive-header__inner {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 36px;
}
.archive-kicker {
  margin: 0 0 8px;
  color: #eee1bf;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.archive-header h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}
.archive-subtitle {
  max-width: 780px;
  margin: 14px 0 0;
  color: #f4e9d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.22rem);
}
.site-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(83,49,25,.18);
  background: rgba(255,253,248,.96);
  backdrop-filter: blur(10px);
}
.site-nav__inner {
  display: flex;
  width: min(var(--content-width), calc(100% - 24px));
  margin: 0 auto;
  overflow-x: auto;
}
.site-nav a {
  flex: 0 0 auto;
  padding: 14px 15px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: var(--accent); }
.breadcrumbs {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: .9rem;
}
.breadcrumbs a { color: var(--muted); }
.archive-main {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 20px auto 54px;
}
.panel, .archive-article, .letter-paper {
  padding: clamp(22px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.archive-article { max-width: 980px; margin: 0 auto; }
.letter-paper {
  max-width: 880px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.075rem;
}
.letter-paper p { margin: 0 0 1.05em; }
.letter-paper .signed, .archive-content .signed { margin: 24px 0 24px auto; max-width: 360px; }
.archive-content h2, .archive-content h3, .archive-content h4,
.section-title {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.22;
}
.archive-content h2 { margin: 1.5em 0 .55em; font-size: 1.75rem; }
.archive-content h3 { margin: 1.35em 0 .5em; font-size: 1.35rem; }
.archive-content p:first-child { margin-top: 0; }
.archive-content hr { width: min(280px, 55%); margin: 30px auto; border: 0; border-top: 2px solid var(--border); }
.archive-content pre {
  max-width: 100%;
  padding: 18px;
  overflow: auto;
  white-space: pre;
  color: #2f2a24;
  background: #faf6ee;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: .93rem/1.55 "Courier New", monospace;
}
.table-scroll { width: 100%; margin: 20px 0; overflow-x: auto; }
.archive-content table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; }
.archive-content th, .archive-content td { padding: 11px 13px; vertical-align: top; border: 1px solid var(--border); text-align: left; }
.archive-content tr:nth-child(even) { background: #faf6ee; }
.archive-content blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  color: #4c433a;
  background: var(--surface-soft);
  border-left: 5px solid var(--green);
}
.archive-note {
  margin: 0 0 22px;
  padding: 16px 18px;
  color: #4c432f;
  background: var(--notice);
  border: 1px solid #dfd09d;
  border-left: 5px solid #a68734;
  border-radius: 10px;
}
.section-title { margin: 0 0 8px; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 500; }
.section-intro { max-width: 760px; margin: 0 0 24px; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr); gap: 24px; align-items: start; }
.portrait-card { text-align: center; }
.portrait-card img { max-height: 430px; border: 8px solid #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(44,31,20,.18); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.card {
  min-width: 0;
  padding: 21px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(63,43,24,.07);
}
.card h2, .card h3 { margin: 0 0 9px; color: var(--green-dark); font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
.card h2 { font-size: 1.35rem; }
.card h3 { font-size: 1.23rem; }
.card p { margin: 0 0 13px; color: var(--muted); }
.card a { font-weight: 700; overflow-wrap: anywhere; }
.filter-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0 0 20px;
}
.filter-box input {
  min-width: 0;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #bca98f;
  border-radius: 9px;
  font: inherit;
}
.filter-count { align-self: center; color: var(--muted); font-size: .9rem; }
.letter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.letter-link {
  display: block;
  min-width: 0;
  padding: 15px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  text-decoration: none;
}
.letter-link:hover { color: #fff; background: var(--green); border-color: var(--green); }
.letter-link strong { display: block; margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.letter-link span { display: block; color: var(--muted); font-size: .86rem; }
.letter-link:hover span { color: #f1eadf; }
.page-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  max-width: 880px;
  margin: 18px auto 0;
  align-items: center;
}
.page-nav a {
  display: block;
  padding: 11px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
}
.page-nav a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.page-nav .next { text-align: right; }
.page-nav .index { text-align: center; }
.archive-unavailable { text-align: center; }
.archive-unavailable .status { display: inline-block; padding: 6px 10px; color: #754f16; background: #fff2c9; border-radius: 999px; font-weight: 700; }
.site-footer { padding: 28px 16px; color: #e9dfd0; text-align: center; background: #33291f; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #f2d6ad; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .cards, .letter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .archive-header__inner { padding: 34px 0 30px; }
  .archive-main, .breadcrumbs { width: min(100% - 20px, var(--content-width)); }
  .panel, .archive-article, .letter-paper { padding: 21px 17px; border-radius: 13px; }
  .cards, .letter-list { grid-template-columns: 1fr; }
  .filter-box { grid-template-columns: 1fr; }
  .page-nav { grid-template-columns: 1fr; }
  .page-nav .next, .page-nav .index { text-align: left; }
  .archive-content table { min-width: 450px; }
}
