/* Anvay Ved — landing page. Light editorial look, matched to the LinkedIn banner:
   ivory paper, black ink, fine gold rules, elegant serif display type. */

body.lp {
  --lp-ivory: #F7F3EC;
  --lp-paper: #FFFDF8;
  --lp-sand: #EFE8DC;
  --lp-ink: #161412;
  --lp-ink-soft: #3B3731;
  --lp-gray: #6E675D;
  --lp-gold: #B8964E;
  --lp-gold-soft: #D8C295;
  --lp-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  background: var(--lp-ivory);
  color: var(--lp-ink-soft);
}
body.lp main { padding: 0; }

/* Header + footer, light */
body.lp .site-header { background: var(--lp-ivory); border-bottom: 1px solid #E4DCCD; }
body.lp .site-title { font-family: var(--lp-display); font-size: 1.65rem; font-weight: 600; color: var(--lp-ink); letter-spacing: 0.3px; }
body.lp .main-nav a { color: var(--lp-ink); font-size: 1.06rem; font-weight: 500; letter-spacing: 0.3px; }
body.lp .main-nav a:hover, body.lp .main-nav a.active { color: var(--lp-gold); }
body.lp .site-footer { margin-top: 0; background: var(--lp-ivory); border-top: 1px solid #E4DCCD; color: var(--lp-gray); }
body.lp .site-footer > div:first-child { font-family: var(--lp-display); font-size: 1.35rem; color: var(--lp-ink); }

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

.lp-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--lp-display);
  font-size: 1.05rem;
  color: var(--lp-ink-soft);
  margin: 0 0 26px;
}
.lp-labels i { width: 1px; height: 14px; background: var(--lp-gold); display: inline-block; }
.lp-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--lp-gold);
  margin: 0 0 14px;
}
.lp-rule { display: block; width: 56px; height: 1px; background: var(--lp-gold); margin: 22px 0; }
.lp h1, .lp h2, .lp h3 { font-family: var(--lp-display); font-weight: 500; color: var(--lp-ink); }

/* Buttons */
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.lp-btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--lp-ink);
  color: var(--lp-paper);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--lp-ink);
  transition: background 0.25s, color 0.25s;
}
.lp-btn:hover { background: transparent; color: var(--lp-ink); text-decoration: none; }
.lp-btn-outline { background: transparent; color: var(--lp-ink); }
.lp-btn-outline:hover { background: var(--lp-ink); color: var(--lp-paper); }
.lp-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-ink);
  border-bottom: 1px solid var(--lp-gold);
  padding-bottom: 3px;
}
.lp-link:hover { color: var(--lp-gold); text-decoration: none; }

/* 1. Hero */
.lp-hero { padding: 84px 0 96px; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.lp-hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.3px;
}
.lp-hero h1 em { font-style: italic; color: var(--lp-gold); }
.lp-hero-sub { font-size: 1.06rem; line-height: 1.75; color: var(--lp-gray); max-width: 440px; margin: 0; }

/* Self-writing notebook */
.nb { perspective: 2200px; }
.nb-book {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1.5 / 1;
  margin: 0 auto;
  transform-style: preserve-3d;
  font-size: clamp(13px, 1.45vw, 18px);
}
.nb-book::after {
  content: "";
  position: absolute;
  left: 3%; right: 3%; bottom: -26px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(60,45,20,0.22), rgba(60,45,20,0) 70%);
  z-index: -1;
}
.nb-page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: var(--lp-paper);
  padding: 9% 8%;
  overflow: hidden;
}
.nb-left {
  left: 0;
  border-radius: 4px 0 0 4px;
  background-image: linear-gradient(to left, rgba(0,0,0,0.10), rgba(0,0,0,0) 14%);
  box-shadow: -1px 1px 0 #EDE5D6, -3px 3px 0 #E3D9C6, -5px 5px 0 #D9CDB7;
}
.nb-right {
  left: 50%;
  border-radius: 0 4px 4px 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.10), rgba(0,0,0,0) 14%),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.9em - 1px), rgba(184,150,78,0.16) calc(1.9em - 1px), rgba(184,150,78,0.16) 1.9em);
  background-position: 0 0, 0 5.1em;
  box-shadow: 1px 1px 0 #EDE5D6, 3px 3px 0 #E3D9C6, 5px 5px 0 #D9CDB7;
}
.nb-leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: rotateY(0deg);
  visibility: hidden;
  z-index: 5;
}
.nb-leaf.turning { visibility: visible; transform: rotateY(-180deg); transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.25, 1); }
.nb-leaf > .nb-page { left: 0; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.nb-leaf-front { background-image: linear-gradient(to right, rgba(0,0,0,0.10), rgba(0,0,0,0) 14%); }
.nb-leaf-back {
  transform: rotateY(180deg);
  background-image: linear-gradient(to left, rgba(0,0,0,0.10), rgba(0,0,0,0) 14%);
}

/* left page content */
.nb-no { font-family: var(--lp-display); font-size: 3.1em; line-height: 1; color: var(--lp-gold-soft); margin: 0; }
.nb-theme { font-size: 0.72em; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--lp-ink); margin: 0.9em 0 0; }
.nb-leftrule { display: block; width: 2.6em; height: 1px; background: var(--lp-gold); margin: 1.2em 0; }
.nb-note { font-family: var(--lp-display); font-style: italic; font-size: 1.02em; line-height: 1.4; color: var(--lp-gray); margin: 0; position: absolute; left: 12%; right: 12%; bottom: 10%; }

/* right page: the writing */
.nb-text {
  font-family: var(--lp-display);
  font-style: italic;
  font-size: 1.42em;
  line-height: 1.34;
  color: var(--lp-ink);
  margin: 2.2em 0 0;
  min-height: 5em;
}
.nb-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--lp-gold);
  animation: nb-blink 0.9s steps(1) infinite;
}
@keyframes nb-blink { 50% { opacity: 0; } }
.nb-sign {
  font-size: 0.66em;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lp-gold);
  margin: 1.3em 0 0;
  opacity: 0;
}
.nb-sign.show { opacity: 1; transition: opacity 0.8s; }
.nb-source { display: none; }

/* 2. Observe / Question / Write */
.lp-values { padding: 92px 0; background: var(--lp-paper); border-top: 1px solid #E9E1D2; border-bottom: 1px solid #E9E1D2; }
.lp-values-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.lp-values-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 0 0 12px; }
.lp-values-head p { color: var(--lp-gray); margin: 0; }
.lp-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.lp-value { text-align: center; padding: 0 8px; }
.lp-value svg { width: 58px; height: 58px; margin: 0 auto 18px; overflow: visible; }
.lp-value svg * { fill: none; stroke: var(--lp-gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.lp-value h3 { font-size: 1.75rem; margin: 0 0 10px; }
.lp-value p { color: var(--lp-gray); font-size: 0.97rem; line-height: 1.7; margin: 0; }

/* icons draw themselves when scrolled into view */
.js-reveal .draw { stroke-dasharray: 160; stroke-dashoffset: 160; }
.js-reveal .in-view .draw { animation: lp-draw 1.8s ease forwards; }
.js-reveal .in-view .draw:nth-child(2) { animation-delay: 0.25s; }
.js-reveal .in-view .draw:nth-child(3) { animation-delay: 0.5s; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
.js-reveal .fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js-reveal .fade-up.in-view { opacity: 1; transform: none; }

/* 3. Debut book */
.lp-debut { padding: 100px 0; background: var(--lp-sand); }
.lp-debut-grid { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.lp-debut h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.12; margin: 0 0 8px; }
.lp-debut .lp-sub { font-family: var(--lp-display); font-style: italic; font-size: 1.25rem; color: var(--lp-gray); margin: 0; }
.lp-debut p.lp-teaser { color: var(--lp-ink-soft); line-height: 1.8; max-width: 480px; margin: 0; }
.lp-debut .flip-hint { color: var(--lp-gray); }

/* 4. Closing quote */
.lp-quote { padding: 110px 0 100px; text-align: center; }
.lp-quote blockquote {
  font-family: var(--lp-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  color: var(--lp-ink);
  max-width: 820px;
  margin: 0 auto;
  font-style: italic;
}
.lp-quote .lp-rule { margin: 30px auto; }
.lp-quote cite { font-style: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--lp-gold); }
.lp-quote .lp-actions { justify-content: center; margin-top: 44px; }

/* Responsive */
@media (max-width: 920px) {
  .lp-hero { padding: 52px 0 64px; }
  .lp-hero-grid, .lp-debut-grid { grid-template-columns: 1fr; gap: 48px; }
  .lp-hero-text, .lp-debut-text { text-align: center; }
  .lp-labels, .lp-actions { justify-content: center; }
  .lp-rule { margin-left: auto; margin-right: auto; }
  .lp-hero-sub, .lp-debut p.lp-teaser { margin-left: auto; margin-right: auto; }
  .lp-values, .lp-debut { padding: 64px 0; }
  .lp-values-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-quote { padding: 72px 0; }
}
@media (max-width: 520px) {
  .nb-book { font-size: 3.3vw; }
  .nb-page { padding: 7% 7%; }
  .nb-text { font-size: 1.3em; margin-top: 1.4em; }
  .nb-sign { margin-top: 0.9em; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-leaf.turning { transition: none; }
  .nb-caret { animation: none; }
  .js-reveal .draw { stroke-dashoffset: 0; animation: none !important; }
  .js-reveal .fade-up { opacity: 1; transform: none; transition: none; }
}

/* Mobile menu panel on the landing page */
@media (max-width: 900px) {
  body.lp .main-nav { background: var(--lp-ivory); border-bottom-color: #E4DCCD; }
  body.lp .main-nav li + li { border-top-color: #E4DCCD; }
  .lp-link { display: inline-block; padding: 10px 0 5px; }
}

/* Where to Buy on the landing page */
body.lp .where-to-buy { border-color: #E4DCCD; margin: 0 auto; padding: 72px 24px; max-width: none; background: var(--lp-paper); border-top: 1px solid #E9E1D2; border-bottom: 0; }
body.lp .where-to-buy h2 { font-family: var(--lp-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.5rem); color: var(--lp-ink); }
body.lp .wtb-kicker { color: var(--lp-gold); }
