:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #49302c;
  background: #fff9f1;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #a53656;
}
a:hover {
  color: #752039;
}
.wrap {
  width: min(100% - 2rem, 1100px);
  margin: auto;
}
header {
  background: #fffdf9;
  border-bottom: 1px solid #f0dfda;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.nav a {
  text-decoration: none;
}
.nav form {
  margin: 0;
}
.logo {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #49302c !important;
  margin-right: auto;
}
.logo span {
  color: #bf4765;
}
main {
  min-height: 65vh;
}
section {
  padding: 3rem 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  margin: 0.4em 0;
}
h2 {
  font-size: 2rem;
}
.hero {
  max-width: 760px;
  padding: 5rem 0;
}
.hero p:not(.eyebrow) {
  font-size: 1.2rem;
  max-width: 36rem;
  color: #765a54;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a53656;
  font-weight: 700;
  font-size: 0.8rem;
}
button,
.button {
  display: inline-block;
  background: #a53656;
  border: 0;
  border-radius: 999px;
  color: white;
  padding: 0.8rem 1.4rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #842a46;
  color: white;
}
.small {
  padding: 0.45rem 1rem;
}
.link {
  background: none;
  color: #a53656;
  padding: 0;
}
.form-card {
  max-width: 34rem;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #f1dfd8;
  border-radius: 1.5rem;
  box-shadow: 0 12px 40px #6c393013;
}
.form-card h1 {
  font-size: 2.4rem;
}
label {
  display: block;
  font-weight: 600;
  margin: 1rem 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #d6c3bd;
  border-radius: 0.6rem;
  padding: 0.75rem;
  font: inherit;
  background: #fff;
  color: #49302c;
}
.flash {
  background: #fff0ed;
  color: #8a263b;
  padding: 1rem;
  border-radius: 0.6rem;
}
.chip {
  display: inline-block;
  background: #fbe8e5;
  color: #8b3450;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.card {
  background: white;
  border: 1px solid #f1dfd8;
  border-radius: 1rem;
  padding: 1.4rem;
}
footer {
  border-top: 1px solid #f0dfda;
  padding: 2rem 0;
  color: #806a62;
}
@media (min-width: 700px) {
  .hero {
    padding: 7rem 0;
  }
  .nav {
    gap: 1.5rem;
  }
}

/* Public pages */
.public-search,
.public-form {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
.public-search fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.public-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.public-chip input {
  position: absolute;
  opacity: 0;
}
.public-chip span {
  display: inline-block;
  border: 1px solid #d6b9aa;
  border-radius: 2rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.public-chip input:checked + span,
.public-match {
  background: #763c42;
  color: white;
}
.public-chip input:focus-visible + span {
  outline: 2px solid #763c42;
  outline-offset: 2px;
}
.public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.public-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
}
.public-profile-photo {
  max-width: 320px;
  width: 100%;
  border-radius: 0.5rem;
}
.public-badge {
  font-weight: bold;
  color: #386644;
}

/* Maker dashboard and forms */
.maker-nav,
.maker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.maker-chips input {
  width: auto;
}
#maker-place-results button {
  display: block;
  margin: 0.25rem 0;
}

/* Customer account and request form */
.customer-card {
  margin: 1rem 0;
}
.customer-offer {
  border-top: 1px solid #f1dfd8;
  margin-top: 1rem;
}
.customer-actions,
.customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.customer-tags label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.customer-tags input {
  width: auto;
}
#request-place-results button {
  display: block;
  margin: 0.25rem 0;
}
