/* Akshat Nema — personal site.
   Text-first. Inspired by paulgraham.com (plain, narrow) and
   thinkingmachines.ai (warm off-white, generous whitespace). */

:root {
  --bg: #fbfaf7;
  --ink: #1c1b19;
  --muted: #6b6862;
  --rule: #e6e3dc;
  --link: #1a1a1a;
  --maxw: 40rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

/* Header */
header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.tagline {
  color: var(--muted);
  margin: 0 0 1rem;
  font-style: italic;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* LinkedIn (and other) icon links */
.icon-link {
  display: inline-flex;
  align-items: center;
  color: #0a66c2;
  border-bottom: none;
  line-height: 0;
}
.icon-link .icon { width: 22px; height: 22px; }
.icon-link:hover { opacity: 0.75; }

/* Email dropdown (Gmail / Outlook) */
.dropdown { position: relative; }
.dropdown > summary {
  cursor: pointer;
  list-style: none;
  color: var(--link);
  border-bottom: 1px solid #d6d2c9;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::marker { content: ""; }
.dropdown > summary:hover { border-bottom-color: var(--ink); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  border-bottom: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.dropdown-menu a:hover { background: var(--bg); }
.dropdown-menu svg,
.dropdown-menu img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Sections */
section { margin-top: 3rem; }

/* Intro / lead paragraph */
.intro { margin-top: 2rem; }
.intro p {
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 0;
}

h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

p { margin: 0 0 1rem; }

/* Projects — text-first, no logo column. */
.project { margin-bottom: 1.75rem; }
.project:last-child { margin-bottom: 0; }
.project h3 { margin-bottom: 0.2rem; }
.project p { margin: 0; color: var(--muted); }

/* Work / Education roles — logo on the left, role + tenure on the right. */
.role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.role:last-child { margin-bottom: 0; }

/* Dashed perforated separator between consecutive work experiences. */
.role + .role {
  border-top: 1px dashed #cdc9c0;
  padding-top: 1.75rem;
}

.role-body { flex: 1 1 auto; min-width: 0; }

/* Fixed-width logo column keeps every role's text aligned, regardless of
   each logo's aspect ratio. */
.logo-box {
  flex: 0 0 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
}
.logo-box img { transition: opacity 0.15s ease; }
.logo-box:hover img { opacity: 0.7; }
.logo-box img {
  display: block;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}
.logo-box:hover img { opacity: 0.7; }

.role-head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
}

.role-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Role statements — full-width row below the logo + title line, no bullets. */
.role-points {
  list-style: none;
  flex-basis: 100%;
  margin: 0;
  padding-left: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.role-points li { margin-bottom: 0.4rem; }
.role-points li:last-child { margin-bottom: 0; }

/* Plain lists */
ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.plain li { margin-bottom: 0.6rem; }

/* Links */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid #c9c5bc;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--ink); }

.links a, footer a { border-bottom-color: #d6d2c9; }

/* Empty-state note (projects page) */
.note {
  color: var(--muted);
  font-style: italic;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

footer p { margin: 0 0 0.4rem; }

.fineprint { color: var(--muted); font-size: 0.8rem; }

/* Small screens */
@media (max-width: 480px) {
  main { padding: 3rem 1.25rem 4rem; }
  body { font-size: 17px; }
  .role { gap: 1rem; }
  .logo-box { flex-basis: 88px; height: 48px; }
}
