:root {
  --ink: #f7eedb;
  --muted: #c9b78f;
  --cream: #15130f;
  --paper: #1f1a14;
  --leaf: #9c7a31;
  --leaf-dark: #d2a84c;
  --gold: #e0b85a;
  --clay: #c99755;
  --line: rgba(226, 185, 91, .2);
  --shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 0%, rgba(185, 139, 55, .2), transparent 34rem),
    linear-gradient(rgba(9, 8, 6, .82), rgba(9, 8, 6, .9)),
    url("../img/brand/dark-texture-tile.png");
  background-repeat: no-repeat, no-repeat, repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(16, 13, 9, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0d0b08;
  border: 1px solid rgba(224, 184, 90, .42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.brand-mark img {
  width: 124%;
  height: 124%;
  object-fit: cover;
}

.brand strong {
  display: block;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

.nav a {
  color: #e9d6a6;
}

.cart-button,
.filter {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cart-button {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--leaf);
  color: #111;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: start;
  padding: 70px clamp(18px, 5vw, 72px);
}

.hero-copy,
.page-hero,
.shop-layout,
.filters,
.product-card,
.checkout-card,
.summary-card {
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  font-family: "Playfair Display", serif;
  line-height: .92;
  margin: 12px 0 20px;
  letter-spacing: 0;
  overflow-wrap: break-word;
  color: #fff5dc;
  text-shadow: 0 2px 30px rgba(224, 184, 90, .12);
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 82px);
}

.hero-offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 700px;
  margin: 0 0 22px;
}

.hero-offerings span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(224, 184, 90, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #f7e4ad;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.hero-text,
.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  white-space: normal;
}

.btn.primary {
  background: linear-gradient(135deg, #e2bc62, #a77b2e);
  color: #15110c;
  border-color: rgba(255, 225, 145, .65);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .26);
}

.btn.ghost {
  background: rgba(255, 255, 255, .06);
  color: #f3d78a;
}

.btn.full {
  width: 100%;
}

.image-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 10;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2118, #0f0d0a);
  box-shadow: var(--shadow);
  border: 1px solid rgba(224, 184, 90, .24);
}

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

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) 56px;
}

.category-strip a,
.notice-card,
.product-card,
.checkout-card,
.summary-card,
.steps-panel,
.table-card,
.admin-metrics article,
.confirmation {
  background: rgba(255, 250, 241, .86);
  background: linear-gradient(180deg, rgba(40, 32, 22, .92), rgba(24, 20, 15, .94));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 15px 45px rgba(39, 45, 29, .07);
}

.category-strip a {
  padding: 18px;
}

.category-strip span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-strip strong {
  display: block;
  margin-top: 5px;
}

.section-grid,
.page-shell {
  padding: 36px clamp(18px, 5vw, 72px) 70px;
}

.section-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
}

.section-grid h2,
.steps-panel h2,
.checkout-card h1,
.summary-card h2,
.table-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  line-height: 1;
  margin: 0 0 12px;
}

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

.product-card {
  overflow: hidden;
}

.product-art {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a2118, #14110d);
  position: relative;
  overflow: hidden;
}

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

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.55;
}

.product-card.sold-out .product-art img {
  filter: saturate(.65);
}

.support-card .product-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(224, 184, 90, .18), transparent 68%),
    linear-gradient(135deg, #19130d, #080706);
}

.support-card .product-art img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.sold-out-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--clay);
  font-weight: 900;
}

.sold-out-button {
  background: #f1eadb;
  color: #7c6a55;
  border-color: var(--line);
  cursor: not-allowed;
}

.price {
  font-weight: 900;
  color: var(--gold);
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(224, 184, 90, .14);
  color: #f0d48b;
  font-size: 12px;
  font-weight: 800;
}

.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qty {
  width: 70px;
  min-width: 76px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px;
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
}

.donation-amount {
  width: 112px;
  min-width: 112px;
}

.steps-panel {
  margin: 20px clamp(18px, 5vw, 72px) 80px;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  min-width: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 5px;
  align-items: start;
  min-width: 0;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0b85a, #8d6828);
  color: #111;
  font-weight: 900;
}

.steps strong {
  grid-column: 2;
  font-size: 18px;
  line-height: 1.2;
}

.steps span {
  grid-column: 2;
  display: block;
  color: var(--muted);
  line-height: 1.5;
  max-width: 560px;
}

.seo-hub,
.landing-content,
.landing-cta {
  margin: 20px clamp(18px, 5vw, 72px) 80px;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(180deg, rgba(40, 32, 22, .92), rgba(24, 20, 15, .94));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .16);
}

.seo-hub h2,
.landing-content h2,
.landing-cta h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  margin: 0 0 14px;
}

.seo-hub p,
.landing-content p,
.landing-cta p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 850px;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.seo-link-grid a,
.keyword-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  color: #f2d68d;
  font-weight: 800;
}

.landing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.keyword-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.keyword-card span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.landing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.seo-closing {
  margin: 24px 0 0;
  color: #e7c46b;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  margin: 24px clamp(18px, 5vw, 72px) 44px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(30, 24, 17, .95), rgba(13, 11, 8, .97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

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

.footer-brand strong {
  display: block;
  color: #fff5dc;
  font-size: 20px;
}

.footer-brand span:last-child {
  color: var(--muted);
}

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}

.footer-sitemap h2 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
}

.footer-sitemap a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  line-height: 1.35;
}

.footer-sitemap a:hover {
  color: #f2d68d;
}

.footer-keywords {
  margin: 24px 0 0;
  color: #d9b762;
  font-size: 12px;
  font-weight: 800;
}

.page-hero.compact {
  padding: 20px 0 34px;
}

.page-hero.compact h1 {
  font-size: 56px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.filters {
  position: sticky;
  top: 94px;
  align-self: start;
}

.filters h2 {
  font-size: 18px;
}

.filter {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.filter.active {
  background: linear-gradient(135deg, #d9b25a, #8d6828);
  color: #120f0b;
}

.notice-card {
  padding: 18px;
  margin-top: 20px;
}

.notice-card p {
  color: var(--muted);
  line-height: 1.5;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .26);
  z-index: 30;
  display: none;
  justify-content: flex-end;
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(430px, 92vw);
  height: 100%;
  background: var(--paper);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.cart-header button {
  border: 0;
  background: transparent;
  font-size: 34px;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px 0;
  flex: 1;
}

.cart-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}

.cart-item strong {
  display: block;
}

.cart-item small {
  color: var(--muted);
}

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

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin: 14px 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 22px;
  align-items: start;
}

.checkout-card,
.summary-card,
.confirmation {
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  font: inherit;
}

.form-note {
  padding: 14px 16px;
  border: 1px solid rgba(73, 107, 56, .2);
  border-radius: 18px;
  background: rgba(224, 184, 90, .1);
  color: var(--muted);
  line-height: 1.45;
}

.full-span {
  grid-column: 1 / -1;
}

.summary-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.fee-line {
  color: var(--leaf-dark);
}

.summary-note {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 18px;
}

.payment-box {
  padding: 16px;
  border-radius: 22px;
  background: rgba(224, 184, 90, .12);
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.payment-option {
  min-width: 0;
}

.payment-option h4 {
  margin: 0 0 8px;
}

.payment-option a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--leaf-dark);
  color: #f1d686;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qr-card {
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.qr-card img {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.hidden {
  display: none !important;
}

.confirmation {
  grid-column: 1 / -1;
  border-color: rgba(73, 107, 56, .28);
  background: rgba(224, 184, 90, .12);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.admin-metrics article {
  padding: 20px;
}

.admin-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.admin-metrics strong {
  display: block;
  font-size: 36px;
  margin-top: 8px;
}

.table-card {
  padding: 22px;
  overflow: auto;
}

.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.pill.amber {
  background: rgba(255, 240, 208, .16);
  color: #f1c878;
}

.pill.green {
  background: rgba(230, 244, 221, .16);
  color: #a8dc90;
}

.pill.blue {
  background: rgba(229, 239, 255, .16);
  color: #9ec4ff;
}

.pill.gray {
  background: rgba(255, 255, 255, .12);
  color: #ddd;
}

@media (max-width: 920px) {
  .hero,
  .section-grid,
  .steps-panel,
  .shop-layout,
  .checkout-grid,
  .landing-cta {
    grid-template-columns: 1fr;
  }

  .category-strip,
  .product-grid,
  .admin-metrics,
  .seo-link-grid,
  .landing-list,
  .footer-sitemap {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    position: static;
  }

  .nav {
    gap: 10px;
    font-size: 14px;
  }

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

  .payment-options {
    grid-template-columns: 1fr;
  }

  .steps-panel {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .category-strip,
  .product-grid,
  .admin-metrics,
  .seo-link-grid,
  .landing-list,
  .footer-sitemap {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .page-hero.compact h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-card.image-card {
    min-height: 0;
  }

  .steps-panel {
    margin: 20px 18px 56px;
    border-radius: 20px;
  }

  .steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
  }

  .steps li::before {
    width: 34px;
    height: 34px;
  }
}
