:root {
  --ink: #17221c;
  --forest: #174c3c;
  --moss: #3d765e;
  --cream: #f4f0e6;
  --paper: #fffdf7;
  --sun: #e9b949;
  --rust: #b94d32;
  --line: #d7d4c9;
  --muted: #66736b;
  --shadow: 0 12px 30px rgba(23, 34, 28, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}
a {
  color: var(--forest);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1.06;
  margin: 0.3em 0;
}
h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
h3 {
  line-height: 1.25;
}
button,
.primary-button,
.secondary-button {
  border: 0;
  background: var(--forest);
  color: #fff;
  font:
    600 0.94rem "DM Sans",
    sans-serif;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.secondary-button {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
button:hover,
.primary-button:hover {
  background: #0d392c;
  text-decoration: none;
}
.site-header {
  height: 76px;
  padding: 0 clamp(1rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 34, 28, 0.18);
  background: rgba(244, 240, 230, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--ink);
  font:
    700 1.18rem "Fraunces",
    serif;
}
.brand:hover {
  text-decoration: none;
}
.brand span {
  display: grid;
  place-items: center;
  background: var(--forest);
  color: white;
  width: 34px;
  height: 34px;
  font:
    700 0.72rem "DM Sans",
    sans-serif;
}
.site-header nav {
  display: flex;
  gap: 1.7rem;
  align-items: center;
}
.site-header nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.site-header nav form {
  margin: 0;
}
.link-button {
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.menu-button {
  display: none;
  padding: 0.5rem;
}
.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  align-items: center;
  padding: 5rem clamp(1.2rem, 8vw, 8rem);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(23, 76, 60, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 76, 60, 0.075) 1px, transparent 1px);
  background-size: 42px 42px;
  overflow: hidden;
}
.hero-copy {
  max-width: 900px;
}
.hero h1 em {
  color: var(--forest);
  font-style: italic;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 630px;
  font-size: 1.16rem;
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rust);
}
.search-bar {
  display: flex;
  max-width: 680px;
  background: var(--paper);
  padding: 0.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 1rem;
  font: inherit;
  min-width: 100px;
}
.search-bar input:focus {
  outline: 2px solid var(--sun);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.4rem;
}
.compass {
  width: min(24vw, 310px);
  aspect-ratio: 1;
  border: 1px solid var(--forest);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font:
    700 1rem "Fraunces",
    serif;
  position: relative;
  transform: rotate(8deg);
}
.compass:before,
.compass:after {
  content: "";
  position: absolute;
  background: var(--forest);
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
}
.compass:after {
  top: 50%;
  left: 10%;
  right: 10%;
  width: auto;
  height: 1px;
}
.compass span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 6rem;
  color: var(--rust);
  z-index: 1;
}
.section {
  padding: 5rem clamp(1.2rem, 8vw, 8rem);
}
.paper {
  background: var(--paper);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.category-card {
  background: var(--paper);
  padding: 1.6rem;
  min-height: 220px;
  color: var(--ink);
  transition:
    background 0.2s,
    transform 0.2s;
}
.category-card:hover {
  background: #f7e9c4;
  text-decoration: none;
  transform: translateY(-3px);
}
.category-icon {
  font-size: 1.7rem;
  color: var(--forest);
}
.category-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.category-card small {
  font-weight: 700;
  color: var(--moss);
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.listing-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.listing-card h3 {
  margin: 0.2rem 0;
  font-size: 1.25rem;
}
.listing-card p {
  color: var(--muted);
  margin: 0.35rem 0;
}
.site-mark {
  width: 54px;
  height: 54px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font:
    700 1rem "Fraunces",
    serif;
}
.site-mark.large {
  width: 90px;
  height: 90px;
  font-size: 1.6rem;
}
.meta {
  display: flex;
  gap: 1.2rem;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 600;
}
.page-intro {
  padding: 5rem clamp(1.2rem, 8vw, 8rem) 3rem;
  background: var(--forest);
  color: #fff;
}
.page-intro h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}
.page-intro p:not(.eyebrow) {
  color: #d8e5de;
}
.page-intro .primary-button {
  background: var(--sun);
  color: var(--ink);
}
.results-layout,
.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}
.filter-form,
.panel,
.auth-form,
.wide-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.filter-form {
  position: sticky;
  top: 100px;
}
.filter-form label,
.panel label,
.auth-form label,
.wide-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #a9afa9;
  background: #fff;
  padding: 0.8rem;
  font: inherit;
  color: var(--ink);
}
textarea {
  min-height: 130px;
  resize: vertical;
}
.listing-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 4rem clamp(1.2rem, 8vw, 8rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.listing-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}
.detail-layout {
  grid-template-columns: 1fr 340px;
}
.lead {
  font-size: 1.15rem;
  max-width: 760px;
}
.muted {
  color: var(--muted);
}
blockquote {
  margin: 1rem 0;
  padding: 1.2rem;
  border-left: 4px solid var(--sun);
  background: var(--paper);
}
.panel {
  margin-bottom: 1rem;
}
.auth-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr minmax(340px, 520px);
  gap: 5rem;
  align-items: center;
  padding: 4rem clamp(1.2rem, 10vw, 10rem);
  background-color: var(--cream);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
}
.auth-layout h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}
.auth-form {
  box-shadow: var(--shadow);
  padding: 2rem;
}
.form-wrap {
  max-width: 780px;
  margin: 4rem auto;
  padding: 0 1rem;
}
.wide-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.wide-form label:last-of-type {
  grid-column: 1/-1;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 700px;
}
th,
td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #edf0eb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.status {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  text-transform: capitalize;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eee;
}
.status.approved,
.status.active {
  background: #d5eadf;
  color: #14513a;
}
.status.pending {
  background: #f7e9bd;
  color: #72580b;
}
.status.rejected,
.status.suspended {
  background: #f3d6cf;
  color: #812c1a;
}
.flash {
  position: fixed;
  right: 1rem;
  top: 90px;
  background: var(--forest);
  color: #fff;
  padding: 1rem 1.4rem;
  z-index: 30;
  box-shadow: var(--shadow);
  transition: 0.25s;
}
.flash.error {
  background: var(--rust);
}
.flash.dismissed {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.admin-head {
  padding: 3rem clamp(1rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: end;
  background: #e5e9e3;
}
.admin-head h1 {
  font-size: 3rem;
}
.metric-row {
  display: flex;
  gap: 2.5rem;
}
.metric-row span {
  color: var(--muted);
}
.metric-row strong {
  font-size: 1.7rem;
  color: var(--ink);
  display: block;
}
.tabs {
  display: flex;
  padding: 0 clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.tabs a {
  padding: 1rem;
  color: var(--muted);
  font-weight: 600;
}
.tabs a.active {
  color: var(--forest);
  border-bottom: 3px solid var(--forest);
}
.admin-content {
  padding: 2rem clamp(1rem, 5vw, 5rem);
}
.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.inline-form select {
  width: auto;
}
.inline-form button {
  padding: 0.6rem;
}
.inline-form .danger {
  background: var(--rust);
}
.check {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}
.check input {
  width: auto;
}
.inline-create {
  display: grid;
  grid-template-columns: 90px 1fr 2fr auto;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.compact .category-card {
  min-height: 170px;
}
footer {
  padding: 3rem clamp(1.2rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
  background: var(--ink);
  color: #bbc5bf;
}
footer .brand {
  color: #fff;
}
.empty {
  padding: 2rem;
  background: var(--paper);
}
.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;
}
@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .compass {
    display: none;
  }
  .results-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .filter-form {
    position: static;
  }
  .listing-hero {
    grid-template-columns: auto 1fr;
  }
  .listing-hero .primary-button {
    grid-column: 1/-1;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .metric-row {
    display: none;
  }
}
@media (max-width: 680px) {
  h1 {
    font-size: 2.7rem;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .site-header nav.open {
    display: flex;
  }
  .menu-button {
    display: block;
  }
  .hero {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .search-bar {
    display: grid;
  }
  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .section-heading {
    align-items: start;
    gap: 1rem;
    flex-direction: column;
  }
  .category-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    min-height: 180px;
  }
  .listing-card {
    grid-template-columns: 44px 1fr;
    padding: 1rem;
  }
  .site-mark {
    width: 42px;
    height: 42px;
  }
  .listing-hero {
    grid-template-columns: 1fr;
  }
  .wide-form {
    grid-template-columns: 1fr;
  }
  .wide-form label:last-of-type {
    grid-column: auto;
  }
  .auth-layout {
    padding-top: 3rem;
  }
  .admin-head {
    align-items: start;
  }
  .tabs {
    overflow: auto;
  }
  .inline-create {
    grid-template-columns: 1fr;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  background: #fff;
  padding: 1.35rem;
  color: var(--ink);
}
.pricing-card.active-plan {
  background: #fff8df;
  box-shadow: inset 0 0 0 2px var(--sun);
}
.pricing-note {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
}
.pricing-card h3 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.15rem;
}
.pricing-card strong {
  display: block;
  font:
    700 clamp(1.75rem, 3vw, 2.45rem) "Fraunces",
    serif;
  line-height: 1.05;
  color: var(--forest);
  overflow-wrap: anywhere;
}
.pricing-card p:not(.pricing-note) {
  margin: 0.8rem 0;
  color: var(--muted);
}
.pricing-card ul {
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}
.pricing-card li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.6rem 0;
  font-size: 0.92rem;
}
.pricing-card li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--sun);
}
.pricing-card .primary-button {
  margin-top: auto;
  width: 100%;
  text-align: center;
}
.compact-pricing .pricing-card {
  min-height: 390px;
}
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .compact-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-card {
    min-height: 360px;
  }
}
@media (max-width: 680px) {
  .pricing-grid,
  .compact-pricing {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    min-height: auto;
    padding: 1.2rem;
  }
  .pricing-card h3 {
    font-size: 1.2rem;
  }
  .pricing-card strong {
    font-size: 2rem;
  }
  .pricing-card ul {
    margin-bottom: 1rem;
  }
}
.form-wrap {
  max-width: none;
  margin: 4rem 0;
  padding: 0 clamp(1.2rem, 8vw, 8rem);
}
.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.pagination-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--forest);
  background: var(--paper);
  color: var(--forest);
  font-size: 1.2rem;
  font-weight: 700;
}
.pagination-arrow:hover {
  background: var(--forest);
  color: #fff;
  text-decoration: none;
}
.pagination-next {
  justify-self: end;
}
.pagination-arrow.disabled {
  border-color: var(--line);
  color: var(--muted);
  opacity: 0.5;
}
.pagination-current {
  font-weight: 700;
  text-align: center;
}
@media (max-width: 680px) {
  .pagination {
    margin-top: 1.25rem;
  }
}
.admin-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.admin-pagination .pagination {
  display: inline-flex;
  align-items: stretch;
  justify-self: center;
  width: max-content;
  flex: 0 0 auto;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6dee7;
  border-radius: 9px;
  background: #fff;
}
.admin-pagination .pagination-arrow,
.admin-pagination .pagination-page {
  display: grid;
  place-items: center;
  min-width: 68px;
  height: 86px;
  border: 0;
  border-right: 1px solid #d6dee7;
  background: #fff;
  color: #58a7a1;
  font-size: 1.55rem;
  font-weight: 600;
}
.admin-pagination .pagination-page:last-of-type {
  border-right: 0;
}
.admin-pagination .pagination-arrow:hover,
.admin-pagination .pagination-page:hover {
  background: #edf4f4;
  color: #277c77;
  text-decoration: none;
}
.admin-pagination .pagination-page.active {
  background: #5da9a4;
  color: #fff;
}
.admin-pagination .pagination-arrow.disabled {
  color: #9aa9b6;
  background: #f5f7f9;
}
.admin-pagination .pagination-next {
  justify-self: auto;
}
.page-size-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.page-size-form select {
  min-width: 182px;
  padding: 0.8rem;
}
@media (max-width: 680px) {
  .admin-pagination {
    grid-template-columns: 1fr;
  }
  .admin-pagination .pagination {
    justify-self: center;
  }
  .admin-pagination .pagination-arrow,
  .admin-pagination .pagination-page {
    min-width: 48px;
    height: 60px;
    font-size: 1.25rem;
  }
}
.pagination {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d6dee7;
  border-radius: 6px;
  background: #fff;
}
.pagination-arrow,
.pagination-page {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 48px;
  border: 0;
  border-right: 1px solid #d6dee7;
  background: #fff;
  color: #3f7fbd;
  font-size: 1rem;
  font-weight: 600;
}
.pagination-page.active {
  background: #3f7fbd;
  color: #fff;
}
.pagination-arrow:hover,
.pagination-page:hover {
  background: #eef4f8;
  color: #2d6ea8;
  text-decoration: none;
}
.pagination-arrow.disabled {
  color: #a7b5c3;
  background: #f6f8fa;
}
.pagination-ellipsis {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 48px;
  border-right: 1px solid #d6dee7;
  color: #7d8c9a;
  font-weight: 700;
}
.visitor-page-size {
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}
.visitor-page-size .page-size-form {
  margin: 0;
}
.visitor-page-size .page-size-form select {
  min-width: 182px;
}
.admin-page-size-control {
  margin: 0 0 1.5rem;
}
.admin-page-size-control select {
  min-width: 182px;
}
.admin-pagination {
  position: relative;
  min-height: 86px;
}
.admin-pagination .pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 680px) {
  .admin-pagination .pagination {
    position: static;
    transform: none;
  }
}

.breadcrumbs {
  max-width: 1200px;
  margin: 15px 60px 15px;
  padding: 0 1.5rem;
  font-size: 0.9rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.breadcrumbs li + li:before {
  content: "/";
  margin-right: 0.5rem;
  color: #67746d;
}
.policy-copy {
  max-width: 760px;
  line-height: 1.8;
}
.policy-copy h2 {
  margin-top: 2rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  justify-content: center;
}
