:root {
  --ink: #17221e;
  --deep: #243a32;
  --moss: #5f7659;
  --navy: #14233f;
  --ivory: #f7f1e8;
  --paper: #fffaf2;
  --stone: #ded0bb;
  --brass: #b38745;
  --clay: #9c5b48;
  --soft: #eee2d1;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(23, 34, 30, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 42px;
  background: rgba(247, 241, 232, 0.94);
  border-bottom: 1px solid rgba(23, 34, 30, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 6px;
  color: var(--brass);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.brand-copy small {
  color: var(--moss);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 4px;
  color: rgba(23, 34, 30, 0.76);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(95, 118, 89, 0.14);
  color: var(--ink);
  outline: none;
}

.cart-trigger,
.btn,
.product [data-add-to-cart],
.checkout,
.qty-button,
.remove-button,
.icon-button {
  border: 0;
  border-radius: 6px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px 10px 18px;
  text-transform: uppercase;
}

.cart-trigger:hover,
.btn:hover,
.product [data-add-to-cart]:hover,
.checkout:hover {
  transform: translateY(-1px);
}

.cart-count {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  align-items: end;
  overflow: hidden;
  padding: 116px 42px 56px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(11, 16, 14, 0.78), rgba(11, 16, 14, 0.24) 58%, rgba(11, 16, 14, 0.1)),
    url("images/hero.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(11, 16, 14, 0.62), rgba(11, 16, 14, 0));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1,
.intro h2,
.section-heading h2,
.atelier-copy h2,
.experience h2,
footer h2,
.cart h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
}

.hero h1 {
  font-size: 78px;
  line-height: 0.94;
  margin-bottom: 22px;
}

.hero-lead {
  color: rgba(255, 250, 242, 0.9);
  font-size: 19px;
  line-height: 1.7;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.btn-secondary {
  border: 1px solid rgba(255, 250, 242, 0.45);
  background: rgba(255, 250, 242, 0.08);
  color: var(--paper);
}

.btn-secondary:hover {
  background: rgba(255, 250, 242, 0.18);
}

.hero-proof {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 64px;
  max-width: 900px;
}

.hero-proof span {
  border-left: 2px solid var(--brass);
  color: rgba(255, 250, 242, 0.86);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 22px 4px 12px;
  text-transform: uppercase;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(23, 34, 30, 0.18);
}

.brand-strip p {
  background: var(--deep);
  color: rgba(255, 250, 242, 0.84);
  font-size: 14px;
  line-height: 1.65;
  padding: 26px 36px;
}

.brand-strip strong {
  color: var(--paper);
}

.intro,
.collection,
.experience {
  padding: 86px 42px;
}

.intro {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
}

.intro h2,
.section-heading h2,
.atelier-copy h2,
.experience h2 {
  font-size: 48px;
  line-height: 1.04;
}

.intro p:last-child,
.section-heading p,
.atelier-copy p,
.experience p {
  color: rgba(23, 34, 30, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.intro p:last-child {
  margin: 18px auto 0;
  max-width: 720px;
}

.collection {
  background: linear-gradient(180deg, var(--ivory), #ece2d4);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin: 0 auto 36px;
  max-width: 760px;
  text-align: center;
}

.products {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  margin: 0 auto;
  max-width: 1280px;
}

.product {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(23, 34, 30, 0.12);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product:hover {
  box-shadow: 0 28px 72px rgba(23, 34, 30, 0.19);
  transform: translateY(-6px);
}

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

.product-media::after {
  position: absolute;
  inset: 0;
  background: var(--selected-color);
  content: "";
  mix-blend-mode: color;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
  transition: background 220ms ease, opacity 220ms ease;
}

.product-media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-info h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.product-description {
  color: rgba(23, 34, 30, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.product-meta span {
  border: 1px solid rgba(95, 118, 89, 0.28);
  border-radius: 999px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(23, 34, 30, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  color: rgba(23, 34, 30, 0.68);
  font-size: 11px;
  font-weight: 800;
  min-height: 30px;
  padding: 5px 8px 5px 6px;
  text-transform: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.color-swatch:hover,
.color-swatch:focus-visible,
.color-swatch.active {
  border-color: var(--selected-color);
  background: var(--ink);
  color: var(--paper);
  outline: none;
  transform: translateY(-1px);
}

.color-swatch i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(23, 34, 30, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.selected-color {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.price {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  margin: auto 0 18px;
}

.product [data-add-to-cart] {
  min-height: 48px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  padding: 13px 16px;
  text-transform: uppercase;
}

.product [data-add-to-cart]:hover {
  background: var(--clay);
}

.atelier {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  background: var(--ink);
  color: var(--paper);
}

.atelier-media {
  min-height: 620px;
}

.atelier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atelier-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 72px;
}

.atelier-copy h2 {
  color: var(--paper);
  margin-bottom: 28px;
}

.atelier-copy p,
.experience .experience-grid p {
  color: rgba(255, 250, 242, 0.72);
}

.detail-list {
  display: grid;
  gap: 24px;
  margin-top: 14px;
}

.detail-list article {
  border-top: 1px solid rgba(255, 250, 242, 0.18);
  padding-top: 22px;
}

.detail-list h3,
.experience-grid h3 {
  color: var(--brass);
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.experience {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  background:
    radial-gradient(circle at top left, rgba(179, 135, 69, 0.16), transparent 34%),
    var(--ivory);
}

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

.experience-grid article {
  border: 1px solid rgba(23, 34, 30, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
  padding: 24px;
}

.experience-grid span {
  display: block;
  color: var(--clay);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 18px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(12, 18, 15, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  width: min(430px, 100%);
  height: 100%;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(23, 34, 30, 0.24);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

.cart.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 26px 18px;
  border-bottom: 1px solid rgba(23, 34, 30, 0.12);
}

.cart h2 {
  font-size: 40px;
  line-height: 1;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 26px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 34, 30, 0.12);
}

.cart-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.cart-item p {
  color: rgba(23, 34, 30, 0.7);
  font-size: 14px;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
}

.qty-button {
  width: 32px;
  height: 32px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-weight: 900;
}

.remove-button {
  background: transparent;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 0;
  text-transform: uppercase;
}

.empty-cart {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: rgba(23, 34, 30, 0.62);
  line-height: 1.65;
  text-align: center;
}

.cart-summary {
  padding: 20px 26px 26px;
  border-top: 1px solid rgba(23, 34, 30, 0.12);
  background: var(--ivory);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 18px;
}

.checkout {
  width: 100%;
  min-height: 52px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

footer {
  background: #111713;
  color: rgba(255, 250, 242, 0.82);
  padding: 64px 28px;
  text-align: center;
}

footer h2 {
  color: var(--brass);
  font-size: 42px;
  margin-bottom: 12px;
}

footer p {
  line-height: 1.8;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .brand-strip,
  .products,
  .atelier,
  .experience,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .atelier-media {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 132px;
  }

  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    font-size: 12px;
    padding: 9px 8px;
  }

  .cart-trigger {
    min-height: 40px;
    padding: 8px 10px 8px 12px;
  }

  .hero {
    min-height: 78svh;
    padding: 86px 18px 40px;
    background-position: 63% center;
  }

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

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-proof {
    margin-top: 34px;
  }

  .brand-strip p,
  .intro,
  .collection,
  .experience,
  .atelier-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro,
  .collection,
  .experience {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .intro h2,
  .section-heading h2,
  .atelier-copy h2,
  .experience h2 {
    font-size: 36px;
  }

  .product-info h3 {
    font-size: 27px;
  }

  .atelier-copy {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .cart-header,
  .cart-items,
  .cart-summary {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
