/* ============================================
   SHOP WITH DUGAN — Cozy Home Finds
   Aesthetic: Warm editorial, refined neutrals
   ============================================ */

:root {
  /* Palette */
  --cream: #f5f0e8;
  --cream-light: #faf6ef;
  --cream-dark: #ebe3d4;
  --walnut: #5c4530;
  --walnut-deep: #3a2a1c;
  --terracotta: #c47a5c;
  --sage: #8a9a7b;
  --ink: #1f1a14;
  --soft-black: #2a241c;
  --muted: #8a7d6b;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3rem, 8vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============= TYPOGRAPHY ============= */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--soft-black);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  color: var(--soft-black);
  margin-bottom: 1rem;
}

a {
  color: var(--walnut);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--terracotta);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
  display: inline-block;
}

.italic {
  font-style: italic;
  font-family: var(--serif);
}

/* ============= LAYOUT ============= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

section {
  padding: var(--section-pad) 0;
}

/* ============= HEADER ============= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--soft-black);
}

.logo span {
  font-style: italic;
  color: var(--walnut);
}

.nav {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft-black);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--walnut);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

@media (max-width: 720px) {
  .nav {
    gap: 1.25rem;
  }
  .nav a {
    font-size: 0.75rem;
  }
}

/* ============= HERO ============= */

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .italic {
  color: var(--walnut);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--soft-black);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #d4c4a8 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.hero-image:not(:has(img))::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(196, 122, 92, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(92, 69, 48, 0.2) 0%, transparent 60%);
}

.hero-image-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--cream);
  padding: 0.5rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
}

/* ============= BUTTONS ============= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--soft-black);
  color: var(--cream);
  border: 1px solid var(--soft-black);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  background: transparent;
  color: var(--soft-black);
}

.btn-outline {
  background: transparent;
  color: var(--soft-black);
  border-color: var(--soft-black);
}

.btn-outline:hover {
  background: var(--soft-black);
  color: var(--cream);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.25s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============= PRODUCT GRID ============= */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-header-text {
  max-width: 540px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
}

.product-card {
  display: block;
  color: inherit;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card:hover .product-image {
  filter: brightness(1.02);
}

.product-image {
  aspect-ratio: 3 / 4;
  background: var(--cream-dark);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  transition: filter 0.3s ease;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #c9b89a 100%);
  font-family: var(--serif);
  font-style: italic;
  color: var(--walnut);
  font-size: 1rem;
}

.product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--cream);
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
}

.product-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--soft-black);
  line-height: 1.25;
}

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

.product-price {
  color: var(--walnut);
  font-weight: 500;
}

/* ============= CATEGORY CARDS ============= */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 2rem;
  color: var(--cream);
  background: var(--walnut-deep);
  transition: transform 0.4s ease;
}

.category-card:hover {
  transform: scale(1.01);
  color: var(--cream);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(31, 26, 20, 0.7) 100%
  );
  z-index: 1;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.category-card-bedroom {
  background:
    radial-gradient(circle at 30% 70%, rgba(196, 122, 92, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #6b4f38 0%, #3a2a1c 100%);
}

.category-card-reading {
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 222, 179, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #8a7560 0%, #4a3725 100%);
}

.category-card-living {
  background:
    radial-gradient(circle at 50% 50%, rgba(138, 154, 123, 0.3) 0%, transparent 60%),
    linear-gradient(135deg, #5c4d3a 0%, #2a2014 100%);
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card h3 {
  color: var(--cream);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.category-card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ============= ABOUT PREVIEW ============= */

.about-preview {
  background: var(--cream-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #b8a584 0%, #6b4f38 100%);
  position: relative;
  overflow: hidden;
}

.about-image:not(:has(img))::after {
  content: '"';
  position: absolute;
  font-family: var(--serif);
  font-size: 12rem;
  color: var(--cream);
  opacity: 0.18;
  top: -2rem;
  left: 1rem;
  line-height: 1;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-signature {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--walnut);
}

/* ============= BLOG CARDS ============= */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.post-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-image {
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #c9b89a 0%, #8a7560 100%);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.post-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--soft-black);
  line-height: 1.25;
}

.post-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============= ARTICLE / BLOG POST ============= */

.article-header {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  border-bottom: 1px solid var(--cream-dark);
}

.article-header h1 {
  margin-bottom: 1rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.article-header .post-meta {
  margin-bottom: 0;
}

.article-body {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--soft-black);
}

.article-body img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--soft-black);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.disclosure-box {
  background: var(--cream-light);
  border-left: 3px solid var(--walnut);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

.product-feature {
  background: var(--cream-light);
  padding: 2rem;
  margin: 2.5rem 0;
  border: 1px solid var(--cream-dark);
}

.product-feature h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.product-feature .product-meta {
  margin-bottom: 1rem;
}

/* ============= FOOTER ============= */

.site-footer {
  background: var(--walnut-deep);
  color: var(--cream);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  color: var(--cream);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(245, 240, 232, 0.7);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 1.25rem;
  font-family: var(--sans);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--cream);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.6);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============= PAGE HEADERS (for shop/about/etc) ============= */

.page-header {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--cream-dark);
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ============= ANIMATIONS ============= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.25s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.4s; opacity: 0; }

/* ============= UTILITIES ============= */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
