:root {
  --night: #100a06;
  --night-soft: #191009;
  --wood: #24150c;
  --wood-light: #402718;
  --parchment: #ecd2a6;
  --parchment-light: #f3deb9;
  --ink: #332015;
  --cream: #f4dfb5;
  --cream-muted: #d6b985;
  --gold: #be8743;
  --gold-bright: #dda353;
  --green: #213a2c;
  --green-light: #31503a;
  --border: #704820;
  --shadow: rgba(5, 3, 2, 0.52);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --content: min(1376px, calc(100vw - 80px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background: var(--night);
  font-family: var(--body);
}

body.no-scroll {
  overflow: hidden;
}

.fire-cursor {
  position: fixed;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: lighten;
  opacity: 0.58;
  filter: blur(0.18px) saturate(0.78);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  height: 136px;
  background:
    linear-gradient(180deg, rgba(7, 4, 2, 0.42), transparent),
    repeating-linear-gradient(93deg, #170d07 0 34px, #27160d 35px 87px, #1d1008 89px 154px);
  border-bottom: 3px solid #4b2c15;
  box-shadow: inset 0 -3px 0 #120a05, 0 8px 22px #080402;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  width: var(--content);
  height: 100%;
  margin: 0 auto;
  padding-left: clamp(124px, 14vw, 182px);
}

.brand {
  position: absolute;
  top: 14px;
  left: 0;
  width: clamp(118px, 12vw, 156px);
  filter: drop-shadow(0 9px 12px #080402);
  z-index: 3;
}

.smoke-switcher {
  position: absolute;
  top: 16px;
  left: clamp(132px, 13vw, 176px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgba(190, 135, 67, 0.46);
  border-radius: 999px;
  color: rgba(244, 223, 181, 0.82);
  background: rgba(16, 10, 6, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 222, 164, 0.08), 0 5px 16px rgba(4, 2, 1, 0.24);
  backdrop-filter: blur(8px);
}

.smoke-switcher label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.smoke-switcher select {
  width: 112px;
  border: 0;
  color: #f5dfb7;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 650;
  outline: 0;
}

.smoke-switcher select option {
  color: #1c120a;
  background: #f0d7aa;
}

.smoke-switcher:focus-within {
  border-color: rgba(221, 163, 83, 0.9);
  box-shadow: 0 0 0 2px rgba(221, 163, 83, 0.18), 0 8px 22px rgba(4, 2, 1, 0.32);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(25px, 4vw, 64px);
}

.main-nav a {
  position: relative;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:is(:hover, :focus-visible) {
  color: #ffe5af;
}

.main-nav a:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

.cart-button,
.button,
.add-button,
.filter {
  border: 1px solid var(--gold);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.cart-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 8px;
  color: var(--cream);
  background: var(--green);
  box-shadow: inset 0 0 0 2px rgba(214, 162, 86, 0.22), 0 3px 10px var(--shadow);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.cart-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.cart-button:is(:hover, :focus-visible),
.button-primary:is(:hover, :focus-visible),
.add-button:is(:hover, :focus-visible) {
  background: var(--green-light);
  box-shadow: 0 8px 20px rgba(12, 8, 5, 0.45);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  color: var(--cream);
  background: transparent;
  border: 0;
}

.hero {
  position: relative;
  min-height: clamp(584px, calc(100svh - 136px), 720px);
  overflow: hidden;
  background: #0f0905;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 29%;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 29%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 29%, #000 100%);
}

.hero-inner {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  padding: clamp(78px, 8vw, 114px) 0 70px;
}

.hero-copy {
  max-width: 610px;
}

.hero h1 {
  max-width: 600px;
  margin: 0 0 22px;
  color: #f6e1bb;
  font-family: var(--display);
  font-size: clamp(3.5rem, 5.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.97;
}

.hero-copy > p:not(.crafted-note) {
  max-width: 500px;
  margin: 0 0 34px;
  color: #dec393;
  font-family: var(--display);
  font-size: clamp(1.48rem, 2vw, 1.7rem);
  line-height: 1.36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
}

.button-primary {
  color: #fae4ba;
  background: var(--green);
  box-shadow: inset 0 0 0 2px rgba(218, 166, 87, 0.22);
}

.button-secondary {
  color: var(--cream);
  background: rgba(31, 19, 12, 0.82);
}

.button-secondary:is(:hover, :focus-visible) {
  background: #322014;
  transform: translateY(-1px);
}

.crafted-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 33px 0 0;
  color: var(--cream-muted);
  font-family: var(--display);
  font-size: 1.35rem;
}

.crafted-note svg {
  width: 25px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.6;
}

.parchment {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 45%, rgba(140, 81, 33, 0.11), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(130, 69, 24, 0.1), transparent 33%),
    linear-gradient(100deg, #e4c38f, var(--parchment-light) 48%, #e1bf89);
}

.products {
  position: relative;
  padding: 58px max(calc((100vw - 1300px) / 2), 40px) 60px;
  border-top: 9px solid #5a3419;
  border-bottom: 9px solid #4e2c14;
  box-shadow: inset 0 0 0 2px #ae783c;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 23px;
}

.section-heading h2,
.promises h2,
.story h2,
.newsletter h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.65rem, 4vw, 3.55rem);
  font-weight: 600;
  line-height: 1.05;
}

.section-heading span {
  display: block;
  width: clamp(42px, 8vw, 92px);
  height: 1px;
  background: var(--border);
}

.filters {
  display: flex;
  justify-content: center;
  gap: 17px;
  margin-bottom: 31px;
}

.filter {
  min-width: 155px;
  padding: 12px 25px;
  border-color: #b98a52;
  border-radius: 6px;
  color: #43291a;
  background: rgba(250, 228, 184, 0.34);
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 600;
}

.filter:is(:hover, :focus-visible) {
  background: rgba(251, 230, 190, 0.85);
}

.filter.active {
  color: var(--cream);
  background: var(--green);
  box-shadow: inset 0 0 0 2px rgba(216, 160, 79, 0.35), 0 3px 8px rgba(47, 27, 12, 0.32);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(17px, 2vw, 23px);
  max-width: 1300px;
  margin: 0 auto 35px;
}

.product-grid.filtered {
  display: flex;
  justify-content: center;
}

.product-grid.filtered .product-card {
  width: min(300px, 100%);
}

.product-card {
  overflow: hidden;
  border: 2px solid #8d5b2a;
  border-radius: 9px;
  background: #e8c995;
  box-shadow: inset 0 0 0 2px rgba(252, 224, 169, 0.44), 0 4px 12px rgba(62, 33, 15, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:is(:hover, :focus-within) {
  box-shadow: 0 12px 25px rgba(62, 33, 15, 0.3), 0 0 0 2px #d89c4e;
  transform: translateY(-4px);
}

.product-card[hidden] {
  display: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid #9e682f;
}

.product-details {
  padding: 13px 13px 14px;
  text-align: center;
}

.product-details h3 {
  min-height: 2.2em;
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.7vw, 1.62rem);
  font-weight: 700;
  line-height: 1.08;
}

.price {
  margin: 0 0 10px;
  color: #1e3b2b;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 180px);
  min-height: 43px;
  margin: 0 auto;
  border-radius: 6px;
  color: var(--cream);
  background: var(--green);
  font-family: var(--display);
  font-size: 1.33rem;
  font-weight: 600;
}

.add-button span {
  font-size: 1.28em;
  line-height: 0.8;
}

.catalog-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 46px;
  border: 2px solid #bd8844;
  border-radius: 7px;
  color: var(--cream);
  background: var(--green);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
}

.catalog-link:hover {
  background: var(--green-light);
}

.promises {
  padding: 39px max(calc((100vw - 1210px) / 2), 40px) 45px;
  color: var(--cream);
  background:
    linear-gradient(90deg, transparent, rgba(189, 132, 60, 0.07), transparent),
    repeating-linear-gradient(88deg, #191009 0 62px, #25160c 64px 132px, #1d110a 134px 210px);
  border-bottom: 2px solid #5e371b;
}

.promises h2 {
  margin-bottom: 31px;
  text-align: center;
  font-size: clamp(2.15rem, 3vw, 2.8rem);
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.promise-list article {
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 82px;
  padding: 0 clamp(18px, 3vw, 40px);
  border-right: 1px solid rgba(205, 149, 75, 0.44);
}

.promise-list article:last-child {
  border: 0;
}

.promise-icon {
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  background: var(--green);
  font-size: 1.45rem;
}

.promise-list h3 {
  margin: 0 0 4px;
  color: #f3dbad;
  font-family: var(--display);
  font-size: 1.55rem;
}

.promise-list p {
  margin: 0;
  color: #c9ad80;
  font-size: 0.88rem;
  line-height: 1.45;
}

.story {
  display: grid;
  grid-template-columns: minmax(360px, 51%) 1fr;
  align-items: center;
  gap: clamp(44px, 6vw, 86px);
  width: var(--content);
  margin: 0 auto;
  padding: clamp(68px, 8vw, 98px) 0;
}

.story-media {
  padding: 10px;
  border: 1px solid #7c4d25;
  border-radius: 10px;
  background: #27160d;
  box-shadow: 0 22px 44px var(--shadow);
}

.story-media img {
  width: 100%;
  border-radius: 5px;
}

.story-copy {
  max-width: 470px;
}

.story-copy > p:first-of-type {
  margin: 18px 0 17px;
  color: #efd7a8;
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1.35;
}

.story-detail {
  margin: 0 0 31px;
  color: #bfa57d;
  font-size: 0.97rem;
  line-height: 1.7;
}

.newsletter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 25px 64px;
  width: min(1100px, calc(100vw - 80px));
  margin: 0 auto 72px;
  padding: 41px 58px;
  border: 2px solid #87562a;
  border-radius: 9px;
  box-shadow: inset 0 0 0 4px rgba(156, 99, 43, 0.22);
}

.newsletter h2 {
  font-size: clamp(2.3rem, 3vw, 2.9rem);
}

.newsletter p {
  margin: 7px 0 0;
  color: #66472c;
}

.newsletter-form {
  display: flex;
  gap: 11px;
}

.newsletter-form input {
  width: clamp(208px, 22vw, 278px);
  min-height: 57px;
  padding: 0 20px;
  border: 1px solid #9f703d;
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 238, 203, 0.74);
}

.newsletter-form input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.form-success {
  grid-column: 2;
  color: #294330 !important;
  text-align: right;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  width: var(--content);
  margin: 0 auto;
  padding: 29px 0 40px;
  border-top: 1px solid rgba(190, 135, 67, 0.45);
  color: #bea37b;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
}

.footer-brand img {
  width: 55px;
}

.site-footer nav {
  display: flex;
  gap: 32px;
}

.site-footer nav a:hover {
  color: var(--cream);
}

.site-footer p {
  justify-self: end;
  font-size: 0.86rem;
}

.cart-overlay {
  position: fixed;
  z-index: 5;
  inset: 0;
  background: rgba(8, 5, 3, 0.67);
}

.cart-drawer {
  position: fixed;
  z-index: 6;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(410px, 100vw);
  height: 100dvh;
  padding: 28px 25px 22px;
  border-left: 2px solid #88572c;
  color: var(--cream);
  background:
    repeating-linear-gradient(91deg, #181008 0 74px, #25160d 75px 144px, #1e110a 145px 214px);
  box-shadow: -14px 0 36px rgba(0, 0, 0, 0.38);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 250ms ease, visibility 250ms;
}

.cart-drawer.open {
  visibility: visible;
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid #65411f;
}

.cart-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 600;
}

.close-button {
  border: 0;
  color: var(--cream);
  background: transparent;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
}

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

.empty-cart {
  color: #bfa47d;
  font-family: var(--display);
  font-size: 1.45rem;
  text-align: center;
}

.cart-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(190, 135, 67, 0.26);
}

.cart-row h3 {
  margin: 0 0 5px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.3rem;
}

.cart-row p {
  margin: 0;
  color: #c5a878;
  font-size: 0.85rem;
}

.remove-item {
  border: 0;
  color: #d4ad72;
  background: transparent;
  font-size: 0.8rem;
}

.cart-footer {
  padding-top: 17px;
  border-top: 1px solid #65411f;
}

.cart-footer p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 19px;
  color: #ddc08f;
}

.checkout {
  width: 100%;
}

.checkout:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 25px;
  bottom: 24px;
  padding: 15px 22px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  color: var(--cream);
  background: var(--green);
  box-shadow: 0 10px 25px var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  .fire-cursor {
    display: none;
  }
}

@media (max-width: 1080px) {
  :root {
    --content: min(100% - 48px, 920px);
  }

  .header-inner {
    gap: 15px;
    padding-left: 113px;
  }

  .brand {
    width: 103px;
  }

  .main-nav {
    gap: 21px;
  }

  .cart-button {
    padding: 0 17px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    max-width: 660px;
  }

  .story {
    gap: 40px;
  }
}

@media (max-width: 780px) {
  :root {
    --content: calc(100vw - 38px);
  }

  .site-header {
    height: 88px;
  }

  .header-inner {
    justify-content: flex-end;
    gap: 8px;
    padding-left: 80px;
  }

  .brand {
    top: 8px;
    width: 76px;
  }

  .smoke-switcher {
    top: 10px;
    left: 96px;
    padding: 5px 7px;
  }

  .smoke-switcher label {
    display: none;
  }

  .smoke-switcher select {
    width: 88px;
    font-size: 0.74rem;
  }

  .menu-button {
    display: grid;
    gap: 5px;
    width: 46px;
    margin-right: 5px;
    padding: 11px;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--cream);
  }

  .main-nav {
    position: absolute;
    top: 88px;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 24px 26px;
    background: #20130b;
    border-bottom: 2px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .cart-button {
    min-height: 46px;
    padding: 0 13px;
    font-size: 1.13rem;
  }

  .cart-button svg {
    width: 17px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 0;
  }

  .hero-media {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: min(64vw, 450px);
    margin-top: 37px;
  }

  .hero-media img {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%);
    mask-image: linear-gradient(180deg, transparent, #000 16%);
  }

  .hero-inner {
    order: 1;
    padding: 51px 0 0;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.6rem);
  }

  .hero-copy > p:not(.crafted-note) {
    font-size: 1.31rem;
  }

  .button {
    min-height: 53px;
    padding: 0 22px;
    font-size: 1.3rem;
  }

  .products {
    padding: 45px 19px 47px;
  }

  .section-heading {
    gap: 13px;
  }

  .filters {
    flex-wrap: wrap;
    gap: 9px;
  }

  .filter {
    flex: 1 1 calc(50% - 9px);
    min-width: 0;
  }

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

  .product-details {
    padding: 11px 7px;
  }

  .product-details h3 {
    font-size: 1.22rem;
  }

  .price {
    font-size: 1.34rem;
  }

  .add-button {
    font-size: 1.16rem;
  }

  .catalog-link {
    padding: 13px 27px;
    font-size: 1.3rem;
  }

  .promises {
    padding: 34px 19px;
  }

  .promise-list {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .promise-list article {
    padding: 0;
    border: 0;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 33px;
    padding: 55px 0;
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100vw - 38px);
    margin-bottom: 54px;
    padding: 32px 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
  }

  .form-success {
    grid-column: auto;
    text-align: left;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-footer p {
    justify-self: center;
  }
}

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