:root {
  --bg: #faf9f6;
  --primary: #6a5d4d;
  --secondary: #d7c8b6;
  --accent: #b08968;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --border: #e8e6e3;
  --surface: #f4f0ea;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(70, 58, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(176, 137, 104, 0.12), transparent 26%),
    linear-gradient(180deg, #fdfcf8 0%, var(--bg) 34%, #f7f4ef 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 230, 227, 0.9);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 84px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(176, 137, 104, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(215, 200, 182, 0.4) 100%);
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(106, 93, 77, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-subtitle {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
}

.desktop-nav a.active,
.mobile-nav a.active,
.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--text);
}

.desktop-nav a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.mobile-nav a:hover::after,
.mobile-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.icon-btn:hover {
  background: rgba(215, 200, 182, 0.28);
  border-color: rgba(176, 137, 104, 0.28);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.search-panel {
  padding-bottom: 18px;
}

.search-form,
.newsletter-form {
  display: flex;
  gap: 12px;
}

.search-form input,
.newsletter-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.newsletter-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(176, 137, 104, 0.8);
  box-shadow: 0 0 0 4px rgba(176, 137, 104, 0.12);
}

.subscribe-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1200;
  width: min(360px, calc(100% - 40px));
  padding: 16px 20px;
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.subscribe-toast[hidden] {
  display: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 82vw);
  height: 100vh;
  padding: 28px 24px;
  background: #f8f4ee;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(0);
  z-index: 40;
}

body.menu-open .mobile-menu {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  font-weight: 600;
}

.mobile-nav {
  display: grid;
  gap: 18px;
}

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.32);
  z-index: 35;
}

body.menu-open .menu-backdrop {
  display: block;
}

.hero {
  position: relative;
  min-height: 80vh;
  max-height: 900px;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero > img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero > img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(27, 22, 17, 0.64) 0%, rgba(27, 22, 17, 0.4) 38%, rgba(27, 22, 17, 0.2) 100%),
    linear-gradient(180deg, rgba(22, 18, 14, 0.12) 0%, rgba(22, 18, 14, 0.34) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  color: var(--white);
  padding: 110px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero .eyebrow {
  color: #f3ddc9;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.14;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.9rem, 2rem + 3vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 1.55rem + 1.5vw, 3.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-content p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #594d40;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(244, 240, 234, 0.72) 0%, rgba(250, 249, 246, 0.72) 100%);
}

.section-heading {
  margin-bottom: 34px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.category-grid,
.product-grid,
.style-grid,
.testimonial-grid,
.shop-grid {
  display: grid;
  gap: 24px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.product-card,
.style-card,
.testimonial-card,
.mini-product-card,
.shop-card,
.collection-panel,
.newsletter-card,
.contact-form,
.contact-copy,
.about-copy,
.about-media {
  border: 1px solid rgba(232, 230, 227, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.category-card,
.product-card,
.style-card,
.testimonial-card,
.shop-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.category-card img,
.style-card img {
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
}

.product-card img,
.shop-card img {
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
}

.card-copy,
.product-info,
.testimonial-card,
.collection-copy,
.contact-form,
.contact-copy,
.about-copy {
  padding: 24px;
}

.card-copy p,
.product-info p {
  margin-top: 8px;
}

.product-info {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-info h3 {
  font-size: 1.15rem;
}

.product-info p {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.inspiration-grid,
.about-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.inspiration-copy {
  padding-right: 18px;
}

.inspiration-copy p + p {
  margin-top: 16px;
}

.inspiration-copy .btn {
  margin-top: 28px;
}

.inspiration-media img,
.about-media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bestseller-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mini-product-card {
  border-radius: 20px;
  overflow: hidden;
}

.mini-product-card img {
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.mini-product-card div {
  padding: 18px 18px 22px;
}

.mini-product-card p {
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
}

.testimonial-card {
  border-radius: var(--radius-sm);
}

.testimonial-card p {
  color: var(--text);
  font-size: 1rem;
}

.testimonial-card span {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 700;
}

.newsletter-section {
  padding-top: 24px;
}

.newsletter-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(215, 200, 182, 0.45) 0%, rgba(255, 255, 255, 0.82) 68%),
    rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  min-width: min(100%, 480px);
}

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--border);
  background: rgba(246, 242, 237, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.inner-page {
  padding-top: 8px;
}

.page-intro {
  padding: 92px 0 24px;
}

.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
}

.collection-stack {
  display: grid;
  gap: 30px;
}

.collections-overview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
  padding: 0 4px 10px;
}

.collection-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 430px;
}

.collection-panel.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.collection-panel.reverse .collection-media {
  order: 2;
}

.collection-media {
  min-height: 100%;
}

.collection-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.collection-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 242, 236, 0.94) 100%);
}

.collection-copy .eyebrow {
  margin-bottom: 0;
}

.collection-copy p:last-of-type {
  max-width: 40ch;
}

.about-copy,
.contact-copy {
  border-radius: var(--radius);
}

.contact-form {
  display: grid;
  gap: 18px;
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.contact-form textarea {
  resize: vertical;
}

.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-card .product-info {
  display: grid;
  gap: 14px;
}

.shop-card .btn {
  width: 100%;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .category-grid,
  .style-grid,
  .testimonial-grid,
  .bestseller-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inspiration-grid,
  .about-grid,
  .contact-layout,
  .collections-overview,
  .collection-panel,
  .collection-panel.reverse {
    grid-template-columns: 1fr;
  }

  .collection-panel,
  .collection-panel.reverse {
    min-height: unset;
  }

  .collection-panel.reverse .collection-media {
    order: 0;
  }

  .collection-panel img {
    min-height: 340px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100% - 32px, 1000px);
  }

  .header-inner {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions {
    gap: 4px;
  }

  .search-toggle {
    display: none;
  }

  .hero {
    min-height: 65vh;
  }

  .hero-content {
    width: 100%;
    padding: 88px 0 72px;
  }

  .hero-content p:not(.eyebrow) {
    max-width: 34ch;
    font-size: 1rem;
  }

  .section,
  .page-intro {
    padding: 72px 0 24px;
  }

  .collection-copy {
    padding: 28px;
  }

  .split-heading,
  .newsletter-card,
  .search-form,
  .newsletter-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .newsletter-card {
    padding: 28px;
  }
}

@media (max-width: 430px) {
  :root {
    --container: min(100% - 24px, 1000px);
  }

  .brand {
    max-width: calc(100vw - 138px);
    overflow: hidden;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 74px;
    padding-bottom: 56px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(2.35rem, 7.8vw, 3rem);
    line-height: 1.05;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .category-grid,
  .product-grid,
  .style-grid,
  .testimonial-grid,
  .bestseller-row,
  .shop-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .category-card img,
  .style-card img,
  .product-card img,
  .shop-card img {
    aspect-ratio: 4 / 4.4;
  }

  .card-copy,
  .product-info,
  .testimonial-card,
  .contact-form,
  .contact-copy,
  .about-copy {
    padding: 18px;
  }

  .collections-overview {
    padding-bottom: 0;
  }

  .collection-panel img {
    min-height: 280px;
  }

  .product-info,
  .mini-product-card div {
    gap: 10px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    width: min(290px, 84vw);
    padding: 22px 18px;
  }
}

@media (max-width: 320px) {
  .brand {
    max-width: calc(100vw - 124px);
    gap: 8px;
  }

  .hero-content {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 2.3rem;
  }

  .mobile-menu {
    width: calc(100vw - 22px);
  }
}

.unsubscribe-page {
  min-height: calc(100vh - 84px);
  padding: clamp(48px, 8vw, 104px) 0;
}

.unsubscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: clamp(24px, 5vw, 64px);
}

.unsubscribe-story {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(33, 30, 26, 0.04) 20%, rgba(33, 30, 26, 0.78) 100%),
    url("assets/images/category-wall-decor.jpg") center / cover;
  box-shadow: var(--shadow);
}

.unsubscribe-story .eyebrow {
  color: #ead9c7;
}

.unsubscribe-story h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  color: var(--white);
}

.unsubscribe-story p:not(.eyebrow) {
  max-width: 38ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.unsubscribe-card {
  align-self: center;
  width: 100%;
  max-width: 540px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(232, 230, 227, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.unsubscribe-card h2 {
  margin-bottom: 10px;
}

.unsubscribe-card > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--muted);
}

.unsubscribe-form {
  display: grid;
  gap: 18px;
}

.unsubscribe-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.unsubscribe-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unsubscribe-form input:focus {
  border-color: rgba(176, 137, 104, 0.8);
  box-shadow: 0 0 0 4px rgba(176, 137, 104, 0.12);
}

.unsubscribe-form .btn {
  width: 100%;
  margin-top: 4px;
}

.unsubscribe-back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 600;
}

.unsubscribe-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 1200;
  width: min(420px, calc(100% - 32px));
  padding: 16px 20px;
  transform: translateX(-50%);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.unsubscribe-toast[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .unsubscribe-page {
    min-height: auto;
  }

  .unsubscribe-layout {
    grid-template-columns: 1fr;
  }

  .unsubscribe-story {
    min-height: 360px;
  }

  .unsubscribe-card {
    max-width: none;
  }
}
