@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Display:ital,wght@0,300;1,300&family=Instrument+Sans:wght@400;500;600&display=swap');

body { background-color: #FAF7F2; color: #2D2826; font-family: 'Instrument Sans', sans-serif; }
h1, h2, h3, h4, .serif { font-family: 'Noto Serif Display', serif; font-weight: 300; letter-spacing: 0.03em; }
.rule-gradient { width: 100%; height: 1px; background: linear-gradient(to right, transparent, #E2C0B9, #C99B92, #E2C0B9, transparent); }

.bg-rose { background-color: #E2C0B9; }
.text-rose { color: #E2C0B9; }

.header-link { transition: color 0.3s ease; text-transform: uppercase; letter-spacing: 0.2em; font-size: 9px; font-weight: 700; color: #2D2826; }
.header-link:hover { color: #E2C0B9; }


/* Filter / category buttons — used on shop and blog pages */
.filter-btn { text-transform: uppercase; letter-spacing: 0.2em; font-size: 9px; font-weight: 700; font-family: 'Instrument Sans', sans-serif; padding: 9px 20px; border: 1px solid rgba(26,26,26,0.18); background: transparent; cursor: pointer; transition: all 0.2s ease; color: #1a1a1a; border-radius: 4px; }
.filter-btn:hover { border-color: #C99B92; color: #C99B92; }
.filter-btn.active { background: #1a1a1a; color: white; border-color: #1a1a1a; }

/* Corner rounding — cards, containers, buttons, inputs */
article.group,
.product-image-container,
.modal-content { border-radius: 8px; }

button:not(.header-link) { border-radius: 4px; }
input, textarea, select { border-radius: 4px; }

/* CTA <a> buttons — matched by consistent class pattern across site */
a[class*="inline-block"][class*="uppercase"],
a[class*="gumroad-scroll"][class*="bg-"] { border-radius: 4px; }

/* Product Cards */
.product-image-container { position: relative; aspect-ratio: 4/5; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: white; border: 1px solid rgba(0,0,0,0.05); cursor: pointer; }
.product-image-container img { width: 100%; height: 100%; object-fit: contain; padding: 2.5rem; transition: transform 0.7s ease; }
.group:hover .product-image-container img { transform: scale(1.05); }

/* Product image rose overlay on hover */
.product-image-container::after { content: ''; position: absolute; inset: 0; background: rgba(226, 192, 185, 0); transition: background 0.3s ease; pointer-events: none; }
.group:hover .product-image-container::after { background: rgba(226, 192, 185, 0.1); }

.description-box { min-height: 4rem; }

/* Modal / Pop-up Logic */
#policy-modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
#policy-modal.active { display: flex; }
.modal-content { background: white; max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 40px; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border-radius: 8px; }

/* Catch inline modal containers that don't use .modal-content class */
div.shadow-2xl { border-radius: 8px; }

/* Mobile nav smooth slide-open — overrides per-page display:none */
#mobile-nav { display: flex !important; flex-direction: column; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height 0.35s ease, opacity 0.25s ease; padding-top: 0 !important; padding-bottom: 0 !important; }
#mobile-nav.active { max-height: 400px; opacity: 1; pointer-events: auto; padding-top: 1rem !important; padding-bottom: 1rem !important; }

html { scroll-behavior: smooth; }

/* Fixes logo area */
header .flex.justify-center { flex: 0 0 auto; width: auto; min-width: 150px; }

/* Standardizes Page Titles — no !important so Tailwind responsive classes can override */
h1 { font-family: 'Noto Serif Display', serif; font-weight: 300; font-style: italic; line-height: 1.1; text-align: center; letter-spacing: 0.03em; }
h2 { font-family: 'Noto Serif Display', serif; font-weight: 300; font-style: italic; letter-spacing: 0.03em; }

/* === ROUND 2: POLISH === */

/* Page fade-in on load */
body { opacity: 0; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll-triggered fade-up */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Hero staggered entrance */
.hero-headline { opacity: 0; transform: translateY(20px); animation: heroFadeUp 0.6s ease 0.2s forwards; }
.hero-btn { opacity: 0; transform: translateY(20px); animation: heroFadeUp 0.6s ease 0.5s forwards; }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

/* Product card lift on hover */
article.group { transition: transform 0.25s ease, box-shadow 0.25s ease; }
article.group:hover { transform: translateY(-4px); box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.12); }

/* CTA button physical press state */
.bg-black:active { transform: scale(0.97); }

/* Footer mobile stacking and breathing room */
@media (max-width: 640px) {
    footer .max-w-7xl { gap: 1.5rem; }
    footer .flex.space-x-8 { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; }
    footer .flex.space-x-8 > * { margin-left: 0 !important; }
}
