:root {
  --gold: #d6b265;
  --gold-soft: #e7cf94;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --cream: #faf6ef;
  --cream-2: #f3ecdd;
  --border: #ece3cf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

section[id],
footer[id] {
  scroll-margin-top: 80px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.center {
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.brand {
  font-family: "Cinzel", "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-decoration: none;
}
.primary-nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .primary-nav a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }
}
.primary-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 20;
}
.menu-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}
.menu-toggle span:nth-child(1) {
  top: 13px;
}
.menu-toggle span:nth-child(2) {
  top: 19px;
}
.menu-toggle span:nth-child(3) {
  top: 25px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-top: 1.5rem;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hero logo */
.hero-logo {
  display: flex;
  justify-content: center;
}
.hero-logo img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
}

/* About */
.about {
  padding: 100px 0;
  background: var(--cream-2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: var(--cream-2);
}
.carousel {
  --per-view: 3;
  position: relative;
  margin-top: 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  flex: 0 0 calc(100% / var(--per-view));
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
}
.carousel-slide.placeholder {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}
.testimonial {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 36px 28px;
  margin: 0;
  width: 100%;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial blockquote {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  flex: 1;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial figcaption strong {
  font-weight: 500;
  font-size: 0.95rem;
}
.testimonial figcaption span {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
}
.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.carousel-dot[aria-selected="true"] {
  background: var(--gold);
  transform: scale(1.3);
}

/* Gallery / Masonry */
.gallery {
  padding: 100px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.masonry {
  margin-top: 50px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.masonry-item {
  margin: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-2);
  aspect-ratio: var(--aspect, 1);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.masonry-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.masonry-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .masonry-item:hover {
    border-color: rgba(214, 178, 101, 0.4);
  }
  .masonry-item:hover img {
    transform: scale(1.04);
  }
}

/* Collection / Products */
.collection {
  padding: 100px 0;
  background: var(--cream);
}
.section-lead {
  color: var(--muted);
  max-width: 560px;
  margin: 1rem auto 0;
}
.product-list {
  margin-top: 50px;
}
.product-group + .product-group {
  margin-top: 64px;
}
.category-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 28px;
  position: relative;
  padding-bottom: 14px;
}
.category-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 40px;
  margin: 0;
}

/* Skeleton loader */
@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skeleton-card {
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.skeleton-media {
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
}
.skeleton-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.skeleton-line,
.skeleton-btn,
.skeleton-media {
  background: linear-gradient(
    90deg,
    var(--cream-2) 25%,
    var(--border) 50%,
    var(--cream-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .skeleton-btn,
  .skeleton-media {
    animation: none;
  }
}
.skeleton-line {
  height: 14px;
  border-radius: 2px;
}
.skeleton-line.wide {
  width: 60%;
}
.skeleton-line.narrow {
  width: 35%;
}
.skeleton-btns {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.skeleton-btn {
  flex: 1;
  height: 36px;
}

@keyframes gold-shimmer {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(214, 178, 101, 0.35),
      0 6px 20px rgba(214, 178, 101, 0.25),
      0 16px 40px rgba(214, 178, 101, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(231, 207, 148, 0.6),
      0 6px 24px rgba(231, 207, 148, 0.4),
      0 18px 48px rgba(214, 178, 101, 0.22);
  }
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.product-card:hover {
  border-color: rgba(214, 178, 101, 0.15);
  animation: gold-shimmer 2s ease-in-out infinite;
}

.product-card.is-visible:hover {
  transform: translateY(-4px);
}
.product-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-desc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.product-desc-overlay p {
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  font-style: italic;
}
.product-desc-text {
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  line-height: 1.55;
  font-style: italic;
  margin: 0 0 18px;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-desc-overlay {
    opacity: 1;
  }
  .product-desc-text {
    display: none;
  }
}
@media (hover: none) {
  .product-desc-overlay {
    display: none;
  }
}
.product-body {
  padding: 24px 24px 28px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.product-size {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.product-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}
.product-link {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.product-link:hover {
  background: var(--ink);
  color: var(--cream);
}
.product-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.collection-cta {
  margin-top: 60px;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.collection-cta-text {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.collection-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .collection-cta {
    margin-top: 40px;
    padding-top: 30px;
  }
  .collection-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .collection-cta-buttons .btn {
    text-align: center;
  }
}

/* CTA / Social */
.cta {
  padding: 100px 0;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.cta h2 {
  color: var(--cream);
}
.cta p {
  color: rgba(250, 246, 239, 0.7);
  margin-top: 1rem;
}
.social-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  min-width: 160px;
  border: 1px solid rgba(250, 246, 239, 0.2);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}
.social:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.social:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.2s ease,
    background 0.2s ease,
    visibility 0.25s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 60;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:focus {
  outline: none;
}
.back-to-top:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover {
    background: #c79f4f;
    transform: translateY(-2px);
  }
}
@media (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* Footer */
.site-footer {
  padding: 50px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.brand-footer {
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive — tablet and below */
@media (max-width: 820px) {
  .container {
    padding: 0 20px;
  }

  /* Header */
  .nav {
    padding: 14px 20px;
  }
  .brand {
    font-size: 1.15rem;
    letter-spacing: 0.2em;
  }
  .menu-toggle {
    display: block;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease,
      visibility 0.25s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  }
  .primary-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .primary-nav a {
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }
  .primary-nav a:first-child {
    border-top: none;
  }

  /* Hero */
  .hero {
    padding: 50px 0 60px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-logo img {
    max-width: 240px;
  }

  /* About */
  .about,
  .testimonials,
  .gallery,
  .cta {
    padding: 64px 0;
  }
  .masonry {
    margin-top: 36px;
    gap: 12px;
  }
  .masonry-col {
    gap: 12px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  /* Carousel — hide side arrows on touch screens, rely on swipe + dots */
  .carousel {
    --per-view: 1;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .carousel-btn {
    display: none;
  }
  .testimonial {
    padding: 32px 22px;
  }
  .testimonial blockquote {
    font-size: 1.15rem;
  }

  /* Collection */
  .collection {
    padding: 64px 0;
  }
  .product-list {
    margin-top: 36px;
  }
  .product-group + .product-group {
    margin-top: 48px;
  }
  .category-heading {
    font-size: 1.45rem;
    margin-bottom: 22px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .product-body {
    padding: 18px 16px 22px;
  }
  .product-name {
    font-size: 1.2rem;
  }

  /* CTA / Social */
  .social-row {
    gap: 10px;
    margin-top: 32px;
  }
  .social {
    padding: 12px 18px;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .brand {
    font-size: 1.05rem;
  }
  .hero {
    padding: 40px 0 50px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    text-align: center;
  }
  .logo-ring {
    width: 180px;
    height: 180px;
  }
  .logo-text {
    font-size: 1.15rem;
    letter-spacing: 0.25em;
    padding: 4px 8px;
  }
  .about,
  .testimonials,
  .collection,
  .gallery,
  .cta {
    padding: 56px 0;
  }
  .masonry {
    gap: 10px;
  }
  .masonry-col {
    gap: 10px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .testimonial {
    padding: 28px 20px;
  }
  .testimonial blockquote {
    font-size: 1.05rem;
  }
  .social {
    padding: 12px 14px;
    min-width: 0;
    flex: 1 1 calc(50% - 10px);
  }
}
