:root {
  --sandstone: #d4be9a;
  --leather: #704b32;
  --faded-gold: #bb9b52;
  --off-white: #f7f2e7;
  --dust: #d7c3a9;
  --accent-purple: #6b4a8f;
  --ink: #2f241c;
  --success: #2f6d4b;
  --danger: #8a2f2f;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, rgba(107, 74, 143, 0.2), transparent 35%),
    radial-gradient(circle at 10% 120%, rgba(187, 155, 82, 0.25), transparent 40%),
    var(--off-white);
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: "Domine", serif;
  letter-spacing: 0.01em;
  margin-top: 0;
}

a {
  color: var(--accent-purple);
}

.container {
  width: min(100% - 1.5rem, var(--maxw));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(8px);
  background: rgba(247, 242, 231, 0.84);
  border-bottom: 1px solid rgba(112, 75, 50, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--leather);
  color: var(--off-white);
  font-size: 0.7rem;
  font-weight: 700;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
}

.menu-toggle {
  border: 1px solid var(--leather);
  background: transparent;
  color: var(--leather);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

.site-nav {
  display: none;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav.open {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--off-white);
  padding: 0.75rem;
  border-bottom: 1px solid rgba(112, 75, 50, 0.2);
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.site-nav a:hover {
  background: rgba(107, 74, 143, 0.1);
}

.auth-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-state.logged-in {
  background: rgba(47, 109, 75, 0.14);
  color: var(--success);
}

.auth-state.logged-out {
  background: rgba(107, 74, 143, 0.14);
  color: var(--accent-purple);
}

.global-banner {
  width: 100%;
  background: rgba(247, 242, 231, 0.84);
  border-bottom: 1px solid rgba(112, 75, 50, 0.18);
  position: relative;
  z-index: 1;
}

.global-banner-image {
  display: block;
  width: min(100%, var(--maxw));
  margin-inline: auto;
  max-height: 260px;
  object-fit: cover;
}

.hero {
  padding: 2rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--leather);
}

.lead {
  font-size: 1.05rem;
}

.hero-card,
.card,
.info-block,
.panel-link,
.stacked-form,
.table-wrap,
.modal-content {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(112, 75, 50, 0.2);
  border-radius: 14px;
  padding: 1rem;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.adopt-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.adopt-grid .card-image {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(112, 75, 50, 0.08);
}

.triple {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.dashboard-grid .panel-link {
  display: block;
  text-decoration: none;
}

.dashboard-grid .panel-link h2 {
  margin-bottom: 0.35rem;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  background: var(--leather);
  color: var(--off-white);
  padding: 0.62rem 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-alt {
  background: var(--accent-purple);
}

.btn-small {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill {
  display: inline-block;
  margin-top: 0.4rem;
  background: rgba(107, 74, 143, 0.14);
  color: var(--accent-purple);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.8rem;
}

.pill.urgent {
  background: rgba(138, 47, 47, 0.12);
  color: var(--danger);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid rgba(112, 75, 50, 0.28);
  border-radius: 9px;
  padding: 0.58rem 0.68rem;
  background: #fff;
}

textarea {
  min-height: 110px;
}

.stacked-form {
  display: grid;
  gap: 0.7rem;
}

.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preview-row img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(112, 75, 50, 0.2);
  text-align: left;
  padding: 0.6rem;
  vertical-align: top;
}

.modal {
  border: none;
  background: transparent;
  padding: 0;
}

.modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 820px);
}

.modal::backdrop {
  background: rgba(24, 18, 13, 0.72);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: linear-gradient(180deg, #fffdf8 0%, #f3eadc 100%);
  border: 1px solid rgba(112, 75, 50, 0.32);
  box-shadow: 0 22px 60px rgba(24, 18, 13, 0.4);
}

.panel-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.panel-link:hover {
  border-color: rgba(107, 74, 143, 0.5);
}

.site-footer {
  margin-top: 1.25rem;
  background: linear-gradient(180deg, rgba(112, 75, 50, 0.92), rgba(63, 41, 28, 0.98));
  color: var(--off-white);
}

.site-footer a {
  color: #efe4ff;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 1.2rem 0;
}

.flash-wrap {
  padding-top: 0.8rem;
}

.flash {
  border-radius: 9px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.6rem;
}

.flash.error {
  background: rgba(138, 47, 47, 0.15);
  color: var(--danger);
}

.inline-status {
  min-height: 1.2rem;
  font-weight: 600;
}

.inline-status.success {
  color: var(--success);
}

.inline-status.error {
  color: var(--danger);
}

.muted {
  color: rgba(47, 36, 28, 0.75);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.team-grid .info-block {
  text-align: center;
}

@media (min-width: 760px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .site-nav.open {
    position: static;
    padding: 0;
    border: none;
    background: transparent;
  }

  .hero-grid,
  .triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid > :first-child {
    grid-column: span 1;
  }

  .hero-grid > :last-child {
    grid-column: span 1;
  }

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

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

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

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero {
    padding-top: 2.7rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
