:root {
  --ink: #181512;
  --muted: #746b60;
  --paper: #fbf8f1;
  --soft: #efe7d9;
  --cream: #fffdf8;
  --gold: #b8924d;
  --gold-dark: #8d6b31;
  --line: rgba(24, 21, 18, 0.13);
  --shadow: 0 22px 70px rgba(36, 28, 18, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 146, 77, 0.12), transparent 27rem),
    linear-gradient(180deg, #fffdf8 0%, #fbf8f1 52%, #f5efe4 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 13rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(184, 146, 77, 0.55);
  border-radius: 999px;
  color: var(--gold-dark);
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: #fffaf0;
}

.brand strong,
.site-footer span:first-child {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.desktop-nav a,
.text-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.desktop-nav a:hover,
.text-button:hover {
  color: var(--gold-dark);
}

.header-cta {
  border: 1px solid rgba(184, 146, 77, 0.4);
  padding: 0.75rem 1rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero {
  min-height: calc(100vh - 5.1rem);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(22rem, 0.7fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.hero-copy {
  max-width: 50rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 55rem;
  font-size: clamp(3.4rem, 8vw, 8.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 5rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.45rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions,
.contact-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--gold);
  color: #17120b;
}

.button.ghost {
  background: transparent;
  color: var(--gold-dark);
}

.button.light {
  color: var(--cream);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(184, 146, 77, 0.35);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1.2rem 1.6rem auto auto;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(184, 146, 77, 0.32);
  border-radius: 999px;
  pointer-events: none;
}

.panel-topline {
  padding: 1rem;
  color: var(--gold-dark);
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  line-height: 1;
  border-bottom: 1px solid var(--line);
}

.panel-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.panel-card span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold-dark);
  font-weight: 800;
}

.panel-card strong {
  display: block;
  font-size: 1.05rem;
}

.panel-card p {
  margin: 0.45rem 0 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.trust-strip div {
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
}

.trust-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
}

.trust-strip span {
  color: var(--muted);
}

.shop-section,
.how-it-works,
.contact-band,
.admin-shell {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 0.35fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter.active,
.filter:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: #fff7e4;
}

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

.product-card {
  display: grid;
  min-height: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-media,
.placeholder-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(184, 146, 77, 0.25), rgba(255, 255, 255, 0.35)),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.75), transparent 9rem),
    #eadfcd;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

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

.placeholder-media {
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-family: "Playfair Display", serif;
  font-size: 4rem;
}

.status-pill {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-info {
  padding: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-info h3 {
  margin-bottom: 0.5rem;
}

.product-info p {
  margin: 0;
}

.price {
  margin-top: 0.9rem;
  color: var(--ink);
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(16rem, 0.3fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
}

.empty-state h3 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.empty-monogram {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 146, 77, 0.38);
  color: rgba(184, 146, 77, 0.75);
  font-family: "Playfair Display", serif;
  font-size: clamp(5rem, 12vw, 10rem);
}

.how-it-works {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 1rem;
}

.steps article {
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.steps span {
  color: var(--gold-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--ink);
  color: var(--cream);
}

.contact-band p {
  color: rgba(255, 253, 248, 0.72);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 18, 0.55);
}

.modal-content {
  position: absolute;
  inset: 4vh clamp(0.7rem, 5vw, 5rem);
  overflow: auto;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 1rem;
  left: calc(100% - 3.5rem);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
}

.modal-product {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.46fr);
  gap: 2rem;
  padding: clamp(1rem, 4vw, 3rem);
}

.modal-product .product-media,
.modal-product .placeholder-media {
  min-height: 28rem;
}

.detail-stack {
  display: grid;
  align-content: center;
}

.detail-stack h2 {
  margin-bottom: 1rem;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.detail-list div {
  padding: 1rem;
  border: 1px solid var(--line);
}

.detail-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.safe-note {
  border-left: 3px solid var(--gold);
  padding: 1rem;
  background: #fff8e9;
}

.admin-body {
  background: #fbf8f1;
}

.admin-shell {
  padding-top: 3rem;
}

.admin-intro {
  max-width: 64rem;
  margin-bottom: 2rem;
}

.admin-intro h1 {
  font-size: clamp(2.8rem, 6vw, 6.8rem);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(20rem, 0.38fr);
  gap: 1rem;
  align-items: start;
}

.listing-form,
.admin-preview,
.inventory-section {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: clamp(1rem, 3vw, 2rem);
}

.upload-box {
  position: relative;
  margin-bottom: 1rem;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: 1rem;
  border: 1px dashed rgba(184, 146, 77, 0.65);
  background: #fffaf0;
  color: var(--gold-dark);
  text-align: center;
}

.upload-preview.has-image {
  padding: 0;
}

.upload-preview img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  display: block;
}

.upload-preview span {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.upload-preview small {
  display: block;
  max-width: 22rem;
  margin-top: 0.7rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
  padding: 0.9rem;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 77, 0.12);
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1rem 0;
}

.check-row input {
  width: auto;
  margin-top: 0.15rem;
}

.check-row label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.draft-card {
  min-height: 28rem;
}

.draft-card .product-card {
  cursor: default;
}

.admin-note {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
  padding: 1rem;
  background: #fff8e9;
  color: var(--muted);
}

.admin-note strong {
  color: var(--ink);
}

.inventory-section {
  margin-top: 1rem;
}

.section-heading.compact {
  display: block;
  margin-bottom: 1rem;
}

.section-heading.compact h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.inventory-list {
  display: grid;
  gap: 0.7rem;
}

.inventory-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
}

.inventory-row img,
.inventory-thumb {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  background: var(--soft);
}

.inventory-row strong {
  display: block;
}

.inventory-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
}

.row-actions button {
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  padding: 0.65rem 0.8rem;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .how-it-works,
  .admin-grid,
  .modal-product,
  .empty-state {
    grid-template-columns: 1fr;
  }

  .section-heading p:not(.eyebrow) {
    grid-column: auto;
    grid-row: auto;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
  }

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

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

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .product-grid,
  .form-row.two,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .modal-content {
    inset: 0;
  }
}
