﻿:root {
  --base-cream: #ffe8c9;
  --base-rose: #f9d8c1;
  --base-coral: #f4c4aa;
  --text-primary: #2b1a11;
  --text-muted: #6b4b3a;
  --accent: #ff8c6c;
  --accent-dark: #d05a44;
  --accent-soft: rgba(255, 140, 108, 0.15);
  --panel: rgba(255, 255, 255, 0.8);
  --shadow: 0 30px 60px -30px rgba(137, 83, 58, 0.6);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-padding: clamp(8px, 3vw, 72px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #fff4e5 0%, #ffe8c9 40%, #f8d1b5 100%);
  color: var(--text-primary);
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  height: auto;
}

.hero {
  padding: 32px var(--page-padding) 120px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 55%);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
}

.brand-tagline {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow-x: auto;
}

.nav-links a {
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 120ms ease, color 120ms ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.navbar .cta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fffaf5;
  box-shadow: var(--shadow);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

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

.hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1,
.section-heading h2,
.product-body h3,
.gallery-grid h3,
.tier-grid h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  line-height: 1.2;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 0 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-wrap: pretty;
  hyphens: auto;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.hero-actions .btn {
  padding-inline: 27px;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fffaf5;
  box-shadow: var(--shadow);
}

.btn.secondary {
  border: 1px solid rgba(43, 26, 17, 0.2);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-stats dt {
  font-size: 1.6rem;
  font-weight: 600;
  word-break: break-word;
  text-wrap: balance;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  word-break: break-word;
  text-wrap: pretty;
}

.hero-illustration {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(43, 26, 17, 0.15);
  background: rgba(255, 255, 255, 0.7);
  padding: 32px;
}

.hero-illustration video {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 16px);
  display: block;
  box-shadow: inset 0 0 0 1px rgba(43, 26, 17, 0.05);
}

main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 var(--page-padding) 96px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-heading p {
  color: var(--text-muted);
}

.collection {
  border-top: 1px solid rgba(43, 26, 17, 0.1);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(414px, 1fr));
  gap: 40px;
  justify-content: center;
}

.product-card {
  background: rgba(255, 255, 255, 0.75);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(43, 26, 17, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
  width: 100%;
}

.product-thumb {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
}

.product-thumb[data-tone='dawn'] {
  background: radial-gradient(circle at 10% 20%, #ffe8c9, #f4a3a8);
}

.product-thumb[data-tone='noir'] {
  background: radial-gradient(circle at 80% 30%, #fddfd7, #a85148);
}

.product-thumb[data-tone='sage'] {
  background: radial-gradient(circle at 20% 80%, #f8f2d2, #8cb39d);
}

.product-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.product-body p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.price {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
}

.atelier-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(43, 26, 17, 0.12);
  box-shadow: var(--shadow);
}

.atelier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.atelier-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(43, 26, 17, 0.1);
}

.atelier-list li:last-child {
  border-bottom: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(391px, 1fr));
  gap: 36px;
  justify-content: center;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(43, 26, 17, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gallery-frame {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  position: relative;
}

.gallery-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-frame--carousel {
  aspect-ratio: 4 / 3;
  min-height: 240px;
}

.gallery-frame--carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 150ms ease;
}

.gallery-frame--carousel img.is-active {
  opacity: 1;
}

.gallery-frame__controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
}

.gallery-frame__nav {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: inherit;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.gallery-frame__status {
  min-width: 46px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gallery-frame--carousel img:first-of-type {
  opacity: 1;
}

@supports not (aspect-ratio: 1 / 1) {
  .gallery-frame--carousel {
    aspect-ratio: auto;
    padding-top: 75%;
  }
}

.gallery-card--placeholder .gallery-frame {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 232, 201, 0.85), rgba(244, 196, 170, 0.8));
}

.gallery-card--placeholder .gallery-frame img {
  filter: blur(18px);
  opacity: 0.35;
  transform: scale(1.05);
}

.gallery-frame__label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(43, 26, 17, 0.78);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-body {
  padding: 20px 22px 24px;
}

.gallery-body p {
  color: var(--text-muted);
  margin: 8px 0 14px;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-meta span {
  font-weight: 600;
  color: var(--text-primary);
}

.tiers {
  border-top: 1px solid rgba(43, 26, 17, 0.12);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(363px, 1fr));
  gap: 32px;
  justify-content: center;
}

.tier-grid article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(43, 26, 17, 0.2);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-grid strong {
  display: block;
  margin-top: 0;
}

.tier-grid h4 {
  margin-bottom: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.tier-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tier-grid .mini-btn {
  align-self: flex-end;
  margin-top: auto;
}

.tier-note {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text-muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.story-grid article {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(43, 26, 17, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
  min-height: 200px;
  box-shadow: var(--shadow);
}

.story-grid span {
  display: block;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.cta {
  text-align: center;
}

.cta-form {
  margin: 32px auto 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta input[type='email'] {
  min-width: 280px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(43, 26, 17, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
}

.cta input::placeholder {
  color: var(--text-muted);
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 26, 17, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 20;
  overflow-y: auto;
}

.order-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.order-modal {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(43, 26, 17, 0.15);
  position: relative;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.order-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.order-form label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.order-form input,
.order-form textarea {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(43, 26, 17, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: var(--text-primary);
}

.order-form input[readonly] {
  background: rgba(255, 255, 255, 0.6);
}

.order-form textarea {
  resize: vertical;
  min-height: 120px;
}

.order-submit {
  margin-top: 8px;
}

.footer {
  padding: 32px 6vw 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(43, 26, 17, 0.1);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent-dark);
}

.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

@media (pointer: coarse) {
  .order-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(43, 26, 17, 0.76);
  }

  .order-modal {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-bottom: 80px;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    justify-content: space-between;
    overflow-x: visible;
  }

  .hero {
    padding: 32px var(--page-padding) 80px;
  }

  main {
    padding: 0 var(--page-padding) 64px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-grid,
  .gallery-grid,
  .tier-grid,
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-card,
  .tier-grid article,
  .story-grid article {
    width: 100%;
  }

  .gallery-frame {
    aspect-ratio: auto;
    max-height: 60vh;
  }

  .gallery-frame img {
    width: 100%;
    height: auto;
    max-height: 100%;
  }

  .atelier-card {
    padding: 32px 24px;
    grid-template-columns: 1fr;
  }

  .product-card,
  .atelier-card,
  .story-grid article {
    padding: 24px;
  }

  .order-overlay {
    align-items: flex-start;
  }

  .order-modal {
    padding: 24px;
    max-height: calc(100vh - 32px);
  }
}
