:root {
  --ink: #151714;
  --ink-soft: #3f443f;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --olive: #243126;
  --olive-soft: #5e694c;
  --forest: #13211b;
  --terracotta: #a8583f;
  --brass: #c59a55;
  --burgundy: #592f35;
  --line: rgba(21, 23, 20, 0.18);
  --line-light: rgba(255, 253, 248, 0.23);
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
}

body.nav-open,
body.drawer-open,
body.product-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.announcement {
  min-height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 16px;
  padding: 7px 30px;
  color: var(--white);
  background: var(--olive);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.announcement p {
  margin: 0;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 4vw, 58px);
  background: rgba(245, 241, 232, 0.97);
  transition: min-height 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(14px);
}

.site-header.is-compact {
  min-height: 68px;
  box-shadow: 0 8px 28px rgba(21, 23, 20, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.nav-right {
  justify-content: flex-end;
}

.nav a,
.header-action {
  position: relative;
  padding: 9px 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.header-action {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav a::after,
.header-action::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.header-action:hover::after,
.header-action:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  padding: 0 5px;
  color: var(--white);
  background: var(--terracotta);
  font-size: 0.61rem;
  line-height: 1;
}

.wordmark {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 150px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-en {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.wordmark-ar {
  margin-top: 2px;
  color: var(--olive-soft);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 0.74rem;
  line-height: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
}

.hero {
  position: relative;
  min-height: min(78vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 90px clamp(20px, 7vw, 110px);
  color: var(--white);
  background: var(--terracotta);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 45%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(19, 33, 27, 0.85) 0%, rgba(19, 33, 27, 0.58) 38%, rgba(19, 33, 27, 0.08) 76%),
    linear-gradient(0deg, rgba(21, 23, 20, 0.22), transparent 48%);
}

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

.kicker {
  margin: 0 0 18px;
  color: var(--brass);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker.ink {
  color: var(--terracotta);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4.2rem, 9vw, 8.5rem);
  line-height: 0.89;
}

.hero-copy {
  max-width: 570px;
  margin: 28px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 0 22px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-light:hover,
.button-light:focus-visible {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}

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

.button-brass:hover,
.button-brass:focus-visible {
  background: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
  font-size: 0.77rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.text-link-light {
  color: var(--white);
}

.hero-product {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 58px);
  bottom: 28px;
  display: grid;
  gap: 4px;
  padding: 12px 0;
  color: var(--white);
  font-size: 0.8rem;
  text-align: right;
  text-decoration: none;
}

.hero-product span {
  color: var(--brass);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.principles p {
  min-height: 62px;
  display: grid;
  place-items: center;
  margin: 0;
  border-right: 1px solid var(--line);
  padding: 12px 20px;
  font-family: var(--serif);
  font-size: 0.96rem;
  text-align: center;
}

.principles p:last-child {
  border-right: 0;
}

.principles span {
  font-family: Tahoma, Arial, sans-serif;
}

.giving-band {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  padding: clamp(64px, 8vw, 112px) clamp(22px, 7vw, 112px);
  color: var(--white);
  background: var(--forest);
}

.giving-figure {
  margin: 0;
  color: var(--brass);
  font-family: var(--serif);
  font-size: clamp(7rem, 15vw, 13rem);
  line-height: 0.78;
}

.giving-copy {
  max-width: 820px;
}

.giving-copy h2 {
  max-width: 740px;
  margin: 10px 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 0.98;
}

.giving-lead {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.4;
}

.shop-section {
  padding: clamp(74px, 8vw, 126px) clamp(18px, 4vw, 62px);
}

.shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(30px, 7vw, 120px);
  align-items: end;
}

.shop-heading h2,
.heritage-copy h2,
.craft-heading h2,
.final-cta h2 {
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 0.94;
}

.shop-intro {
  max-width: 520px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 54px;
  padding: 14px 0;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 36px;
  border: 1px solid transparent;
  padding: 0 14px;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter:hover,
.filter:focus-visible {
  border-color: var(--line);
}

.filter.is-active {
  color: var(--white);
  background: var(--olive);
}

.product-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 18px;
  padding-top: 26px;
}

.product-card {
  min-width: 0;
}

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

.product-image-link,
.product-info a {
  text-decoration: none;
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ddd5c6;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 380ms ease, transform 580ms ease;
}

.product-image-secondary {
  opacity: 0;
  object-fit: contain;
  padding: 28px;
  background: var(--white);
}

.product-card:hover .product-image-primary,
.product-card:focus-within .product-image-primary {
  opacity: 0;
  transform: scale(1.02);
}

.product-card:hover .product-image-secondary,
.product-card:focus-within .product-image-secondary {
  opacity: 1;
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  color: var(--white);
  background: var(--burgundy);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.view-cue {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  color: var(--white);
  background: var(--olive);
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-card:hover .view-cue,
.product-card:focus-within .view-cue {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
}

.product-type {
  margin: 0 0 5px;
  color: var(--terracotta);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
}

.product-info h3 a:hover,
.product-info h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.price {
  flex: 0 0 auto;
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-detail {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.5;
}

.product-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.size-label {
  color: var(--ink-soft);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.size-select,
.personalization-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.78rem;
}

.personalization-input {
  padding: 0 12px;
}

.personalization-input[aria-invalid="true"] {
  border-color: var(--terracotta);
  outline: 1px solid var(--terracotta);
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout-row:not(.stripe-ready) .add-to-cart {
  grid-column: 1 / -1;
}

.add-to-cart,
.buy-now,
.etsy-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--olive);
  padding: 0 10px;
  font-size: 0.67rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.add-to-cart,
.cart-checkout,
.account-primary {
  color: var(--white);
  background: var(--olive);
}

.buy-now {
  color: var(--olive);
  background: transparent;
}

.buy-now:disabled,
.cart-checkout:disabled {
  cursor: not-allowed;
  color: rgba(21, 23, 20, 0.55);
  border-color: rgba(21, 23, 20, 0.12);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(197, 154, 85, 0.16) 0,
      rgba(197, 154, 85, 0.16) 6px,
      rgba(255, 253, 248, 0.7) 6px,
      rgba(255, 253, 248, 0.7) 12px
    );
}

.checkout-notice {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px clamp(20px, 5vw, 70px);
  color: var(--white);
  background: var(--olive);
  box-shadow: 0 -12px 32px rgba(21, 23, 20, 0.16);
}

.checkout-notice[hidden] {
  display: none;
}

.checkout-notice p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.etsy-button {
  grid-column: 1 / -1;
  color: var(--olive);
  border-color: transparent;
  background: transparent;
  transition: color 180ms ease, background 180ms ease;
}

.etsy-button:hover,
.etsy-button:focus-visible {
  color: var(--white);
  background: var(--olive);
}

.product-dialog {
  width: min(1420px, calc(100vw - 48px));
  height: min(860px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 100px rgba(19, 33, 27, 0.35);
  overflow: hidden;
}

.product-dialog::backdrop {
  background: rgba(19, 33, 27, 0.72);
  backdrop-filter: blur(3px);
}

.product-dialog-shell {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  overflow: hidden;
}

.product-dialog-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 5px 20px rgba(21, 23, 20, 0.12);
}

.product-gallery {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 24px;
  background: #e8e1d5;
  overflow: hidden;
}

.product-main-image-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #d8cfbf;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.product-main-image.is-real {
  object-fit: contain;
  padding: clamp(24px, 5vw, 72px);
  background: var(--white);
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, 86px);
  gap: 10px;
}

.product-thumbnail {
  width: 86px;
  height: 86px;
  border: 1px solid transparent;
  padding: 0;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
}

.product-thumbnail.is-active {
  border-color: var(--olive);
  box-shadow: inset 0 0 0 2px var(--white);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnail:last-child img {
  object-fit: contain;
  padding: 8px;
}

.product-purchase {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(58px, 6vw, 92px) clamp(30px, 4vw, 64px) 46px;
  background: var(--white);
}

.product-dialog-type {
  margin: 0 0 13px;
  color: var(--terracotta);
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-purchase h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  font-weight: 500;
  line-height: 0.98;
}

.product-dialog-price {
  margin: 18px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.product-dialog-summary {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.product-dialog-story {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.product-form {
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
  padding: 26px 0;
}

.product-personalization {
  display: grid;
  gap: 11px;
  margin-top: 4px;
}

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

.product-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 6px;
}

.product-dialog-add,
.product-dialog-buy {
  min-height: 50px;
  cursor: pointer;
}

.product-dialog-status {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0 0;
}

.product-specs div {
  border-bottom: 1px solid var(--line);
  padding: 15px 14px 15px 0;
}

.product-specs div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.product-specs div:nth-child(even) {
  padding-left: 14px;
}

.product-specs dt {
  color: var(--terracotta);
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-specs dd {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.product-etsy-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 24px;
  color: var(--olive);
  font-size: 0.68rem;
  font-weight: 800;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(19, 33, 27, 0.56);
  opacity: 0;
  transition: opacity 220ms ease;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer-open .drawer-backdrop {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--ink);
  background: var(--white);
  box-shadow: -20px 0 52px rgba(21, 23, 20, 0.18);
  transform: translateX(104%);
  transition: transform 240ms ease;
}

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

.drawer-header {
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.drawer-kicker {
  margin: 0 0 5px;
  color: var(--terracotta);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drawer-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.drawer-header h2 span {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.icon-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--white);
  background: var(--olive);
}

.cart-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px;
}

.cart-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.cart-empty[hidden],
.cart-footer[hidden] {
  display: none;
}

.cart-empty p {
  max-width: 280px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-items {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 30px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.cart-item-image {
  width: 82px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 7px;
  background: var(--paper);
}

.cart-item-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.cart-item-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.cart-item-meta,
.cart-item-personalization {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.71rem;
  line-height: 1.45;
}

.cart-item-price {
  margin: 2px 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
}

.quantity-control {
  width: 106px;
  height: 34px;
  display: grid;
  grid-template-columns: 34px 38px 34px;
  border: 1px solid var(--line);
}

.quantity-control button,
.quantity-control output {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.75rem;
}

.quantity-control button {
  cursor: pointer;
  font-size: 1.05rem;
}

.quantity-control button:hover,
.quantity-control button:focus-visible {
  background: var(--paper);
}

.cart-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
}

.cart-footer {
  max-height: 54vh;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 20px 24px 24px;
  background: var(--paper);
}

.cart-summary-row,
.shipping-heading,
.shipping-option-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cart-summary-row {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.shipping-preview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 17px 0;
  padding: 15px 0;
}

.shipping-heading {
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shipping-option-preview {
  padding: 8px 0;
  font-size: 0.76rem;
}

.shipping-option-preview > span:first-child {
  display: grid;
  gap: 3px;
}

.shipping-option-preview small {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.shipping-preview > p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.5;
}

.cart-checkout,
.account-checkout,
.account-primary,
.account-secondary {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--olive);
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.account-checkout,
.account-secondary {
  margin-top: 8px;
  color: var(--olive);
  background: transparent;
}

.cart-checkout:not(:disabled):hover,
.cart-checkout:not(:disabled):focus-visible,
.account-primary:hover,
.account-primary:focus-visible {
  background: var(--forest);
}

.account-checkout:hover,
.account-checkout:focus-visible,
.account-secondary:hover,
.account-secondary:focus-visible {
  color: var(--white);
  background: var(--olive);
}

.checkout-availability {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.cart-etsy-link {
  display: block;
  margin-top: 12px;
  color: var(--olive);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.account-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(21, 23, 20, 0.3);
}

.account-dialog::backdrop {
  background: rgba(19, 33, 27, 0.62);
}

.account-dialog-inner > div:not(.drawer-header),
.account-anonymous,
.account-signed-in {
  padding: 28px;
}

.account-anonymous > p:first-child {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.account-fine-print {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.account-status {
  margin: 0;
  color: var(--terracotta);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-name {
  margin: 8px 0 2px;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.account-email {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.account-benefits {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
  padding: 20px 0;
}

.account-benefits p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.catalog-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding-top: 25px;
}

.catalog-footer p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.heritage-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 760px;
  color: var(--white);
  background: var(--olive);
}

.heritage-image {
  min-height: 620px;
  overflow: hidden;
}

.heritage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(52px, 8vw, 130px);
}

.heritage-copy h2 {
  max-width: 10ch;
}

.heritage-copy > p:not(.kicker) {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 253, 248, 0.75);
  font-size: 1.03rem;
  line-height: 1.75;
}

.heritage-copy .text-link {
  margin-top: 32px;
}

.craft-section {
  padding: clamp(74px, 8vw, 126px) clamp(18px, 4vw, 62px);
  background: var(--white);
}

.craft-heading {
  max-width: 800px;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
}

.craft-grid article {
  min-height: 290px;
  padding: 28px;
  background: var(--paper);
}

.craft-grid span {
  display: block;
  margin-bottom: 70px;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.craft-grid h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.craft-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.final-cta {
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 46px;
  padding: clamp(62px, 8vw, 120px) clamp(18px, 6vw, 90px);
  color: var(--white);
  background: var(--burgundy);
}

.final-cta h2 {
  max-width: 13ch;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 64px clamp(18px, 4vw, 62px) 24px;
  color: var(--white);
  background: var(--forest);
}

.footer-wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.footer-wordmark span {
  display: inline-block;
  margin-left: 10px;
  color: var(--brass);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 0.5em;
}

.footer-brand > p:last-child {
  max-width: 470px;
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.65);
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links p {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-links a,
.footer-privacy-button {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-privacy-button:hover,
.footer-privacy-button:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-privacy-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.72rem;
}

.analytics-consent {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: min(760px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 6px;
  padding: 18px;
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 18px 48px rgba(21, 23, 20, 0.28);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent-copy p {
  margin: 0;
}

.analytics-consent-copy p:last-child {
  margin-top: 5px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
}

.analytics-consent-title {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}

.analytics-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analytics-button {
  min-height: 42px;
  border: 1px solid var(--brass);
  border-radius: 4px;
  padding: 0 15px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.analytics-button-primary {
  color: var(--forest);
  background: var(--brass);
}

.analytics-button-secondary {
  color: var(--white);
  background: transparent;
}

.analytics-button:hover,
.analytics-button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .product-dialog {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .product-dialog-shell {
    height: auto;
    min-height: 100%;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .product-gallery {
    min-height: min(620px, 72dvh);
  }

  .product-purchase {
    overflow: visible;
    padding: 58px 30px 48px;
  }

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

  .announcement p:not(:first-child) {
    display: none;
  }

  .site-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 0 14px;
  }

  .site-header.is-compact {
    min-height: 64px;
  }

  .menu-toggle {
    display: grid;
  }

  .wordmark {
    grid-column: 2;
    min-width: 0;
  }

  .nav-left {
    position: fixed;
    z-index: 50;
    top: 104px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px;
    color: var(--white);
    background: var(--forest);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-open .nav-left {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-left a {
    width: 100%;
    border-bottom: 1px solid var(--line-light);
    padding: 22px 0;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    text-transform: none;
  }

  .nav-left::after {
    margin-top: 28px;
    color: var(--brass);
    content: "Middle Eastern roots. Modern Arab homes.";
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .nav-right > a {
    display: none;
  }

  .nav-right {
    grid-column: 3;
    gap: 9px;
  }

  .header-action {
    font-size: 0.65rem;
  }

  .hero {
    min-height: 76vh;
    align-items: end;
    padding: 90px 20px 74px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(19, 33, 27, 0.92) 0%, rgba(19, 33, 27, 0.45) 55%, rgba(19, 33, 27, 0.08) 100%);
  }

  h1 {
    font-size: clamp(3.7rem, 16vw, 6rem);
  }

  .hero-product {
    display: none;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles p:nth-child(2) {
    border-right: 0;
  }

  .principles p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .giving-band {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .giving-figure {
    font-size: clamp(7rem, 24vw, 11rem);
  }

  .shop-heading {
    grid-template-columns: 1fr;
  }

  .shop-intro {
    margin: 0;
  }

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

  .heritage-band {
    grid-template-columns: 1fr;
  }

  .heritage-image {
    min-height: 72vw;
  }

  .heritage-copy {
    padding: 64px 24px 76px;
  }

  .catalog-footer,
  .final-cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta {
    min-height: 520px;
  }

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

@media (max-width: 560px) {
  .analytics-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .analytics-button {
    width: 100%;
    padding: 0 10px;
  }

  .product-dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
  }

  .product-dialog-close {
    position: fixed;
    top: 12px;
    right: 12px;
  }

  .product-gallery {
    min-height: 58dvh;
    gap: 10px;
    padding: 12px;
  }

  .product-thumbnails {
    grid-template-columns: repeat(2, 68px);
  }

  .product-thumbnail {
    width: 68px;
    height: 68px;
  }

  .product-purchase {
    padding: 50px 18px 42px;
  }

  .product-purchase h2 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .product-dialog-actions,
  .product-specs {
    grid-template-columns: 1fr;
  }

  .product-specs div:nth-child(odd) {
    border-right: 0;
  }

  .product-specs div:nth-child(even) {
    padding-left: 0;
  }

  .wordmark-en {
    font-size: 1.45rem;
  }

  .site-header {
    gap: 8px;
  }

  .nav-right {
    gap: 6px;
  }

  .header-action {
    font-size: 0.59rem;
  }

  .cart-trigger {
    gap: 4px;
  }

  .cart-count {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.57rem;
  }

  .hero {
    min-height: 73vh;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .button {
    width: 100%;
  }

  .principles p {
    min-height: 58px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .giving-band {
    gap: 32px;
    padding: 64px 20px 72px;
  }

  .giving-copy h2 {
    font-size: clamp(2.75rem, 13vw, 4.4rem);
  }

  .shop-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .shop-heading h2,
  .heritage-copy h2,
  .craft-heading h2,
  .final-cta h2 {
    font-size: clamp(2.75rem, 13vw, 4.4rem);
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter {
    width: 100%;
    padding: 0 8px;
  }

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

  .checkout-row {
    grid-template-columns: 1fr;
  }

  .checkout-row .etsy-button,
  .checkout-row:not(.stripe-ready) .add-to-cart {
    grid-column: 1;
  }

  .cart-drawer {
    width: 100vw;
  }

  .drawer-header,
  .cart-body,
  .cart-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .product-image-wrap {
    aspect-ratio: 4 / 5;
  }

  .view-cue {
    opacity: 1;
    transform: translateY(0);
  }

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

  .craft-grid article {
    min-height: 240px;
  }

  .craft-grid span {
    margin-bottom: 48px;
  }

  .final-cta {
    min-height: 520px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-footer {
    gap: 54px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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