@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  font-family: 'DM Sans', Arial, sans-serif;
  color: #252820;
  background: #f7f6f1;
  font-synthesis: none;
  --paper: #f7f6f1;
  --ink: #252820;
  --muted: #797b70;
  --line: #deded5;
  --olive: #6d7159;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  height: 82px;
  padding: 0 clamp(24px, 6.2vw, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.wordmark {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.1em;
}

.wordmark span {
  color: #a66d4e;
}

.main-nav {
  display: flex;
  gap: clamp(24px, 4vw, 58px);
  margin-left: 8%;
}

.main-nav a,
.header-link {
  font-size: 0.75rem;
  font-weight: 500;
}

.main-nav a {
  color: #696b62;
  transition: color 180ms ease;
}

.main-nav a:hover,
.underlined-link:hover {
  color: #a66d4e;
}

.header-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
}

.header-link span {
  margin-left: 13px;
}

.hero {
  min-height: 660px;
  height: min(760px, calc(100vh - 82px));
  padding: 80px clamp(24px, 10.4vw, 168px) 65px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eeede6;
}

.hero-copy {
  width: 54%;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--olive);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a66d4e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 400;
}

h1 {
  margin: 28px 0 34px;
  font-size: clamp(4.7rem, 8.5vw, 8.4rem);
  line-height: 0.87;
  letter-spacing: -0.085em;
}

h1 em,
h2 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.07em;
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 430px;
}

.hero-bottom p {
  margin: 0;
  color: #65675e;
  font-size: 0.86rem;
  line-height: 1.8;
}

.round-link {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid #b9b9af;
  border-radius: 50%;
  font-size: 1.15rem;
  transition: color 180ms ease, background 180ms ease;
}

.round-link:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero-image {
  width: 45%;
  height: 78%;
  position: absolute;
  top: 10%;
  right: 7.5%;
  background: #c9c4b8 url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1400&q=85') center 54% / cover no-repeat;
}

.image-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 19px;
  display: flex;
  justify-content: space-between;
  color: white;
  background: linear-gradient(transparent, rgba(20, 20, 16, 0.52));
  font-size: 0.65rem;
}

.hero-index {
  position: absolute;
  bottom: 29px;
  left: clamp(24px, 6.2vw, 100px);
  color: #898a7e;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.hero-index span {
  margin: 0 7px;
  color: #a66d4e;
}

.intro,
.catalog,
.products {
  padding: 120px clamp(24px, 10.4vw, 168px);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 32px;
}

.section-kicker {
  color: #858579;
}

.section-kicker span {
  margin-left: 13px;
  color: #b0b0a5;
  font-size: 0.57rem;
}

.intro-copy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 4.65rem);
  line-height: 1.03;
  letter-spacing: -0.075em;
}

.intro-detail {
  padding-top: 13px;
}

.intro-detail p,
.journal-copy > p:not(.section-kicker) {
  margin: 0 0 28px;
  color: #75766d;
  font-size: 0.85rem;
  line-height: 1.9;
}

.underlined-link {
  padding-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #aaa99d;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.catalog {
  padding-top: 88px;
  background: #eeede6;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin-top: 25px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr 0.86fr;
  gap: 16px;
}

.category-card {
  min-height: 390px;
  padding: 21px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: white;
  background-color: #b1aa9c;
  background-position: center;
  background-size: cover;
}

.category-card::before,
.product-image::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(25, 25, 20, 0.22), transparent 35%, transparent 58%, rgba(25, 25, 20, 0.36));
  transition: opacity 220ms ease;
}

.category-card:hover::before {
  opacity: 0.7;
}

.category-living {
  background-image: url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1100&q=82');
}

.category-bedroom {
  background-image: url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=950&q=82');
}

.category-dining {
  background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=950&q=82');
}

.category-number,
.category-name {
  position: relative;
  z-index: 1;
}

.category-number {
  font-size: 0.65rem;
}

.category-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
}

.category-name span {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
}

.products {
  padding-top: 118px;
  padding-bottom: 132px;
}

.products-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

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

.product-image {
  height: clamp(260px, 31vw, 430px);
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #e6e3da;
  background-position: center;
  background-size: cover;
}

.product-image::before {
  opacity: 0;
}

.product-image:hover::before {
  opacity: 1;
}

.product-sofa {
  background-image: url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=900&q=82');
}

.product-chair {
  background-image: url('https://images.unsplash.com/photo-1567538096630-e0c55bd6374c?auto=format&fit=crop&w=900&q=82');
}

.product-table {
  background-image: url('https://images.unsplash.com/photo-1499933374294-4584851497cc?auto=format&fit=crop&w=900&q=82');
}

.product-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-meta h3,
.product-meta span {
  margin: 0;
  font-size: 0.81rem;
  font-weight: 500;
}

.product-meta span {
  white-space: nowrap;
}

.product-card > p {
  margin: 7px 0 0;
  color: #929187;
  font-size: 0.68rem;
}

.journal {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e8e7df;
}

.journal-image {
  min-height: 590px;
  background: #c1b9aa url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1300&q=85') center / cover no-repeat;
}

.journal-copy {
  padding: 100px clamp(35px, 8.5vw, 130px);
  align-self: center;
}

.journal-copy h2 {
  margin: 28px 0 24px;
}

.journal-copy > p:not(.section-kicker) {
  max-width: 390px;
  margin-bottom: 30px;
}

.site-footer {
  min-height: 150px;
  padding: 34px clamp(24px, 6.2vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer > p {
  margin: 0;
  color: #77786f;
  font-size: 0.72rem;
  line-height: 1.7;
}

.owner-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.owner-contact span {
  color: #898a80;
  font-size: 0.62rem;
}

.owner-contact strong {
  font-size: 0.72rem;
  font-weight: 500;
}

.back-to-top,
.copyright {
  font-size: 0.68rem;
}

.copyright {
  color: #898a80;
}

@media (min-width: 1500px) {
  .hero {
    min-height: 740px;
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: 620px;
    height: calc(100vh - 72px);
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .hero-copy {
    width: 65%;
  }

  .hero-image {
    width: 49%;
    right: 4%;
  }

  .intro,
  .catalog,
  .products {
    padding-right: 7vw;
    padding-left: 7vw;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-copy {
    grid-template-columns: 1fr 0.8fr;
  }

  .category-card {
    min-height: 310px;
  }

  .journal-copy {
    padding: 72px 8vw;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 68px;
    padding: 0 22px;
  }

  .wordmark {
    font-size: 1.6rem;
  }

  .main-nav {
    gap: 16px;
    margin-left: 0;
  }

  .main-nav a {
    font-size: 0.66rem;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: 690px;
    height: auto;
    padding: 64px 24px 70px;
    align-items: flex-start;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    margin: 27px 0 25px;
    font-size: clamp(4.7rem, 19vw, 7rem);
  }

  .hero-image {
    width: 71%;
    height: 42%;
    top: auto;
    right: 0;
    bottom: 64px;
  }

  .hero-bottom {
    max-width: 100%;
    align-items: center;
  }

  .hero-bottom p {
    font-size: 0.72rem;
  }

  .round-link {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero-index {
    bottom: 25px;
    left: 24px;
    font-size: 0.49rem;
  }

  .intro,
  .catalog,
  .products {
    padding: 77px 24px;
  }

  .intro-copy {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .intro-detail {
    max-width: 420px;
  }

  .section-heading {
    align-items: start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .section-heading .underlined-link {
    margin-top: 39px;
    white-space: nowrap;
    font-size: 0.65rem;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .category-card {
    min-height: 250px;
    padding: 15px;
  }

  .category-living {
    grid-column: span 2;
    min-height: 290px;
  }

  .category-name {
    font-size: 1.45rem;
  }

  .products-heading {
    align-items: start;
    gap: 14px;
  }

  .products-heading .underlined-link {
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 27px 12px;
  }

  .product-image {
    height: 54vw;
    max-height: 320px;
  }

  .product-meta {
    display: block;
    margin-top: 12px;
  }

  .product-meta span {
    display: block;
    margin-top: 6px;
  }

  .product-meta h3,
  .product-meta span {
    font-size: 0.73rem;
  }

  .product-card > p {
    font-size: 0.62rem;
    line-height: 1.5;
  }

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

  .journal-image {
    min-height: 340px;
  }

  .journal-copy {
    padding: 62px 24px 74px;
  }

  .site-footer {
    padding: 30px 24px;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .back-to-top,
  .copyright {
    justify-self: end;
  }
}

@media (max-width: 360px) {
  .section-heading {
    flex-wrap: wrap;
  }

  .section-heading .underlined-link {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
