/*
Theme Name: Rabbit Soap
Theme URI: https://rabbitsoap.com
Author: Black Cursive Labs
Description: A tactile WooCommerce storefront for Rabbit Soap.
Version: 1.0.0
Text Domain: rabbitsoap
*/

:root {
  --ink: #171815;
  --paper: #f4f2eb;
  --white: #fffefa;
  --sage: #819883;
  --acid: #d9ee53;
  --line: rgba(23, 24, 21, .18);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", Arial, sans-serif; line-height: 1.5; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.site-shell { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.display { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(52px, 8vw, 128px); font-weight: 500; line-height: .83; }
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: white; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; transition: .25s ease; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--acid); color: var(--ink); }
.button--light { border-color: white; background: white; color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }

.announcement { padding: 9px 20px; background: var(--ink); color: white; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(244, 242, 235, .94); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 74px; }
.brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; letter-spacing: .02em; }
.brand span { display: inline-block; width: 9px; height: 9px; margin-left: 5px; background: var(--acid); border-radius: 50%; }
.main-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-nav a, .header-action { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.header-tools { display: flex; justify-content: flex-end; gap: 22px; }
.menu-toggle { display: none; padding: 8px 0; border: 0; background: transparent; }

.hero { position: relative; min-height: min(760px, calc(100vh - 110px)); overflow: hidden; background: #e8e6df; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: min(760px, calc(100vh - 110px)); padding-block: 80px; }
.hero-content .display { max-width: 720px; }
.hero-content p:not(.eyebrow) { max-width: 390px; margin: 28px 0 32px; font-size: 16px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--acid); }
.marquee-track { display: flex; width: max-content; padding: 14px 0; animation: marquee 24s linear infinite; }
.marquee span { margin-right: 56px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

.intro { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; padding-block: 120px; }
.intro h2 { max-width: 980px; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(40px, 5vw, 76px); font-weight: 500; line-height: 1; }
.intro h2 em { color: var(--sage); font-weight: 500; }

.collections { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 760px; background: var(--sage); }
.collection-image { min-height: 600px; }
.collection-image img { width: 100%; height: 100%; object-fit: cover; }
.collection-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(44px, 7vw, 110px); }
.collection-copy h2 { max-width: 560px; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(56px, 7vw, 104px); font-weight: 500; line-height: .86; }
.collection-copy p { max-width: 420px; }

.shop-section { padding-block: 120px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 42px; }
.section-head h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(42px, 6vw, 78px); font-weight: 500; line-height: 1; }
.product-placeholder-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 !important; }
.product-placeholder, .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; }
.product-placeholder .visual, .woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; margin: 0 0 18px !important; object-fit: cover; background: #e0ddd3; }
.visual { position: relative; display: grid; place-items: center; overflow: hidden; }
.visual::before { content: ""; width: 58%; aspect-ratio: .82; background: linear-gradient(145deg, #ece6d4, #b9c4ae 54%, #333832); box-shadow: 18px 20px 30px rgba(0,0,0,.16); transform: rotate(-4deg); }
.visual--yellow::before { background: linear-gradient(145deg, #f6e7b7, #e2b859 54%, #8f6c2d); transform: rotate(3deg); }
.visual--black::before { background: linear-gradient(145deg, #6a6f6b, #222521 58%, #060706); }
.visual--white::before { background: linear-gradient(145deg, #fff, #dfd9c9 58%, #aca58f); transform: rotate(2deg); }
.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.product-meta h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0; padding: 0 !important; font-size: 14px !important; font-weight: 600; }
.product-meta span, .woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 13px !important; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 14px; }

.principles { padding-block: 110px; border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.principle { min-height: 270px; padding: 34px; background: var(--paper); }
.principle .number { color: var(--sage); font-family: "Cormorant Garamond", Georgia, serif; font-size: 42px; }
.principle h3 { margin: 50px 0 12px; font-size: 18px; }
.principle p { max-width: 340px; margin: 0; color: #55564f; font-size: 14px; }

.newsletter { padding: 100px 0; background: var(--ink); color: white; }
.newsletter-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 80px; }
.newsletter h2 { max-width: 780px; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(54px, 7vw, 100px); font-weight: 500; line-height: .88; }
.signup { display: flex; border-bottom: 1px solid white; }
.signup input { flex: 1; min-width: 0; padding: 18px 0; border: 0; background: transparent; color: white; outline: none; }
.signup button { border: 0; background: transparent; color: var(--acid); font-size: 12px; font-weight: 700; text-transform: uppercase; }

.site-footer { padding: 60px 0 28px; background: var(--ink); color: white; border-top: 1px solid rgba(255,255,255,.16); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(42px, 6vw, 78px); line-height: 1; }
.footer-column h3 { margin: 0 0 16px; color: #a7a89f; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a { display: block; margin: 9px 0; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 70px; color: #a7a89f; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.page-main { min-height: 60vh; padding-block: 70px 120px; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 50px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce-products-header__title, .entry-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(52px, 7vw, 96px); font-weight: 500; line-height: .9; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product .product_title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(44px, 5vw, 72px); line-height: .95; }

@media (max-width: 900px) {
  .site-shell { width: min(100% - 28px, var(--max)); }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; }
  .menu-toggle { display: block; grid-column: 2; }
  .header-tools { display: none; }
  .main-nav { position: fixed; inset: 106px 0 0; display: none; padding: 36px 20px; background: var(--paper); }
  .menu-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { font-family: "Cormorant Garamond", Georgia, serif; font-size: 42px; letter-spacing: 0; text-transform: none; }
  .hero, .hero-content { min-height: 650px; }
  .hero img { object-position: 63% center; opacity: .72; }
  .intro { grid-template-columns: 1fr; gap: 30px; padding-block: 80px; }
  .collections { grid-template-columns: 1fr; }
  .collection-image { height: 65vh; }
  .collection-copy { gap: 80px; }
  .product-placeholder-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .principle-grid, .newsletter-inner, .footer-grid, .woocommerce div.product { grid-template-columns: 1fr; }
  .newsletter-inner { gap: 50px; }
}

@media (max-width: 540px) {
  .display { font-size: 57px; }
  .hero-content { padding-block: 56px; }
  .hero-content p:not(.eyebrow) { font-size: 14px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 22px; }
  .shop-section, .principles { padding-block: 78px; }
  .product-placeholder-grid, .woocommerce ul.products { gap: 12px; }
  .product-meta { display: block; }
  .principle-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}
