:root {
  --p4y-forest: #64754a;
  --p4y-mint: #a8b98f;
  --p4y-sand: #e9ede1;
  --p4y-cloud: #f1f3ea;
  --p4y-muted: #6f7864;
  --p4y-ink: #232b23;
  --p4y-berry: #7c4735;
  --p4y-line: #c3cbb2;
}

body {
  background: var(--p4y-sand);
  color: var(--p4y-ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-style: italic;
  font-weight: 400 !important;
  text-wrap: balance;
}

.meta-label {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p4y-forest);
}

.text-muted {
  color: var(--p4y-muted) !important;
}

a {
  color: var(--p4y-forest);
}

.bg-forest {
  background: var(--p4y-forest);
}

.text-forest {
  color: var(--p4y-forest);
}

.btn-forest {
  --bs-btn-bg: var(--p4y-forest);
  --bs-btn-border-color: var(--p4y-forest);
  --bs-btn-hover-bg: #4d5a3a;
  --bs-btn-hover-border-color: #4d5a3a;
  --bs-btn-color: #fff;
}

.btn-soft {
  background: var(--p4y-cloud);
  color: var(--p4y-forest);
  border: 1px solid var(--p4y-line);
}

.app-shell {
  min-height: 100vh;
}

.navbar {
  background: var(--p4y-cloud);
  border-bottom: 1px solid rgba(35, 43, 35, .12);
}

.navbar-brand {
  font-style: italic;
}

.brand-mark {
  align-items: center;
  background: var(--p4y-forest);
  border-radius: .75rem;
  color: #fff;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.hero {
  background:
    linear-gradient(180deg, var(--p4y-cloud), var(--p4y-sand));
  border-bottom: 1px solid var(--p4y-line);
  color: var(--p4y-ink);
  min-height: 420px;
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p4y-forest);
}

.hero-trail {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1.15;
}

.section-band {
  background: var(--p4y-cloud);
}

.soft-panel,
.resource-card,
.user-card,
.filter-panel,
.auth-panel {
  background: var(--p4y-cloud);
  border: 1px solid rgba(35, 43, 35, .12);
  border-radius: .75rem;
  box-shadow: 0 18px 50px rgba(31, 41, 51, .06);
}

.resource-card {
  overflow: hidden;
}

.resource-card img,
.resource-gallery-main {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.resource-list-image {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.image-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, rgba(100, 117, 74, .1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100, 117, 74, .1) 25%, transparent 25%),
    var(--p4y-cloud);
  background-size: 24px 24px;
  color: var(--p4y-forest);
  font-size: 2.5rem;
}

.avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--p4y-cloud);
  color: var(--p4y-forest);
  flex-shrink: 0;
}

.badge-resource {
  background: var(--p4y-cloud);
  color: var(--p4y-forest);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .72rem;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.map-frame {
  background:
    linear-gradient(45deg, rgba(100, 117, 74, .1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100, 117, 74, .1) 25%, transparent 25%),
    var(--p4y-cloud);
  background-size: 24px 24px;
  border: 1px solid rgba(35, 43, 35, .12);
  border-radius: .75rem;
  min-height: 360px;
  overflow: hidden;
}

.leaflet-demo-map {
  min-height: 420px;
}

.stat-card {
  background: var(--p4y-cloud);
  border: 1px solid rgba(35, 43, 35, .12);
  border-radius: .75rem;
  padding: 1.25rem;
}

.sidebar {
  background: var(--p4y-cloud);
  border-right: 1px solid rgba(35, 43, 35, .12);
}

.sidebar .nav-link {
  border-radius: .5rem;
  color: var(--p4y-ink);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: var(--p4y-cloud);
  color: var(--p4y-forest);
}

.message-bubble {
  border-radius: 1rem;
  max-width: min(78%, 560px);
  padding: .85rem 1rem;
}

.message-bubble.mine {
  background: var(--p4y-forest);
  color: #fff;
}

.message-bubble.theirs {
  background: var(--p4y-cloud);
}

.dropzone {
  align-items: center;
  background: var(--p4y-cloud);
  border: 2px dashed var(--p4y-line);
  border-radius: .75rem;
  display: flex;
  justify-content: center;
  min-height: 180px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--p4y-mint);
  box-shadow: 0 0 0 .2rem rgba(100, 117, 74, .16);
}

.table > :not(caption) > * > * {
  padding: 1rem;
}

.footer {
  background: var(--p4y-ink);
  color: rgba(255, 255, 255, .78);
}

.footer a {
  color: #fff;
}

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

  .resource-list-image {
    width: 100%;
  }
}

[data-bs-toggle="collapse"] .bi-chevron-down {
  transition: transform .2s ease;
}

[data-bs-toggle="collapse"]:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}
