:root {
  font:
    16px/1.6 system-ui,
    sans-serif;
  color: #3d231a;
  background: #faf5eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #3d231a;
  color: white;
  padding: 22px 5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
header a {
  color: inherit;
  margin-right: 20px;
}
a {
  color: #723917;
}
main {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 24px;
}
.heading,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
h1 {
  font: 700 2.5rem Georgia;
  margin: 0;
}
h2 {
  font: 700 1.7rem Georgia;
}
.eyebrow {
  letter-spacing: 0.15em;
}
button,
.upload {
  background: #3d231a;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 25px 0;
}
section {
  padding: 28px;
  background: white;
  margin: 24px 0;
  border: 1px solid #ded0be;
  border-radius: 14px;
  scroll-margin-top: 20px;
}
.fields,
.product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
input,
textarea,
select {
  font: inherit;
  border: 1px solid #bda998;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  background: #fff;
  color: #3d231a;
}
textarea {
  min-height: 100px;
}
input[type='checkbox'] {
  width: auto;
}
input[type='file'] {
  color: #fff;
  background: transparent;
  border: 0;
}
.item {
  border: 1px solid #ded0be;
  border-radius: 8px;
  padding: 20px;
  margin: 18px 0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 18px;
  margin-top: 25px;
}
.photo-grid img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 8px;
  background: #faf5eb;
}
#status {
  white-space: pre-line;
}
#status.error {
  color: #9c2017;
}
#status.success {
  color: #22643d;
}
.upload {
  max-width: 500px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b36b36;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header,
  .heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .fields,
  .product-fields {
    grid-template-columns: 1fr;
  }
  section {
    padding: 20px;
  }
  main {
    padding: 0 16px;
  }
}
.login-card {
  max-width: 560px;
  margin: 40px auto;
}
.login-card form {
  display: grid;
  gap: 22px;
  margin: 25px 0;
}
