:root {
  --bg: #faf9f5;
  --bg-soft: #f0ede5;
  --ink: #1a1f1a;
  --ink-soft: #2a302a;
  --muted: #6b6f6b;
  --accent: #2d4a2b;
  --line: rgba(0,0,0,0.08);
  --max: 1280px;
  --radius: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.15;
  color: var(--ink);
}

p { color: var(--ink-soft); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: 640px; }

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

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 32px;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  justify-self: start;
}
.primary-nav {
  display: flex;
  gap: 36px;
  font-size: 0.95rem;
  justify-self: center;
}
.primary-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a.active { border-bottom-color: currentColor; }

.nav-item.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 180px;
  padding: 8px 0;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  z-index: 60;
}
.dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}
.dropdown a:hover { background: var(--bg-soft); border-bottom-color: transparent; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }
.header-actions { display: flex; gap: 6px; justify-self: end; }
.icon-btn {
  background: none; border: none;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: rgba(0,0,0,0.05); }

/* Hero */
.hero {
  position: relative;
  height: min(86vh, 760px);
  min-height: 520px;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,20,16,0.12) 0%, rgba(15,20,16,0.45) 100%),
    url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-content .eyebrow { color: rgba(255,255,255,0.85); }
.hero-content h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  max-width: 20ch;
  margin-bottom: 32px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--ink); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 14px; }

/* Band */
.band {
  background: #0f1410;
  color: #d8d8d2;
  padding: 72px 24px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Section heading */
section.collections,
section.featured,
section.story { padding: 112px 0; }

.section-head {
  margin-bottom: 56px;
  max-width: 640px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Grids */
.grid { display: grid; gap: 32px; }
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }

/* Cards */
.card { display: block; }
.card-image {
  aspect-ratio: 4 / 5;
  background-size: cover; background-position: center;
  background-color: #ece9e2;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-image { transform: scale(1.03); }
.card h3 {
  margin-top: 22px;
  font-size: 1.5rem;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: baseline;
}
.card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Story split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
.split-image {
  aspect-ratio: 4 / 5;
  background-size: cover; background-position: center;
  background-color: #ece9e2;
}
.split-text h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.split-text p { font-size: 1.05rem; }

/* Products */
.product .product-image {
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  background-color: #ece9e2;
  margin-bottom: 16px;
  transition: transform 0.5s ease;
}
.product a { display: block; overflow: hidden; }
.product:hover .product-image { transform: scale(1.03); }
.product h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 2px; }
.product .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.product .price { font-size: 0.95rem; color: var(--ink); }

/* Newsletter */
.newsletter {
  background: var(--bg-soft);
  padding: 112px 24px;
  text-align: center;
}
.newsletter h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.newsletter > .container > p { color: var(--muted); margin-bottom: 32px; }
.subscribe {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
}
.subscribe input {
  flex: 1;
  padding: 14px 4px;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.subscribe input:focus { outline: none; }
.subscribe input::placeholder { color: var(--muted); }
.subscribe button {
  background: none; border: none;
  padding: 12px 8px;
  font-size: 1.25rem;
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.brand-small {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-links {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 20, 16, 0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { display: flex; opacity: 1; }

.modal-content {
  position: relative;
  background: var(--bg);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modalIn 0.25s cubic-bezier(.2, .7, .2, 1);
}
@keyframes modalIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 720px) {
  .modal-content { grid-template-columns: 1fr; }
}

.modal-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: #ece9e2;
}
@media (max-width: 720px) {
  .modal-image { aspect-ratio: 4 / 3; }
}

.modal-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 720px) {
  .modal-body { padding: 32px 28px; }
}

.modal-id {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.modal-body h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 8px;
}
.modal-fullname {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.modal-price {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 32px;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  z-index: 2;
  transition: background 0.15s ease;
}
.modal-close:hover { background: #fff; }

.btn-dark {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  width: max-content;
  transition: background 0.2s ease;
}
.btn-dark:hover { background: #000; }

body.modal-open { overflow: hidden; }

.modal-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.modal-actions .btn-light {
  border: 1px solid var(--line);
}

/* Product detail page */
.product-detail { padding: 80px 0 120px; }
.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .product-detail-inner { grid-template-columns: 1fr; gap: 32px; }
}
.product-detail-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: #ece9e2;
}
.product-detail-body { padding-top: 24px; }
.product-detail-body .eyebrow a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.product-detail-body h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}
.product-detail-meta {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.product-detail-price {
  font-size: 1.4rem;
  margin-bottom: 28px;
}
.product-detail-description {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 52ch;
}
.product-detail-id {
  margin-top: 40px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
