/* Bonding Beautifully — design tokens & utilities (vanilla CSS, mirrors React app) */
:root {
  --radius: 0.875rem;
  --background: oklch(0.972 0.018 85);
  --foreground: oklch(0.275 0.025 145);
  --card: oklch(0.985 0.012 85);
  --card-foreground: oklch(0.275 0.025 145);
  --primary: oklch(0.48 0.055 150);
  --primary-foreground: oklch(0.985 0.012 85);
  --secondary: oklch(0.93 0.022 90);
  --secondary-foreground: oklch(0.32 0.03 145);
  --muted: oklch(0.94 0.018 88);
  --muted-foreground: oklch(0.48 0.025 140);
  --accent: oklch(0.72 0.08 55);
  --accent-foreground: oklch(0.985 0.012 85);
  --border: oklch(0.88 0.018 90);
  --input: oklch(0.9 0.018 90);
  --ring: oklch(0.48 0.055 150);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); letter-spacing: -0.02em; font-weight: 500; margin: 0; }
p { margin: 0; line-height: 1.6; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

/* Layout helpers */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.grain {
  background-image: radial-gradient(circle at 1px 1px, oklch(0.48 0.055 150 / 0.06) 1px, transparent 0);
  background-size: 24px 24px;
}
.gradient-warm { background: linear-gradient(135deg, oklch(0.972 0.018 85) 0%, oklch(0.93 0.04 110) 50%, oklch(0.88 0.05 80) 100%); }
.gradient-sage { background: linear-gradient(135deg, oklch(0.55 0.06 150) 0%, oklch(0.42 0.055 155) 100%); }

/* Components */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.75rem 1.5rem; font-size: 0.875rem; transition: opacity .15s, background .15s, transform .15s; border: 0; cursor: pointer; }
.btn-dark { background: var(--foreground); color: var(--background); }
.btn-dark:hover { opacity: .9; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; }
.btn-outline { border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.btn-outline:hover { background: var(--secondary); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.chip { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in oklab, var(--card) 60%, transparent); padding: 0.4rem 0.85rem; font-size: 0.75rem; color: var(--muted-foreground); }
.eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; }
.card-pad { padding: 1.75rem; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: color-mix(in oklab, var(--background) 85%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 1024px){ .header-inner { padding: 1rem 2rem; } }
.brand { display: flex; align-items: center; gap: 0.625rem; }
.brand-mark { width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-serif); color: var(--primary-foreground); }
.brand-name { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.1; }
.brand-sub { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); }
.nav { display: none; gap: 0.25rem; align-items: center; }
@media (min-width: 1024px){ .nav { display: flex; } }
.nav a { border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 75%, transparent); transition: background .15s; }
.nav a:hover { background: var(--secondary); color: var(--foreground); }
.nav a.active { background: var(--primary); color: var(--primary-foreground); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: transparent; position: relative; }
.icon-btn:hover { background: var(--secondary); }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 1.25rem; height: 1.25rem; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-size: 10px; font-weight: 500; display: none; align-items: center; justify-content: center; }
.cart-badge.show { display: inline-flex; }
.book-btn { display: none; }
@media (min-width: 768px){ .book-btn { display: inline-flex; } }
.menu-btn { display: grid; }
@media (min-width: 1024px){ .menu-btn { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--background); padding: 0.75rem; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.mobile-menu a:hover { background: var(--secondary); }

/* HERO + sections */
section { position: relative; }
.hero { overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; padding: 3.5rem 0 5rem; }
@media (min-width: 1024px){ .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; padding: 5rem 0 7rem; } }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2.25rem, 5.5vw, 5rem); line-height: 1.05; margin-top: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-top: 1.5rem; max-width: 36rem; color: var(--muted-foreground); font-size: 1.05rem; line-height: 1.6; }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stat-row { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 32rem; border-top: 1px solid var(--border); padding-top: 2rem; font-size: 0.875rem; }
.stat-row dt { font-size: 0.7rem; color: var(--muted-foreground); }
.stat-row dd { margin: 0.25rem 0 0; font-family: var(--font-serif); font-size: 1.35rem; }

.profile-wrap { position: relative; max-width: 22rem; margin: 0 auto; }
.profile-glow { position: absolute; inset: -1rem; border-radius: 2.5rem; filter: blur(20px); opacity: .8; }
.profile-img { position: relative; overflow: hidden; border-radius: 2rem; border: 1px solid var(--border); background: var(--card); box-shadow: 0 25px 50px -12px rgba(0,0,0,.15); }
.profile-img img { aspect-ratio: 5/7; width: 100%; object-fit: cover; }
.profile-quote { position: absolute; bottom: -1.25rem; left: -1.25rem; max-width: 13rem; padding: 1rem; border: 1px solid var(--border); background: var(--card); border-radius: 1rem; box-shadow: 0 10px 25px -10px rgba(0,0,0,.15); }
.profile-tag { position: absolute; top: -.75rem; right: -.75rem; padding: 0.4rem 0.8rem; border: 1px solid var(--border); background: var(--card); border-radius: 999px; font-size: 0.75rem; box-shadow: 0 8px 16px -8px rgba(0,0,0,.15); }

.section { padding: 5rem 0; }
.section-pad-lg { padding: 6rem 0; }
.section-border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-secondary { background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.section-card-bg { background: var(--card); border-top: 1px solid var(--border); }

h2.serif-xl { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 0.75rem; line-height: 1.15; }
h1.serif-xxl { font-family: var(--font-serif); font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin-top: 0.75rem; }

.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px){ .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 1024px){ .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

.pillar { display: flex; flex-direction: column; padding: 1.75rem; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--card); transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.15); }
.pillar-icon { width: 2.75rem; height: 2.75rem; border-radius: 1rem; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); display: grid; place-items: center; }
.pillar-num { font-family: var(--font-serif); font-size: 0.875rem; color: var(--muted-foreground); }
.pillar h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-top: 1.25rem; }
.pillar p { margin-top: 0.5rem; color: var(--muted-foreground); font-size: 0.875rem; }

.mountain-img { position: relative; overflow: hidden; border-radius: 2rem; border: 1px solid var(--border); box-shadow: 0 15px 35px -15px rgba(0,0,0,.15); }
.mountain-img img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.mountain-quote { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 0.75rem 1rem; border-radius: 1rem; background: color-mix(in oklab, var(--background) 85%, transparent); backdrop-filter: blur(10px); font-family: var(--font-serif); font-size: 0.875rem; }

.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; font-size: 0.95rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.dot { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--primary); margin-top: 0.6rem; flex-shrink: 0; }

.link-primary { color: var(--primary); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 3.5rem 0; }

/* Tabs */
.tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 0.25rem; margin-top: 2rem; }
.tabs button { border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.tabs button.active { background: var(--primary); color: var(--primary-foreground); }

.tab-panel { display: none; }
.tab-panel.active { display: grid; gap: 2rem; }
@media (min-width: 1024px){ .tab-panel.active { grid-template-columns: 1fr 1fr; } }

/* Bookstore */
.book-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); background: var(--card); border-radius: 1.5rem; transition: transform .2s, box-shadow .2s; }
.book-card:hover { transform: translateY(-4px); box-shadow: 0 25px 45px -20px rgba(0,0,0,.18); }
.book-cover { position: relative; aspect-ratio: 4/5; display: grid; place-items: center; font-family: var(--font-serif); font-size: 4rem; background: linear-gradient(135deg, var(--secondary), var(--muted)); }
.book-cover .badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--background); border: 1px solid var(--border); font-size: 0.7rem; }
.book-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.book-title { font-family: var(--font-serif); font-size: 1.15rem; }
.book-sub { color: var(--muted-foreground); font-size: 0.85rem; flex: 1; }
.book-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; }
.book-price { font-family: var(--font-serif); font-size: 1.25rem; }

/* Art gallery */
.art-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px){ .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .art-grid { grid-template-columns: repeat(3, 1fr); } }
.art-tile { overflow: hidden; border: 1px solid var(--border); background: var(--card); border-radius: 1.25rem; text-align: left; }
.art-tile img { aspect-ratio: 1/1; width: 100%; object-fit: cover; transition: transform .5s; }
.art-tile:hover img { transform: scale(1.05); }
.art-meta { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); padding: 0.4rem 0.9rem; font-size: 0.75rem; }
.filter-btn.active { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* Lightbox / modal */
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: grid; }
.modal-bg { position: absolute; inset: 0; background: color-mix(in oklab, var(--foreground) 70%, transparent); backdrop-filter: blur(6px); }
.modal-card { position: relative; max-height: 90vh; width: 100%; max-width: 56rem; overflow: hidden; background: var(--card); border-radius: 1.5rem; box-shadow: 0 25px 60px -20px rgba(0,0,0,.4); }
.modal-card img { max-height: 70vh; width: 100%; object-fit: contain; background: var(--secondary); }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: color-mix(in oklab, var(--background) 90%, transparent); display: grid; place-items: center; z-index: 1; }
.modal-pad { padding: 1.5rem; }

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: color-mix(in oklab, var(--foreground) 30%, transparent); backdrop-filter: blur(4px); }
.drawer-panel { position: absolute; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; background: var(--background); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.3); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.drawer-foot { padding: 1.25rem; border-top: 1px solid var(--border); }
.cart-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem; border: 1px solid var(--border); background: var(--card); border-radius: 1rem; margin-bottom: 0.75rem; }
.cart-cover { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; display: grid; place-items: center; background: linear-gradient(135deg, var(--secondary), var(--muted)); font-family: var(--font-serif); font-size: 1.25rem; flex-shrink: 0; }

/* Forms */
.form-input, .form-select, .form-textarea {
  width: 100%; border-radius: 0.875rem; border: 1px solid var(--input); background: var(--background);
  padding: 0.7rem 1rem; font-size: 0.875rem; color: var(--foreground); outline: none; font-family: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 20%, transparent); }
.form-textarea { resize: vertical; min-height: 7rem; }
.field-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); display: block; margin-bottom: 0.4rem; }

/* Footer */
.footer { margin-top: 6rem; border-top: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 50%, transparent); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 1.25rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 1024px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr; padding: 3.5rem 2rem; } }
.footer h4 { font-size: 0.875rem; }
.footer ul li { padding: 0.25rem 0; font-size: 0.875rem; color: var(--muted-foreground); }
.footer ul li a:hover { color: var(--foreground); }
.social-btn { width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--border); background: var(--background); display: grid; place-items: center; color: color-mix(in oklab, var(--foreground) 70%, transparent); transition: all .15s; }
.social-btn:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.footer-bot { border-top: 1px solid var(--border); }
.footer-bot-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1.25rem; max-width: 80rem; margin: 0 auto; font-size: 0.75rem; color: var(--muted-foreground); }
@media (min-width: 640px){ .footer-bot-inner { flex-direction: row; padding: 1.25rem 2rem; } }

/* Utility */
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--muted-foreground); }
.text-center { text-align: center; }
.hidden { display: none; }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-sm { width: 0.85rem; height: 0.85rem; }
.icon-lg { width: 1.25rem; height: 1.25rem; }

/* Responsive */
@media (max-width: 640px){
  .hero h1 { font-size: 2.25rem; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .stat-row dd { font-size: 1.1rem; }
}
