/* Nouvelle Creations Limited — site styles (brand navy #1E3A5F) */
:root {
  --paper: #f7f9fc;
  --ink: #16222e;
  --muted: #5b6673;
  --accent: #1e3a5f;
  --accent-deep: #14294a;
  --accent-ink: #ffffff;
  --line: #dfe5ec;
  --card: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: var(--accent); }

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

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 60%, #2b4d7a 100%);
  color: #f2f5fa;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: #9fb3cd;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.06;
  font-weight: 600;
  margin: 0 0 22px;
  max-width: 15ch;
}
.hero p.lede {
  font-size: 19px;
  color: #c3d0e2;
  max-width: 56ch;
  margin: 0 0 34px;
}
.hero .btn { border-color: transparent; }
.hero .btn.ghost { color: #f2f5fa; border-color: rgba(255, 255, 255, 0.45); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.10); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
}
.btn.ghost:hover { background: rgba(30, 58, 95, 0.08); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero entrance animation */
.hero .anim { opacity: 0; transform: translateY(26px); animation: rise 0.7s ease forwards; }
.hero .anim:nth-child(2) { animation-delay: 0.12s; }
.hero .anim:nth-child(3) { animation-delay: 0.24s; }
.hero .anim:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Cover marquee ---------- */
.marquee-band {
  background: var(--accent-deep);
  padding: 0 0 34px;
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll-left 70s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left { to { transform: translateX(-50%); } }
.marquee-track a {
  flex: 0 0 auto;
  width: 118px;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.marquee-track a:hover { transform: translateY(-5px) scale(1.03); }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head h1, .section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  margin: 0;
}
.section-head a { font-size: 15px; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

/* scroll-reveal (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Book grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 28px 22px;
}
.book {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.book:hover { transform: translateY(-4px); }
.book .cover {
  aspect-ratio: 2 / 3;
  background: #e8edf3;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease;
}
.book:hover .cover { box-shadow: 0 10px 24px rgba(20, 41, 74, 0.18); }
.book .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book .cover .no-cover {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}
.book h3 {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  margin: 10px 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book .author {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Author list ---------- */
.author-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.author-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.author-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.author-covers { display: flex; gap: 8px; }
.author-covers img {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.author-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.author-card .name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.author-card .n { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Catalog toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}
.toolbar input[type="search"] {
  flex: 1 1 260px;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
}
.toolbar select {
  padding: 11px 12px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
}
.toolbar .count { font-size: 14px; color: var(--muted); }
.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Breadcrumb & counts ---------- */
.crumb { font-size: 14px; margin: 0 0 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.count { font-size: 14px; color: var(--muted); margin: 0 0 22px; }

/* ---------- Book detail page ---------- */
.bookpage { padding: 64px 0; }
.dialog {
  background: var(--card);
  border: 1px solid var(--line);
  max-width: 860px;
  width: 100%;
  border-radius: 4px;
  padding: 36px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  margin: 0 auto;
}
.dialog .cover { aspect-ratio: 2 / 3; border: 1px solid var(--line); background: #e8edf3; overflow: hidden; }
.dialog img { width: 100%; height: 100%; object-fit: cover; }
.dialog h1 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.dialog .author { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.dialog .desc { font-size: 15px; }
.dialog .desc p { margin: 0 0 12px; }
.dialog .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- About / contact ---------- */
.about p, .contact p { max-width: 62ch; font-size: 17px; }

.about-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.about-hero .about-logo { height: 96px; width: auto; margin-bottom: 34px; }
.about-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 18ch;
}
.about-hero .lede { font-size: 18px; color: var(--muted); max-width: 58ch; margin: 0; }
.about-hero .anim { opacity: 0; transform: translateY(22px); animation: rise 0.7s ease forwards; }
.about-hero .anim:nth-child(2) { animation-delay: 0.12s; }
.about-hero .anim:nth-child(3) { animation-delay: 0.24s; }

.stats-band {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #f2f5fa;
  padding: 44px 0;
}
.stats { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; }
.stat .label { font-size: 14px; color: #c3d0e2; max-width: 24ch; }
.stats-band .anim { opacity: 0; transform: translateY(18px); animation: rise 0.6s ease forwards; }
.stats-band .anim:nth-child(2) { animation-delay: 0.12s; }
.stats-band .anim:nth-child(3) { animation-delay: 0.24s; }

.cards3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card3 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
}
.card3 h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 10px;
}
.card3 p { margin: 0; font-size: 15px; color: var(--muted); }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #f2f5fa;
  border-radius: 6px;
  padding: 40px 44px;
}
.contact-card h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; }
.contact-card p { margin: 0; color: #c3d0e2; max-width: 44ch; }
.contact-card .btn { background: #ffffff; color: var(--accent); border-color: #ffffff; }
.contact-card .btn:hover { background: #e8edf3; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 6px; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 34px; width: auto; }
  .dialog { grid-template-columns: 1fr; padding: 26px; }
  .dialog .cover { max-width: 180px; }
  .hero { padding: 72px 0 60px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 22px 14px; }
  .site-nav { gap: 14px; flex-wrap: wrap; }
  .marquee-track a { width: 92px; }
  .about-hero { padding: 56px 0 48px; }
  .about-hero .about-logo { height: 60px; }
  .stats { gap: 24px 40px; }
  .stat .num { font-size: 34px; }
  .contact-card { padding: 28px 24px; }
  .section { padding: 52px 0; }
  .toolbar input[type="search"] { flex: 1 1 100%; }
  .toolbar select { flex: 1 1 auto; }
}
