/* Manish Kumar — portfolio. Plain CSS, no build step. */
:root {
  --bg: #f3efe6;
  --bg-alt: #eae3d6;
  --bg-card: #faf7f1;
  --ink: #1c1915;
  --muted: #5e574c;
  --line: #d6cec0;
  --accent: #c45c26;
  --accent-ink: #8a3a12;
  --forest: #1f4d3a;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: var(--pad); top: 0.5rem; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  text-decoration: none !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 3.5rem;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 0.85rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.hero-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.meta-row strong { color: var(--ink); font-weight: 600; }

.portrait {
  justify-self: end;
  width: min(100%, 340px);
}
.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 24px 50px -28px rgba(28, 25, 21, 0.55);
}

/* Sections */
section { padding: 3.25rem 0; }
section + section { border-top: 1px solid var(--line); }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 0.6rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}

.prose { max-width: 42rem; color: var(--muted); }
.prose p { margin: 0 0 1rem; }

/* Quote */
blockquote.founder-quote {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
  font-weight: 500;
}
blockquote.founder-quote footer {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

/* Venture / portfolio cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.4rem;
}
.card .when {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 0.45rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .stack {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--forest);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1.25rem 1.75rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.when-col {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  padding-top: 0.2rem;
}
.role-place {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.15rem 0 0.45rem;
}
.role-detail { margin: 0; color: var(--muted); }

.edu {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Services table */
.table-wrap { overflow-x: auto; margin-top: 0.5rem; }
table.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.rates th, .rates td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 0.85rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.rates th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.rates td:last-child, .rates th:last-child { width: 28%; }
.rates .offer { font-weight: 650; color: var(--ink); }

/* Skills */
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.skills li {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.skills li:last-child { border-bottom: 1px solid var(--line); }
.skills dt, .skills .area { font-weight: 650; }
.skills .list { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  font-weight: 600;
}
.links a span { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.links a:hover { border-color: var(--accent); }

.how-to-start {
  background: var(--bg-alt);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0 0;
}
.how-to-start strong { display: block; margin-bottom: 0.3rem; }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
footer.site-footer a { color: var(--muted); }

@media (max-width: 800px) {
  .hero, .contact-grid, .timeline li, .skills li {
    grid-template-columns: 1fr;
  }
  .portrait { justify-self: start; width: min(100%, 260px); }
  .nav-links { display: none; }
  .when-col { padding-top: 0; }
  .rates td:last-child, .rates th:last-child { width: auto; }
}
