@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: #f3f0e9;
  --white: #faf9f5;
  --ink: #292d28;
  --muted: #74766d;
  --olive: #59634f;
  --rust: #a45e45;
  --sand: #e3ddcf;
  --line: #dcd8ce;
  --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.07em;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: #f3f0e9ed;
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 0.98;
}

.wordmark span {
  color: var(--rust);
}

.main-nav {
  display: flex;
  gap: 27px;
  color: #55594f;
  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: #fff;
  font-size: 9px;
}

.menu-toggle {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 65px;
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 65px 0 78px;
}

.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, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -2.7px;
  line-height: 1.03;
}

.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: #e4dccb;
  color: var(--ink);
}

.button-light:hover {
  background: #eee7d8;
}

.simple-link {
  padding: 8px 0;
  border-bottom: 1px solid #aaa79b;
  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, #25292000 54%, #25292075 100%),
    url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1200&q=85')
      center / cover;
}

.hero-image-shape {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 66px;
  height: 66px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.hero-image-caption {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.12em;
}

/* Shop by room */

.room-section,
.shop-section {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.room-section {
  padding: 36px 0 77px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 23px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2,
.feature-copy h2,
.story-copy h2,
.visit-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.3vw, 47px);
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.1;
}

.section-intro {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.room-card {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  border: 0;
  text-align: left;
  transition: transform 180ms ease;
}

.room-card:hover {
  transform: translateY(-4px);
}

.room-living {
  background: #dfdfd0;
}

.room-dining {
  background: #e8ded0;
}

.room-bedroom {
  background: #dce4da;
}

.room-storage {
  background: #e5e1d5;
}

.room-number {
  position: absolute;
  top: 14px;
  left: 15px;
  color: #73766a;
  font-size: 8px;
}

.room-symbol {
  align-self: center;
  margin: auto;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 65px;
  line-height: 1;
}

.room-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.room-caption {
  margin-top: 6px;
  color: #6f7168;
  font-size: 9px;
}

/* Product collection */

.shop-section {
  padding: 69px 0 75px;
  border-top: 1px solid var(--line);
}

.shop-heading {
  margin-bottom: 18px;
}

.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 {
  border-color: var(--olive);
}

.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  padding: 8px 12px;
  border: 1px solid #d7d1c5;
  border-radius: 25px;
  background: transparent;
  color: #56594f;
  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 23px 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: 15px;
}

.product-card {
  position: relative;
  padding-bottom: 13px;
  background: var(--white);
}

.product-image {
  position: relative;
  display: grid;
  height: 260px;
  place-items: center;
  overflow: hidden;
  background: var(--product-bg, #e4dfd5);
}

.product-image::after {
  position: absolute;
  right: 14%;
  bottom: -16%;
  left: 14%;
  height: 38%;
  border-radius: 50%;
  background: #292d280c;
  content: '';
}

.product-emoji {
  z-index: 1;
  font-size: 84px;
  filter: drop-shadow(0 12px 8px #292d2820);
  transition: transform 200ms ease;
}

.product-card:hover .product-emoji {
  transform: translateY(-5px) rotate(-3deg);
}

.product-label {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 7px 8px;
  background: var(--white);
  color: var(--olive);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.product-details {
  padding: 12px 11px 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: 14px;
  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;
}

/* Feature */

.feature-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(1160px, calc(100% - 64px));
  min-height: 370px;
  margin: 0 auto 78px;
  background: #e3ddcf;
}

.feature-image {
  position: relative;
  display: flex;
  min-height: 370px;
  align-items: end;
  background:
    linear-gradient(180deg, #25292000 60%, #25292080 100%),
    url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1000&q=85')
      center 55% / cover;
}

.feature-image span {
  padding: 15px;
  color: white;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.feature-copy {
  align-self: center;
  padding: 42px 48px;
}

.feature-copy h2 {
  font-size: clamp(36px, 4vw, 47px);
}

.feature-copy > p:not(.eyebrow) {
  max-width: 345px;
  margin: 15px 0 21px;
  color: #6d6e64;
  font-size: 10px;
  line-height: 1.9;
}

/* Story */

.story-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 76px;
  width: min(1020px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.story-mark {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
  overflow: hidden;
  background: #e5e2d8;
}

.story-mark span {
  z-index: 1;
  color: var(--olive);
  font-family: var(--serif);
  font-size: 88px;
  letter-spacing: -8px;
}

.story-mark i {
  position: absolute;
  width: 178px;
  height: 178px;
  border: 1px solid #a45e4566;
  border-radius: 50%;
}

.story-copy h2 {
  margin-bottom: 14px;
}

.story-copy > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}

/* Contact */

.visit-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 54px max(32px, calc((100vw - 1020px) / 2));
  background: #e8e5db;
}

.visit-section > div > p:not(.eyebrow) {
  max-width: 420px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.visit-section h2 {
  font-size: 38px;
}

.visit-note {
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.8;
}

/* Footer */

.site-footer {
  padding: 38px max(32px, calc((100vw - 1160px) / 2)) 18px;
  background: #30362f;
  color: #f3f0e9;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 40px;
}

.footer-wordmark span {
  color: #d2a18a;
}

.footer-main > div:first-child p {
  max-width: 280px;
  color: #cdd1c7;
  font-size: 9px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  color: #d8dcd2;
  font-size: 9px;
}

.footer-links h2 {
  margin: 4px 0 3px;
  color: white;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 29px;
  padding-top: 14px;
  border-top: 1px solid #ffffff30;
  color: #c1c7bd;
  font-size: 8px;
}

/* Cart drawer */

.cart-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #1c211baa;
  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;
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-image {
    height: 300px;
  }

  .feature-section {
    min-height: 330px;
  }

  .feature-image {
    min-height: 330px;
  }

  .feature-copy {
    padding: 30px;
  }

  .story-section {
    gap: 38px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .announcement {
    font-size: 8px;
  }

  .site-header {
    min-height: 68px;
    padding: 0 15px;
  }

  .wordmark {
    font-size: 11px;
  }

  .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: 18px;
    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: 42px 0 51px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-description {
    font-size: 10px;
  }

  .hero-image {
    min-height: 300px;
  }

  .room-section,
  .shop-section {
    width: calc(100% - 34px);
  }

  .room-section {
    padding: 22px 0 56px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2,
  .feature-copy h2,
  .story-copy h2 {
    font-size: 34px;
  }

  .room-card {
    min-height: 175px;
    padding: 12px;
  }

  .room-symbol {
    font-size: 55px;
  }

  .room-name {
    font-size: 14px;
  }

  .room-caption {
    font-size: 8px;
  }

  .shop-section {
    padding: 54px 0;
  }

  .shop-heading {
    gap: 15px;
  }

  .search-box,
  .search-box input {
    width: 100%;
  }

  .shop-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .filter-list {
    gap: 6px;
  }

  .filter-button {
    padding: 7px 9px;
    font-size: 8px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-image {
    height: 185px;
  }

  .product-emoji {
    font-size: 63px;
  }

  .product-details {
    padding: 9px 8px 0;
  }

  .product-name {
    font-size: 12px;
  }

  .add-to-bag {
    padding: 6px;
    font-size: 7px;
  }

  .feature-section {
    grid-template-columns: 1fr;
    width: calc(100% - 34px);
    margin-bottom: 56px;
  }

  .feature-image {
    min-height: 260px;
  }

  .feature-copy {
    padding: 29px 22px;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 25px;
    width: calc(100% - 34px);
    padding-bottom: 56px;
  }

  .story-mark {
    min-height: 220px;
  }

  .visit-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 42px 18px;
  }

  .visit-section h2 {
    font-size: 34px;
  }

  .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;
  }
}