:root {
  --paper: #fff8ee;
  --cream: #f1e4d0;
  --ink: #131313;
  --muted: #686158;
  --line: rgba(19, 19, 19, 0.13);
  --forest: #17382f;
  --brick: #a53d31;
  --gold: #bd9142;
  --blue: #365c73;
  --shadow: 0 22px 56px rgba(19, 19, 19, 0.17);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.cart-open {
  overflow: hidden;
}

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

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

button,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 30;
  width: min(1160px, calc(100% - 28px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 248, 238, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.9);
  box-shadow: 0 12px 36px rgba(19, 19, 19, 0.12);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: min(260px, 48vw);
}

.brand-link img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #221f1c;
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  cursor: pointer;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  min-height: calc(100svh - 96px);
  max-height: 760px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 11, 0.78), rgba(12, 12, 11, 0.38) 50%, rgba(12, 12, 11, 0.08)),
    linear-gradient(0deg, rgba(12, 12, 11, 0.2), rgba(12, 12, 11, 0.02));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 148px 0 64px;
  color: var(--paper);
}

.hero-logo {
  width: min(560px, 88vw);
  margin-bottom: 18px;
}

h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-content p {
  max-width: 420px;
  margin: 0 0 22px;
  color: rgba(255, 248, 238, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.98;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible,
.cart-toggle:hover,
.cart-toggle:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
}

.light-button {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.shop {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 84px;
}

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

.shop-heading p {
  margin: 0 0 8px;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

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

.product-card {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(19, 19, 19, 0.08);
}

.mockup-stage {
  --mock-bg: var(--cream);
  --mock-bg-end: #8f7450;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 376px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(135deg, var(--mock-bg), var(--mock-bg-end));
}

.stage-forest {
  --mock-bg: var(--forest);
  --mock-bg-end: #091612;
}

.stage-sand {
  --mock-bg: #d8b98b;
  --mock-bg-end: #8f693d;
}

.stage-ink {
  --mock-bg: #2c2b2a;
  --mock-bg-end: #090909;
}

.mockup-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 248, 238, 0.3);
}

.mockup-img {
  position: relative;
  z-index: 1;
  width: min(280px, 78%);
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.2));
}

.product-info,
.buy-row,
.cart-item,
.cart-item-actions,
.subtotal-row {
  display: flex;
  align-items: center;
}

.product-info {
  justify-content: space-between;
  gap: 14px;
}

.product-info h3 {
  margin: 0 0 3px;
  font-size: 1.05rem;
  line-height: 1.15;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-info strong {
  font-size: 1.12rem;
}

.buy-row {
  gap: 10px;
}

.buy-row label {
  flex: 1;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  font-weight: 800;
}

.add-to-cart {
  min-width: 100px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(19, 19, 19, 0.36);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(430px, 100%);
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fffdf8;
  box-shadow: -24px 0 58px rgba(19, 19, 19, 0.22);
  transform: translateX(110%);
  transition: transform 180ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 160ms ease;
}

.cart-items {
  overflow: auto;
  padding: 8px 18px;
}

.empty-cart {
  margin: 26px 0;
  color: var(--muted);
  font-weight: 800;
}

.cart-item {
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
}

.cart-item-actions {
  gap: 8px;
}

.qty-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.item-quantity {
  min-width: 18px;
  text-align: center;
  font-weight: 900;
}

.cart-footer {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.subtotal-row {
  justify-content: space-between;
  color: var(--ink);
  font-weight: 900;
}

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

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer img {
  width: min(230px, 52vw);
}

.site-footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 930px) {
  .hero {
    min-height: calc(100svh - 82px);
  }

  .hero-image {
    object-position: 58% center;
  }

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

  .mockup-stage {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 62px;
    padding: 8px 9px 8px 12px;
  }

  .brand-link {
    width: min(188px, 46vw);
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    display: none;
  }

  .cart-toggle {
    min-height: 40px;
    padding: 0 10px;
  }

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

  .hero-image {
    object-position: 63% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(12, 12, 11, 0.12), rgba(12, 12, 11, 0.84) 78%),
      linear-gradient(90deg, rgba(12, 12, 11, 0.44), rgba(12, 12, 11, 0.08));
  }

  .hero-content {
    padding: 112px 0 42px;
  }

  .hero-logo {
    width: min(370px, 92vw);
  }

  .hero-content p {
    max-width: 310px;
    font-size: 2.45rem;
  }

  .shop {
    padding-top: 44px;
  }

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

  .shop-heading h2 {
    font-size: 2.9rem;
  }

  .mockup-stage {
    min-height: 350px;
  }

  .product-card {
    padding: 12px;
  }

  .buy-row {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: start;
  }
}
