/*
  Cranbury Brook Digital Archive
  Reconstructed foundational stylesheet.
  The page-specific enhancement styles remain embedded in index.html.
*/

:root {
  --ink: #202820;
  --muted: #626b62;
  --green-950: #172311;
  --green-900: #1d3014;
  --green-800: #253b16;
  --green-700: #355526;
  --green-600: #4d6d3d;
  --cream: #f4f0e4;
  --paper: #ffffff;
  --soft: #f6f7f3;
  --line: #d6dcd3;
  --gold: #d5a526;
  --gold-dark: #a97d12;
  --max-width: 1180px;
  --header-height: 82px;
  --body-font: "EB Garamond", Georgia, "Times New Roman", serif;
  --display-font: "EB Garamond", Georgia, "Times New Roman", serif;
  --ui-font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.075rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--body-font);
}

button,
input,
select,
textarea {
  font-family: var(--ui-font);
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--green-700);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--green-900);
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: inherit;
  font-family: var(--display-font);
  font-weight: 700;
}

h2 {
  margin-bottom: 0.85rem;
}

h3 {
  margin-bottom: 0.7rem;
}

::selection {
  background: #d8c381;
  color: #172015;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.7rem;
  left: 0.7rem;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111;
  border: 2px solid #111;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header and navigation */
.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: #fff;
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 3rem));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
  line-height: 1.05;
}

.brand:hover,
.brand:focus-visible {
  color: inherit;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

.brand strong {
  display: block;
  font-family: var(--display-font);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.95rem;
}

.site-nav a {
  color: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav-cta {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.32rem 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 21, 10, 0.72) 0%, rgba(10, 21, 10, 0.36) 48%, rgba(10, 21, 10, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 17, 9, 0.62) 0%, rgba(8, 17, 9, 0.05) 58%);
}

.hero-content {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
  padding: calc(var(--header-height) + 4rem) 0 clamp(5.6rem, 11vh, 8rem);
}

.hero-content > * {
  max-width: 820px;
}

.hero .eyebrow {
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero h1 {
  max-width: 760px;
  color: #fff;
  font-family: var(--display-font);
  text-wrap: balance;
}

.hero-copy {
  max-width: 850px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.97);
  font-family: var(--display-font);
  font-size: clamp(0.96rem, 1.35vw, 1.12rem);
  font-weight: 700;
  line-height: 1.42;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-note {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--max-width)) / 2));
  bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Buttons and links */
.button,
.filter,
.explore-filter {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.05rem;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--green-800);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.button:focus-visible,
.filter:hover,
.filter:focus-visible,
.explore-filter:hover,
.explore-filter:focus-visible {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #273014;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e0b540;
  border-color: #e0b540;
  color: #172015;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--green-900);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

/* Shared sections */
.section {
  padding: clamp(4.5rem, 8vw, 7rem) max(1.5rem, calc((100vw - var(--max-width)) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading.centered,
.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green-700);
}

.prose {
  max-width: 760px;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose a {
  overflow-wrap: anywhere;
}

.lead {
  font-size: 1.15rem;
}

.section-grid,
.about-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.section-grid > div:first-child,
.about-grid > div:first-child {
  position: sticky;
  top: 1.5rem;
}

.at-a-glance-grid,
.focus-cards,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.at-a-glance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.focus-card,
.archive-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.info-card > strong,
.info-card .fact-value {
  display: block;
}

.info-card p,
.focus-card p,
.archive-card p {
  color: #4f5951;
}

.info-card p:last-child,
.focus-card p:last-child,
.archive-card p:last-child {
  margin-bottom: 0;
}

.focus-cards {
  margin-top: 3rem;
}

.focus-card {
  position: relative;
  padding-top: 4rem !important;
}

.card-number {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  color: var(--green-700);
  font-family: var(--display-font);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Detailed records */
.brook-detail-copy {
  line-height: 1.72;
}

.brook-detail-aside {
  position: sticky;
  top: 1.5rem;
}

.source-list a,
.timeline-source-list a {
  overflow-wrap: anywhere;
}

.note,
.research-note {
  padding: 1rem 1.15rem;
}

/* Timeline */
.timeline-section {
  background: var(--green-800);
  color: #fff;
}

.timeline-section .section-heading > p,
.timeline-section .timeline-item > p {
  color: rgba(255, 255, 255, 0.82);
}

.timeline {
  max-width: var(--max-width);
  margin: 0 auto;
}

.timeline-item {
  min-height: 100%;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-kicker {
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.timeline-item h3 {
  color: #fff;
}

.timeline-item a {
  color: inherit;
}

.timeline-item.timeline-is-expanded {
  background: rgba(255, 255, 255, 0.07);
}

/* Field guide */
.field-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.field-copy {
  max-width: 660px;
}

.field-checklist {
  padding: 2rem;
  background: var(--green-800);
  color: #fff;
}

.field-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.field-checklist li {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.field-checklist li:first-child {
  border-top: 0;
  padding-top: 0.4rem;
}

.field-checklist strong,
.field-checklist span {
  display: block;
}

.field-checklist span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

/* Forms and participation */
.participate-section {
  background: var(--green-800);
  color: #fff;
}

.participate-card {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.participate-card > div > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.interest-form {
  display: grid;
  gap: 1rem;
}

.interest-form label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.interest-form input,
.interest-form select,
.interest-form textarea,
.search-box input,
.archive-search-panel input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #aab4a7;
  border-radius: 2px;
  outline: none;
  background: #fff;
  color: #172015;
  font-weight: 400;
}

.interest-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.interest-form input:focus,
.interest-form select:focus,
.interest-form textarea:focus,
.search-box input:focus,
.archive-search-panel input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(213, 165, 38, 0.25);
}

.interest-form input[type="file"] {
  padding: 0.55rem;
}

.interest-form small,
.form-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 400;
}

.permission-group {
  margin: 0;
}

.permission-group legend {
  padding: 0 0.35rem;
}

.permission-group label {
  font-weight: 400;
}

/* Archive tools */
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter {
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  border-color: var(--line);
  background: #fff;
  color: var(--green-800);
}

.filter.active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.search-box {
  width: min(320px, 100%);
}

.archive-grid {
  align-items: stretch;
}

.archive-card {
  display: flex;
  min-height: 100%;
}

.archive-body {
  width: 100%;
}

.archive-meta {
  margin-bottom: 0.6rem;
  color: var(--green-700) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.45;
  text-transform: uppercase;
}

.archive-card h3 a {
  color: inherit;
  text-decoration: none;
}

.archive-card h3 a:hover,
.archive-card h3 a:focus-visible {
  text-decoration: underline;
}

.no-results {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
}

/* Sections whose inline style makes them dark */
#community-contributions .section-heading > p,
#community-contributions .form-note {
  color: rgba(255, 255, 255, 0.78);
}

#community-contributions .archive-card {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#community-contributions .archive-card p,
#community-contributions .archive-meta {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Dialog */
.submission-dialog {
  background: #fff;
  color: var(--ink);
}

.submission-dialog-shell {
  padding-top: 3rem !important;
}

.dialog-close {
  color: var(--green-900);
}

.submission-dialog figure {
  margin: 1.5rem 0;
}

.submission-dialog figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem max(1.5rem, calc((100vw - var(--max-width)) / 2));
  background: var(--green-950);
  color: #fff;
}

.site-footer .brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-basis: 2.35rem;
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Admin page */
.admin-shell {
  color: var(--ink);
}

.admin-shell h1 {
  color: var(--green-900);
}

.admin-login,
.admin-panel {
  width: 100%;
}

.admin-login .interest-form {
  max-width: 540px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}

.admin-login .interest-form label {
  color: var(--ink);
}

.admin-card {
  color: var(--ink);
}

.admin-card a {
  overflow-wrap: anywhere;
}

/* Responsive navigation */
@media (max-width: 1120px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-height) - 0.35rem);
    right: 1.5rem;
    width: min(360px, calc(100vw - 3rem));
    max-height: calc(100svh - var(--header-height) - 1rem);
    padding: 0.65rem;
    overflow-y: auto;
    display: grid;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(23, 35, 17, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    border: 0;
  }
}

@media (max-width: 960px) {
  .at-a-glance-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-cards {
    grid-template-columns: 1fr;
  }

  .field-section,
  .participate-card {
    grid-template-columns: 1fr;
  }

  .field-copy {
    max-width: 760px;
  }

  .brook-detail-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .nav-wrap,
  .hero-content {
    width: min(100% - 2rem, var(--max-width));
  }

  .brand strong {
    font-size: 0.93rem;
  }

  .brand small {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    flex-basis: 2.4rem;
    font-size: 1.45rem;
  }

  .hero {
    min-height: 760px;
    background-position: 57% center;
  }

  .hero-content {
    padding-bottom: 5rem;
  }

  .hero-copy {
    font-family: var(--body-font);
    font-weight: 600;
  }

  .hero-note {
    right: 1rem;
    bottom: 0.9rem;
  }

  .section {
    padding: 4.25rem 1rem;
  }

  .section-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-grid > div:first-child,
  .about-grid > div:first-child {
    position: static;
  }

  .archive-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 21, 10, 0.74) 0%, rgba(10, 21, 10, 0.32) 100%),
      linear-gradient(0deg, rgba(8, 17, 9, 0.7) 0%, rgba(8, 17, 9, 0.08) 68%);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .at-a-glance-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .field-checklist {
    padding: 1.35rem;
  }

  .archive-summary-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* EB Garamond editorial typography */
.site-nav,
.menu-toggle,
.button,
.filter,
.explore-filter,
.nav-cta,
.eyebrow,
.archive-meta,
.record-id,
.form-note,
.search-result-note,
.unified-result-meta,
label,
input,
select,
textarea,
button {
  font-family: var(--ui-font);
}

.prose,
.archive-body p,
.focus-card p,
.info-card p,
.timeline-item p,
.brook-detail-copy,
.brook-detail-aside,
.section-heading > p,
.participate-card > div > p,
.site-footer p,
.site-footer a {
  font-family: var(--body-font);
}

/* Visible unified-search results */
.unified-search-results {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 0.25rem;
  scroll-margin-top: 1.5rem;
}

.unified-search-results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.unified-search-results-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.unified-search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.unified-result-card {
  min-width: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-800);
}

.unified-result-card h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
}

.unified-result-meta {
  margin-bottom: 0.4rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.unified-result-summary {
  margin-bottom: 1rem;
  color: var(--muted);
}

.unified-result-action {
  display: inline-flex;
  width: auto;
  margin-top: auto;
  cursor: pointer;
}

.unified-search-empty {
  margin: 0;
  padding: 1.25rem;
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 600;
}

@media (max-width: 760px) {
  .unified-search-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Original Pinegrow-style opening composition */
.hero {
  min-height: 100svh;
  background-position: center 48%;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 17, 9, 0.10) 0%, rgba(7, 17, 9, 0.02) 38%, rgba(7, 17, 9, 0.70) 100%),
    linear-gradient(90deg, rgba(7, 18, 9, 0.42) 0%, rgba(7, 18, 9, 0.17) 54%, rgba(7, 18, 9, 0.02) 100%);
}

.hero-content > *,
.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.36;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.hero .eyebrow,
.brand small,
.hero-note {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.menu-toggle {
  color: #f3ead1;
}

/* Keep the site editorial and predominantly EB Garamond, including places
   where the preserved page-level enhancement CSS names Merriweather. */
.fact-value,
.archive-stat strong,
.brook-detail-aside .fact,
.brook-detail-copy h2,
.brook-detail-aside h2,
.timeline-research-copy h4,
.timeline-source-panel h4 {
  font-family: var(--display-font) !important;
}

.unified-result-card {
  display: flex;
  flex-direction: column;
}

.unified-result-summary {
  flex: 1 1 auto;
}

@media (max-width: 760px) {
  .hero {
    background-position: 55% center;
  }

  .hero-content > *,
  .hero-copy {
    max-width: 100%;
  }
}
