/* Devi Manogaran Novels — shared site styles */

* { box-sizing: border-box; }

:root {
  --cream: #fbf6ff;
  --cream-2: #fffdff;
  --lilac: #c9a3f5;
  --lilac-soft: #e7d3fc;
  --dusty: #8b46d6;
  --plum: #4a1a6b;
  --plum-deep: #2b0e45;
  --ink: #20102f;
  --ink-soft: #594078;
  --ink-faint: #7b66a0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(255,252,255, 0.55);
  --glass-bg-deep: rgba(60,20,100, 0.28);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-deep: rgba(255, 255, 255, 0.22);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--dusty); }

.serif { font-family: 'Playfair Display', 'Cormorant Garamond', serif; }
.ta-head { font-family: 'Catamaran', 'Playfair Display', serif; }
.ta-body { font-family: 'Noto Sans Tamil', 'Outfit', sans-serif; }
.script { font-family: 'Allura', 'Playfair Display', cursive; }
.eyebrow-mark { display: inline-flex; align-items: center; gap: 9px; }

.track { scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
.track::-webkit-scrollbar { display: none; }

.jacket, .shelf-card, .note-card { transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease); }
.jacket:hover { transform: translateY(-12px); box-shadow: 0 34px 54px -20px rgba(43,14,69,0.4); }
.note-card:hover { transform: translateY(-8px); box-shadow: 0 26px 46px -22px rgba(43,14,69,0.28); }

.arrow-btn { transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease); cursor: pointer; border: none; }
.arrow-btn:hover { background: var(--plum); border-color: var(--plum); }
.arrow-btn:hover svg { stroke: var(--cream-2); }
.arrow-btn:active { transform: scale(0.96); }

.btn-fill { position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -10px 14px -11px rgba(0,0,0,0.22); transition: background 0.4s var(--ease), transform 0.3s var(--ease), box-shadow 0.4s var(--ease); cursor: pointer; border: none; display: inline-flex; }
.btn-fill:hover { background: var(--plum); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -10px 14px -11px rgba(0,0,0,0.22), 0 16px 30px -12px rgba(74,26,107,0.5); transform: translateY(-2px); }
.btn-fill:active { transform: translateY(0) scale(0.98); }

.btn-ghost { transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.3s var(--ease); cursor: pointer; }
.btn-ghost:hover { background: var(--dusty); border-color: var(--dusty); color: var(--cream-2) !important; transform: translateY(-2px); }

.link-arrow { transition: gap 0.35s var(--ease), color 0.35s var(--ease); cursor: pointer; }
.link-arrow:hover { gap: 11px; color: var(--plum); }

.social-chip { transition: background 0.35s var(--ease), transform 0.35s var(--ease); cursor: pointer; }
.social-chip:hover { background: var(--lilac); transform: translateY(-3px); }
.social-chip:hover svg { stroke: var(--plum-deep); }

.newsletter-input::placeholder { color: rgba(251,246,255,0.42); }
.newsletter-input:focus { outline: none; border-color: var(--lilac); background: rgba(251,246,255,0.1); }

.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

.glass {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,0.4) 0%, var(--glass-bg) 38%, var(--glass-bg) 100%);
  backdrop-filter: blur(22px) saturate(122%);
  -webkit-backdrop-filter: blur(22px) saturate(122%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(74,26,107,0.06), 0 18px 40px -22px rgba(43,14,69,0.35);
}
.glass-deep {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,0.14) 0%, var(--glass-bg-deep) 38%, var(--glass-bg-deep) 100%);
  backdrop-filter: blur(22px) saturate(122%);
  -webkit-backdrop-filter: blur(22px) saturate(122%);
  border: 1px solid var(--glass-border-deep);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.15), 0 18px 40px -22px rgba(0,0,0,0.4);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--cream-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-deep { background: var(--plum-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; top: -60%; left: -70%; width: 45%; height: 220%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.4) 48%, rgba(255,255,255,0.05) 58%, transparent 100%);
  transform: rotate(10deg); transition: left 1.1s var(--ease); pointer-events: none; z-index: 5;
}
.sheen:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .jacket, .note-card, .arrow-btn, .btn-fill, .btn-ghost, .link-arrow, .social-chip, .sheen::after {
    transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important;
  }
}

@media (max-width: 860px) {
  .nav-links { display: none !important; }
  .menu-btn { display: flex !important; }
  .section-pad { padding-left: 20px !important; padding-right: 20px !important; }
  .trending-grid { grid-template-columns: 1fr !important; }
}

.menu-btn { display: none; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.3s var(--ease); background: none; border: none; }
.menu-btn:hover { background: rgba(139,70,214,0.14); }
.menu-line { display: block; width: 16px; height: 1.6px; background: var(--plum); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.menu-line + .menu-line { margin-top: 4px; }
.mobile-menu-panel { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); display: none; }
.mobile-menu-panel.open { display: flex; }

.trend-row { transition: background 0.35s var(--ease), transform 0.3s var(--ease); cursor: pointer; }
.trend-row:hover { background: rgba(139,70,214,0.08); transform: translateX(4px); }

.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker-scroll 32s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ===== Shared page-content layout (About / FAQ / Contact / Legal pages) ===== */
.page-hero {
  position: relative;
  padding: 76px 24px 40px;
  text-align: center;
  overflow: hidden;
}
.page-hero .glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--lilac-soft) 0%, transparent 68%);
  opacity: 0.55; pointer-events: none;
}
.page-hero h1 {
  position: relative;
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  color: var(--plum);
}
.page-hero p.lede {
  position: relative;
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.eyebrow-pill {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dusty);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid rgba(139,70,214,0.25);
}

.content-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.legal-card, .info-card {
  background: var(--cream-2);
  border-radius: 18px;
  padding: 36px clamp(20px, 4vw, 48px);
  box-shadow: 0 18px 40px -22px rgba(43,14,69,0.25);
}

.legal-card h2, .content-wrap h2 {
  font-family: 'Playfair Display', serif;
  color: var(--plum);
  font-size: 22px;
  margin: 34px 0 12px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .content-wrap p, .legal-card li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.legal-card ul { padding-left: 20px; margin: 10px 0; }
.legal-card .updated {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 28px;
}

.faq-item {
  background: var(--cream-2);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px -18px rgba(43,14,69,0.25);
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; background: none; border: none; width: 100%;
  text-align: left; font-family: 'Playfair Display', serif; font-size: 15.5px; font-weight: 600; color: var(--plum);
}
.faq-q .plus { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--dusty); display: flex; align-items: center; justify-content: center; transition: transform 0.35s var(--ease); color: var(--dusty); font-size: 14px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 400px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(139,70,214,0.28);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--dusty); box-shadow: 0 0 0 3px rgba(139,70,214,0.15);
}

.contact-info-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-info-row .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); border: 1px solid rgba(139,70,214,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-row .label { font-size: 12px; color: var(--ink-faint); margin-bottom: 2px; }
.contact-info-row .value { font-size: 14px; color: var(--plum); font-weight: 500; }

.crumb { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 6px; }
.crumb a { color: var(--dusty); }
