:root {
  --ink: #201d19;
  --paper: #f4f0e8;
  --cream: #e8dfcf;
  --accent: #b8492f;
  --line: rgba(32, 29, 25, 0.18);
  --page-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width {
  width: min(calc(100% - 3rem), var(--page-width));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover {
  color: var(--ink);
  background: transparent;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__inner {
  display: grid;
  min-height: 74px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.site-header__logo {
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.site-header__nav {
  justify-self: center;
}

.site-header__nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 2rem;
  list-style: none;
}

.site-header__actions {
  display: flex;
  justify-self: end;
  gap: 1rem;
}

.site-header__menu-button {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 74px));
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fffaf0;
  background: #31251d;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media img,
.hero__media svg {
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(24, 17, 12, 0.7), rgba(24, 17, 12, 0.05) 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: clamp(3rem, 10vw, 8rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading,
.story__title,
.product-main__title {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
}

.hero__text {
  max-width: 42ch;
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
}

.hero .button {
  border-color: #fffaf0;
  color: var(--ink);
  background: #fffaf0;
}

.featured-products {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.section-heading-copy {
  max-width: 760px;
}

.featured-products__text {
  max-width: 42ch;
  margin-top: 1.25rem;
  color: rgba(32, 29, 25, 0.72);
  font-size: 1.05rem;
}

.featured-products__text p {
  margin: 0;
}

.text-link {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-grid--spotlight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 5rem);
}

.product-card--spotlight:nth-child(2) {
  margin-top: clamp(3rem, 8vw, 8rem);
}

.product-card--spotlight .product-card__media {
  aspect-ratio: 5 / 6;
}

.product-card--spotlight .product-card__meta {
  padding-top: 1.5rem;
}

.product-card--spotlight .product-card__title {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.product-card__description {
  max-width: 40ch;
  margin-top: 1rem;
  color: rgba(32, 29, 25, 0.72);
}

.product-card__description p {
  margin: 0;
}

.product-card__description p + p {
  display: none;
}

.product-card__cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  transition: transform 180ms ease;
}

.product-card--spotlight:hover .product-card__cta {
  transform: translateX(0.35rem);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream);
}

.product-card__media img,
.product-card__media svg {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.product-card__title,
.product-card__price {
  margin: 0;
}

.product-card__price {
  white-space: nowrap;
}

.story {
  display: grid;
  min-height: 620px;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: var(--paper);
}

.story__media {
  min-height: 420px;
  background: #4a4036;
}

.story__media img,
.story__media svg {
  height: 100%;
  object-fit: cover;
}

.story__content {
  display: flex;
  max-width: 640px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 7rem);
}

.story__title {
  font-size: clamp(3rem, 6vw, 6rem);
}

.story__text {
  max-width: 42ch;
  margin: 2rem 0 0;
}

.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(2rem, 7vw, 6rem);
}

.product-main__media {
  background: var(--cream);
}

.product-main__info {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.product-main__title {
  font-size: clamp(3rem, 6vw, 6rem);
}

.product-main__price {
  margin: 1.5rem 0;
  font-size: 1.15rem;
}

.product-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.product-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-form select,
.product-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.site-footer {
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__brand {
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.05em;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer__bottom {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.utility-page {
  min-height: 60vh;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.utility-page__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.utility-page__heading .eyebrow,
.utility-page__heading p {
  margin-bottom: 0;
}

.search-form {
  max-width: 780px;
  margin-bottom: 4rem;
}

.search-form label,
.cart-line__form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.search-form input,
.cart-line__form input {
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.search-summary {
  margin-block: 0 2rem;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.cart-list {
  border-top: 1px solid var(--line);
}

.cart-line {
  display: grid;
  grid-template-columns: 160px 1fr 160px 120px;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cart-line__image {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream);
}

.cart-line__image img,
.cart-line__image svg {
  height: 100%;
  object-fit: cover;
}

.cart-line__details h2,
.cart-line__details p,
.cart-line__total {
  margin: 0;
}

.cart-line__details h2 {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.cart-line__form {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
}

.cart-line__form input {
  width: 88px;
}

.cart-line__form button {
  padding: 0;
  border-width: 0 0 1px;
  background: transparent;
  cursor: pointer;
}

.cart-line__total {
  justify-self: end;
  font-size: 1.1rem;
}

.cart-summary {
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin: 3rem 0 0 auto;
  font-size: 1.2rem;
}

.cart-summary strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.cart-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(32, 29, 25, 0.65);
  font-size: 0.85rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 749px) {
  .page-width {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-header__logo {
    justify-self: center;
  }

  .site-header__menu-button {
    display: block;
  }

  .site-header__nav {
    position: fixed;
    inset: 74px 0 0;
    width: 100%;
    display: none;
    justify-self: stretch;
    padding: 2rem 1rem;
    background: var(--paper);
  }

  .site-header__nav.is-open {
    display: block;
  }

  .site-header__nav ul {
    flex-direction: column;
    gap: 1rem;
    font-family: Georgia, serif;
    font-size: 2.5rem;
  }

  .site-header__search {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 74px);
  }

  .hero__content {
    padding-bottom: 4rem;
  }

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

  .product-grid--spotlight {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-card--spotlight:nth-child(2) {
    margin-top: 0;
  }

  .product-card--spotlight .product-card__meta {
    align-items: end;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

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

  .story__content {
    padding: 3rem 1rem 4rem;
  }

  .product-main__info {
    position: static;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .utility-page__heading {
    align-items: start;
    flex-direction: column;
  }

  .cart-line {
    grid-template-columns: 96px 1fr;
  }

  .cart-line__form {
    grid-column: 2;
  }

  .cart-line__total {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
