:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2b3d33;
  background: #faf9f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1160px;
  margin: auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6e7df;
}
.brand {
  font-family: Georgia, serif;
  font-size: 30px;
  color: inherit;
  text-decoration: none;
}
.brand span {
  color: #849074;
}
.brand small {
  display: block;
  font: 9px sans-serif;
  letter-spacing: 2px;
  margin-top: 8px;
}
.prototype {
  font-size: 12px;
  color: #737b70;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 35px 32px 130px;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -1px;
}
h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 15px 0 22px;
}
h2 {
  font-size: 30px;
  margin: 12px 0 22px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
  color: #667064;
}
a {
  color: inherit;
}
button,
.button {
  border: 0;
  border-radius: 8px;
  background: #30483e;
  color: white;
  padding: 15px 22px;
  display: inline-block;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  min-height: 46px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #e9ece4;
  color: #30483e;
}
.danger {
  background: #f6e8e3;
  color: #8a382c;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #7d896e;
}
.hero {
  background: #edf0e7;
  border-radius: 16px;
  padding: 45px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  overflow: hidden;
}
.hero h1 {
  font-size: 52px;
}
.hero .button {
  margin-top: 12px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  background: #e2e7d9;
  border-radius: 100px 100px 12px 12px;
  transform: rotate(4deg);
  margin: 0 28px;
}
.hero-art svg {
  width: 240px;
  filter: drop-shadow(0 12px 10px #36453320);
}
.hero-art span {
  position: absolute;
  bottom: 15px;
  right: -25px;
  background: #fffdf5;
  padding: 18px;
  border-radius: 6px;
  transform: rotate(-9deg);
  box-shadow: 0 8px 30px #22332212;
  font-size: 14px;
}
.hero-art small {
  font-size: 10px;
  color: #737b70;
}
.stats {
  display: flex;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid #e6e7df;
  margin-bottom: 32px;
}
.stats p {
  font-size: 12px;
}
.stats b {
  font-size: 20px;
  color: #30483e;
  margin-right: 6px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title a {
  font-size: 13px;
}
.filters {
  display: flex;
  gap: 10px;
  margin: 12px 0 25px;
  flex-wrap: wrap;
}
.filters input {
  flex: 1;
  min-width: 140px;
}
.filters select {
  width: auto;
  max-width: 100%;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  background: #fffefb;
  border: 1px solid #dcdfd5;
  border-radius: 7px;
  padding: 12px;
  min-height: 46px;
  color: #30483e;
}
textarea {
  resize: vertical;
}
input[type="file"] {
  font-size: 12px;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  flex-shrink: 0;
}
label {
  display: block;
  font-size: 13px;
  margin: 15px 0;
  line-height: 1.6;
}
label input,
label select,
label textarea {
  margin-top: 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  text-decoration: none;
  min-width: 0;
}
.picture {
  height: 230px;
  position: relative;
  background: #eeede6;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.picture svg {
  width: 85%;
  height: 90%;
}
.picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card h3 {
  font-size: 15px;
  margin: 15px 0 4px;
}
.card p {
  font-size: 12px;
  margin: 0 0 10px;
}
.card small {
  font-size: 11px;
  color: #7a846e;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fffdf5;
  padding: 5px 8px;
  font-size: 9px;
  letter-spacing: 1px;
  border-radius: 4px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 45px;
  background: #eeefe7;
  border-radius: 12px;
}
.empty h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: #faf9f5f5;
  border-top: 1px solid #dee2d6;
  display: flex;
  justify-content: center;
  gap: 70px;
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
}
nav a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  min-height: 40px;
  color: #7b8276;
}
nav span {
  font-size: 12px;
}
nav a.active {
  color: #30483e;
  font-weight: 600;
}
.panel {
  background: #fffefb;
  border: 1px solid #e2e4da;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.preview {
  height: 180px;
  background: #eff0e9;
  display: grid;
  place-items: center;
  text-align: center;
  color: #7d8676;
  font-size: 12px;
  border-radius: 8px;
  padding: 10px;
}
.preview img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}
.notice {
  background: #ecefe5;
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
.detail-photo {
  background: #eeeae0;
  border-radius: 16px;
  align-self: start;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.detail-photo img,
.detail-photo svg {
  width: 100%;
}
.label-image {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}
.multiline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.badge-text {
  font-size: 12px;
  color: #6c7e57;
}
.back {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 10px;
}
.season-picker {
  max-width: 300px;
}
.outfit .grid {
  margin: 30px 0;
}
#form-error {
  color: #963e2c;
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: max-content;
  background: #30483e;
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  z-index: 20;
  box-shadow: 0 8px 30px #0002;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b18b4f;
  outline-offset: 3px;
}
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .outfit .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 650px) {
  header {
    padding: 20px;
  }
  .brand {
    font-size: 26px;
  }
  .prototype {
    max-width: 100px;
    text-align: right;
    font-size: 10px;
  }
  main {
    padding: 22px 20px 120px;
  }
  h1 {
    font-size: 37px;
  }
  .hero {
    padding: 28px 22px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-art {
    height: 145px;
    margin: 10px 25px 0;
    border-radius: 80px 80px 10px 10px;
  }
  .hero-art svg {
    height: 145px;
  }
  .hero-art span {
    font-size: 12px;
    padding: 12px;
    right: -20px;
    bottom: 12px;
  }
  .stats {
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .stats p {
    margin: 4px 0;
    font-size: 11px;
  }
  .stats p:last-child {
    width: 100%;
  }
  .section-title h2 {
    font-size: 28px;
  }
  .section-title a {
    font-size: 11px;
  }
  .filters {
    gap: 8px;
  }
  .filters input,
  .filters select {
    width: calc(50% - 4px);
    flex: auto;
    font-size: 14px;
    min-width: 0;
  }
  .filters input:first-child {
    width: 100%;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
  }
  .picture {
    height: 175px;
  }
  .form-grid,
  .detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .panel {
    padding: 20px;
  }
  .detail-photo {
    max-height: 350px;
  }
  .detail-photo img {
    max-height: 350px;
    object-fit: contain;
  }
  nav {
    gap: 0;
    justify-content: space-around;
  }
  nav a {
    flex-direction: column;
    gap: 2px;
    font-size: 21px;
  }
  nav span {
    font-size: 10px;
  }
  .empty {
    padding: 25px 15px;
  }
}

.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.photo-tile { min-width: 0; padding: 10px; border: 1px solid #dcdfd5; border-radius: 8px; }
.photo-tile img, .photo-thumbnail img { width: 100%; height: 130px; object-fit: contain; }
.photo-tile button { width: 100%; margin-top: 6px; padding: 10px; }
.photo-tile p { font-size: 12px; }
.photo-thumbnail { padding: 6px; }
@media (max-width: 650px) { nav span { font-size: 9px; } }
