:root {
  --cream: #fbf8f2;
  --paper: #fffdf9;
  --ink: #3d332b;
  --muted: #817366;
  --line: #e9e0d5;
  --clay: #ce693f;
  --green: #3e4e3b;
  --sage: #e5ede1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.promo {
  padding: 10px 16px;
  background: var(--green);
  color: #f7f0e5;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.promo span {
  margin: 0 8px;
  color: #cfd8bc;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay);
  color: white;
  font-size: 24px;
}

.brand span {
  font: 25px Fraunces, serif;
  letter-spacing: -.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a,
.footer-links a {
  color: #756556;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--clay);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: var(--paper);
  color: #9b8977;
}

.search input {
  width: 105px;
  border: 0;
  outline: 0;
  background: transparent;
  font: 12px "DM Sans";
}

.bag-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2eae0;
  color: #654c39;
  font-size: 20px;
  cursor: pointer;
}

.bag-button i {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  padding: 3px 4px;
  border-radius: 50px;
  background: var(--clay);
  color: white;
  font: 700 10px "DM Sans";
  font-style: normal;
}

.hero {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 32px;
  background: #e9e1d2;
}

.hero-copy {
  padding: 64px;
}

.eyebrow,
.eyebrow-text {
  color: var(--clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow {
  width: max-content;
  padding: 8px 12px;
  border: 1px solid #d1c6b5;
  border-radius: 50px;
  background: #f7f0e5b3;
}

.hero h1,
.collection h2,
.story h2,
.journal h2 {
  margin: 26px 0 0;
  font: 500 clamp(58px, 6vw, 86px) / .94 Fraunces, serif;
  letter-spacing: -.06em;
}

.hero h1 em,
.collection h2 em,
.story h2 em,
.journal h2 em {
  color: #c3603b;
  font-style: normal;
}

.hero-copy > p {
  max-width: 420px;
  margin: 28px 0;
  color: #776a5c;
  font-size: 16px;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px 23px;
  border: 0;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.primary {
  background: var(--clay);
  color: white;
}

.dark {
  background: var(--green);
  color: white;
}

.full {
  width: 100%;
}

.hero-photo {
  position: relative;
  min-height: 570px;
}

.hero-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review {
  position: absolute;
  bottom: 28px;
  left: 28px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fffdf9e8;
  font-size: 12px;
}

.review b,
.review small {
  display: block;
}

.review small {
  margin-top: 5px;
  color: #a58d76;
  font-size: 9px;
  text-transform: uppercase;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #756556;
  font-size: 13px;
}

.trust div {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.trust div:first-child {
  justify-content: flex-start;
}

.trust div:last-child {
  justify-content: flex-end;
}

.collection {
  padding: 112px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.collection h2,
.story h2,
.journal h2 {
  margin-top: 12px;
  font-size: 64px;
}

.section-heading > p {
  max-width: 270px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  gap: 7px;
  overflow: auto;
}

.filter {
  padding: 9px 15px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  color: #917e6c;
  font: 600 12px "DM Sans";
  white-space: nowrap;
  cursor: pointer;
}

.filter.active {
  background: var(--green);
  color: white;
}

.piece-count {
  color: #a58d76;
  font-size: 11px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  transition: .3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px #573f2b1f;
}

.product-image {
  position: relative;
  aspect-ratio: 1.08;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .7s;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-image span {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 30px;
  background: #fffdf9e8;
  color: #625340;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-image button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: #7f5a3a;
  font-size: 24px;
  cursor: pointer;
}

.product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  padding: 19px;
}

.product-info small {
  color: #a58d76;
  font-size: 9px;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 5px 0 0;
  font: 500 22px / 1.1 Fraunces, serif;
}

.product-info > b {
  font-size: 13px;
}

.product-info p {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.story {
  padding: 112px 0;
  background: var(--sage);
}

.story-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.story-photo img {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: .92;
  border-radius: 32px 32px 80px 32px;
  object-fit: cover;
}

.story-copy > p:not(.eyebrow-text) {
  max-width: 510px;
  color: #687561;
  font-size: 15px;
  line-height: 2;
}

.story ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 0;
  margin: 28px 0 0;
  color: #687561;
  font-size: 13px;
  list-style: none;
}

.journal {
  padding: 112px 0;
  text-align: center;
}

.journal > p:not(.eyebrow-text) {
  max-width: 400px;
  margin: 23px auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.journal form {
  display: flex;
  max-width: 430px;
  gap: 8px;
  margin: 30px auto 0;
}

.journal input {
  min-width: 0;
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #e2d6c8;
  border-radius: 50px;
  background: var(--paper);
  outline: 0;
  font: 13px "DM Sans";
}

footer {
  padding: 42px 0;
  background: var(--green);
  color: #e8eee2;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.light {
  color: white;
}

.footer-inner p {
  max-width: 280px;
  color: #b8c5b0;
  font-size: 11px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #b8c5b0;
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: 50%;
  padding: 13px 20px;
  border-radius: 50px;
  background: var(--green);
  color: white;
  font-size: 12px;
  transform: translate(-50%, 120px);
  transition: .3s;
}

.toast.show {
  transform: translate(-50%, 0);
}

.cart-drawer {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
}

.cart-drawer.open {
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: #33271e59;
}

.drawer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  padding: 32px;
  background: var(--paper);
  transform: translateX(100%);
  transition: .3s;
}

.cart-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 4px 0;
  font: 500 34px Fraunces, serif;
}

.close {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 24px 0;
}

.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.cart-row img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
}

.cart-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.cart-row small {
  display: block;
  margin-top: 5px;
  color: #a58d76;
  font-size: 9px;
  text-transform: uppercase;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}

.quantity button {
  width: 25px;
  height: 25px;
  border: 1px solid #e2d6c8;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.drawer-foot {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.drawer-foot > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.drawer-foot > p {
  margin: 8px 0 18px;
  color: #a58d76;
  font-size: 10px;
}

.empty-cart {
  margin-top: 35%;
  text-align: center;
}

.empty-cart h3 {
  font: 500 26px Fraunces, serif;
}

.empty-cart p,
.empty {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 30px, 600px);
  }

  .nav-links {
    display: none;
  }

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

  .hero-copy {
    padding: 48px 28px;
  }

  .hero-photo {
    min-height: 390px;
  }

  .trust {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust div,
  .trust div:first-child,
  .trust div:last-child {
    justify-content: flex-start;
  }

  .collection,
  .story,
  .journal {
    padding: 76px 0;
  }

  .section-heading,
  .story-grid {
    display: block;
  }

  .section-heading > p {
    margin-top: 22px;
  }

  .collection h2,
  .story h2,
  .journal h2 {
    font-size: 52px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info {
    padding: 14px;
  }

  .product-info h3 {
    font-size: 19px;
  }

  .story-photo {
    margin-bottom: 60px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin: 25px 0;
  }

  .journal form {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .search {
    display: none;
  }

  .hero-photo {
    min-height: 330px;
  }

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


