/* Welcome To My World Publications — custom storefront
   Palette: near-black #0d0d0f / warm paper #f4efe6 / brass #c9a227 */

:root {
  --black: #0d0d0f;
  --ink: #141416;
  --ink-2: #1c1c1f;
  --paper: #f4efe6;
  --paper-dim: #d8d2c4;
  --muted: #9a948a;
  --brass: #c9a227;
  --brass-light: #e6c34c;
  --brass-dark: #9a7a1c;
  --line: rgba(201, 162, 39, 0.22);
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-mark {
  font-family: var(--font-display); font-size: 26px; letter-spacing: 2px;
  color: var(--brass); border: 2px solid var(--brass);
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
}
.brand-name { font-family: var(--font-display); font-size: 19px; letter-spacing: 1.5px; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: 3px; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--paper-dim);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brass); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 30px; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-brass { background: var(--brass); color: #111; }
.btn-brass:hover { background: var(--brass-light); box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--paper); border: 1px solid var(--brass); }
.btn-outline:hover { background: rgba(201, 162, 39, 0.12); }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.nav-cta { padding: 10px 22px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  padding: 130px 0 80px; position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% 10%, rgba(201, 162, 39, 0.10), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(201, 162, 39, 0.06), transparent 60%),
    var(--black);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(201,162,39,0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(700px 420px at 70% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(700px 420px at 70% 30%, black, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }
.hero-kicker {
  color: var(--brass); font-size: 13px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(64px, 11vw, 150px);
  line-height: 0.92; letter-spacing: 2px; margin-bottom: 24px;
}
.hero h1 .gold { color: var(--brass); }
.hero-tag { font-size: clamp(17px, 2.4vw, 22px); color: var(--paper-dim); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-rule { width: 72px; height: 3px; background: var(--brass); margin-bottom: 26px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 52px; }
.section-kicker { color: var(--brass); font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 64px); letter-spacing: 2px; line-height: 1; }
.section-sub { color: var(--muted); max-width: 620px; margin-top: 14px; font-size: 16px; }

/* ---------- Featured ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.book-card {
  background: var(--ink); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); border-color: var(--brass); box-shadow: 0 18px 44px rgba(0,0,0,0.5); }
.book-cover { aspect-ratio: 2/3; background: var(--ink-2); position: relative; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-fallback {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: linear-gradient(150deg, #1a1a1d 0%, #0d0d0f 70%);
  border-bottom: 1px solid var(--line);
}
.book-cover-fallback .t { font-family: var(--font-display); font-size: 30px; letter-spacing: 2px; color: var(--brass); line-height: 1.05; }
.book-cover-fallback .a { margin-top: 10px; font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.book-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-title { font-family: var(--font-display); font-size: 24px; letter-spacing: 1.5px; line-height: 1.05; }
.book-meta { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.book-blurb { font-size: 14px; color: var(--paper-dim); flex: 1; }
.book-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.book-price { font-size: 20px; font-weight: 800; color: var(--brass); }

/* ---------- Catalog strip (home) ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.catalog-grid .book-title { font-size: 20px; }
.catalog-grid .book-body { padding: 16px 16px 18px; }
.center { text-align: center; margin-top: 44px; }

/* ---------- About teaser ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-split p { color: var(--paper-dim); margin-bottom: 18px; font-size: 16px; }
.about-split p.lead { font-size: 20px; color: var(--paper); font-weight: 500; }
.pull { border-left: 3px solid var(--brass); padding-left: 26px; }
.pull blockquote { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); letter-spacing: 1.5px; line-height: 1.1; color: var(--paper); }
.pull cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--brass); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter h3 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); letter-spacing: 2px; }
.newsletter p { color: var(--muted); margin-top: 8px; max-width: 440px; }
.news-form { display: flex; gap: 0; min-width: 320px; flex: 1; max-width: 480px; }
.news-form input {
  flex: 1; background: var(--black); border: 1px solid var(--line); border-right: none;
  color: var(--paper); padding: 14px 18px; font-size: 15px; font-family: var(--font-body);
  border-radius: 3px 0 0 3px;
}
.news-form input:focus { outline: none; border-color: var(--brass); }
.news-form button { border-radius: 0 3px 3px 0; white-space: nowrap; }

/* ---------- Footer ---------- */
footer { padding: 60px 0 36px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 12px; }
.foot-col h4 { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.foot-col a { display: block; text-decoration: none; color: var(--paper-dim); font-size: 14px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--brass); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 150px 0 60px; background: radial-gradient(900px 400px at 80% 0%, rgba(201,162,39,0.08), transparent 60%), var(--black); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(48px, 8vw, 96px); letter-spacing: 2px; line-height: 0.95; }
.page-hero p { color: var(--muted); margin-top: 14px; max-width: 600px; }

/* ---------- Story page ---------- */
.story { max-width: 760px; }
.story p { color: var(--paper-dim); font-size: 17px; margin-bottom: 22px; }
.story p.lead { font-size: 22px; color: var(--paper); }
.story .caps { font-family: var(--font-display); letter-spacing: 2px; font-size: 26px; color: var(--brass); margin: 40px 0 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-grid label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.contact-grid input, .contact-grid textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--paper);
  padding: 13px 16px; font-size: 15px; font-family: var(--font-body); border-radius: 3px;
}
.contact-grid input:focus, .contact-grid textarea:focus { outline: none; border-color: var(--brass); }
.contact-grid textarea { min-height: 150px; resize: vertical; }
.contact-info p { color: var(--paper-dim); margin-bottom: 16px; }
.contact-info a.mail { color: var(--brass); font-weight: 700; text-decoration: none; font-size: 18px; }

/* ---------- Mobile ---------- */
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--paper); font-size: 20px; padding: 8px 12px; border-radius: 4px; cursor: pointer; }

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink); flex-direction: column; padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line); gap: 18px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .featured-grid, .catalog-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
}

/* ---------- Book detail ---------- */
.book-page { padding: 130px 0 80px; }
.crumb { display: inline-block; text-decoration: none; color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 34px; }
.crumb:hover { color: var(--brass); }
.book-detail { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.book-detail-cover .book-cover { border: 1px solid var(--line); border-radius: 6px; }
.book-detail-cover .book-cover-fallback { border: 1px solid var(--line); border-radius: 6px; }
.book-detail h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); letter-spacing: 2px; line-height: 0.95; margin-bottom: 12px; }
.book-detail .byline { color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.book-detail-blurb { color: var(--paper-dim); font-size: 17px; max-width: 640px; margin: 18px 0 6px; }
.book-detail-buy { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.book-detail-buy .book-price { font-size: 28px; }
.buy-note { color: var(--muted); font-size: 13px; margin-top: 14px; max-width: 520px; }
.book-title-link { text-decoration: none; }
.book-title-link:hover .book-title { color: var(--brass); }

/* ---------- Stars & ratings ---------- */
.stars { color: var(--brass); font-size: 22px; letter-spacing: 4px; }
.stars .off { color: #3a3a3e; }
.stars-sm { font-size: 15px; letter-spacing: 2px; }
.card-rating { display: flex; align-items: center; gap: 8px; }
.card-rating .rating-count { font-size: 12px; }

/* ---------- Reviews ---------- */
.reviews { margin-top: 84px; border-top: 1px solid var(--line); padding-top: 54px; }
.reviews h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); letter-spacing: 2px; }
.rating-summary { display: flex; align-items: center; gap: 20px; margin: 20px 0 36px; }
.rating-big { font-size: 54px; font-weight: 800; color: var(--brass); line-height: 1; }
.rating-count { color: var(--muted); font-size: 14px; margin-top: 4px; }
.no-reviews { color: var(--muted); font-size: 16px; margin: 20px 0 8px; }
.review-card { background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; margin-bottom: 16px; max-width: 760px; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review-name { font-weight: 700; font-size: 15px; }
.review-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.review-card .stars { margin: 8px 0 2px; }
.review-title { font-weight: 700; margin: 6px 0; font-size: 16px; }
.review-text { color: var(--paper-dim); font-size: 15px; }
.review-form { background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 30px; margin-top: 40px; max-width: 640px; }
.review-form h3 { font-family: var(--font-display); font-size: 30px; letter-spacing: 2px; margin-bottom: 6px; }
.review-note { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.review-form label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.review-form input, .review-form textarea {
  width: 100%; background: var(--black); border: 1px solid var(--line); color: var(--paper);
  padding: 13px 16px; font-size: 15px; font-family: var(--font-body); border-radius: 3px;
}
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--brass); }
.review-form textarea { min-height: 120px; resize: vertical; }
.review-form .btn { margin-top: 22px; }
.star-picker { display: flex; gap: 4px; }
.star-picker button { background: none; border: none; color: #3a3a3e; font-size: 32px; cursor: pointer; padding: 0 2px; line-height: 1; }
.star-picker button.lit { color: var(--brass); }
.star-picker button:focus { outline: 1px solid var(--brass); border-radius: 4px; }

@media (max-width: 900px) {
  .book-detail { grid-template-columns: 1fr; gap: 36px; }
  .book-detail-cover { max-width: 300px; }
}

/* ---------- Buy panel (detail page) ---------- */
.buy-panel { margin-top: 28px; padding: 26px; background: var(--ink); border: 1px solid var(--line); border-radius: 6px; max-width: 560px; }
.buy-panel .section-kicker { margin-bottom: 14px; }
.format-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.format-row:last-of-type { border-bottom: none; }
.format-label { font-weight: 700; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.format-price { color: var(--brass); font-weight: 800; font-size: 18px; margin-top: 2px; }
