:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #efeae1;
  --text: #1f1a14;
  --muted: #6f685d;
  --line: rgba(31, 26, 20, 0.12);
  --brand: #0d6a70;
  --brand-dark: #0a4f54;
  --danger-soft: #f3d9d9;
  --danger-text: #7a2222;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(31, 26, 20, 0.08);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 241, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.section-head,
.hero,
.product-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.header-inner {
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.brand rect,
.brand path {
  stroke: currentColor;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav a {
  color: var(--muted);
  font-weight: 600;
}

.page-shell {
  padding: 40px 0 64px;
}

.hero,
.product-hero {
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f5f0e7);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero {
  margin-bottom: 28px;
}

.hero h1,
.product-hero h1 {
  margin: 8px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
  max-width: 10ch;
}

.lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 700;
}

.section-head {
  margin: 28px 0 16px;
}

.section-head.compact {
  margin-top: 40px;
}

.section-head h2,
.content-card h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.products-grid,
.gallery-grid,
.videos-grid {
  display: grid;
  gap: 20px;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card,
.content-card,
.video-card,
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-link {
  display: block;
  height: 100%;
}

.thumb-wrap {
  padding: 12px 12px 0;
}

.media-frame {
  position: relative;
}

.thumb,
.hero-cover img,
video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-2);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: var(--surface-2);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
  overflow: hidden;
}

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-button img {
  transition: transform 180ms ease;
}

.gallery-button:hover img {
  transform: scale(1.03);
}

.lightbox {
  width: min(96vw, 1200px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-shell {
  position: relative;
  display: grid;
  place-items: center;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  height: auto;
  border-radius: 18px;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sold-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(122, 34, 34, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.is-sold .thumb,
.is-sold .card-body {
  opacity: 0.88;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--muted);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.price {
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--brand-dark);
}

.meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.button:hover {
  background: var(--brand-dark);
}

.button.ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(13, 106, 112, 0.2);
  margin-top: 10px;
}

.sold-label,
.meta-sold {
  background: var(--danger-soft);
  color: var(--danger-text);
  border: 1px solid rgba(122, 34, 34, 0.15);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.product-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 106, 112, 0.08);
  color: var(--brand-dark);
  font-weight: 600;
}

.product-meta .meta-sold {
  background: var(--danger-soft);
  color: var(--danger-text);
}

.sold-notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 20px;
  margin-top: 24px;
}

.content-card {
  padding: 24px;
}

.richtext > :first-child {
  margin-top: 0;
}

.richtext p,
.richtext li {
  color: #3e372f;
}

.details-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.details-list li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.media-section {
  margin-top: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  min-height: 72px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .hero,
  .product-hero,
  .header-inner,
  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .page-shell {
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .hero,
  .product-hero,
  .content-card {
    padding: 20px;
  }

  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero h1,
  .product-hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
}