:root {
  --taupe: #a49a8a;
  --cream: #fbf1cd;
  --blush: #ebb2b4;
  --salmon: #e99898;
  --bark: #705746;
  --ink: #352b25;
  --river: #4e7d7b;
  --moss: #5d6a50;
  --paper: #fffaf0;
  --line: rgba(112, 87, 70, 0.22);
  --shadow: 0 22px 70px rgba(53, 43, 37, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-hero {
  min-height: 590px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(53, 43, 37, 0.92), rgba(112, 87, 70, 0.54) 45%, rgba(233, 152, 152, 0.22)),
    url("wolastoq-river.jpg") center 43% / cover;
  position: relative;
  overflow: hidden;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0), var(--paper));
  pointer-events: none;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 8px;
  background: rgba(255, 250, 240, 0.13);
  border: 1px solid rgba(255, 250, 240, 0.25);
  border-radius: var(--radius);
  padding: 6px;
  backdrop-filter: blur(14px);
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.94rem;
}

.nav-links a:hover {
  background: rgba(255, 250, 240, 0.14);
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.river-label {
  margin: 0 0 18px;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 8vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(251, 241, 205, 0.9);
  color: var(--bark);
  border: 1px solid rgba(255, 250, 240, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(112, 87, 70, 0.18);
  font-weight: 700;
}

.hero-panel span:last-child {
  border-bottom: 0;
}

main {
  position: relative;
  z-index: 2;
}

.notice-band {
  width: min(1180px, calc(100% - 40px));
  margin: -52px auto 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--river);
  color: #fff;
  box-shadow: var(--shadow);
}

.workbench {
  width: min(1180px, calc(100% - 40px));
  margin: -70px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 24px;
  align-items: start;
}

.archive-column,
.upload-panel,
.stewardship {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.archive-column {
  background: rgba(255, 250, 240, 0.96);
  padding: clamp(20px, 3vw, 32px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
}

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

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1;
}

.section-heading p,
.panel-heading p,
.stewardship > div:first-child p {
  margin: 10px 0 0;
  color: rgba(53, 43, 37, 0.72);
}

.search-label {
  min-width: min(260px, 100%);
}

label span,
.search-label span {
  display: block;
  margin-bottom: 7px;
  color: var(--bark);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(112, 87, 70, 0.26);
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(78, 125, 123, 0.18);
}

.filter-row {
  margin: 24px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid rgba(112, 87, 70, 0.24);
  border-radius: 6px;
  background: var(--cream);
  color: var(--bark);
  padding: 0 13px;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  background: var(--bark);
  color: var(--paper);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  min-height: 254px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, rgba(251, 241, 205, 0.44));
}

.archive-card:nth-child(2n) {
  background: linear-gradient(180deg, #fffafa, rgba(235, 178, 180, 0.24));
}

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

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--bark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.archive-card h3,
.steward-grid h3 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.08;
}

.archive-card p,
.steward-grid p {
  margin: 0;
  color: rgba(53, 43, 37, 0.74);
}

dl {
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}

dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
}

dt {
  color: var(--bark);
  font-size: 0.78rem;
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.upload-panel {
  background: var(--bark);
  color: var(--paper);
  padding: clamp(20px, 3vw, 30px);
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading p {
  color: rgba(255, 250, 240, 0.75);
}

.upload-panel h2 {
  color: var(--cream);
}

.token-warning {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 241, 205, 0.32);
  border-radius: 6px;
  background: rgba(233, 152, 152, 0.22);
  color: var(--cream);
}

.upload-panel form {
  display: grid;
  gap: 14px;
}

.upload-panel label span {
  color: var(--cream);
}

.upload-panel input,
.upload-panel select,
.upload-panel textarea {
  border-color: rgba(251, 241, 205, 0.25);
  background: rgba(255, 250, 240, 0.95);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dropzone {
  display: block;
  min-height: 126px;
  padding: 16px;
  border: 1px dashed rgba(251, 241, 205, 0.55);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  cursor: pointer;
}

.dropzone input {
  margin: 8px 0 12px;
  background: rgba(255, 250, 240, 0.95);
}

.dropzone strong {
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.92rem;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255, 250, 240, 0.86);
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

.consent-row span {
  color: rgba(255, 250, 240, 0.86);
  font-weight: 600;
  margin: 0;
}

.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--salmon);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--blush);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--cream);
  font-weight: 700;
}

.stewardship {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 70px;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(120deg, rgba(251, 241, 205, 0.86), rgba(235, 178, 180, 0.28));
}

.steward-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steward-grid article {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.72);
}

@media (max-width: 980px) {
  .hero-inner,
  .workbench {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 480px;
  }

  .workbench {
    margin-top: -58px;
  }
}

@media (max-width: 760px) {
  .site-hero {
    min-height: 620px;
  }

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }

  .hero-inner {
    padding-top: 42px;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 16vw, 5.1rem);
  }

  .section-heading,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .archive-grid,
  .steward-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .topbar,
  .hero-inner,
  .workbench,
  .stewardship {
    width: min(100% - 28px, 1180px);
  }

  .archive-column,
  .upload-panel {
    padding: 18px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a,
  .filter-button {
    font-size: 0.86rem;
  }

  dl div {
    grid-template-columns: 1fr;
  }
}

