@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

.storefront {
  --ink: #2c211e;
  --green: #632c23;
  --paper: #f8f5ef;
  --muted: #66554c;
  --line: #dfd4c7;
  --serif: "Instrument Serif", Georgia, serif;
  font-family: "DM Sans", system-ui, sans-serif;
}
.storefront .shell { width: min(100% - clamp(2rem, 7vw, 8rem), 86rem); }
.storefront .announcement {
  padding: .46rem 1rem;
  background: #3f241e;
  color: #fff8f0;
  font-size: .71rem;
  letter-spacing: .045em;
}
.storefront .header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .75rem;
  min-height: 81px;
  padding-block: .7rem;
}
.storefront .header-collection {
  justify-self: start;
  font-size: .86rem;
  font-weight: 550;
  text-decoration: none;
}
.storefront .header-collection:hover { text-decoration: underline; text-underline-offset: .25rem; }
.storefront .wordmark {
  color: var(--ink);
  font: 400 clamp(2.4rem, 4vw, 3.65rem)/.9 var(--serif);
  letter-spacing: -.065em;
}
.storefront .wordmark span { color: #994634; margin: 0 .07em 0 .025em; }
.storefront nav { justify-self: end; gap: .55rem; }
.storefront nav select {
  background-color: transparent;
  border-color: transparent;
  border-radius: 0;
  padding: .25rem .35rem;
  font-size: .78rem;
}
.storefront #cart {
  min-height: 44px;
  padding-inline: .9rem;
  background: transparent;
  color: var(--ink);
  border-color: #b9a596;
  border-radius: 999px;
  font-size: .8rem;
  white-space: nowrap;
}
.storefront #cart:hover { background: #eee1d4; }
.storefront .hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 0;
  min-height: clamp(29rem, 43vw, 39rem);
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #efe5d8;
  overflow: hidden;
}
.storefront .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 4.6vw, 5rem);
}
.storefront .eyebrow {
  font-size: .68rem;
  color: #784333;
  letter-spacing: .17em;
  font-weight: 750;
  margin-bottom: 1.35rem;
}
.storefront .hero h1 {
  color: #39251f;
  font: 400 clamp(4rem, 8vw, 8rem)/.88 var(--serif);
  letter-spacing: -.058em;
  white-space: normal;
}
.storefront .hero h1 > * { display: block; }
.storefront .hero h1 em { color: #774132; font-weight: 400; }
.storefront .intro {
  max-width: 30ch;
  color: #5d463c;
  margin: clamp(1rem, 2.5vw, 2rem) 0 1.4rem;
  font-size: clamp(.92rem, 1.2vw, 1.06rem);
}
.storefront .hero .button {
  gap: .75rem;
  padding-inline: 1.2rem;
  border-radius: 999px;
  font-size: .82rem;
}
.storefront .hero-action::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-right: .15rem;
}
.storefront .hero-art {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: #bc7858;
}
.storefront .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-position: center;
  object-fit: cover;
}
.storefront .collection { margin-block: clamp(2.4rem, 5.5vw, 5.8rem); }
.storefront .collection-heading {
  display: flex;
  gap: .6rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}
.storefront h2 {
  font: 400 clamp(2.35rem, 4.1vw, 4rem)/.93 var(--serif);
  letter-spacing: -.035em;
}
.storefront .collection-heading h2 { margin: 0; }
.storefront .collection-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.storefront .filters {
  padding-block: .8rem;
  border-block: 1px solid var(--line);
  gap: .75rem;
}
.storefront .filters label { font-size: .73rem; color: #573c32; }
.storefront .filters input, .storefront .filters select {
  background: #fffaf5;
  border-color: #d8c4b6;
  border-radius: 0;
  font-size: .9rem;
}
.storefront .results { font-size: .82rem; }
.storefront .grid { gap: clamp(.65rem, 1.8vw, 1.55rem); }
.storefront .card {
  border-radius: 0;
  border-color: var(--line);
  background: #fcf9f4;
}
.storefront .image-placeholder {
  position: relative;
  isolation: isolate;
  display: flex;
  background: var(--tile, #e7d5c4);
  color: #4e3026;
  aspect-ratio: 5 / 3;
  align-items: end;
  justify-content: start;
  padding: clamp(.6rem, 1.55vw, 1rem);
  border-bottom: 1px solid var(--line);
  text-align: start;
  font-size: .72rem;
  font-weight: 600;
  overflow: hidden;
}
.storefront .image-placeholder::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 65%;
  height: 133%;
  border-radius: 52% 52% 0 0;
  border: 1px solid #6a3c2c50;
  top: 12%;
  right: -6%;
  box-shadow: -1.05rem 0 0 -.03rem #eee0d67a, -1.1rem 0 0 -.03rem #6a3c2c35;
  transform: rotate(-18deg);
}
.storefront [data-category="hijab"] { --tile: #e0c7b6; }
.storefront [data-category="accessories"] { --tile: #e8d9ce; }
.storefront [data-category="home"] { --tile: #dfded2; }
.storefront [data-category="men"] { --tile: #eadac3; }
.storefront .card img { aspect-ratio: 5 / 3; }
.storefront .card-details { padding: clamp(.68rem, 1.65vw, 1.45rem); }
.storefront .card-category { font-size: .72rem; color: #6e4335; }
.storefront .card h3 {
  color: #35261f;
  font: 400 clamp(1.48rem, 2.45vw, 2.3rem)/1 var(--serif);
  margin: .55rem 0 .25rem;
}
.storefront .card p { font-size: .86rem; line-height: 1.4; }
.storefront .card strong { font-size: .91rem; }
.storefront .card button { border-radius: 999px; font-size: .78rem; }
.storefront .card .details-button {
  background: transparent;
  color: #5c352b;
  border-color: transparent;
  margin: .1rem 0 -.3rem;
  text-decoration: underline;
  text-underline-offset: .23rem;
}
.storefront .card .details-button:hover { background: #eee4d8; }
.storefront .info { padding-block: 2rem; }
.storefront .info h2 { font-size: 2.1rem; }
.storefront .info p { max-width: 62ch; }
.storefront footer .wordmark { font-size: 2.45rem; }
.storefront dialog { padding: clamp(1rem, 4vw, 2rem); }
.storefront dialog::backdrop { background: #331e17a8; }
.storefront dialog h2 { font-size: clamp(2rem, 5vw, 3rem); }
.storefront dialog button, .storefront dialog .button { border-radius: 999px; }
.storefront #product-gallery:empty { display: none; }

@media (max-width: 680px) {
  .storefront .shell { width: calc(100% - 1.5rem); }
  .storefront .header { min-height: 65px; grid-template-columns: 1fr auto; }
  .storefront .header-collection { display: none; }
  .storefront nav select { max-width: 6.9rem; }
  .storefront nav { gap: .15rem; }
  .storefront #cart { padding-inline: .62rem; }
  .storefront .hero { grid-template-columns: 1fr; }
  .storefront .hero-copy { padding: 1.6rem 1.1rem; }
  .storefront .hero h1 { font-size: clamp(3.65rem, 14.8vw, 5.5rem); }
  .storefront .eyebrow { margin-bottom: .95rem; }
  .storefront .intro { margin: .85rem 0 1rem; }
  .storefront .hero-art { height: auto; aspect-ratio: 16 / 9; }
  .storefront .hero-art img { object-position: center 54%; }
  .storefront .collection-heading { margin-bottom: .85rem; }
  .storefront .collection-heading p { font-size: .82rem; }
  .storefront .card p { font-size: .79rem; }
  .storefront .card .details-button { margin-bottom: 0; }
}

@media (max-width: 360px) {
  .storefront .wordmark { font-size: 2.25rem; }
  .storefront nav select { max-width: 6rem; }
}
