@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  --paper: #f4f1eb;
  --white: #fbfaf7;
  --ink: #292b27;
  --muted: #77796f;
  --olive: #5c624f;
  --rust: #a85e45;
  --sand: #dfd8ca;
  --line: #ded9cf;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement {
  padding: 10px 18px;
  background: var(--olive);
  color: #fff;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 79px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: #f4f1ebed;
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 0.98;
}

.wordmark > span {
  color: var(--rust);
}

.main-nav {
  display: flex;
  gap: 29px;
  color: #56584f;
  font-size: 10px;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--rust);
}

.bag-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.bag-count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-size: 9px;
}

.menu-toggle {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 66px;
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 66px 0 77px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.2vw, 78px);
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1;
}

.hero h1 em {
  color: var(--olive);
  font-weight: 500;
}

.hero-description {
  max-width: 390px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 0;
  border-radius: 0;
  font-size: 9px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: var(--olive);
}

.button-light {
  background: var(--sand);
  color: var(--ink);
}

.button-light:hover {
  background: #e8e1d3;
}

.simple-link {
  padding: 8px 0;
  border-bottom: 1px solid #aaa69b;
  font-size: 9px;
  font-weight: 600;
}

.simple-link span {
  margin-left: 7px;
}

.simple-link:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.hero-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.hero-image {
  position: relative;
  display: flex;
  min-height: 440px;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, #27251d00 55%, #27251d80 100%),
    url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1200&q=85')
      center 46% / cover;
}

.hero-image-shape {
  position: absolute;
  top: 23px;
  right: 23px;
  width: 70px;
  height: 70px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.hero-image-label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: white;
  font-size: 8px;
  letter-spacing: 0.12em;
}

/* Category strip */

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-strip a {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 16px;
}

.category-strip a:last-child {
  border-right: 0;
}

.category-strip a span {
  color: var(--rust);
  font-family: var(--sans);
  font-size: 11px;
}

.category-strip a:hover {
  background: #ebe7df;
}

/* Shop */

.shop-section {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 81px 0 77px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2,
.editorial-copy h2,
.about-copy h2,
.newsletter-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.3vw, 48px);
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.08;
}

.search-box input {
  width: 220px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: var(--white);
  font-size: 10px;
}

.search-box input:focus,
.newsletter-form input:focus {
  border-color: var(--olive);
}

.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  padding: 8px 12px;
  border: 1px solid #d8d2c7;
  border-radius: 25px;
  background: transparent;
  color: #5a5b52;
  font-size: 9px;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.sort-control select {
  padding: 8px 24px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 9px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  padding-bottom: 13px;
  background: var(--white);
}

.product-image {
  position: relative;
  display: grid;
  height: 275px;
  place-items: center;
  overflow: hidden;
  background: var(--product-bg, #e4dfd5);
}

.product-image::after {
  position: absolute;
  right: 15%;
  bottom: -16%;
  left: 15%;
  height: 38%;
  border-radius: 50%;
  background: #0000000a;
  content: '';
}

.product-emoji {
  z-index: 1;
  font-size: 88px;
  filter: drop-shadow(0 12px 7px #29282120);
  transition: transform 200ms ease;
}

.product-card:hover .product-emoji {
  transform: translateY(-5px) rotate(-3deg);
}

.product-label {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  padding: 7px 8px;
  background: var(--white);
  color: var(--olive);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.product-details {
  padding: 12px 12px 0;
}

.product-type {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-name {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-size: 10px;
  font-weight: 600;
}

.add-to-bag {
  padding: 7px 9px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 8px;
}

.add-to-bag:hover {
  background: var(--ink);
  color: white;
}

.no-products {
  grid-column: 1 / -1;
  padding: 40px 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.sample-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 8px;
}

/* Editorial feature */

.editorial-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(1160px, calc(100% - 64px));
  min-height: 370px;
  margin: 0 auto 80px;
  background: #e1d9cb;
}

.editorial-image {
  position: relative;
  display: flex;
  min-height: 370px;
  align-items: end;
  background:
    linear-gradient(180deg, #25272000 60%, #25272080 100%),
    url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1000&q=85')
      center 55% / cover;
}

.editorial-image span {
  padding: 15px;
  color: white;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.editorial-copy {
  align-self: center;
  padding: 42px 48px;
}

.editorial-copy h2 {
  font-size: clamp(36px, 4vw, 48px);
}

.editorial-copy > p:not(.eyebrow) {
  max-width: 330px;
  margin: 16px 0 21px;
  color: #6d6b60;
  font-size: 10px;
  line-height: 1.9;
}

/* About */

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 78px;
  width: min(1020px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 82px;
}

.about-mark {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
  overflow: hidden;
  background: #e6e1d7;
}

.about-mark span {
  z-index: 1;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 92px;
  letter-spacing: -9px;
}

.about-mark i {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid #a85e4566;
  border-radius: 50%;
}

.about-copy h2 {
  margin-bottom: 14px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 430px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}

/* Newsletter and footer */

.newsletter-section {
  padding: 44px 20px 50px;
  background: #e9e5dc;
  text-align: center;
}

.newsletter-section .eyebrow {
  margin-bottom: 8px;
}

.newsletter-section h2 {
  font-size: 29px;
}

.newsletter-section > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 9px;
}

.newsletter-form {
  display: flex;
  width: min(390px, 100%);
  margin: 17px auto 0;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d3cdc2;
  outline: none;
  background: var(--white);
  font-size: 9px;
}

.newsletter-form .button {
  flex-shrink: 0;
}

.site-footer {
  padding: 40px max(32px, calc((100vw - 1160px) / 2)) 18px;
  background: #30332d;
  color: #f4f1eb;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
}

.footer-wordmark > span {
  color: #d69a7f;
}

.footer-main > div:first-child p {
  max-width: 290px;
  color: #cdd0c5;
  font-size: 9px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  color: #d8d9d0;
  font-size: 9px;
}

.footer-links h2 {
  margin: 4px 0 3px;
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid #ffffff30;
  color: #c2c5bb;
  font-size: 8px;
}

/* Cart drawer */

.cart-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #191d19aa;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  display: flex;
  width: min(390px, 100%);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  padding: 22px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 250ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.close-cart {
  border: 0;
  background: transparent;
  font-size: 27px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.empty-cart {
  margin: auto;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-emoji {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  background: #e4dfd5;
  font-size: 25px;
}

.cart-line-name {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}

.cart-line-price {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--rust);
  font-size: 8px;
}

.cart-footer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  font-size: 11px;
  font-weight: 600;
}

.cart-footer .button {
  width: 100%;
}

.cart-disclaimer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.toast-message {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */

@media (max-width: 850px) {
  .hero {
    gap: 34px;
  }

  .hero-image {
    min-height: 360px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-image {
    height: 310px;
  }

  .editorial-section {
    min-height: 330px;
  }

  .editorial-image {
    min-height: 330px;
  }

  .editorial-copy {
    padding: 30px;
  }

  .about-section {
    gap: 38px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .announcement {
    font-size: 8px;
  }

  .site-header {
    min-height: 68px;
    padding: 0 15px;
  }

  .wordmark {
    font-size: 12px;
  }

  .wordmark span {
    font-size: 18px;
  }

  .menu-toggle {
    display: flex;
    width: 29px;
    height: 30px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    order: -1;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    width: 19px;
    height: 1px;
    background: var(--ink);
  }

  .main-nav {
    position: absolute;
    top: 67px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 17px;
    padding: 19px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 27px;
    width: calc(100% - 34px);
    padding: 43px 0 51px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-description {
    font-size: 10px;
  }

  .hero-image {
    min-height: 300px;
  }

  .category-strip a {
    padding: 13px 10px;
    font-size: 12px;
  }

  .category-strip a span {
    font-size: 9px;
  }

  .shop-section {
    width: calc(100% - 34px);
    padding: 57px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-heading h2,
  .editorial-copy h2,
  .about-copy h2 {
    font-size: 35px;
  }

  .search-box,
  .search-box input {
    width: 100%;
  }

  .shop-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .filter-list {
    gap: 6px;
  }

  .filter-button {
    padding: 7px 9px;
    font-size: 8px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-image {
    height: 185px;
  }

  .product-emoji {
    font-size: 65px;
  }

  .product-details {
    padding: 9px 8px 0;
  }

  .product-name {
    font-size: 13px;
  }

  .add-to-bag {
    padding: 6px;
    font-size: 7px;
  }

  .editorial-section {
    grid-template-columns: 1fr;
    width: calc(100% - 34px);
    margin-bottom: 57px;
  }

  .editorial-image {
    min-height: 270px;
  }

  .editorial-copy {
    padding: 30px 23px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 25px;
    width: calc(100% - 34px);
    padding-bottom: 57px;
  }

  .about-mark {
    min-height: 220px;
  }

  .newsletter-section {
    padding: 39px 16px;
  }

  .newsletter-section h2 {
    font-size: 26px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer {
    padding: 32px 17px 16px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px 15px;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}