/* ============================================================
   litandlatte.com — Rohit Kumar, Author
   Self-owned rebuild (plain HTML/CSS/JS) of the original site.
   Design tokens mirror the original (dark navy + gold accent,
   Crimson Pro display serif + Geist body sans).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --background: 225 25% 4%;
  --foreground: 210 20% 94%;
  --card: 225 20% 6%;
  --card-foreground: 210 20% 94%;
  --muted: 225 15% 12%;
  --muted-foreground: 210 10% 68%;
  --primary: 235 60% 45%;
  --primary-soft: 235 40% 60%;
  --primary-foreground: 210 20% 98%;
  --secondary: 345 45% 30%;
  --accent: 42 88% 65%;
  --accent-soft: 42 70% 75%;
  --accent-foreground: 225 25% 4%;
  --border: 225 15% 16%;
  --charcoal: 225 20% 8%;

  --radius: 0.875rem;

  --font-display: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gradient-hero: linear-gradient(135deg, hsl(225 25% 4%), hsl(225 20% 8%), hsl(235 50% 15%));
  --gradient-accent: linear-gradient(135deg, hsl(235 60% 45%), hsl(235 40% 60%), hsl(345 45% 30%));
  --gradient-text: linear-gradient(135deg, hsl(42 88% 65%), hsl(42 70% 55%), hsl(45 60% 70%));
  --gradient-card: linear-gradient(145deg, hsl(225 20% 6%), hsl(225 15% 8%));

  --shadow-elegant: 0 25px 50px -12px hsl(225 25% 2% / 0.6), 0 0 40px hsl(235 60% 45% / 0.1);
  --shadow-glow: 0 0 40px hsl(42 88% 65% / 0.3), 0 0 80px hsl(42 88% 65% / 0.1);
  --shadow-subtle: 0 10px 30px -8px hsl(225 25% 2% / 0.3);

  --container: 1200px;
  --container-narrow: 1024px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 5rem 0; }
.section--charcoal { background: hsl(var(--charcoal)); }

/* Visually hidden, still available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.text-accent { color: hsl(var(--accent)); font-style: normal; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Section headers ---------- */
.section__head { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.section__lede { color: hsl(var(--muted-foreground)); font-size: 1.125rem; }
.rule {
  width: 6rem; height: 4px; margin: 0 auto 1.25rem;
  background: var(--gradient-accent); border-radius: 999px;
}

/* ---------- Pills (eyebrow labels) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: hsl(var(--accent));
}
.pill__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: hsl(var(--accent)); animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 0.85rem 1.75rem; font-size: 1rem; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.25rem; height: 1.25rem; transition: transform 0.3s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn--lg { padding: 1.1rem 2.75rem; font-size: 1.0625rem; border-radius: 1rem; }

.btn--gold {
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  box-shadow: var(--shadow-glow); animation: pulse-glow 3s ease-in-out infinite;
}
.btn--gold:hover { background: hsl(var(--accent) / 0.9); }

.btn--gradient {
  background: var(--gradient-accent); color: hsl(var(--primary-foreground));
  letter-spacing: 0.02em;
}
.btn--gradient:hover { box-shadow: var(--shadow-glow); }

.btn--outline-gold {
  background: var(--gradient-card); border-color: hsl(var(--accent) / 0.3);
  color: hsl(var(--accent-soft)); backdrop-filter: blur(12px);
}
.btn--outline-gold:hover { border-color: hsl(var(--accent)); box-shadow: var(--shadow-glow); }

.btn--outline-primary {
  background: hsl(var(--card) / 0.5); border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--primary-soft)); backdrop-filter: blur(12px);
}
.btn--outline-primary:hover { border-color: hsl(var(--primary-soft)); background: hsl(var(--primary) / 0.12); }
/* Inactive buttons (e.g. a forthcoming book whose retail links aren't live yet) */
.btn--disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; box-shadow: none; filter: grayscale(35%); }
.btn--disabled:hover { transform: none; box-shadow: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.nav__logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: hsl(var(--accent)); }
.nav__mark { width: auto; height: 2.125rem; flex-shrink: 0; color: hsl(40 30% 92%); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: hsl(var(--muted-foreground)); font-weight: 500; transition: color 0.3s ease; }
.nav__links a:hover { color: hsl(var(--accent)); }
.nav__cta { margin-left: 1rem; }
.nav__toggle { display: none; background: none; border: none; color: hsl(var(--foreground)); cursor: pointer; padding: 0.5rem; }
.nav__toggle svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-hero); overflow: hidden; padding: 6rem 0 4rem;
}
.hero__orbs { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.orb { position: absolute; border-radius: 999px; filter: blur(80px); }
.orb--primary { top: 5rem; left: 2.5rem; width: 18rem; height: 18rem; background: hsl(var(--primary) / 0.18); }
.orb--accent { bottom: 8rem; right: 4rem; width: 24rem; height: 24rem; background: hsl(var(--accent) / 0.14); }
.orb--center { top: 50%; left: 50%; width: 32rem; height: 32rem; transform: translate(-50%, -50%); background: var(--gradient-accent); opacity: 0.06; }
.hero__dots {
  position: absolute; inset: 0; opacity: 0.25; pointer-events: none;
  background-image: radial-gradient(hsl(0 0% 100% / 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 1.5rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600; line-height: 0.92; letter-spacing: -0.03em;
  font-size: clamp(3.5rem, 8vw, 6rem);
}
.hero__subtitle { font-size: clamp(1.35rem, 3vw, 1.875rem); color: hsl(var(--muted-foreground)); font-weight: 700; }
.hero__subtitle em { font-weight: 500; }
.hero__lede { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.75rem; }

.hero__photo { position: relative; display: flex; justify-content: center; }
.hero__photo img {
  position: relative; z-index: 1;
  width: clamp(14rem, 24vw, 20rem); height: clamp(14rem, 24vw, 20rem);
  object-fit: cover; border-radius: 999px;
  border: 4px solid hsl(var(--accent) / 0.3); box-shadow: var(--shadow-elegant);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.hero__photo:hover img { border-color: hsl(var(--accent) / 0.5); box-shadow: var(--shadow-glow); }
.hero__photo-glow {
  position: absolute; inset: -2rem; border-radius: 999px;
  background: var(--gradient-accent); filter: blur(80px); opacity: 0.2;
}
.hero__photo-dot { position: absolute; border-radius: 999px; z-index: 2; }
.hero__photo-dot--tr { top: 0; right: 12%; width: 2rem; height: 2rem; background: hsl(var(--accent)); animation: bounce 3s ease-in-out infinite; }
.hero__photo-dot--bl { bottom: 6%; left: 14%; width: 1.5rem; height: 1.5rem; background: hsl(var(--primary)); animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Cards ---------- */
.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.5rem); box-shadow: var(--shadow-elegant);
}
.card--subtle { background: hsl(var(--card) / 0.6); border-color: hsl(var(--accent) / 0.1); backdrop-filter: blur(12px); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.about__main { padding: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.about__h { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: hsl(var(--accent)); margin-bottom: 0.75rem; }
.about__block p { font-size: 1.0625rem; color: hsl(var(--card-foreground)); }
.about__block strong { color: hsl(var(--accent)); font-weight: 600; }
.about__block em { color: hsl(var(--accent) / 0.85); }
.about__quote {
  background: var(--gradient-card); border: 1px solid hsl(var(--accent) / 0.2);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  font-style: italic; font-size: 1.0625rem;
}

.about__influences { padding: 1.75rem; }
.influence {
  padding: 1rem; margin-bottom: 1rem; border-radius: var(--radius);
  background: hsl(var(--card) / 0.5); border: 1px solid hsl(var(--border) / 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.influence:hover { border-color: hsl(var(--accent) / 0.3); transform: translateY(-2px); }
.influence h4 { font-weight: 500; color: hsl(var(--foreground)); transition: color 0.3s ease; }
.influence:hover h4 { color: hsl(var(--accent)); }
.influence__work { font-size: 0.875rem; color: hsl(var(--muted-foreground)); font-style: italic; }
.influence__note { font-size: 0.75rem; color: hsl(var(--accent) / 0.7); font-weight: 500; }
.influence__footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border) / 0.3); font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-align: center; }

/* ---------- Published book ---------- */
.book { padding: 2.5rem; max-width: 56rem; margin: 0 auto; }
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.book + .book { margin-top: 2.5rem; }
.book__cover { position: relative; }
.book__cover img { max-width: 22rem; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-glow); }
.book__badge {
  position: absolute; bottom: -0.5rem; right: -0.5rem;
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  padding: 0.25rem 0.85rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600;
  box-shadow: var(--shadow-subtle);
}
.book__info { display: flex; flex-direction: column; gap: 1.25rem; }
.book__title { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: hsl(var(--accent)); }
.book__genre { color: hsl(var(--muted-foreground)); }
.book__desc { color: hsl(var(--card-foreground)); }
.book__retailers { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.contact__card { padding: 2rem; text-align: center; transition: box-shadow 0.5s ease, transform 0.4s ease; }
.contact__card:hover { box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.contact__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 999px;
  background: var(--gradient-accent); color: hsl(var(--accent-foreground));
}
.contact__icon svg { width: 1.5rem; height: 1.5rem; }
.contact__h { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: hsl(var(--accent)); margin-bottom: 0.5rem; }
.contact__val { color: hsl(var(--card-foreground)); transition: color 0.3s ease; }
.contact__card:hover .contact__val { color: hsl(var(--accent)); }
.contact__cta { text-align: center; margin-top: 3.5rem; }

/* ---------- Newsletter ---------- */
.newsletter__card {
  max-width: 44rem; margin: 0 auto; padding: 3rem 2.5rem; text-align: center;
  background: var(--gradient-card); border-color: hsl(var(--accent) / 0.25);
}
.newsletter__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; margin-bottom: 1.5rem; border-radius: 999px;
  background: var(--gradient-accent); color: hsl(var(--accent-foreground));
}
.newsletter__icon svg { width: 1.75rem; height: 1.75rem; }
.newsletter__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.875rem, 4vw, 2.5rem); letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.newsletter__lede {
  color: hsl(var(--muted-foreground)); font-size: 1.0625rem;
  max-width: 34rem; margin: 0 auto;
}
.newsletter__fine { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin-top: 1rem; }

/* MailerLite embedded form (form 191695054154236944) — themed to the site;
   MailerLite's own light-theme stylesheet is intentionally not loaded. */
#mlb2-43212509.ml-form-embedContainer { width: 100% !important; margin: 1.75rem 0 0; }
#mlb2-43212509 .ml-form-embedWrapper { background: transparent; width: 100%; max-width: none; margin: 0; }
#mlb2-43212509 .ml-form-embedBody { padding: 0; }
#mlb2-43212509 .ml-block-form {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  max-width: 32rem; width: 100%; margin: 0 auto;
}
#mlb2-43212509 .ml-form-formContent { flex: 1 1 15rem; min-width: 0; margin: 0; }
#mlb2-43212509 .ml-form-fieldRow, #mlb2-43212509 .ml-field-group { margin: 0; }
#mlb2-43212509 input[type="email"] {
  width: 100%; box-sizing: border-box; margin: 0;
  padding: 0.95rem 1.25rem; font-size: 1rem; font-family: var(--font-body);
  color: hsl(var(--foreground)); background: hsl(var(--card) / 0.8);
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  line-height: 1.4; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#mlb2-43212509 input[type="email"]::placeholder { color: hsl(var(--muted-foreground)); }
#mlb2-43212509 input[type="email"]:focus {
  outline: none; border-color: hsl(var(--accent) / 0.6);
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.15);
}
#mlb2-43212509 .ml-error input[type="email"] { border-color: hsl(0 72% 60%); }
#mlb2-43212509 .ml-form-embedSubmit { flex: 0 0 auto; margin: 0; }
#mlb2-43212509 .ml-form-embedSubmit button {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; margin: 0; cursor: pointer; white-space: nowrap;
  background: var(--gradient-accent); color: hsl(var(--primary-foreground));
  border: 1px solid transparent; border-radius: 1rem;
  padding: 1.1rem 2.75rem; font-size: 1.0625rem; font-family: var(--font-body);
  font-weight: 600; letter-spacing: 0.02em; line-height: 1.2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
#mlb2-43212509 .ml-form-embedSubmit button:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
#mlb2-43212509 .ml-form-successContent { text-align: center; }
#mlb2-43212509 .ml-form-successContent h4 {
  font-family: var(--font-display); font-weight: 700; color: hsl(var(--accent));
  font-size: 1.5rem; margin-bottom: 0.5rem;
}
#mlb2-43212509 .ml-form-successContent p { color: hsl(var(--card-foreground)); }
/* MailerLite submit spinner (their loader CSS, kept) */
.ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
.ml-form-embedSubmitLoad:after {
  content: " "; display: block; width: 11px; height: 11px; margin: 1px;
  border-radius: 50%; border: 4px solid #fff;
  border-color: #fff #fff #fff transparent;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}
@keyframes ml-form-embedSubmitLoad { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: hsl(var(--charcoal)); border-top: 1px solid hsl(var(--border)); padding: 3rem 0; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center; }
.footer__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: hsl(var(--accent)); margin-bottom: 0.25rem; }
.footer__role { color: hsl(var(--muted-foreground)); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer__nav a { color: hsl(var(--muted-foreground)); font-size: 0.875rem; transition: color 0.3s ease; }
.footer__nav a:hover { color: hsl(var(--accent)); }
.footer__copy { text-align: right; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* ---------- Animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: var(--shadow-glow); } 50% { box-shadow: 0 0 55px hsl(42 88% 65% / 0.45), 0 0 90px hsl(42 88% 65% / 0.15); } }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-24px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.floating { animation: floating 8s ease-in-out infinite; }
.floating-delayed { animation: floating 9s ease-in-out infinite; animation-delay: 1.5s; }

/* Entrance animation — pure CSS, plays on load; content always ends visible (no JS dependency) */
@keyframes fade-in-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.reveal { animation: fade-in-up 0.7s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 4rem; left: 0; right: 0;
    background: hsl(var(--background) / 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border)); padding: 0.5rem 1.5rem 1rem;
  }
  .nav__links.is-open a { padding: 0.85rem 0; border-bottom: 1px solid hsl(var(--border) / 0.4); }

  .hero__grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero__content { order: 2; align-items: center; }
  .hero__photo { order: 1; }
  .hero__lede { margin: 0 auto; }
  .hero__actions { justify-content: center; }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .book { grid-template-columns: 1fr; gap: 2rem; }
  .book__cover { order: 1; }
  .book__info { order: 2; }
  .contact__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer__nav { justify-content: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 480px) {
  .about__main, .book { padding: 1.75rem 1.5rem; }
  .newsletter__card { padding: 2rem 1.5rem; }
  #mlb2-43212509 .ml-block-form { flex-direction: column; }
  #mlb2-43212509 .ml-form-embedSubmit, #mlb2-43212509 .ml-form-embedSubmit button { width: 100%; }
  .btn--lg { padding: 0.95rem 2rem; font-size: 1rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
