
:root {
  --bg: #f9fafb;
  --bg-alt: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --border: #e5e7eb;
  --max-width: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #f9fafb 45%, #e5e7eb 120%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Links & images */

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

.page-wrapper { padding: 1.4rem 1.1rem 2.6rem; }
.container { max-width: var(--max-width); margin: 0 auto; }

/* HEADER & NAV */

header.site-header {
  background: rgba(15,23,42,0.97);
  color: #f9fafb;
  border-bottom: 1px solid rgba(148,163,184,0.4);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

/* logo */

a.brand-mark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-title span.name { color: var(--accent); }  /* shaurav in orange */
.brand-title span.dot { color: #ffffff; }
.brand-title span.domain { color: #ffffff; }      /* .org in white */

.brand-tagline {
  font-size: 0.75rem;
  color: #e5e7eb;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .brand-tagline {
    font-size: 0.68rem;
  }
}

/* nav */

nav.main-nav {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  width: 100%;
  margin-top: 0.55rem;
}

/* Full-screen mobile menu overlay */
nav.main-nav.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #f9fafb;
  z-index: 1000;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
}

/* Dark header bar for mobile menu */
.nav-menu-header {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #0f172a;
  padding: 0 1.1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 1001;
}

nav.main-nav.open ~ .nav-menu-header,
body.menu-open .nav-menu-header {
  display: flex;
}

.nav-menu-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-menu-logo .brand-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-menu-logo .brand-title .name {
  color: var(--accent);
}

.nav-menu-logo .brand-title .dot {
  color: #ffffff;
}

.nav-menu-logo .brand-title .domain {
  color: #ffffff;
}

.nav-menu-logo .brand-tagline {
  font-size: 0.68rem;
  color: #e5e7eb;
  font-weight: 700;
}

.nav-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  font-weight: 300;
}

/* Mobile menu link styles */
nav.main-nav.open a {
  color: var(--text);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: none;
  padding: 0.5rem 0;
  border: none;
}

nav.main-nav.open a:hover {
  color: var(--accent);
  border: none;
}

nav.main-nav.open a.active {
  color: var(--accent);
  font-weight: 500;
  border: none;
}

/* Default mobile nav styles */
nav.main-nav a {
  color: #e5e7eb;
  padding-bottom: 0.05rem;
  border-bottom: 2px solid transparent;
}

nav.main-nav a.active,
nav.main-nav a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* nav cta */

.nav-cta {
  border-radius: 999px;
  border: 1px solid var(--accent);
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  color: #fef3c7;
  background: rgba(249,115,22,0.15);
  white-space: nowrap;
  align-self: flex-start;
}

/* mobile toggle */

.nav-toggle {
  border-radius: 6px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 0.4rem 0.8rem;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
}

/* desktop nav */

@media (min-width: 768px) {
  nav.main-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.3rem;
    width: auto;
    margin-top: 0;
  }
  .nav-toggle { display: none; }
}

/* HERO */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  padding: 2.3rem 0 2rem;
}

.hero-book {
  display: flex;
  justify-content: center;
}

.hero-book img {
  max-width: 280px;
  box-shadow: 0 22px 48px rgba(15,23,42,0.35);
}

.hero-content h1 {
  font-size: 2.15rem;
  margin: 0 0 0.7rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(249,115,22,0.35);
}

.btn-primary:hover { filter: brightness(1.04); }

.btn-secondary {
  background: #111827;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  padding: 0.25rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255,255,255,0.9);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}

/* desktop hero */

@media (min-width: 960px) {
  .hero {
    flex-direction: row;
    gap: 2.9rem;
    align-items: center;
  }
  .hero-content { flex: 1.15; order: 1; }
  .hero-book { flex: 0.85; order: 2; justify-content: flex-end; }
  .hero-content h1 { font-size: 2.6rem; }
}

/* New centered hero layout */

.hero-content-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hero-headline-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-line-1,
.hero-line-2 {
  display: block;
  font-size: 2rem;
  margin: 0;
}

.hero-book-center {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-book-center img {
  max-width: 280px;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-line-1,
  .hero-line-2 {
    font-size: 2.6rem;
  }
  .hero-book-center img {
    max-width: 320px;
  }
}

/* Small buttons for essay cards */

.btn-small {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-primary-small {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  border: none;
}

.btn-primary-small:hover {
  filter: brightness(1.04);
  text-decoration: none;
}

.btn-secondary-small {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary-small:hover {
  background: #f9fafb;
  text-decoration: none;
}

/* SECTIONS */

section.page-section {
  padding: 2.4rem 0 1.7rem;
  border-top: 1px solid rgba(148,163,184,0.25);
}

.section-header {
  margin-bottom: 1.6rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 40rem;
}

/* cards & grids */

.card {
  background: var(--bg-alt);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 12px 26px rgba(15,23,42,0.04);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.three-col {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .three-col {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* split layout */

.split {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

@media (min-width: 900px) {
  .split {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* preview box */

.preview-box {
  background: #111827;
  color: #e5e7eb;
  border-radius: 16px;
  border: 1px solid #1f2937;
  padding: 1.1rem 1.3rem 1.2rem;
  font-size: 0.9rem;
  box-shadow: 0 20px 42px rgba(15,23,42,0.45);
}

.preview-title {
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: #f9fafb;
}

/* SPARK graphic */

.spark-graphic {
  background: #020617;
  border-radius: 18px;
  border: 1px solid #1f2937;
  padding: 1.2rem 1.4rem 1.4rem;
  box-shadow: 0 24px 52px rgba(15,23,42,0.7);
}

.spark-graphic-compact {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  border-radius: 18px;
  border: 2px solid #f97316;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 20px 40px rgba(249,115,22,0.25);
  max-width: 500px;
}

.spark-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 0.4rem;
}

.spark-arc {
  border-top: 2px solid var(--accent);
  border-radius: 999px;
  height: 22px;
  margin: 0.15rem 0 1rem;
}

.spark-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.spark-item {
  flex: 1 1 80px;
  text-align: center;
}

.spark-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  margin: 0 auto 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fef3c7;
  font-weight: 600;
}

.spark-label {
  font-size: 0.78rem;
  color: #e5e7eb;
}

/* SPARK explanatory list */

.spark-text {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #e5e7eb;
  line-height: 1.6;
}

/* essays grid */

.essays-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .essays-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* page hero */

.page-hero {
  padding: 2.6rem 0 1.9rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
}

.page-hero p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}

/* two-col general */

.two-col {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

@media (min-width: 900px) {
  .two-col {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* book layout */

.book-layout .book-preview { order: -1; }
.book-layout .book-text { order: 0; }

@media (min-width: 900px) {
  .book-layout .book-preview {
    order: 2;
    flex: 0.9;
  }
  .book-layout .book-text {
    order: 1;
    flex: 1.15;
  }
}

/* bio layout */

.bio-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bio-photo-block {
  max-width: 260px;
}

.bio-photo-block p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .bio-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .bio-photo-block { flex: 0.9; }
  .bio-text-block { flex: 1.3; }
}

/* avatar */

.avatar-photo {
  width: 195px;
  height: 195px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #1f2937;
  box-shadow: 0 16px 36px rgba(15,23,42,0.55);
  margin-bottom: 0.85rem;
}

/* contact form */

.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.contact-form label {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  font-size: 0.86rem;
  font-family: inherit;
  background: #ffffff;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* FOOTER */

footer.site-footer {
  border-top: 1px solid rgba(148,163,184,0.4);
  background: #020617;
  padding: 1.1rem 1.4rem 1.4rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.footer-inner a {
  color: #e5e7eb;
}
