:root {
  --bg: #fefcf8;
  --fg: #2c2c2c;
  --muted: #f5e6d3;
  --muted-fg: #74685f;
  --primary: #8b4513;
  --primary-fg: #fefcf8;
  --accent: #d4a574;
  --accent-fg: #2c2c2c;
  --border: #f5e6d3;
  --red: #dc2626;
  --radius: 0.5rem;
  --max: 80rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }
section[id] { scroll-margin-top: 120px; }

.sale-banner {
  background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
  color: #fff;
  overflow: hidden;
  padding: 0.4rem 0;
}
.sale-track { display: flex; width: max-content; animation: marquee 20s linear infinite; }
.sale-track span { padding: 0 2rem; font-size: 0.875rem; white-space: nowrap; }
.sale-track b { color: #fde047; }
@keyframes marquee { to { transform: translateX(-50%); } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.logo img { height: 2.5rem; width: auto; }
.nav-links { display: none; gap: 2rem; }
.nav-links a { font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-social { display: none; gap: 0.75rem; }
.nav-social a { color: var(--muted-fg); }
.nav-social a:hover { color: var(--primary); }
.nav-social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.menu-toggle { background: none; border: 0; cursor: pointer; color: var(--fg); }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 0.5rem 0 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.5rem 1rem; }
@media (min-width: 768px) {
  .nav-links, .nav-social { display: flex; }
  .menu-toggle { display: none; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(to bottom right, #0f172a, #581c87, #0f172a);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1920&h=1080") center/cover no-repeat;
  opacity: .6;
}
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.hero-inner { position: relative; z-index: 1; max-width: 56rem; padding: 2rem 1rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0 0 1.5rem; line-height: 1.1; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.5rem); opacity: .9; max-width: 36rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .5rem; font-weight: 600; cursor: pointer; border: 0;
  padding: 1rem 2rem; transition: .2s;
}
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { background: var(--primary); color: var(--primary-fg); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #000; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--fg); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-block { width: 100%; }
.btn-sale { background: var(--red); color: #fff; }
.btn-sale:hover { background: #b91c1c; }

.section { padding: 5rem 0; }
.section-muted { background: var(--muted); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .75rem; }
.section-title p { color: var(--muted-fg); font-size: 1.25rem; max-width: 36rem; margin: 0 auto; }

.grid-2 { display: grid; gap: 2rem; }
.grid-4 { display: grid; gap: 2rem; }
.grid-featured { display: grid; gap: 2rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-featured { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.journal-card {
  background: var(--bg);
  border-radius: 1rem;
  box-shadow: 0 10px 15px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: .3s;
}
.journal-card:hover { box-shadow: 0 25px 40px rgba(0,0,0,.15); transform: translateY(-8px); }
.journal-card .cover { aspect-ratio: 3/4; background: #fff; padding: 1rem; overflow: hidden; }
.journal-card .cover img { width: 100%; height: 100%; object-fit: contain; transition: .5s; }
.journal-card:hover .cover img { transform: scale(1.05); }
.journal-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.journal-card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.designer { color: #d97706; font-size: .75rem; font-weight: 500; margin: 0 0 .5rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted-fg); flex: 1; margin: 0 0 1rem; }
.price { font-size: 1.5rem; font-weight: 700; }
.journal-card .price { margin: 0 0 1.25rem; }
.journal-card .body > .btn { margin-top: .15rem; }
.price s { font-size: .875rem; color: var(--muted-fg); margin-right: .4rem; }
.price .sale { color: var(--red); }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .15rem .55rem; border-radius: 999px; background: var(--muted); color: var(--fg);
}
.badge-guided { background: var(--primary); color: var(--primary-fg); }
.badge-premium { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.badge-sale { background: var(--red); color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .7; } }
.badges { display: flex; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }

.style-card { border-radius: 1.5rem; padding: 2rem; height: 100%; }
.style-card img { width: 100%; height: 16rem; object-fit: cover; border-radius: 1rem; margin-bottom: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,.15); }
.style-freeform { background: linear-gradient(to bottom right, var(--muted), var(--accent)); }
.style-guided { background: linear-gradient(to bottom right, var(--primary), var(--fg)); color: var(--primary-fg); }
.check { display: flex; align-items: center; gap: .75rem; margin: .5rem 0; }
.check svg { width: 1.25rem; height: 1.25rem; flex: none; }

.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid img { border-radius: 1rem; box-shadow: 0 25px 40px rgba(0,0,0,.2); }
.icon-row { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; }
.icon-blob { width: 3rem; height: 3rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.icon-blob svg { width: 1.5rem; height: 1.5rem; }
.designers { margin-top: 5rem; padding-top: 4rem; border-top: 1px solid var(--border); }
.designer-card { background: var(--bg); border-radius: .75rem; padding: 1.5rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.designer-card img { width: 12rem; height: 12rem; object-fit: contain; margin: 0 auto 1.5rem; }

.filters { margin-bottom: 3rem; }
.filters h3 { text-align: center; font-size: .875rem; color: var(--muted-fg); font-family: Inter, sans-serif; margin: 0 0 .75rem; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
.filter-btn {
  padding: .75rem 1.5rem; border-radius: .5rem; font-weight: 600; cursor: pointer;
  background: var(--bg); color: var(--fg); border: 2px solid var(--primary);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--primary-fg); }
.journal-item.hidden { display: none; }

.contact-card { background: var(--bg); border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,.12); padding: 2rem; max-width: 56rem; margin: 0 auto; }
.form-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .form-2 { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .5rem; }
input, textarea {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: .5rem; background: #fff;
}
.form-note { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted-fg); }
.form-note a { color: var(--primary); }
.notice { padding: 1rem; border-radius: .5rem; margin-bottom: 1rem; text-align: center; }
.notice-ok { background: #dcfce7; color: #166534; }
.notice-bad { background: #fee2e2; color: #991b1b; }

.site-footer { background: var(--fg); color: var(--primary-fg); padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.site-footer .logo img { height: 3rem; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer p { color: rgba(254,252,248,.8); }
.site-footer a, .site-footer button { color: rgba(254,252,248,.8); background: none; border: 0; cursor: pointer; padding: 0; }
.site-footer a:hover, .site-footer button:hover { color: var(--accent); }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(254,252,248,.2); margin-top: 2rem; padding-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .875rem; }

.detail { padding: 2rem 0 5rem; }
.detail-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-cover { width: 100%; max-height: 600px; object-fit: contain; border-radius: 1rem; box-shadow: 0 25px 50px rgba(0,0,0,.2); }
.detail-gallery { display: flex; flex-direction: column; gap: 0.85rem; }
.gallery-stage { position: relative; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border: 0; border-radius: 999px;
  background: rgba(28, 25, 23, 0.72); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; z-index: 2;
}
.gallery-arrow:hover { background: rgba(28, 25, 23, 0.92); }
.gallery-prev { left: 0.6rem; }
.gallery-next { right: 0.6rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.gallery-thumb {
  border: 1px solid var(--border); background: #fff; border-radius: 0.6rem;
  padding: 0.4rem; cursor: pointer; text-align: center;
}
.gallery-thumb img { width: 100%; height: 88px; object-fit: contain; display: block; }
.gallery-thumb span { display: block; font-size: 0.7rem; margin-top: 0.25rem; color: var(--muted-fg); }
.gallery-thumb.is-on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.detail h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .5rem 0; }
.spec-card { background: var(--bg); border: 1px solid var(--border); border-radius: .75rem; padding: 1.5rem; margin: 1rem 0; }
.spec-card h3 { margin: 0 0 1rem; }
.spec-card li { color: var(--muted-fg); margin: .35rem 0; }
.specs { display: grid; gap: 1rem; }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.muted { color: var(--muted-fg); }
