:root {
  --ink: #15120f;
  --charcoal: #201f1d;
  --paper: #f6efe3;
  --paper-deep: #eadbc5;
  --moss: #51644d;
  --clay: #9b5639;
  --brass: #b28a45;
  --cream: #fffaf0;
  --muted: #776e62;
  --line: rgba(32, 31, 29, 0.16);
  --shadow: 0 24px 70px rgba(21, 18, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--cream);
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.78), rgba(10, 9, 8, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 240, 0.72);
  background: rgba(21, 18, 15, 0.52);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 30px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 6vw, 84px) 72px;
  color: var(--cream);
  background: var(--charcoal);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 11, 10, 0.9), rgba(13, 11, 10, 0.58) 42%, rgba(13, 11, 10, 0.12) 76%),
    linear-gradient(0deg, rgba(13, 11, 10, 0.76), rgba(13, 11, 10, 0.08) 44%);
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.archive-search {
  display: flex;
  max-width: 760px;
  border: 1px solid rgba(255, 250, 240, 0.58);
  background: rgba(255, 250, 240, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.archive-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 18px 18px;
  color: var(--cream);
  background: transparent;
  outline: 0;
}

.archive-search input::placeholder {
  color: rgba(255, 250, 240, 0.7);
}

.archive-search button,
.contribution-form button {
  border: 0;
  padding: 0 24px;
  color: var(--cream);
  background: var(--clay);
  cursor: pointer;
}

.archive-search button:hover,
.archive-search button:focus-visible,
.contribution-form button:hover,
.contribution-form button:focus-visible {
  background: #7f412b;
}

.intro-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 6vw, 84px);
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

.intro-band div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.intro-band span {
  color: rgba(255, 250, 240, 0.76);
}

.intro-band a {
  color: var(--paper-deep);
  font-weight: 700;
  white-space: nowrap;
}

.section,
.split-section,
.contribute-section {
  padding: clamp(56px, 9vw, 104px) clamp(18px, 6vw, 84px);
}

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

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.15;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--cream);
  background: var(--charcoal);
}

.collection-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.collection-card,
.story-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.66);
}

.collection-card[hidden] {
  display: none;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--clay);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-card p,
.story-grid p,
.split-copy p,
.contribute-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  background: var(--cream);
}

.map-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(33deg, rgba(81, 100, 77, 0.24) 0 18%, transparent 18% 100%),
    linear-gradient(150deg, transparent 0 45%, rgba(178, 138, 69, 0.2) 45% 47%, transparent 47% 100%),
    repeating-linear-gradient(0deg, rgba(32, 31, 29, 0.07) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(32, 31, 29, 0.06) 0 1px, transparent 1px 42px),
    #eadbc5;
}

.map-river {
  position: absolute;
  left: -10%;
  top: 28%;
  width: 125%;
  height: 110px;
  transform: rotate(-13deg);
  background: rgba(70, 105, 112, 0.42);
  border-top: 1px solid rgba(32, 31, 29, 0.14);
  border-bottom: 1px solid rgba(32, 31, 29, 0.14);
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--cream);
  border-radius: 999px;
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(155, 86, 57, 0.22);
}

.pin-one {
  left: 22%;
  top: 30%;
}

.pin-two {
  left: 58%;
  top: 52%;
}

.pin-three {
  left: 72%;
  top: 24%;
}

.map-label {
  position: absolute;
  padding: 8px 10px;
  color: var(--charcoal);
  background: rgba(255, 250, 240, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.label-one {
  left: 26%;
  top: 33%;
}

.label-two {
  left: 62%;
  top: 55%;
}

.label-three {
  left: 48%;
  top: 21%;
}

.split-copy {
  max-width: 570px;
}

.split-copy p {
  margin-top: 22px;
}

.place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  font-family: Arial, Helvetica, sans-serif;
}

.place-list span {
  padding: 13px 14px;
  border-left: 4px solid var(--moss);
  background: var(--paper);
}

.story-section {
  background: var(--charcoal);
  color: var(--cream);
}

.story-section .eyebrow {
  color: var(--paper-deep);
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid article {
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.18);
}

.story-grid p {
  color: rgba(255, 250, 240, 0.72);
}

.contribute-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  background: var(--paper-deep);
}

.contribute-copy {
  max-width: 560px;
}

.contribute-copy p {
  margin-top: 22px;
}

.contribution-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 18px 42px rgba(21, 18, 15, 0.08);
}

.contribution-form label {
  display: grid;
  gap: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.contribution-form input,
.contribution-form select,
.contribution-form textarea {
  width: 100%;
  border: 1px solid rgba(32, 31, 29, 0.24);
  padding: 12px;
  color: var(--ink);
  background: #fffdf7;
}

.contribution-form textarea {
  resize: vertical;
}

.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 400 !important;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.contribution-form button {
  min-height: 50px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--moss);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 6vw, 84px);
  color: rgba(255, 250, 240, 0.75);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  .archive-search,
  .intro-band,
  .site-footer {
    flex-direction: column;
  }

  .archive-search button {
    min-height: 52px;
  }

  .collection-grid,
  .story-grid,
  .split-section,
  .contribute-section {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 112px;
    padding-bottom: 48px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .archive-search {
    display: grid;
  }

  .archive-search button {
    width: 100%;
  }

  .collection-card,
  .story-grid article {
    min-height: 0;
  }

  .place-list {
    grid-template-columns: 1fr;
  }
}
