:root {
  --bg: #f7f5ee;
  --surface: #fffaf2;
  --surface-2: #ffffff;
  --text: #1d1d1f;
  --muted: #5d5d65;
  --border: #e8dfca;
  --primary: #166534;
  --primary-dark: #0f3d1f;
  --accent: #f59e0b;
  --shadow: 0 18px 48px rgba(29, 29, 31, 0.08);
  --radius: 18px;
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fbf7ea 0%, var(--bg) 100%);
  color: var(--text);
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  color: white;
  background: var(--primary);
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.auth-card {
  width: min(460px, 92vw);
  background: var(--surface-2);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font: inherit;
}

.auth-message {
  min-height: 1.2rem;
  font-size: 0.92rem;
  color: var(--primary);
}

.auth-message.error {
  color: #b42318;
}

.auth-toggle {
  text-align: center;
  margin-top: 0.8rem;
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.forgot-link {
  margin-top: 0.2rem;
}

.hero {
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(3rem, 4.2vw, 4.5rem);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.hero-text {
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stats strong {
  font-size: 1.2rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero-card-top,
.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.success {
  background: #e8f7ee;
  color: var(--primary);
}

.hero-card-body {
  background: linear-gradient(180deg, #f9efe0 0%, #f5f0d9 100%);
  padding: 2rem 1rem;
  margin: 1rem 0;
  border-radius: 14px;
}

.hero-card-body h3 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.hero-card-body p,
.hero-card-footer span,
.section-head p,
.post p,
.site-footer p,
.listing-card p,
.steps-grid p,
.post-form label,
.listing-card small {
  color: var(--muted);
}

.discover,
.how-it-works,
.post {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.how-it-works h2,
.post h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.filters {
  display: flex;
  gap: 0.7rem;
}

.filters input,
.filters select,
.post-form input,
.post-form select,
.post-form textarea {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: var(--surface-2);
}

.post-form textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 110px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.listing-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.listing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.listing-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.8rem 0;
}

.listing-card .request-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps-grid article {
  background: var(--surface-2);
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: #eef7f1;
  color: var(--primary);
  font-weight: 800;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.post-form {
  display: grid;
  gap: 0.8rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1rem;
}

.post-form label {
  display: grid;
  gap: 0.35rem;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  background: #f9f7ef;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.drop-zone.drag-active {
  border-color: var(--primary);
  background: #eef7f1;
}

.drop-zone p {
  font-weight: 600;
  color: var(--text);
}

.drop-zone span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.image-preview img,
.listing-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.site-footer {
  padding: 1.5rem 0 3rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .post-grid,
  .listing-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .filters {
    width: 100%;
    flex-direction: column;
  }

  .filters input,
  .filters select,
  .post-form input,
  .post-form select {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
  }
}
