:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #685e57;
  --line: #dfcfc4;
  --paper: #fff8f6;
  --panel: #ffffff;
  --pink: #f3d6d2;
  --pink-deep: #d79f99;
  --tan: #c9ad98;
  --tan-soft: #eadfd5;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

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

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: 44px 0;
}

.hero-copy {
  max-width: 680px;
  color: #191715;
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.65);
}

.brand-logo {
  width: min(360px, 72vw);
  display: block;
  margin: 0 0 28px;
}

.brand-logo--wide {
  width: min(640px, 100%);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: #3f3a36;
  font-size: 1.08rem;
  line-height: 1.65;
}

.booking-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(222, 216, 207, 0.85);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
}

input:focus,
select:focus {
  outline: 3px solid rgba(243, 214, 210, 0.75);
  border-color: var(--pink-deep);
}

.match-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.match-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.clear-button {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.clear-button:hover,
.clear-button:focus {
  background: var(--ink);
  color: var(--pink);
}

.stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}

.stats strong {
  color: var(--ink);
  font-size: 2.1rem;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  padding: 16px 0 26px;
}

.filter-button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.1;
  background: rgba(255, 248, 246, 0.9);
  cursor: pointer;
  white-space: normal;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--pink);
}

.directory {
  padding: 26px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.section-heading p {
  margin-bottom: 4px;
  color: var(--muted);
}

.renter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.renter-card {
  display: grid;
  gap: 18px;
  min-height: 460px;
  padding: 20px;
  background: rgba(255, 248, 246, 0.96);
  border: 1px solid rgba(223, 207, 196, 0.92);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.renter-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  background: var(--tan-soft);
}

.renter-photo.is-contain {
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.renter-topline {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 850;
  background: var(--pink);
}

.renter-card h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.specialty {
  margin-bottom: 0;
  color: #8b6556;
  font-weight: 750;
}

.bio {
  color: var(--muted);
  line-height: 1.55;
}

.schedule-note {
  margin-bottom: 0;
  color: #6a5147;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
}

.tag {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  background: var(--tan-soft);
}

.book-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  border-radius: 6px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  background: var(--ink);
}

.book-link:hover,
.book-link:focus {
  background: #3a332f;
}

.book-link.is-disabled {
  color: #7d756d;
  background: var(--tan-soft);
  cursor: not-allowed;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0 22px;
  }

  .booking-panel {
    max-width: 520px;
  }

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

  .section-heading {
    display: block;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .brand-logo {
    margin-bottom: 20px;
  }

  .renter-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 18px;
  }

  .filter-button {
    min-height: 40px;
    font-size: 0.84rem;
  }
}
