:root {
  --rose-gold: #D9A38F;
  --soft-pink: #EFA7B5;
  --pearl: #F8F2EE;
  --sand: #E9DDD5;
  --taupe: #6E564B;
  --gold: #D7B06A;
  --white: #FFFFFF;
  --ink: #3F302A;
  --line: #E6D7CF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Allura', cursive;
  --font-body: 'Montserrat', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--pearl);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

main {
  flex: 1;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

.page-shell {
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 18px;
  padding-right: 18px;
  width: 100%;
}

.announcement {
  align-items: center;
  background: var(--soft-pink);
  color: var(--ink);
  display: flex;
  font-family: var(--font-display);
  font-size: 12px;
  justify-content: center;
  min-height: 30px;
  padding: 5px 18px;
  text-align: center;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-content {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  align-items: center;
  display: flex;
  height: 62px;
  text-decoration: none;
  width: 62px;
}

.brand img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.main-navigation {
  align-items: center;
  display: flex;
  gap: 6px;
}

.main-navigation a {
  align-items: center;
  border-bottom: 2px solid transparent;
  display: flex;
  font-size: 13px;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
}

.main-navigation a[aria-current='page'] {
  border-bottom-color: var(--rose-gold);
  color: var(--taupe);
}

.hero {
  background-color: var(--sand);
  background-image: url('../images/brand/hero-editorial.webp');
  background-position: 58% center;
  background-size: cover;
  isolation: isolate;
  min-height: 460px;
  position: relative;
}

.hero::before {
  background: rgba(248, 242, 238, 0.63);
  content: '';
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
  padding-bottom: 52px;
  padding-top: 52px;
}

.hero-kicker,
.section-label,
.product-eyebrow {
  color: var(--taupe);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--taupe);
  font-size: 42px;
  line-height: 1.03;
  margin-bottom: 8px;
  max-width: 430px;
}

.hero h1 span {
  color: #9D4B59;
  display: block;
  font-family: var(--font-script);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 24px;
  max-width: 330px;
}

.button {
  align-items: center;
  border: 1px solid var(--taupe);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

.button-primary {
  background: var(--taupe);
  box-shadow: inset 0 -3px var(--soft-pink);
  color: var(--pearl);
}

.text-link,
.back-link,
.product-detail-link {
  color: var(--taupe);
  text-decoration-color: var(--rose-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.category-section,
.product-section,
.catalog-page,
.product-detail {
  padding-bottom: 54px;
  padding-top: 46px;
}

.category-section + .product-section {
  padding-top: 4px;
}

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

.section-heading h2,
.story-layout h2,
.empty-state h2 {
  font-size: 28px;
  line-height: 1.16;
  margin-bottom: 0;
}

.section-heading .text-link {
  flex: 0 0 auto;
  font-size: 13px;
  margin-bottom: 3px;
}

.compact-heading {
  margin-bottom: 18px;
}

.category-stories {
  display: grid;
  gap: 14px;
  grid-auto-columns: 82px;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 0 12px;
  scrollbar-width: thin;
  scroll-snap-type: inline mandatory;
}

.category-story {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 8px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
}

.category-story-image {
  align-items: center;
  aspect-ratio: 1;
  background-color: var(--sand);
  background-image: url('../images/brand/hero-editorial.webp');
  background-position: center;
  background-size: cover;
  border: 2px solid var(--rose-gold);
  border-radius: 50%;
  color: var(--taupe);
  display: flex;
  font-family: var(--font-display);
  font-size: 24px;
  justify-content: center;
  width: 74px;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}

.product-image {
  background: var(--sand);
  display: block;
  overflow: hidden;
}

.product-image > img {
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.product-image-empty {
  align-items: center;
  aspect-ratio: 1;
  background: var(--pearl);
  color: var(--taupe);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 4px;
  justify-content: center;
  padding: 14px;
  text-align: center;
}

.product-image-empty img {
  height: auto;
  opacity: 0.62;
  width: min(72%, 160px);
}

.product-card-content {
  padding: 12px;
}

.product-card h2 {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.product-card h2 a {
  text-decoration: none;
}

.product-card-footer {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 12px;
}

.product-price,
.detail-price {
  color: var(--taupe);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.product-detail-link {
  font-size: 11px;
}

.empty-state {
  border-bottom: 1px solid var(--rose-gold);
  border-top: 1px solid var(--rose-gold);
  padding: 36px 0;
}

.empty-state > p:not(.section-label) {
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 560px;
}

.empty-state .text-link {
  display: inline-block;
  font-size: 13px;
  margin-top: 18px;
}

.story-section {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.story-layout {
  align-items: center;
  display: grid;
  gap: 30px;
}

.story-layout > img {
  height: auto;
  margin: 0 auto;
  width: min(64vw, 250px);
}

.story-layout p:not(.section-label) {
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0;
}

.story-layout .text-link {
  font-size: 13px;
}

.catalog-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  padding-bottom: 22px;
}

.catalog-heading h1 {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.catalog-heading > p:last-child {
  color: var(--taupe);
  font-size: 13px;
  margin-bottom: 0;
}

.filters {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.filters label {
  color: var(--taupe);
  display: grid;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  text-transform: uppercase;
}

.filters input,
.filters select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  height: 46px;
  min-width: 0;
  padding: 9px 11px;
  text-transform: none;
  width: 100%;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--taupe);
  outline: 2px solid rgba(217, 163, 143, 0.35);
  outline-offset: 1px;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 16px;
  justify-content: center;
  margin-top: 38px;
}

.pagination a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  min-height: 44px;
  padding: 8px 14px;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  font-size: 13px;
  margin-bottom: 24px;
  min-height: 44px;
  padding-top: 11px;
}

.product-detail-layout {
  display: grid;
  gap: 34px;
}

.product-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-gallery > img {
  aspect-ratio: 1;
  border-radius: 4px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.product-gallery > img:first-child:last-child {
  grid-column: span 2;
}

.product-image-empty-large {
  grid-column: span 2;
  min-height: 320px;
}

.product-information .section-label {
  margin-bottom: 10px;
}

.product-information h1 {
  font-size: 36px;
  line-height: 1.08;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.detail-price {
  font-size: 20px;
  margin-bottom: 10px;
}

.availability {
  color: var(--taupe);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.availability::before {
  background: var(--soft-pink);
  border-radius: 50%;
  content: '';
  display: inline-block;
  height: 8px;
  margin-right: 7px;
  width: 8px;
}

.description {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.7;
  padding: 20px 0;
}

.description p:last-child {
  margin-bottom: 0;
}

.product-attributes {
  font-size: 13px;
  margin: 18px 0 0;
}

.product-attributes div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 13px 0;
}

.product-attributes dt {
  color: var(--taupe);
  font-weight: 600;
}

.product-attributes dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--taupe);
  margin-top: auto;
  padding: 34px 0 18px;
}

.footer-content {
  display: grid;
  gap: 26px;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.footer-brand img {
  height: 70px;
  object-fit: contain;
  width: 70px;
}

.footer-brand strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.footer-brand p {
  font-family: var(--font-display);
  font-size: 12px;
  margin: 5px 0 0;
}

.site-footer nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.site-footer nav a {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  min-height: 44px;
  text-underline-offset: 4px;
}

.copyright {
  border-top: 1px solid var(--line);
  font-size: 10px;
  margin: 18px auto 0;
  max-width: 1200px;
  padding: 16px 18px 0;
  text-align: center;
}

@media (hover: hover) {
  .product-card:hover .product-image > img {
    transform: scale(1.025);
  }

  .main-navigation a:hover,
  .site-footer a:hover {
    color: var(--taupe);
  }
}

@media (min-width: 560px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters label:first-child,
  .filters .button {
    grid-column: span 2;
  }
}

@media (min-width: 680px) {
  .page-shell {
    padding-left: 28px;
    padding-right: 28px;
  }

  .brand {
    height: 68px;
    width: 68px;
  }

  .main-navigation {
    gap: 18px;
  }

  .main-navigation a {
    font-size: 14px;
  }

  .hero,
  .hero-content {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero h1 span {
    font-size: 52px;
  }

  .product-grid {
    gap: 24px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card-content {
    padding: 14px;
  }

  .story-layout {
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  }

  .story-layout > img {
    width: min(30vw, 270px);
  }

  .footer-content {
    align-items: center;
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 960px) {
  .header-content {
    min-height: 78px;
  }

  .brand {
    height: 74px;
    width: 74px;
  }

  .hero {
    background-position: center;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero::before {
    background: rgba(248, 242, 238, 0.24);
  }

  .hero h1 {
    font-size: 60px;
    max-width: 560px;
  }

  .hero h1 span {
    font-size: 62px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .category-section,
  .product-section,
  .catalog-page,
  .product-detail {
    padding-bottom: 72px;
    padding-top: 62px;
  }

  .category-section + .product-section {
    padding-top: 6px;
  }

  .section-heading h2,
  .story-layout h2,
  .empty-state h2 {
    font-size: 34px;
  }

  .category-stories {
    gap: 22px;
    grid-auto-columns: 94px;
  }

  .category-story-image {
    width: 86px;
  }

  .product-grid {
    gap: 28px 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-card h2 {
    font-size: 18px;
  }

  .story-section {
    padding: 66px 0;
  }

  .story-layout {
    gap: 70px;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  }

  .filters {
    align-items: end;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    grid-template-columns: 1.4fr repeat(3, minmax(140px, 1fr)) auto;
    padding: 18px 0;
  }

  .filters label:first-child,
  .filters .button {
    grid-column: auto;
  }

  .product-detail-layout {
    align-items: start;
    gap: 58px;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  }

  .product-information {
    position: sticky;
    top: 112px;
  }

  .product-information h1 {
    font-size: 44px;
  }
}

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

  .product-image > img {
    transition: none;
  }
}
